.gm-vehicle-calculator {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ffffff;
}

.gm-vehicle-calculator__header {
  display: grid;
  gap: 7px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.gm-vehicle-calculator__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;
  width: min(100%, 960px);
  align-items: start;
}

.gm-vehicle-calculator__title {
  margin: 0 0 22px;
  color: inherit;
  font-size: clamp(30px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

.gm-vehicle-calculator .gm-vehicle-calculator__title {
  font-weight: 800 !important;
}

.gm-vehicle-calculator__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-size: 16px !important;
  line-height: 1.3;
  text-align: left;
}

.gm-vehicle-calculator .gm-vehicle-calculator__note-icon {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  flex: 0 0 15px;
  fill: currentColor;
}

.gm-vehicle-calculator__summary {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  margin-top: 2px;
}

.gm-vehicle-calculator__summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.gm-vehicle-calculator__summary-label {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gm-vehicle-calculator__summary-value {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

.gm-vehicle-calculator__summary-inline-meta {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.gm-vehicle-calculator__controls {
  display: grid;
  gap: 0;
  justify-items: center;
}

.gm-vehicle-calculator__field-group {
  display: grid;
  row-gap: 10px;
  width: min(100%, 620px);
  justify-items: center;
}

.gm-vehicle-calculator__entry-line,
.gm-vehicle-calculator__down-payment-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.gm-vehicle-calculator__down-payment-inline {
  gap: 8px;
}

.gm-vehicle-calculator__label {
  display: inline-flex;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.5px;
  margin: 0;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}

.gm-vehicle-calculator__currency-prefix,
.gm-vehicle-calculator__entry-meta {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.gm-vehicle-calculator__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  max-width: 120px;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  caret-color: #ffffff;
  overflow: hidden;
}

.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"],
.gm-vehicle-calculator__down-payment-inline input[type="number"] {
  border-radius: 12px !important;
  overflow: hidden;
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}

.elementor-widget-shortcode .gm-vehicle-calculator input.gm-vehicle-calculator__number {
  border-radius: 12px !important;
}

.gm-vehicle-calculator__number:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.gm-vehicle-calculator__number::-webkit-outer-spin-button,
.gm-vehicle-calculator__number::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"]::-webkit-outer-spin-button,
.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gm-vehicle-calculator__number {
  appearance: textfield;
  -moz-appearance: textfield;
}

.gm-vehicle-calculator__range-wrap {
  display: grid;
  gap: 6px;
  width: min(100%, 520px);
  justify-self: center;
}

.gm-vehicle-calculator__range {
  --gm-range-progress: 0%;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  accent-color: #ffffff;
}

.gm-vehicle-calculator__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--gm-range-progress),
    rgba(180, 195, 230, 0.7) var(--gm-range-progress),
    rgba(180, 195, 230, 0.7) 100%
  );
}

.gm-vehicle-calculator__range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(180, 195, 230, 0.7);
}

.gm-vehicle-calculator__range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.gm-vehicle-calculator__range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(7, 31, 18, 0.28);
  cursor: pointer;
  -webkit-appearance: none;
}

.gm-vehicle-calculator__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(7, 31, 18, 0.28);
  cursor: pointer;
}

.gm-vehicle-calculator__range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.gm-vehicle-calculator__range-labels span {
  font-size: 15px;
}

.gm-vehicle-calculator__results-block {
  display: grid;
  gap: 0;
  justify-items: center;
  margin-top: 10px;
}

.gm-vehicle-calculator__results-title {
  display: none;
}

.gm-vehicle-calculator__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  width: min(100%, 980px);
}

.gm-vehicle-calculator__result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.gm-vehicle-calculator__result-term {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gm-vehicle-calculator__result-amount {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.gm-vehicle-calculator--message {
  gap: 0;
  max-width: 680px;
  padding: 0 18px;
  text-align: center;
}

.gm-vehicle-calculator--message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .gm-vehicle-calculator__notes {
    grid-template-columns: 1fr;
  }

  .gm-vehicle-calculator__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gm-vehicle-calculator {
    gap: 12px;
    padding: 0 12px;
  }

  .gm-vehicle-calculator__title {
    font-size: clamp(24px, 6.5vw, 28px);
    letter-spacing: 1.5px;
  }

  .gm-vehicle-calculator__summary-line {
    gap: 6px;
    font-size: 18px;
  }

  .gm-vehicle-calculator__summary-inline-meta,
  .gm-vehicle-calculator__summary-label,
  .gm-vehicle-calculator__label {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .gm-vehicle-calculator__field-group,
  .gm-vehicle-calculator__range-wrap,
  .gm-vehicle-calculator__results {
    width: 100%;
  }

  .gm-vehicle-calculator__notes {
    grid-template-columns: 1fr;
  }

  .gm-vehicle-calculator__field-group {
    row-gap: 8px;
  }

  .gm-vehicle-calculator__label {
    text-align: center;
  }

  .gm-vehicle-calculator__number {
    width: 120px;
    max-width: 120px;
    min-height: 34px;
    height: 34px;
    font-size: 18px;
  }

  .gm-vehicle-calculator__results-title {
    font-size: clamp(20px, 5.5vw, 22px);
    letter-spacing: 1.5px;
  }

  .gm-vehicle-calculator__results {
    grid-template-columns: 1fr;
  }

  .gm-vehicle-calculator__result-row {
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
  }

  .gm-vehicle-calculator__result-term {
    font-size: 13px;
  }

  .gm-vehicle-calculator__result-amount {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gm-vehicle-calculator__entry-line,
  .gm-vehicle-calculator__down-payment-inline {
    flex-wrap: wrap;
  }
}

.gm-vehicle-calculator .gm-vehicle-calculator__results-title,
.gm-vehicle-calculator .gm-vehicle-calculator__result-term,
.gm-vehicle-calculator .gm-vehicle-calculator__result-amount {
  font-weight: 500 !important;
}

.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"],
.gm-vehicle-calculator input[data-gm-role="down-payment-input"][type="number"] {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"]::-webkit-outer-spin-button,
.gm-vehicle-calculator input.gm-vehicle-calculator__number[type="number"]::-webkit-inner-spin-button,
.gm-vehicle-calculator input[data-gm-role="down-payment-input"][type="number"]::-webkit-outer-spin-button,
.gm-vehicle-calculator input[data-gm-role="down-payment-input"][type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}
