/* / note: Every template uses the same semantic form and receipt. Only composition, typography and decoration change. */
:root { --brand-ink: #1d4ed8; --accent-ink: #1d4ed8; --gradient-end: #1d4ed8; --on-brand: white; --action-start: #2563eb; --action-end: #1d4ed8; --offer-ink: #101828; --offer-surface-ink: #1d4ed8; --offer-fill-start: #2563eb; --offer-fill-end: #1d4ed8; --offer-fill: var(--offer-fill-start); }
body { --panel: color-mix(in srgb, var(--surface) 96%, #101828 4%); --panel-strong: color-mix(in srgb, var(--surface) 90%, #101828 10%); --muted: color-mix(in srgb, var(--ink) 69%, var(--surface)); --line: color-mix(in srgb, var(--ink) 15%, var(--surface)); --brand-fill: var(--action-start); }
body[data-background-mode="BLACK"] { --panel: color-mix(in srgb, var(--surface) 93%, white 7%); --panel-strong: color-mix(in srgb, var(--surface) 86%, white 14%); color-scheme: dark; }
body[data-gradient-enabled="true"] { --brand-fill: linear-gradient(120deg, var(--action-start), var(--action-end)); }
/* / note: An inline identity and useful navigation replace the old 229px mobile masthead. */
.topbar { min-height: 78px; padding: 12px max(24px, calc((100vw - 1160px) / 2)); justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { min-width: 0; max-width: min(600px, calc(100% - 72px)); flex: 0 1 auto; flex-direction: row; gap: 10px; text-align: left; order: 2; }
.brand-mark, .merchant-logo { width: 50px; height: 50px; flex: 0 0 50px; font-size: 24px; border-radius: 12px; }
.merchant-logo { object-fit: contain; border: 0; padding: 0; background: white; border-radius: 8px; }
.brand-copy { min-width: 0; max-width: 100%; flex: 1 1 0; justify-items: start; text-align: left; gap: 4px; }
#brand-name { width: 100%; font-size: 19px; max-width: 100%; }
.merchant-tagline { width: 100%; max-width: 100%; font-size: 11px; letter-spacing: .04em; }
.store-nav { display: flex; align-items: center; gap: 26px; }
.store-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.store-nav a:first-child { color: var(--ink); }
.store-nav a:hover { color: var(--brand-ink); }
/* / note: Shared purchase primitives derive surface/text colors independently from the selected brand family. */
.storefront-shell { width: min(calc(100% - 48px), 1160px); margin: 40px auto; display: grid; gap: 32px; align-items: start; }
.store-intro { margin: 0; min-width: 0; }
.intro-kicker { color: var(--brand-ink); font-size: 11px; letter-spacing: .15em; line-height: 1.5; }
.store-intro h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.055em; font-weight: 760; text-wrap: balance; }
.store-intro h1 span { color: var(--brand-ink); }
/* / note: Plain layouts honor offer text choices while keeping headings readable on their actual surface. */
body:not(.layout-bold) .store-intro h1, body:not(.layout-bold) .store-intro h1 span { color: var(--offer-surface-ink); }
/* / note: Gradient headlines use contrast-safe foreground stops; action/hero paint has its own matching foreground. */
body[data-gradient-enabled="true"].layout-advanced .store-intro h1 span { background: linear-gradient(110deg, var(--brand-ink), var(--gradient-ink)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-description { margin: 16px 0 0; font-size: 16px; line-height: 1.65; max-width: 480px; }
.intro-explainer { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 450px; }
.selling-rate-hero { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 18px 0; margin: 22px 0 0; border-top: 1px solid var(--line); color: var(--offer-surface-ink); }
.selling-rate-label { color: var(--offer-surface-ink); font-size: 10px; }
.selling-rate-hero strong { font-size: 64px; letter-spacing: -.06em; }
.selling-rate-hero > span:last-child { color: var(--offer-surface-ink); font-size: 17px; }
.intro-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; margin-top: 15px; color: var(--brand-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.store-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.store-benefits > div { min-width: 0; }
.benefit-symbol { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 9px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 19px; font-weight: 600; }
.store-benefits strong { display: block; color: var(--ink); font-size: 13px; }
.store-benefits p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 5px 0 0; }
.store-section { min-width: 0; padding: calc(var(--space) + 4px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: 0 14px 45px #10182808; }
.section-heading { align-items: center; margin-bottom: 17px; }
.section-heading .eyebrow { color: var(--brand-ink); margin-bottom: 7px; font-size: 10px; }
.section-heading h2 { font-size: 26px; letter-spacing: -.04em; }
.rate-note { display: none; }
.store-float-balance { color: var(--muted); font-size: 12px; }
.airtime-limits { font-size: 11px; gap: 6px; margin: 0 0 12px; }
.order-panel { display: block; border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }
.order-intro { display: none; }
.purchase-guidance { display: none; }
#checkout-form { min-width: 0; max-width: none; }
.checkout-fields { grid-template-columns: 1fr; gap: 0; }
.checkout-field label, .order-panel label:not(.same-phone) { margin: 12px 0 7px; font-size: 14px; }
.checkout-field label span, .order-panel label span { font-size: 11px; color: var(--muted); }
.field-step { display: none; }
.phone-input { height: 48px; gap: 9px; background: var(--panel); border-color: var(--line); border-radius: var(--control-radius); }
.phone-input input { font-size: 16px; color: var(--ink); }
.phone-input input::placeholder { color: var(--muted); opacity: .72; }
.phone-input:focus-within { border-color: var(--brand-ink); }
.same-phone { min-height: 44px; margin: 2px 0 0; gap: 9px; font-weight: 450; }
.same-phone input { width: 17px; height: 17px; }
.same-phone span { font-size: 13px; }
.quick-amounts { flex-wrap: nowrap; gap: 6px; margin-top: 10px; }
.quick-amounts button { flex: 1; min-height: 44px; padding: 0 7px; border-radius: var(--control-radius); border: 1px solid var(--line); background: var(--panel); color: var(--brand-ink); font-size: 12px; }
.quick-amounts button[aria-pressed="true"] { background: var(--brand-fill); color: var(--on-brand); border-color: transparent; }
.price-preview { background: var(--panel); border: 0; border-radius: var(--control-radius); padding: 12px; gap: 8px; }
.price-preview p { color: var(--muted); font-size: 11px; }
.price-preview strong { font-size: 17px; color: var(--ink); margin-top: 3px; }
.button-primary { min-height: 50px; margin-top: 14px; background: var(--brand-fill); color: var(--on-brand); font-size: 14px; border-radius: var(--control-radius); }
.button-primary:disabled { background: var(--brand-fill); color: var(--on-brand); opacity: .4; filter: saturate(.35); box-shadow: none; cursor: not-allowed; transform: none; }
.form-hint { font-size: 12px; line-height: 1.55; }
.customer-help { grid-column: 1/-1; width: 100%; margin: 0; gap: 22px; }
.merchant-support { background: var(--panel); border-color: var(--line); padding: 24px 28px; border-radius: var(--radius); }
.merchant-support .eyebrow { color: var(--accent-ink); }
.merchant-support h2 { font-size: 23px; }
.merchant-support p:last-child { font-size: 13px; }
.merchant-support a { background: var(--brand-fill); color: var(--on-brand); min-height: 46px; border-radius: var(--control-radius); }
/* / note: Optional merchant destinations use readable text and remain visually distinct from paid actions. */
.merchant-links { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.merchant-links .eyebrow { color: var(--muted); }
.merchant-link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.merchant-link { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border-radius: 11px; background: var(--surface); color: var(--brand-ink); border: 1px solid var(--line); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.help-cards { gap: 22px; }
.help-card { background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: none; padding: 26px; }
.help-card .eyebrow { color: var(--brand-ink); }
.help-card h2 { font-size: 22px; }
.help-steps strong { font-size: 14px; }
.help-steps span, .help-faq details p { font-size: 13px; }
.help-steps li::before { color: var(--brand-ink); background: var(--panel-strong); }
.help-faq summary { font-size: 14px; min-height: 44px; }
.footer { background: var(--panel); border-color: var(--line); color: var(--muted); }
.lyco-credit { color: var(--brand-ink); }
.receipt-panel { background: var(--surface); }
.receipt-dialog { background: var(--surface); color: var(--ink); }
.receipt-details dt { font-size: 12px; }
.receipt-details dd { font-size: 13px; }
.receipt-message { font-size: 14px; }
.receipt-panel .eyebrow, .delivery-waiting { color: var(--brand-ink); }
/* / note: Classic is a retail storefront, with a complete offer and factual benefits beside one contained checkout. */
body.layout-classic { background: radial-gradient(ellipse at 0 20%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 40%), var(--surface); }
body.layout-classic .topbar { border-top: 3px solid var(--brand); }
body.layout-classic .storefront-shell { grid-template-columns: minmax(0,1fr) minmax(410px,1fr); gap: 34px 64px; }
body.layout-classic .store-intro { padding-top: 26px; }
body.layout-classic .selling-rate-hero { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; }
body.layout-classic .selling-rate-label { grid-column: 1/-1; }
body.layout-classic .selling-rate-hero > span:last-child { max-width: 170px; }
body.layout-classic .store-benefits { padding-top: 4px; }
body.layout-classic .order-panel { border: 0; }
/* / note: Minimal has a centered compact identity, one narrow open purchase column, and line-based editorial support. */
body.layout-minimal .topbar { min-height: 70px; position: relative; padding-block: 9px; }
body.layout-minimal .brand { order: 0; margin: auto; }
body.layout-minimal .store-nav { display: none; }
body.layout-minimal .brand-mark, body.layout-minimal .merchant-logo { width: 42px; height: 42px; flex-basis: 42px; }
body.layout-minimal .storefront-shell { width: min(calc(100% - 48px),760px); margin-top: 30px; gap: 24px; }
body.layout-minimal .store-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
body.layout-minimal .intro-kicker { font-size: 10px; margin-bottom: 5px; }
body.layout-minimal .store-intro h1 { font-size: 34px; }
body.layout-minimal .store-intro h1 br { display: none; }
body.layout-minimal .store-intro h1 span { display: block; font-weight: 450; }
body.layout-minimal :is(.hero-description,.intro-explainer,.store-benefits,.intro-link) { display: none; }
body.layout-minimal .selling-rate-hero { border: 0; margin: 0; padding: 0; text-align: right; max-width: 230px; }
body.layout-minimal .selling-rate-label { font-size: 9px; }
body.layout-minimal .selling-rate-hero strong { font-size: 42px; }
body.layout-minimal .selling-rate-hero > span:last-child { font-size: 12px; }
body.layout-minimal .store-section { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
body.layout-minimal .section-heading { display: none; }
body.layout-minimal .order-panel { border: 0; }
body.layout-minimal .checkout-fields { grid-template-columns: 1fr 1fr; gap: 0 22px; }
body.layout-minimal .checkout-field:first-child { grid-column: 1; grid-row: 1; }
body.layout-minimal .same-phone { grid-column: 1; grid-row: 2; }
body.layout-minimal #recipient-field { grid-column: 2; grid-row: 1; }
body.layout-minimal .amount-field { grid-column: 1/-1; }
body.layout-minimal .price-preview { grid-column: 1/-1; padding: 16px 0; background: none; border-block: 1px solid var(--line); border-radius: 0; }
body.layout-minimal .phone-input { background: transparent; border-inline: 0; border-top: 0; border-radius: 0; padding-inline: 0; }
body.layout-minimal .quick-amounts button { border-radius: 30px; }
body.layout-minimal .customer-help { gap: 24px; margin-top: 4px; }
body.layout-minimal .merchant-support { background: transparent; border-inline: 0; border-radius: 0; padding: 22px 0; }
body.layout-minimal .help-cards { grid-template-columns: 1fr; gap: 0; }
body.layout-minimal .help-card { border: 0; padding: 18px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
body.layout-minimal .help-steps { grid-template-columns: repeat(3,1fr); gap: 20px; }
body.layout-minimal .help-steps li { padding: 34px 0 0; }
body.layout-minimal .help-steps li::before { background: none; justify-content: start; }
/* / note: Bold is a full-bleed colored campaign stage, then a wide numbered purchase workspace rather than a recolored retail split. */
body.layout-bold .topbar { border-bottom: 0; }
body.layout-bold .storefront-shell { width: 100%; margin-top: 0; gap: 0; }
body.layout-bold .store-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px 60px; padding: 36px max(24px, calc((100vw - 1160px) / 2)) 32px; color: var(--offer-ink); background: var(--offer-fill); }
body.layout-bold .intro-kicker, body.layout-bold .store-intro h1, body.layout-bold .store-intro h1 span, body.layout-bold .hero-description, body.layout-bold .intro-explainer { color: var(--offer-ink); }
body.layout-bold .store-intro h1 { font-size: clamp(42px,5vw,74px); max-width: 620px; }
body.layout-bold .hero-description { max-width: 540px; margin-top: 12px; }
body.layout-bold .intro-explainer { display: none; }
body.layout-bold .selling-rate-hero { border: 0; padding: 20px 0 20px 34px; border-left: 1px solid currentColor; margin: 0; align-self: center; color: var(--offer-ink); }
body.layout-bold .selling-rate-hero strong { font-size: clamp(64px,8vw,110px); }
body.layout-bold .selling-rate-label, body.layout-bold .selling-rate-hero > span:last-child { color: var(--offer-ink); }
body.layout-bold .store-benefits { grid-column: 1/-1; display: flex; gap: 34px; margin: 0; padding-top: 18px; border-top: 1px solid currentColor; }
body.layout-bold .store-benefits > div { display: grid; grid-template-columns: 28px auto; gap: 5px 8px; flex: 1; }
body.layout-bold .benefit-symbol { grid-row: 1/3; background: transparent; color: var(--on-brand); width: 28px; height: 28px; margin: 0; }
body.layout-bold .store-benefits strong, body.layout-bold .store-benefits p { color: var(--on-brand); margin: 0; }
body.layout-bold .intro-link { display: none; }
body.layout-bold .store-section { width: min(calc(100% - 48px),1160px); margin: 30px auto; padding: 0; border: 0; box-shadow: none; }
body.layout-bold .section-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
body.layout-bold .section-heading h2 { font-size: 28px; }
body.layout-bold .order-panel { display: grid; grid-template-columns: .65fr 1.35fr; gap: 44px; padding-top: 3px; }
body.layout-bold .purchase-guidance { display: block; padding: 18px 20px 18px 0; }
.guidance-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-fill); color: var(--on-brand); font-size: 30px; margin-bottom: 18px; }
.purchase-guidance h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.035em; margin: 8px 0 12px; }
.purchase-guidance > p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.65; }
.purchase-guidance ul { margin: 20px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 2.1; }
body.layout-bold .field-step { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0 7px 0 0; border-radius: 50%; background: var(--brand-fill); color: var(--on-brand); font-size: 10px; }
body.layout-bold .checkout-fields { grid-template-columns: 1fr 1fr; gap: 0 20px; }
body.layout-bold .checkout-field:first-child { grid-column: 1; grid-row: 1; }
body.layout-bold .same-phone { grid-column: 1; grid-row: 2; }
body.layout-bold #recipient-field { grid-column: 1; grid-row: 3; }
body.layout-bold .amount-field { grid-column: 2; grid-row: 1/3; }
body.layout-bold .price-preview { grid-column: 2; grid-row: 3; align-self: end; }
body.layout-bold .customer-help { width: min(calc(100% - 48px),1160px); margin: 0 auto 34px; }
/* / note: Advanced is an information-rich bento composition: compact centered identity, offer/rate tiles and a broad two-column checkout. */
body.layout-advanced { background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%), var(--surface); }
body.layout-advanced .topbar { width: min(calc(100% - 48px),1160px); min-height: 76px; margin: 20px auto 0; padding: 12px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
body.layout-advanced .brand { order: 0; }
body.layout-advanced .store-nav { order: 1; gap: 20px; }
body.layout-advanced .storefront-shell { margin-top: 24px; gap: 24px; }
body.layout-advanced .store-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
body.layout-advanced .offer-copy { padding: 24px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
body.layout-advanced .store-intro h1 { font-size: clamp(34px,3.5vw,48px); }
body.layout-advanced .store-intro h1 br { display: none; }
body.layout-advanced .store-intro h1 span { display: block; }
body.layout-advanced .hero-description { margin-top: 12px; max-width: none; font-size: 15px; }
body.layout-advanced .intro-explainer { display: none; }
body.layout-advanced .selling-rate-hero { align-content: center; margin: 0; padding: 26px; border: 0; border-radius: 22px; background: var(--offer-fill); color: var(--offer-ink); }
body.layout-advanced .selling-rate-label, body.layout-advanced .selling-rate-hero > span:last-child { color: var(--offer-ink); }
body.layout-advanced .selling-rate-hero strong { font-size: 72px; }
body.layout-advanced .store-benefits { grid-column: 1/-1; margin: 0; gap: 18px; }
body.layout-advanced .store-benefits > div { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
body.layout-advanced .benefit-symbol { grid-row: 1/3; margin: 0; }
body.layout-advanced .store-benefits p { margin: 0; }
body.layout-advanced .intro-link { display: none; }
body.layout-advanced .store-section { padding: 24px 30px; border-radius: 22px; border-top: 4px solid var(--brand); }
body.layout-advanced .section-heading { margin-bottom: 12px; }
body.layout-advanced .section-heading .eyebrow { display: none; }
body.layout-advanced .checkout-fields { grid-template-columns: 1fr 1fr 1fr; gap: 0 22px; }
body.layout-advanced .checkout-field:first-child { grid-column: 1; grid-row: 1; }
body.layout-advanced .same-phone { grid-column: 1; grid-row: 2; }
body.layout-advanced #recipient-field { grid-column: 2; grid-row: 1; }
body.layout-advanced .amount-field { grid-column: 3; grid-row: 1/3; }
body.layout-advanced .quick-amounts { gap: 4px; }
body.layout-advanced .quick-amounts button { padding: 0 3px; font-size: 11px; }
body.layout-advanced .price-preview { grid-column: 1/3; grid-row: 3; display: flex; align-items: center; gap: 36px; margin-top: 6px; border-radius: 0; background: transparent; border-top: 1px solid var(--line); padding: 12px 0; }
body.layout-advanced #checkout-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 22px; }
body.layout-advanced .checkout-fields { grid-column: 1/-1; }
body.layout-advanced .button-primary { grid-column: 3; align-self: start; margin-top: 0; }
body.layout-advanced .form-hint { grid-column: 1/-1; margin-bottom: 0; }
body.layout-advanced .help-cards { grid-template-columns: 1.2fr .8fr; }
/* / note: Tablet collapses real compositions, not merely scaled desktop cards. Receipt actions remain independent. */
@media(max-width:960px) {
 .topbar { padding-inline: 24px; }
 body.layout-classic .storefront-shell { grid-template-columns: minmax(0,.8fr) minmax(350px,1fr); gap: 28px; }
 body.layout-classic .store-benefits { grid-template-columns: 1fr; gap: 12px; }
 body.layout-classic .store-benefits > div { display: grid; grid-template-columns: 32px 1fr; gap: 0 8px; }
 body.layout-classic .benefit-symbol { grid-row: 1/3; }
 body.layout-bold .store-intro { gap: 24px; padding-inline: 24px; }
 body.layout-bold .order-panel { grid-template-columns: 1fr; gap: 0; }
 body.layout-bold .purchase-guidance { display: none; }
 body.layout-advanced .checkout-fields { grid-template-columns: 1fr 1fr; }
 body.layout-advanced .amount-field { grid-column: 1; grid-row: 3; }
 body.layout-advanced .price-preview { grid-column: 2; grid-row: 3; display: grid; align-content: center; gap: 10px; border: 0; padding-left: 20px; }
 body.layout-advanced #checkout-form { display: block; }
 body.layout-advanced .button-primary { margin-top: 12px; }
}
/* / note: Phone layouts keep distinct identity, content density and hierarchy while the same input sequence stays predictable. */
@media(max-width:700px) {
 .topbar { padding: 10px 18px; min-height: 70px; gap: 10px; }
 .brand-mark, .merchant-logo { width: 42px; height: 42px; flex-basis: 42px; }
 #brand-name { font-size: 15px; max-width: 210px; }
 .merchant-tagline { font-size: 9px; max-width: 100%; }
 .store-nav { gap: 12px; }
 .store-nav a { font-size: 11px; }
 .store-nav a:not(:first-child) { display: none; }
 /* / note: The enabled offers tab remains reachable on mobile while secondary help links stay tucked away. */
 body.offers-enabled .store-nav a#nav-offers { display: inline-flex; }
 .storefront-shell, body.layout-classic .storefront-shell { width: calc(100% - 32px); margin: 22px auto 30px; grid-template-columns: 1fr; gap: 22px; }
 .store-intro h1 { font-size: 36px; }
 .hero-description { font-size: 14px; line-height: 1.6; margin-top: 12px; }
 .intro-explainer { display: none; }
 .store-section { padding: 20px; }
 .section-heading h2 { font-size: 23px; }
 .section-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
 .airtime-limits { font-size: 10px; }
 .checkout-field label, .order-panel label:not(.same-phone) { font-size: 14px; }
 .checkout-field label span:not(.field-step) { display: none; }
 .same-phone span { font-size: 13px; }
 .phone-input { height: 48px; }
 .quick-amounts { gap: 4px; }
 .quick-amounts button { font-size: 11px; padding-inline: 4px; }
 .price-preview strong { font-size: 16px; }
 .form-hint { font-size: 11px; }
 .help-cards { grid-template-columns: 1fr; gap: 16px; }
 .help-card { padding: 22px; }
 .merchant-support { align-items: start; padding: 22px; gap: 12px; flex-wrap: wrap; }
 .merchant-support h2 { font-size: 22px; }
 .merchant-support p:last-child { font-size: 12px; }
 .merchant-support a { min-width: 160px; }
 .earlier-payment { display: block; padding: 14px; }
 .earlier-payment-actions { margin-top: 12px; }
 .footer-line { font-size: 12px; }
 /* / note: Classic becomes a concise magazine-style offer with a rate strip before its contained checkout. */
 body.layout-classic .store-intro { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-top: 0; }
 body.layout-classic .intro-kicker { font-size: 9px; margin-bottom: 7px; }
 body.layout-classic .store-intro h1 { font-size: 32px; }
 body.layout-classic .hero-description { display: none; }
 body.layout-classic .selling-rate-hero { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 0; margin: 0; border: 0; align-content: center; text-align: right; }
 body.layout-classic .selling-rate-hero strong { font-size: 39px; }
 body.layout-classic .selling-rate-label { font-size: 8px; }
 body.layout-classic .selling-rate-hero > span:last-child { font-size: 11px; max-width: 130px; }
 body.layout-classic .store-benefits { grid-column: 1/-1; display: flex; gap: 14px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
 body.layout-classic .store-benefits > div { display: block; flex: 1; }
 body.layout-classic .store-benefits .benefit-symbol { display: none; }
 body.layout-classic .store-benefits strong { font-size: 10px; }
 body.layout-classic .store-benefits p { display: none; }
 body.layout-classic .intro-link { display: none; }
 /* / note: Minimal stays a flat, quiet purchase page, without nested cards or a full hero on phones. */
 body.layout-minimal .topbar { min-height: 64px; padding: 9px 18px; }
 body.layout-minimal .brand-mark, body.layout-minimal .merchant-logo { width: 36px; height: 36px; flex-basis: 36px; }
 body.layout-minimal .storefront-shell { width: calc(100% - 40px); margin-top: 20px; gap: 17px; }
 body.layout-minimal .intro-kicker { display: none; }
 body.layout-minimal .store-intro { padding-bottom: 16px; gap: 10px; }
 body.layout-minimal .store-intro h1 { font-size: 23px; }
 body.layout-minimal .selling-rate-hero strong { font-size: 30px; }
 body.layout-minimal .selling-rate-hero > span:last-child { font-size: 10px; }
 body.layout-minimal .selling-rate-label { display: none; }
 body.layout-minimal .checkout-fields { grid-template-columns: 1fr; }
 body.layout-minimal .checkout-field:first-child, body.layout-minimal .same-phone, body.layout-minimal #recipient-field, body.layout-minimal .amount-field, body.layout-minimal .price-preview { grid-column: 1; grid-row: auto; }
 body.layout-minimal .checkout-field:first-child label { margin-top: 2px; }
 body.layout-minimal .help-steps { grid-template-columns: 1fr; }
 body.layout-minimal .help-steps li { padding: 0 0 0 34px; }
 body.layout-minimal .merchant-support { padding: 22px 0; }
 /* / note: Bold retains a colored campaign header and numbered form on mobile, not Classic's rate strip. */
 body.layout-bold .storefront-shell { width: 100%; margin: 0; gap: 0; }
 body.layout-bold .store-intro { padding: 25px 20px; grid-template-columns: 1fr auto; gap: 18px 12px; }
 body.layout-bold .intro-kicker { font-size: 9px; margin-bottom: 8px; }
 body.layout-bold .store-intro h1 { font-size: 32px; }
 body.layout-bold .hero-description { display: none; }
 body.layout-bold .selling-rate-hero { padding: 0 0 0 14px; gap: 5px; }
 body.layout-bold .selling-rate-hero strong { font-size: 43px; }
 body.layout-bold .selling-rate-label { font-size: 8px; }
 body.layout-bold .selling-rate-hero > span:last-child { font-size: 10px; max-width: 110px; }
 body.layout-bold .store-benefits { display: none; }
 body.layout-bold .store-section { width: calc(100% - 40px); margin: 22px auto; }
 body.layout-bold .section-heading { padding-bottom: 12px; margin-bottom: 8px; }
 body.layout-bold .section-heading .eyebrow { display: none; }
 body.layout-bold .section-heading h2 { font-size: 24px; }
 body.layout-bold .checkout-fields { grid-template-columns: 1fr; }
 body.layout-bold .checkout-field:first-child, body.layout-bold .same-phone, body.layout-bold #recipient-field, body.layout-bold .amount-field, body.layout-bold .price-preview { grid-column: 1; grid-row: auto; }
 body.layout-bold .customer-help { width: calc(100% - 40px); margin-bottom: 24px; }
 /* / note: Advanced leads with a compact two-tile offer and dense benefit rail, then a clearly separate purchase workspace. */
 body.layout-advanced .topbar { width: calc(100% - 28px); min-height: 68px; margin: 14px auto 0; padding: 10px 14px; border-radius: 16px; }
 body.layout-advanced .store-nav { display: none; }
 body.layout-advanced .brand { margin: auto; }
 body.layout-advanced .storefront-shell { width: calc(100% - 28px); margin: 14px auto 28px; gap: 14px; }
 body.layout-advanced .store-intro { grid-template-columns: 1.05fr .95fr; gap: 10px; }
 body.layout-advanced .offer-copy { padding: 16px; border-radius: 16px; }
 body.layout-advanced .intro-kicker { font-size: 8px; margin-bottom: 7px; }
 body.layout-advanced .store-intro h1 { font-size: 23px; }
 body.layout-advanced .store-intro h1 span { display: block; }
 body.layout-advanced .hero-description { display: none; }
 body.layout-advanced .selling-rate-hero { padding: 15px; border-radius: 16px; }
 body.layout-advanced .selling-rate-label { font-size: 8px; }
 body.layout-advanced .selling-rate-hero strong { font-size: 39px; }
 body.layout-advanced .selling-rate-hero > span:last-child { font-size: 11px; }
 body.layout-advanced .store-benefits { grid-template-columns: repeat(3,1fr); gap: 7px; }
 body.layout-advanced .store-benefits > div { display: block; padding: 9px; border-radius: 11px; }
 body.layout-advanced .benefit-symbol { width: 23px; height: 23px; font-size: 16px; margin-bottom: 5px; }
 body.layout-advanced .store-benefits strong { font-size: 9px; }
 body.layout-advanced .store-benefits p { display: none; }
 body.layout-advanced .store-section { padding: 18px; border-radius: 16px; }
 body.layout-advanced .section-heading h2 { font-size: 22px; }
 body.layout-advanced .checkout-fields { grid-template-columns: 1fr; }
 body.layout-advanced .checkout-field:first-child, body.layout-advanced .same-phone, body.layout-advanced #recipient-field, body.layout-advanced .amount-field, body.layout-advanced .price-preview { grid-column: 1; grid-row: auto; }
 body.layout-advanced .price-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; margin-top: 12px; background: var(--panel); border-radius: 10px; }
 body.layout-advanced .help-cards { grid-template-columns: 1fr; }
}
/* / note: Motion is decorative and bounded; reduced-motion customers never inherit looping page animations. */
@media(prefers-reduced-motion:no-preference) {
 .store-intro, .store-section { animation: storefront-enter 350ms ease-out both; }
 .store-section { animation-delay: 60ms; }
 .quick-amounts button, .merchant-support a { transition: transform 160ms ease, background 160ms ease; }
 .quick-amounts button:active, .merchant-support a:active { transform: scale(.97); }
 @keyframes storefront-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media(forced-colors:active) { body[data-gradient-enabled="true"]:not(.layout-bold) .store-intro h1 span { color: CanvasText; background: none; } }
/* / note: Global appearance controls also apply to the denser Advanced and campaign layouts. */
body[data-corners="SHARP"] :is(.store-section,.offer-copy,.selling-rate-hero,.store-benefits>div,.merchant-support,.help-card,.topbar,.phone-input,.quick-amounts button,.button,.price-preview) { border-radius: 4px; }
body[data-corners="ROUNDED"] :is(.store-section,.offer-copy,.selling-rate-hero,.merchant-support,.help-card) { border-radius: 24px; }
body[data-density="COMPACT"] .checkout-field label { margin-top: 8px; }
body[data-density="COMPACT"] .customer-help { gap: 16px; }
/* / note: Very narrow phones shorten the offer typography instead of spending extra rows on wrapped words. */
@media(max-width:380px) {
 body.layout-classic .store-intro { grid-template-columns: minmax(0,1fr) 105px; }
 body.layout-classic .store-intro h1 { font-size: 27px; }
 body.layout-classic .selling-rate-hero strong { font-size: 34px; }
 body.layout-bold .store-intro h1 { font-size: 25px; }
 body.layout-bold .selling-rate-hero strong { font-size: 35px; }
 body.layout-advanced .offer-copy { padding: 13px; }
 body.layout-advanced .store-intro h1 { font-size: 20px; }
 body.layout-advanced .selling-rate-hero strong { font-size: 33px; }
 .store-section { padding: 17px; }
}

/* / note: Shared checkout feedback uses semantic colours while purchase/support actions keep the merchant's brand. */
.receipt-panel { --status: #1d4ed8; box-shadow: inset 0 4px 0 var(--status) !important; }
.receipt-panel[data-tone="pending"] { --status: #a34b08; }
.receipt-panel[data-tone="failure"] { --status: #c12d39; }
.receipt-panel[data-tone="success"] { --status: #047857; }
body[data-background-mode="BLACK"] .receipt-panel { --status: #60a5fa; }
body[data-background-mode="BLACK"] .receipt-panel[data-tone="pending"] { --status: #fbbf24; }
body[data-background-mode="BLACK"] .receipt-panel[data-tone="failure"] { --status: #fb7185; }
body[data-background-mode="BLACK"] .receipt-panel[data-tone="success"] { --status: #34d399; }
.receipt-stage, .payment-confirmed-badge { display: inline-flex; align-items: center; padding: 7px 12px; margin: 0 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--status); background: color-mix(in srgb, var(--status) 10%, var(--surface)); }
.payment-confirmed-badge { color: #047857; background: color-mix(in srgb, #10b981 12%, var(--surface)); }
body[data-background-mode="BLACK"] .payment-confirmed-badge { color: #34d399; }
.receipt-panel .receipt-icon { width: 64px; height: 64px; font-size: 30px; color: var(--status); background: color-mix(in srgb, var(--status) 10%, var(--surface)); }
.receipt-panel .receipt-icon-pending, .receipt-panel .receipt-icon-spinner { border-color: color-mix(in srgb, var(--status) 18%, var(--surface)); border-top-color: var(--status); background: transparent; }
.receipt-panel .receipt-icon-idle { border-color: color-mix(in srgb, var(--status) 32%, var(--surface)); }
.receipt-panel .receipt-icon-confirmed { animation: checkout-result-in 400ms cubic-bezier(.2,.8,.2,1) both; }
.receipt-panel .receipt-icon-error { animation: checkout-result-shake 320ms ease-out both; }
.receipt-progress { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); list-style: none; gap: 8px; margin: 6px 0 22px; padding: 0; }
.receipt-progress li { min-width: 0; padding: 10px 3px 0; border-top: 3px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.4; }
.receipt-progress li[data-state="done"] { border-color: #10b981; color: var(--ink); }
.receipt-progress li[data-state="error"] { border-color: #ef4444; color: var(--status); }
.receipt-progress li[data-state="active"] { border-color: var(--status); color: var(--status); font-weight: 700; }
.receipt-panel .delivery-waiting { color: var(--status); }
/* / note: Recent numbers are explicitly selected, masked, device-local shortcuts, with a visible clear action. */
.recent-phones { margin: 9px 0 3px; }
.recent-phones > span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.recent-phone-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.recent-phone-options button { min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-ink); background: var(--panel); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background 180ms, transform 180ms; }
.recent-phone-options button:not(:disabled):hover { background: var(--panel-strong); transform: translateY(-1px); }
.recent-phone-options button:disabled { opacity: .4; cursor: not-allowed; }
.recent-clear { margin-top: 5px; padding: 4px 0; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
/* / note: A closed storefront is a deliberate branded state, not a broken or empty checkout. */
body:not([data-availability="AVAILABLE"]) .store-section { grid-column: 1/-1; width: min(100%, 780px); justify-self: center; }
.availability-paused { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 46px 26px; text-align: center; border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--brand) 16%, transparent), transparent 75%), var(--surface); animation: storefront-enter 320ms ease-out both; }
.availability-paused::before { background: linear-gradient(180deg,var(--brand),var(--accent)); }
.availability-paused .availability-icon { width: 76px; height: 76px; border-radius: 24px; font-size: 30px; color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); background: var(--panel); box-shadow: 0 0 0 10px color-mix(in srgb,var(--brand) 5%,transparent); animation: checkout-result-in 500ms ease-out both; }
.availability-paused .availability-copy h2 { font-size: clamp(24px,4vw,34px); letter-spacing: -.04em; }
.availability-paused .availability-copy > p:last-child { max-width: 430px; margin: 12px auto 0; font-size: 14px; line-height: 1.7; }
@keyframes checkout-result-in { from { opacity: 0; transform: scale(.65) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes checkout-result-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* / note: Respect motion preferences without hiding the status text or progress evidence. */
@media (prefers-reduced-motion: reduce) { .receipt-panel .receipt-icon, .availability-paused, .availability-paused .availability-icon { animation: none !important; } .recent-phone-options button { transition: none; } }
