body { background: #f5f6f5; color: #202521; color-scheme: light; }
.site-header { color: #f5f5f5; background: #080808; }
.payment { max-width: 780px; padding-block: 10px 44px; }
.back-link { color: #68706a; font-size: 14px; white-space: nowrap; }
.payment-topline { display: grid; justify-items: end; gap: 8px; margin-bottom: 14px; }
.payment-topline .back-link { justify-self: start; }
.payment h1 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.025em; margin: 0; font-weight: 650; text-align: right; }
.payment-product-note { justify-self: end; margin: 0; color: var(--ui-muted, #626c64); font-size: 14px; line-height: 1.6; text-align: right; }
.payment-product-note a { color: var(--ui-link, #29362c); text-decoration: underline; text-underline-offset: 3px; }
.balance-card { grid-area: balance; align-self: stretch; display: flex; flex-direction: column; }
.balance-card > span, .balance-card p { color: #626c64; font-size: 13px; }
.balance-card strong { display: inline-block; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; margin-left: 12px; }
.balance-card small { font-size: 15px; font-weight: 400; letter-spacing: normal; }
.balance-card p { margin: 4px 0 0; overflow-wrap: anywhere; }
.average-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 12px; }
.average-price span { color: #687069; font-size: 12px; }
.average-price strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.balance-card a, .payment-detail a, .payment-footer a { text-decoration: underline; text-underline-offset: 3px; }
.balance-card a { font-size: 13px; }
.purchase-card { border: 1px solid #dedfdb; border-radius: 14px; padding: 24px 28px; background: #fff; }
#purchase-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "quantity balance" "action summary"; column-gap: 30px; row-gap: 16px; align-items: start; }
.purchase-fields { grid-area: quantity; }
.purchase-action { grid-area: action; border-top: 1px solid #e7e9e5; padding-top: 16px; }
.purchase-fields label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.receipt-email-field { margin-top: 18px; }
.receipt-email-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ui-field-line); border-radius: 8px; background: var(--ui-field); color: var(--ui-text); font: inherit; }
.receipt-email-field p { margin: 8px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.quantity-stepper { display: flex; width: 232px; max-width: 100%; height: 50px; border: 1px solid #929d94; border-radius: 9px; overflow: hidden; background: #fff; }
.quantity-stepper button { flex: 0 0 48px; border: 0; background: #f4f6f2; color: #29362c; font-size: 24px; cursor: pointer; }
.quantity-stepper button:hover { background: #e8eee6; }
.quantity-stepper button:disabled { opacity: .45; cursor: default; }
#quantity { width: 100%; min-width: 0; border: 0; border-inline: 1px solid #dce1d9; border-radius: 0; color: #202521; background: white; font: 500 23px var(--mono); text-align: center; appearance: textfield; -moz-appearance: textfield; }
#quantity::-webkit-inner-spin-button, #quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-stepper:focus-within { outline: 2px solid #3f7152; outline-offset: 2px; }
#quantity:focus-visible { outline: none; }
.muted { font-size: 13px; color: #69706a; line-height: 1.5; }
#quantity-hint { margin: 7px 0 0; color: #a53620; font-size: 13px; line-height: 1.5; }
#quantity-hint:empty { display: none; }
.quantity-presets { display: flex; gap: 8px; max-width: 232px; margin-block: 14px 0; }
.quantity-presets button { min-height: 44px; flex: 1; border: 1px solid #dce1d9; border-radius: 8px; background: white; font: 500 14px var(--mono); cursor: pointer; color: #37403a; }
.quantity-presets button[aria-pressed="true"] { border-color: #9baa96; background: #edf2e9; }
.quantity-presets button:hover { border-color: #687963; }
.purchase-summary { grid-area: summary; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #e7e9e5; padding-top: 16px; min-height: 68px; }
.purchase-summary span { color: #202521; font-size: 14px; font-weight: 600; }
.purchase-summary strong { font-size: 29px; line-height: 1.15; letter-spacing: -.03em; white-space: nowrap; }
#purchase-account { margin: 8px 0 0; overflow-wrap: anywhere; }
.pay-button { width: 232px; max-width: 100%; border: 0; border-radius: 9px; background: #1a6fc4; color: white; min-height: 52px; font: 650 16px var(--sans); cursor: pointer; }
.pay-button:hover { background: #1557a0; }
.pay-button:focus-visible { outline: 2px solid #1557a0; outline-offset: 3px; }
.pay-button:disabled { opacity: .6; cursor: wait; }
#payment-message { margin-bottom: 0; font-size: 14px; overflow-wrap: anywhere; }
#payment-message:empty { display: none; }
#payment-message[data-error="true"] { color: #ae321e; }
#payment-actions button { margin: 15px 10px 0 0; padding: 10px; min-height: 44px; background: #f3f5f0; border: 1px solid #cbd3c8; border-radius: 8px; cursor: pointer; }
.payment-details { margin-top: 20px; border: 1px solid #dedfdb; border-radius: 12px; overflow: hidden; background: #fff; }
.payment-detail + .payment-detail { border-top: 1px solid #e7e9e5; }
.payment-detail summary { display: list-item; cursor: pointer; padding: 15px 22px; font-size: 14px; font-weight: 600; }
.payment-detail summary:hover { background: #f7f8f6; }
.payment-detail[open] summary { border-bottom: 1px solid #eef0eb; }
.payment-detail p { font-size: 13px; line-height: 1.65; color: #58625a; margin: 12px 22px; }
.payment-detail p:last-child { margin-bottom: 19px; }
.payment-detail table { width: calc(100% - 44px); margin: 0 22px 20px; border-collapse: collapse; font-size: 13px; }
.payment-detail th, .payment-detail td { border-bottom: 1px solid #eef0eb; padding: 9px 0; }
.payment-detail th { text-align: left; font-weight: 500; }
.payment-detail td { text-align: right; font-family: var(--mono); }
.payment-detail thead th { color: #687069; font-weight: 400; }
.payment-detail thead th:last-child { text-align: right; }
.payment-footer { display: flex; flex-wrap: wrap; gap: 24px; max-width: 780px; font-size: 12px; color: #767e73; padding-block: 16px 30px; }
.payment-footer span { margin-right: auto; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .payment-topline { justify-items: start; gap: 5px; } .payment h1 { text-align: left; } #purchase-form { grid-template-columns: 1fr; grid-template-areas: "balance" "quantity" "summary" "action"; gap: 18px; } .purchase-card { padding: 22px; } .site-nav { display: none; } .purchase-summary strong { font-size: 27px; } }

/* Shared light/dark surfaces; pricing and purchase behavior stay unchanged. */
body.page-payment { background:var(--ui-bg); color:var(--ui-text); }
.page-payment :is(.purchase-card,.payment-details) { background:var(--ui-surface); border-color:var(--ui-line); }
.page-payment :is(.back-link,.balance-card p,.average-price span,.muted,.payment-footer,.payment-detail thead th,.payment-detail p) { color:var(--ui-muted); }
.page-payment :is(.purchase-summary,.purchase-action,.payment-detail + .payment-detail,.payment-detail[open] summary,.payment-detail th,.payment-detail td) { border-color:var(--ui-line); }
.page-payment .purchase-summary span { color:var(--ui-text); }
.page-payment .quantity-stepper { border-color:var(--ui-field-line); background:var(--ui-field); }
.page-payment .quantity-stepper:focus-within { outline-color:var(--ui-link); }
.page-payment #quantity { background:var(--ui-field); color:var(--ui-text); border-color:var(--ui-field-line); }
.page-payment .quantity-stepper button { background:var(--ui-soft); color:var(--ui-text); }
.page-payment .quantity-stepper button:hover { background:var(--ui-line); }
.page-payment .quantity-presets button { background:var(--ui-field); color:var(--ui-text); border-color:var(--ui-field-line); }
.page-payment .quantity-presets button[aria-pressed="true"] { background:var(--ui-soft); border-color:var(--ui-link); }
.page-payment .payment-detail summary:hover { background:var(--ui-soft); }
.page-payment :is(.payment-detail a,.payment-footer a) { color:inherit; }
.page-payment #payment-actions button { background:var(--ui-soft); border-color:var(--ui-line); color:var(--ui-text); }
.page-payment :is(#quantity-hint,#payment-message[data-error="true"]) { color:var(--ui-danger); }
.payment-steps { margin:14px 22px 20px; padding-left:20px; color:var(--ui-muted); font-size:13px; line-height:1.7; }
.payment-steps li + li { margin-top:12px; }
.payment-steps strong { color:var(--ui-text); }


.purchase-offer { max-width:32rem; margin:10px 0 0; color:var(--ui-muted,#66717d); font-size:12px; line-height:1.5; }
.purchase-offer a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
