/* Use the same tokens, type and layout as the existing HGV calculators. */
.hgv-credito-sim .header h1:first-child {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: .45rem;
}
.hgv-credito-sim .container > [hidden] { display: none !important; }
.hgv-credito-sim #tabTpv { overflow-wrap: break-word; }
.hgv-credito-sim .hgv-tpv-swipe-hint { display: none; }
.hgv-credito-sim #hgv-pdf-area #hgv-pdf-open { display: block; margin: 0 0 16px; }
.hgv-credito-sim #hgv-pdf-area #hgv-pdf-download { display: block; }
#hgv-tpv {
  width: 100%; max-width: 100%; min-width: 0;
  font-family: inherit; color: var(--text); background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
#hgv-tpv .hs-sim__frame { width: 100%; min-width: 0; }
#hgv-tpv .hs-sim__panel { padding: 1.75rem; }
#hgv-tpv .hs-sim__body-grid { display: block; min-width: 0; }
#hgv-tpv .hs-sim__controls-column { min-width: 0; }
#hgv-tpv .hs-sim__section + .hs-sim__section { margin-top: 1.25rem; }
#hgv-tpv .hs-sim__label {
  margin: 0 0 .4rem; font-family: inherit; font-size: .85rem;
  font-weight: 600; line-height: 1.5; color: var(--text);
}
#hgv-tpv .hs-sim__current {
  margin: 0 0 1rem; padding: .75rem 1rem;
  border: 2px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text);
  font-family: inherit; font-size: 1rem; font-weight: 400;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
#hgv-tpv .hs-sim__range {
  appearance: none; -webkit-appearance: none; display: block;
  width: 100%; height: 8px; margin: 0; padding: 0; border: 0;
  border-radius: 4px; background-color: var(--border);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; cursor: pointer;
}
#hgv-tpv .hs-sim__range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px; background: transparent;
}
#hgv-tpv .hs-sim__range::-moz-range-track {
  height: 8px; border-radius: 4px; background: transparent;
}
#hgv-tpv .hs-sim__range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px;
  margin-top: -6px; border: 2px solid var(--card); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--accent);
}
#hgv-tpv .hs-sim__range::-moz-range-thumb {
  width: 16px; height: 16px; border: 2px solid var(--card); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--accent);
}
#hgv-tpv .hs-sim__range:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 7px;
}
#hgv-tpv .hs-sim__limits {
  display: flex; justify-content: space-between; gap: .75rem;
  margin-top: .65rem; color: var(--text-light); font-size: .75rem; line-height: 1.5;
}
#hgv-tpv .hs-sim__results-title {
  margin: 1.75rem 0 1rem; color: var(--text-light); font-size: .8rem;
  font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: 1px;
}
#hgv-tpv .hs-sim__outputs-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .75rem; min-width: 0;
}
#hgv-tpv .hs-sim__output-card {
  min-width: 0; padding: 1rem; border: 0;
  border-left: 3px solid var(--border); border-radius: 8px;
  background: var(--bg); text-align: left;
}
#hgv-tpv .hs-sim__output-card--grant {
  border-left-color: var(--accent);
  background: linear-gradient(135deg, #eaf5fb 0%, #dcedf5 100%);
}
#hgv-tpv .hs-sim__output-label {
  margin: 0 0 .25rem; color: var(--text-light); font-size: .75rem;
  font-weight: 400; line-height: 1.5; text-transform: uppercase; letter-spacing: .5px;
}
#hgv-tpv .hs-sim__output-value {
  margin: 0; color: var(--primary); font-family: inherit; font-size: 1.3rem;
  font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
#hgv-tpv .hs-sim__output-card--pay .hs-sim__output-value { color: var(--accent-hover); }
#hgv-tpv .hs-sim__footer-badge-wrap {
  grid-column: 1 / -1; padding: .25rem 0 0; color: var(--text-light); font-size: .78rem; line-height: 1.5;
}
#hgv-tpv .hs-sim__notes {
  margin-top: 1.5rem; padding: .75rem 1rem; border-radius: 8px; color: var(--text);
}
#hgv-tpv .hs-sim__note {
  margin: 0; color: var(--text); font-size: .75rem; font-weight: 400; line-height: 1.5; text-align: left;
}
#hgv-tpv .hs-sim__note + .hs-sim__note { margin-top: .25rem; }
@media (max-width: 767px) {
  .hgv-credito-sim .container > .tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Keep touch scrolling without a second blue line beside the active tab. */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hgv-credito-sim .tabs > .tab,
  .hgv-credito-sim .tabs > #tabTpv {
    flex: 0 0 clamp(156px, 44vw, 200px);
    min-width: 0;
    white-space: normal;
    scroll-snap-align: start;
  }
  .hgv-credito-sim .tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .hgv-credito-sim .hgv-tpv-swipe-hint {
    display: block;
    padding: .5rem .75rem;
    background: var(--card);
    color: var(--text-light);
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
  }
}
@media (max-width: 480px) {
  #hgv-tpv .hs-sim__panel { padding: 1.25rem; }
  #hgv-tpv .hs-sim__outputs-grid { grid-template-columns: minmax(0, 1fr); }
  #hgv-tpv .hs-sim__output-value { font-size: 1.1rem; }
}
