.installment-preview {
    box-sizing: border-box;
    --ip-muted: #64748b;
    --ip-error: #b91c1c;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    color: var(--ink, #111827);
    font-family: Manrope, system-ui, sans-serif;
    line-height: 1.55;
}
.installment-preview *, .installment-preview *::before, .installment-preview *::after { box-sizing: border-box; }
.installment-preview [hidden] { display: none !important; }
.installment-preview :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--accent-strong, #e0860d); outline-offset: 3px; }
.ip-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink, #111827); font-weight: 650; text-decoration: none; }
.ip-back:hover { text-decoration: underline; }
.ip-heading { margin: 1rem 0; max-width: 46rem; }
.ip-eyebrow { margin: 0 0 .4rem; color: var(--ip-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ip-heading h1 { margin: 0 0 .75rem; font: 600 clamp(1.6rem, 3vw, 2.35rem)/1.2 Sora, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ip-heading > p:last-child { margin: 0; font-size: .9375rem; }
.ip-notice { margin: 0 0 1.5rem; border-left: 3px solid var(--accent, #f39c12); padding: .75rem 1rem; background: #fff8eb; font-size: .875rem; }
.ip-layout { display: grid; gap: 1rem; align-items: start; }
.ip-panel { min-width: 0; padding: 1.25rem; border: 1px solid var(--soft-line, #f1e6d0); border-radius: 1.25rem; background: #fff; }
.ip-panel h2 { margin: 0 0 1.3rem; font: 600 1.12rem/1.35 Sora, sans-serif; }
.ip-result h2 { scroll-margin-top: 10rem; }
.ip-field { min-width: 0; margin: 0 0 1.4rem; padding: 0; border: 0; }
.ip-field > label, .ip-field legend, .ip-product-title { display: block; margin-bottom: .5rem; padding: 0; font-size: .875rem; font-weight: 750; }
.ip-field input:not([type=radio]), .ip-field select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #cbd5e1; border-radius: .875rem; padding: .7rem .8rem; background: #fff; color: var(--ink, #111827); font: inherit; font-size: 1rem; }
.ip-field input[type=date] { display: block; max-width: 100%; }
.ip-field input[aria-invalid=true], .ip-field select[aria-invalid=true] { border-color: var(--ip-error); }
.ip-help { margin: .5rem 0 0; color: var(--ip-muted); font-size: .78rem; line-height: 1.5; }
.ip-help strong { color: var(--ink, #111827); font-variant-numeric: tabular-nums; }
.ip-term-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ip-term-options label { position: relative; min-width: 0; cursor: pointer; }
.ip-term-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ip-term-options span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem .2rem; border: 1px solid #cbd5e1; border-radius: .875rem; font-size: .8125rem; font-weight: 700; text-align: center; }
.ip-term-options input:checked + span { border-color: var(--accent-strong, #e0860d); background: #fff8eb; box-shadow: inset 0 0 0 1px var(--accent-strong, #e0860d); }
.ip-term-options input:focus-visible + span { outline: 3px solid var(--accent-strong, #e0860d); outline-offset: 3px; }
.ip-field-error { margin: .5rem 0 0; color: var(--ip-error); font-size: .8125rem; }
.ip-error-summary { margin-bottom: 1.25rem; padding: .8rem; border: 1px solid #fecaca; border-radius: .875rem; background: #fef2f2; color: var(--ip-error); font-size: .875rem; }
.ip-submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 48px; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 9999px; background: var(--accent, #f39c12); color: #111827; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.ip-submit:hover { background: var(--accent-strong, #e0860d); }
.ip-submit:disabled { opacity: .7; cursor: wait; }
.ip-spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ip-spin .7s linear infinite; }
.ip-result { min-height: 24rem; }
.ip-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 17rem; text-align: center; }
.ip-empty-mark { display: flex; align-items: center; justify-content: center; width: 3.75rem; height: 3.75rem; margin-bottom: 1rem; border: 1px solid var(--soft-line, #f1e6d0); border-radius: 1.25rem; background: #fff8eb; color: var(--ink, #111827); font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.ip-empty h3, .ip-empty h2 { margin: 0 0 .5rem; font-size: 1rem; }
.ip-empty p { max-width: 24rem; margin: 0; color: var(--ip-muted); font-size: .875rem; }
.ip-empty .ip-submit { max-width: 18rem; margin-top: 1rem; }
.ip-payment-highlight { padding: 1.1rem; border-radius: 1rem; background: #fff8eb; }
.ip-payment-highlight > span { display: block; font-size: .8125rem; font-weight: 650; }
.ip-payment-highlight > strong { display: block; margin: .3rem 0; font: 650 clamp(1.6rem, 4vw, 2.2rem)/1.2 Sora, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ip-payment-highlight p { margin: .5rem 0 0; font-size: .75rem; }
.ip-totals { margin: 1rem 0; font-size: .8125rem; }
.ip-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .5rem 0; }
.ip-totals dt { min-width: 0; color: var(--ip-muted); }
.ip-totals dd { flex-shrink: 0; margin: 0; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.ip-totals__date { margin-top: .35rem; border-top: 1px solid var(--soft-line, #f1e6d0); }
.ip-assumption { margin: 0 0 1rem; font-size: .75rem; }
.ip-schedule { border-top: 1px solid var(--soft-line, #f1e6d0); border-bottom: 1px solid var(--soft-line, #f1e6d0); }
.ip-schedule summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: .65rem 0; font-size: .875rem; font-weight: 750; cursor: pointer; }
.ip-schedule summary span { transition: transform .15s; }
.ip-schedule[open] summary span { transform: rotate(180deg); }
.ip-schedule table { width: 100%; margin: 0 0 .75rem; border-collapse: collapse; table-layout: auto; font-size: .75rem; font-variant-numeric: tabular-nums; }
.ip-schedule th, .ip-schedule td { padding: .6rem .2rem; border-top: 1px solid var(--soft-line, #f1e6d0); text-align: left; }
.ip-schedule th { color: var(--ip-muted); font-weight: 650; }
.ip-schedule th:last-child, .ip-schedule td:last-child { text-align: right; }
.ip-rounding { margin-top: .85rem; }
.ip-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ip-entry { margin-top: 1rem; }
.ip-entry__link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--accent, #f39c12); border-radius: .875rem; background: #17212f; color: #ffe4b5; font-size: .875rem; font-weight: 750; line-height: 1.4; text-align: center; text-decoration: none; }
.ip-entry__link:hover { background: #253246; }
.ip-entry__link:focus-visible { outline: 3px solid var(--accent, #f39c12); outline-offset: 3px; }
.ip-entry__note { margin: .4rem 0 0; color: #cbd5e1; font-size: .8rem; line-height: 1.5; }
@keyframes ip-spin { to { transform: rotate(360deg); } }
@media (min-width: 760px) {
    .installment-preview { padding: 2rem 2rem 4rem; }
    .ip-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
    .ip-panel { padding: 1.5rem; }
}
@media (max-width: 359px) {
    .ip-panel { padding: 1rem; }
    .ip-term-options { gap: .35rem; }
    .ip-term-options span { font-size: .75rem; }
    .ip-totals > div { flex-wrap: wrap; gap: .1rem .5rem; }
    .ip-totals dd { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .installment-preview *, .installment-preview *::before, .installment-preview *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
@media (forced-colors: active) { .ip-term-options input:checked + span { border: 2px solid Highlight; } .ip-submit { border: 1px solid ButtonText; } }
