/* Standalone responsive commerce pages; no legacy scaling needed. */
html.page-scroll body.commerce-page { display:flex; flex-direction:column; min-height:100vh; background:#F3F5F9; }
.commerce-main { flex:1 0 auto; width:100%; max-width:1200px; margin:0 auto; padding:118px 28px 72px; color:#111; font-family:'TT Firs Neue',sans-serif; }
.commerce-intro { max-width:760px; margin:0 0 36px; }
.commerce-back { display:inline-block; text-decoration:none; color:#62646a; font-size:14px; margin-bottom:30px; }
.commerce-eyebrow { font-size:11px; font-weight:600; letter-spacing:.14em; color:#74767b; margin:0 0 12px; }
.commerce-intro h1 { font-size:clamp(30px,5vw,56px); font-weight:600; line-height:1.13; letter-spacing:-.03em; margin:0 0 18px; }
.commerce-intro > p:last-child { color:#66686d; font-size:16px; line-height:1.6; margin:0; }
.commerce-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:start; gap:24px; }
.commerce-panel,.commerce-summary { min-width:0; border-radius:24px; padding:32px; box-sizing:border-box; }
.commerce-panel { background:#fff; border:1px solid #e1e3e7; }
.commerce-panel h2,.commerce-summary h2 { font-size:24px; line-height:1.25; font-weight:600; margin:0 0 22px; }
.commerce-summary { color:#fff; background:linear-gradient(145deg,#383838 0%,#101010 55%,#000 100%); }
.commerce-summary .commerce-eyebrow { color:#b3b3b3; }
.commerce-summary > p:not(.commerce-eyebrow) { color:#c7c7c7; line-height:1.55; font-size:14px; }
.commerce-fieldset { border:0; padding:0; margin:0 0 26px; min-width:0; }
.commerce-fieldset legend,.commerce-label { font-size:13px; font-weight:600; margin:0 0 12px; display:block; }
.commerce-options { display:grid; gap:10px; }
.commerce-options label,.commerce-periods label { cursor:pointer; display:flex; align-items:center; gap:12px; padding:14px; border:1px solid #dfe1e5; border-radius:14px; background:#fff; }
.commerce-options label:has(input:checked),.commerce-periods label:has(input:checked) { border-color:#111; background:#f4f4f5; box-shadow:inset 0 0 0 1px #111; }
.commerce-options strong { display:block; font-size:15px; }
.commerce-options small { display:block; color:#74767b; font-size:12px; margin-top:4px; }
.commerce-page input[type=radio] { accent-color:#111; flex-shrink:0; width:16px; height:16px; }
.commerce-periods { display:grid; grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); gap:8px; }
.commerce-periods label { padding:12px 9px; font-size:13px; justify-content:center; }
.commerce-page input:not([type=radio]),.commerce-page textarea,.commerce-page select { width:100%; min-width:0; border:1px solid #d4d7dc; padding:12px 14px; margin:0 0 18px; border-radius:12px; background:#fafafa; color:#111; font:inherit; font-size:16px; }
.commerce-page textarea { resize:vertical; }
.commerce-page :is(input,textarea,select,a,button):focus-visible { outline:2px solid #4664ba; outline-offset:3px; }
.commerce-muted { color:#62646a; font-size:13px; line-height:1.6; margin:0 0 18px; overflow-wrap:anywhere; }
.commerce-marks { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.commerce-card-method { display:flex; align-items:center; flex-wrap:wrap; gap:14px; border:1px solid #e1e3e7; border-radius:14px; padding:14px; }
.commerce-card-method p { margin:4px 0 0; color:#62646a; font-size:12px; }
.commerce-card-method strong { font-size:14px; }
.commerce-total { border-top:1px solid #555; margin:24px 0 12px; padding-top:20px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.commerce-total strong { font-size:30px; text-align:right; font-weight:700; overflow-wrap:anywhere; }
.commerce-primary,.commerce-secondary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 20px; border:0; border-radius:14px; min-height:50px; width:100%; font:inherit; font-weight:600; font-size:16px; text-decoration:none; background:#fff; color:#111; cursor:pointer; text-align:left; }
.commerce-primary:disabled { background:#d0d0d0; color:#484848; cursor:not-allowed; }
.commerce-dark { background:#111; color:#fff; }
.commerce-dark:disabled { background:#e4e4e4; color:#666; }
.commerce-secondary { justify-content:center; font-size:14px; border:1px solid #626262; background:transparent; color:white; margin-top:20px; }
.commerce-summary-links { display:flex; flex-wrap:wrap; gap:12px 18px; margin:20px 0 0; }
.commerce-summary-links a { color:#fff; text-decoration:underline; font-size:13px; }
.commerce-contact { color:#fff; text-decoration:none; display:block; border-top:1px solid #555; padding:16px 0; overflow-wrap:anywhere; }
.commerce-contact span { display:block; color:#bcbcbc; font-size:12px; margin-bottom:5px; }
.commerce-contact strong { font-size:16px; }
.commerce-legal { max-width:880px; }
.commerce-policy h2 { margin:28px 0 10px; font-size:20px; }
.commerce-policy h2:first-child { margin-top:0; }
.commerce-policy > p:not(.commerce-muted) { font-size:15px; line-height:1.7; color:#404248; margin:0 0 18px; }
.commerce-policy .commerce-primary { width:fit-content; margin:28px 0 20px; }
.commerce-policy .commerce-email { color:#111; overflow-wrap:anywhere; }
.commerce-page [hidden] { display:none !important; }
@media (max-width:767px) {
 .commerce-main { padding:96px 16px 42px; }
 .commerce-intro { margin-bottom:22px; }
 .commerce-back { margin-bottom:22px; }
 .commerce-intro h1 { font-size:32px; }
 .commerce-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
 .commerce-panel,.commerce-summary { border-radius:20px; padding:22px 18px; }
 .commerce-panel h2,.commerce-summary h2 { font-size:21px; }
 .commerce-periods { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

#support-status { margin-top:18px; }
#solana-estimate { border:1px solid #626262; border-radius:14px; padding:16px; margin:16px 0; overflow-wrap:anywhere; }
#solana-estimate p { color:#d5d5d5; font-size:13px; line-height:1.6; margin:0 0 10px; }
#solana-total { display:block; font-size:24px; line-height:1.3; margin-bottom:12px; }
#solana-estimate a { color:#fff; font-size:13px; text-decoration:underline; }

/* Enhanced topic selector with a native-select fallback. */
.commerce-topic-select { position:relative; margin:0 0 18px; z-index:2; }
.commerce-topic-select.is-open { z-index:5; }
.commerce-topic-trigger {
    display:flex; width:100%; align-items:center; justify-content:space-between;
    gap:16px; padding:13px 18px; min-height:48px; border:1px solid #d4d7dc;
    background:#fafafa; color:#111; font:inherit; font-size:16px;
    text-align:left; border-radius:12px; cursor:pointer;
    transition:border-color .18s ease, box-shadow .18s ease;
}
.commerce-topic-trigger:hover,.commerce-topic-select.is-open .commerce-topic-trigger { border-color:#77717f; box-shadow:0 0 0 3px rgba(80,60,104,.07); }
.commerce-topic-arrow { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:#efedf1; }
.commerce-topic-arrow::before { content:''; width:8px; height:8px; border-right:1.6px solid #333; border-bottom:1.6px solid #333; transform:translateY(-2px) rotate(45deg); transition:transform .2s ease; }
.commerce-topic-select.is-open .commerce-topic-arrow::before { transform:translateY(2px) rotate(225deg); }
.commerce-topic-list {
    position:absolute; top:calc(100% + 7px); left:0; right:0; display:grid;
    gap:3px; padding:6px; border:1px solid #dedbe2; border-radius:14px;
    background:#fff; box-shadow:0 12px 30px rgba(22,16,30,.12);
    opacity:0; visibility:hidden; transform:translateY(-5px) scale(.99);
    transform-origin:top; pointer-events:none; transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;
}
.commerce-topic-select.is-open .commerce-topic-list { opacity:1; visibility:visible; transform:none; pointer-events:auto; transition-delay:0s; }
.commerce-topic-option {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    width:100%; padding:11px 12px; min-height:40px; border:0; border-radius:9px;
    background:transparent; color:#222; font:inherit; font-size:14px; cursor:pointer; text-align:left;
}
.commerce-topic-option:hover,.commerce-topic-option:focus-visible { background:#f4f1f7; outline:0; }
.commerce-topic-option[aria-selected="true"] { background:#eeebf2; font-weight:600; }
.commerce-topic-option[aria-selected="true"]::after { content:''; width:10px; height:6px; flex-shrink:0; border-left:2px solid #51425e; border-bottom:2px solid #51425e; transform:rotate(-45deg); }
@media (prefers-reduced-motion:reduce) { .commerce-topic-trigger,.commerce-topic-arrow::before,.commerce-topic-list { transition:none; } }

/* Checkout: a compact, responsive catalogue with explicit totals. */
#checkout-periods { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
#checkout-periods .commerce-period-card {
    position:relative; flex-direction:column; align-items:flex-start; justify-content:flex-start;
    min-width:0; gap:9px; padding:16px 12px 12px; min-height:128px;
    transition:border-color .18s ease,background .18s ease;
}
.commerce-period-content { display:flex; flex-direction:column; gap:5px; min-width:0; width:100%; }
.commerce-period-duration { font-size:13px; font-weight:600; }
.commerce-period-total { font-size:18px; font-weight:700; line-height:1.2; overflow-wrap:anywhere; }
.commerce-period-monthly { color:#66636a; font-size:11px; line-height:1.4; }
.commerce-period-discount {
    position:absolute; top:10px; right:8px; border-radius:20px; padding:3px 7px;
    background:#e9e2f2; color:#51405e; font-weight:600; font-size:10px; line-height:1.4;
}
.commerce-period-card:has(input:checked) .commerce-period-discount { background:#ded1ee; }
.commerce-period-card:hover { border-color:#8f809e; }
.commerce-period-note { margin:12px 0 0; }
#traffic-field { margin-bottom:26px; }
.commerce-traffic-card { background:#faf9fb; border:1px solid #e1dee6; border-radius:16px; padding:20px; }
.commerce-traffic-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.commerce-traffic-heading output { font-size:28px; font-weight:700; }
.commerce-traffic-heading strong { font-size:20px; color:#51405e; }
.commerce-page #traffic-gb {
    --traffic-progress:0%; appearance:none; -webkit-appearance:none; display:block; width:100%;
    height:7px; padding:0; margin:15px 0 12px; border:0; border-radius:20px;
    background:linear-gradient(to right,#72528c 0%,#72528c var(--traffic-progress),#ddd9e4 var(--traffic-progress),#ddd9e4 100%); cursor:pointer;
}
#traffic-gb::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:24px; height:24px; background:#fff; border:2px solid #72528c; border-radius:50%; box-shadow:0 2px 6px #0002; }
#traffic-gb::-moz-range-thumb { width:20px; height:20px; background:#fff; border:2px solid #72528c; border-radius:50%; }
.commerce-traffic-ticks { display:flex; justify-content:space-between; padding:0 4px; color:#66636a; font-size:12px; }
.commerce-traffic-card .commerce-muted { margin:16px 0 0; }
.commerce-payment-content { display:block; min-width:0; }
.commerce-payment-options .commerce-payment-choice { align-items:flex-start; padding:16px; }
.commerce-payment-choice > input { margin-top:3px; }
.commerce-payment-choice .commerce-card-method { border:0; padding:0; margin-top:12px; gap:6px; }
.commerce-payment-choice .commerce-marks img { width:52px; height:33px; }
.commerce-solana { display:inline-flex; align-items:center; gap:8px; margin-top:10px; padding:7px 12px; border-radius:8px; background:#19161d; color:#fff; font-size:13px; font-weight:600; }
.commerce-summary-detail { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:24px; font-size:13px; color:#c7c7c7; }
.commerce-summary-detail strong { color:#fff; }
.commerce-summary #checkout-price-note { margin:0 0 22px; min-height:1.5em; }
#checkout-pay { margin-top:4px; min-height:54px; transition:background .18s ease; }
#checkout-pay:not(:disabled):hover { background:#e8e5eb; }
.commerce-summary .checkout-disclosure { margin:16px 0 24px; font-size:12px; }
.commerce-summary .commerce-secondary:hover { background:#ffffff0d; }
@media (max-width:767px) {
    #checkout-periods { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #checkout-periods .commerce-period-card { min-height:116px; padding:12px 10px; }
    .commerce-period-total { font-size:17px; }
    .commerce-period-discount { right:6px; top:7px; }
    .commerce-traffic-card { padding:16px; }
    .commerce-payment-choice .commerce-marks img { width:45px; height:30px; }
}
@media (prefers-reduced-motion:reduce) { #checkout-pay,#checkout-periods .commerce-period-card { transition:none; } }
/* Checkout payment + result blocks (web-store, 2026-12) */
.commerce-key-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0; padding:10px 12px; border-radius:10px; background:#19161d; }
.commerce-key-row .commerce-key-block { display:flex; flex-direction:column; gap:4px; min-width:0; }
.commerce-key-code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; color:#fff; word-break:break-all; white-space:pre-wrap; }
.commerce-copy { flex:none; padding:7px 12px; border:1px solid #ffffff26; border-radius:8px; background:transparent; color:#fff; font-size:12px; cursor:pointer; transition:background .15s ease; }
.commerce-copy:hover { background:#ffffff14; }
#solana-pay { margin-top:14px; padding:16px; border-radius:12px; background:#100e13; border:1px solid #ffffff14; }
#solana-pay .commerce-eyebrow { margin:0 0 8px; }
#solana-pay img { display:block; margin:12px auto 4px; border-radius:8px; background:#fff; padding:6px; }
#solana-pay-status { min-height:1.4em; }
#order-result { margin-top:14px; padding:16px; border-radius:12px; background:#100e13; border:1px solid #1e9b57; }
#order-result .commerce-eyebrow { margin:0 0 6px; color:#7ce0a8; }
#order-result .commerce-secondary { margin-top:12px; }
