.checkout-page { margin: 0; color: #163047; background: #f5f8fc; font: 15px/1.55 Inter, Arial, sans-serif; }
.checkout-page *, .checkout-page *::before, .checkout-page *::after { box-sizing: border-box; }
.checkout-page [hidden] { display: none !important; }
.checkout-header, .checkout-main, .checkout-footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.checkout-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; }
.checkout-header img { display: block; width: 180px; height: auto; }
.checkout-back, .checkout-main a, .checkout-result a, .checkout-footer a { color: #075780; text-underline-offset: 3px; }
.checkout-skip-link { position: absolute; top: -100px; left: 20px; z-index: 1000; padding: 12px; background: white; }
.checkout-skip-link:focus { top: 12px; }
.checkout-main { padding-bottom: 64px; }
.checkout-heading { margin: 12px 0 28px; }
.checkout-eyebrow { margin: 0 0 8px; color: #497088; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.checkout-heading h1, .checkout-result h1 { color: #003859; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 0 0 12px; }
.checkout-heading > p:last-child { margin: 0; color: #617181; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checkout-card { background: #fff; border: 1px solid #dfe7ed; border-radius: 18px; box-shadow: 0 8px 24px #00385906; }
.checkout-form { padding: 30px; }
.checkout-section { min-width: 0; margin: 0 0 28px; padding: 0 0 26px; border: 0; border-bottom: 1px solid #e5ebf0; }
.checkout-section legend { float: none; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 0; color: #163047; font-size: 18px; font-weight: 700; }
.checkout-step { display: inline-grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; color: #003859; background: #eaf3f9; font-size: 13px; }
.checkout-section-hint, .checkout-label-hint { color: #617181; font-size: 13px; font-weight: 400; }
.checkout-section-hint { margin: 0 0 20px; }
.checkout-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkout-field { min-width: 0; margin-bottom: 16px; }
.checkout-section > .checkout-field:last-child, .checkout-section > .checkout-fields-row:last-child .checkout-field { margin-bottom: 0; }
.checkout-field label { display: block; margin: 0 0 6px; color: #163047; font-size: 13px; font-weight: 600; }
.checkout-field input:not([type="checkbox"]), .checkout-field select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #c9d5df; border-radius: 8px; color: #163047; background: #fff; font: inherit; font-size: 14px; }
.checkout-field input::placeholder { color: #7b8995; opacity: 1; }
.checkout-page :focus-visible { outline: 3px solid #4389b8; outline-offset: 3px; }
.checkout-field input[aria-invalid="true"], .checkout-field select[aria-invalid="true"] { border-color: #b52d37; }
.checkout-field-error { margin: 5px 0 0; color: #a6232e; font-size: 12px; line-height: 1.5; }
.checkout-field-error:empty { display: none; }
.checkout-section:disabled { opacity: .6; }
.checkout-section:disabled input { background: #f0f3f6; }
.checkout-input-icon { position: relative; }
.checkout-input-icon input { padding-right: 44px !important; }
.checkout-input-icon svg { position: absolute; top: 12px; right: 13px; color: #718799; pointer-events: none; }
.checkout-main svg, .checkout-result svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checkout-field .checkout-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; line-height: 1.6; }
.checkout-checkbox input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #003859; }
.checkout-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 9px; color: #fff !important; background: #003859; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.checkout-button:hover { background: #075780; }
.checkout-pay-button { width: 100%; }
.checkout-button:disabled { background: #6c8190; cursor: not-allowed; }
.checkout-purchase-note, .checkout-payment-status, .checkout-sidebar-note { color: #617181; font-size: 12px; }
.checkout-purchase-note, .checkout-payment-status { text-align: center; margin: 12px 0 0; }
.checkout-payment-status:empty { display: none; }
.checkout-spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: checkout-spin 1s linear infinite; }
.is-loading .checkout-spinner { display: inline-block; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-notice { margin: 0 0 22px; padding: 14px 16px; border: 1px solid; border-radius: 10px; font-size: 14px; }
.checkout-notice-info { color: #214e6a; background: #eef7fd; border-color: #c6dfef; }
.checkout-notice-error { color: #91232d; background: #fff2f3; border-color: #eec5cb; }
.checkout-summary { padding: 26px; }
.checkout-summary-heading, .checkout-summary-product, .checkout-total, .checkout-price-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.checkout-summary-heading { margin-bottom: 24px; }
.checkout-summary-heading h2 { margin: 0; color: #163047; font-size: 19px; }
.checkout-summary-heading > span { color: #617181; font-size: 12px; }
.checkout-summary-product { align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid #e5ebf0; }
.checkout-summary-product img { width: 62px; height: 76px; flex: 0 0 62px; object-fit: contain; }
.checkout-summary-product > div { flex: 1; min-width: 0; }
.checkout-summary-product h3 { margin: 0 0 6px; color: #163047; font-size: 15px; line-height: 1.4; }
.checkout-summary-product p { margin: 0 0 6px; color: #617181; font-size: 12px; }
.checkout-summary-product > strong { white-space: nowrap; font-size: 14px; }
.checkout-digital-label { color: #446b82; background: #edf5fa; padding: 3px 7px; border-radius: 4px; font-size: 11px; }
.checkout-price-breakdown { margin: 22px 0; }
.checkout-price-breakdown > div { margin: 12px 0; }
.checkout-price-breakdown dt { color: #617181; font-weight: 400; }
.checkout-price-breakdown dd { margin: 0; font-weight: 600; }
.checkout-free { color: #276b49; font-size: 12px; }
.checkout-total { padding-top: 20px; border-top: 1px solid #e5ebf0; }
.checkout-total > div { display: grid; gap: 3px; }
.checkout-total span { color: #617181; font-size: 11px; }
.checkout-total > strong { color: #003859; font-size: 24px; white-space: nowrap; }
.checkout-reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; padding: 20px 12px; text-align: center; }
.checkout-reassurance > div { display: grid; justify-items: center; align-content: start; gap: 8px; }
.checkout-reassurance svg { color: #367496; }
.checkout-reassurance strong { font-size: 11px; }
.checkout-reassurance span { color: #617181; font-size: 11px; }
.checkout-sidebar-note { display: flex; align-items: flex-start; gap: 8px; padding-inline: 6px; }
.checkout-sidebar-note svg { flex-shrink: 0; margin-top: 2px; }
.checkout-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-top: 1px solid #dfe7ed; color: #617181; font-size: 12px; }
.checkout-footer nav { display: flex; gap: 20px; }
.checkout-result-main { width: min(720px, calc(100% - 40px)); margin: 24px auto 64px; }
.checkout-result { padding: 38px; text-align: center; }
.checkout-result-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; color: #26754d; background: #e8f7ef; }
.checkout-result-failure .checkout-result-icon { color: #a6232e; background: #fff0f2; }
.checkout-result-pending .checkout-result-icon { color: #946014; background: #fff6df; }
.checkout-result-description { color: #617181; margin: 0 0 26px; }
.checkout-receipt { padding: 24px; border: 1px solid #e0e8ee; border-radius: 12px; background: #f9fbfd; text-align: left; overflow-wrap: anywhere; }
.checkout-receipt-top { display: grid; gap: 4px; margin-bottom: 22px; color: #617181; font-size: 12px; }
.checkout-receipt-top strong { color: #163047; }
.checkout-receipt h2 { font-size: 19px; margin: 0 0 6px; color: #163047; }
.checkout-receipt > p { margin: 0 0 20px; font-size: 13px; color: #617181; }
.checkout-receipt dl { margin: 20px 0 0; }
.checkout-receipt dl > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; padding-block: 10px; font-size: 13px; }
.checkout-receipt dt { color: #617181; font-weight: 400; }
.checkout-receipt dd { margin: 0; text-align: right; font-weight: 600; }
.checkout-status-label { color: #214e6a; }
.checkout-receipt dl > .checkout-receipt-total { border-top: 1px solid #dfe7ed; padding-top: 18px; margin-top: 8px; font-size: 19px; }
.checkout-receipt-total dd span { font-size: 12px; }
.checkout-next-step { margin: 26px 0; text-align: left; }
.checkout-next-step h2 { font-size: 17px; margin: 0 0 8px; }
.checkout-next-step p { color: #617181; font-size: 14px; margin: 0; }
.checkout-result-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.checkout-result-support { margin: 24px 0 0; color: #617181; font-size: 13px; }
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-sidebar { grid-row: 1; }
    .checkout-reassurance { display: none; }
    .checkout-summary-product { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .checkout-header, .checkout-main, .checkout-footer, .checkout-result-main { width: calc(100% - 28px); }
    .checkout-header { padding-block: 18px; font-size: 12px; }
    .checkout-header img { width: 140px; }
    .checkout-form, .checkout-summary, .checkout-result { padding: 20px; }
    .checkout-fields-row { gap: 12px; }
    .checkout-section legend { font-size: 16px; }
    .checkout-summary-product { flex-wrap: wrap; }
    .checkout-receipt { padding: 16px; }
    .checkout-receipt dl > div { grid-template-columns: 1fr; gap: 4px; }
    .checkout-receipt dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .checkout-spinner { animation: none; } }
