/* Native radio-card pattern; same neutral/green system as the specification cards. */
.payment-bill{align-self:center}
.payment-content{padding-bottom:32px}
.payment-methods{border:0;min-width:0;margin:16px 0 0;padding:0}
.payment-methods legend{font-size:11px;font-weight:500;color:var(--muted);padding:0;margin-bottom:10px}
.payment-method-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.payment-method{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:76px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;padding:12px 4px;color:var(--muted);transition:background-color 160ms,border-color 160ms,box-shadow 160ms,transform 120ms}
.payment-method input{position:absolute;opacity:0;width:1px;height:1px}
.payment-method:has(input:checked){background:var(--selected);border-color:var(--accent);box-shadow:inset 0 0 0 .5px var(--accent);color:var(--ink)}
.payment-method:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.payment-method:has(input:disabled){opacity:.5;cursor:not-allowed}
.payment-method:active{transform:scale(.98)}
.payment-method svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.payment-method>img{width:22px;height:22px;object-fit:contain;border-radius:4px}
.payment-method[data-type=alipay] svg{color:#1677ff}.payment-method[data-type=wxpay] svg{color:#229e63}
.payment-method>span{font-size:11px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.payment-method .channel-check{position:absolute;right:5px;top:5px;width:12px;height:12px;color:var(--accent);opacity:0}
.payment-method:has(input:checked) .channel-check{opacity:1}
.payment-method.payment-method-balance{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px;padding:14px 16px;min-height:70px}
.payment-method-balance>svg{flex:0 0 22px;color:var(--accent)}
.payment-method-balance>.wallet-option-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;min-width:0;flex:1;font-size:13px}
.wallet-option-copy>strong{font-size:14px;font-weight:600;color:var(--ink)}
.wallet-option-detail{font-size:11px;line-height:1.5;color:var(--muted)}
.wallet-option-amount{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink);overflow-wrap:anywhere;max-width:42%}
/* Signed-in shoppers choose from four equal cards; guests retain three. */
#purchase .payment-method-options:has(.payment-method-balance){grid-template-columns:repeat(4,minmax(0,1fr))}
#purchase .payment-method-options:has(.payment-method-balance) .payment-method{grid-column:auto;flex-direction:column;justify-content:center;gap:5px;min-height:96px;padding:10px 6px}
#purchase .payment-method-options .payment-method>span{font-size:14px;font-weight:550;line-height:1.5;color:var(--ink)}
#purchase .payment-method-options:has(.payment-method-balance) .payment-method>svg:not(.channel-check),
#purchase .payment-method-options:has(.payment-method-balance) .payment-method>img{width:20px;height:20px;flex:none}
#purchase .payment-method-balance>.wallet-option-copy{flex:none;align-items:center;text-align:center;gap:0}
#purchase .wallet-option-copy>strong{font-size:14px;font-weight:600;line-height:1.5}
#purchase .wallet-option-detail{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#purchase .payment-method-options .wallet-option-amount{max-width:100%;font-size:13px;font-weight:550;line-height:1.4;text-align:center}
#purchase .payment-method-options:has(.payment-method-balance) .wallet-retry{order:1}
@media(max-width:959px){#purchase .payment-method-options:has(.payment-method-balance){grid-template-columns:repeat(2,minmax(0,1fr))}}
.wallet-retry{grid-column:1/-1;justify-self:start;color:var(--accent);font-size:12px;min-height:34px;padding:4px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.wallet-payment-pending{padding:32px 20px;text-align:center;display:grid;gap:16px;min-height:240px;align-content:center}
.wallet-payment-pending h3{font-size:20px;color:var(--ink);margin:0}
.wallet-payment-pending p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.wallet-payment-pending a{color:var(--accent);font-size:13px;margin:0;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.payment-methods .field-hint{font-size:10px;line-height:1.7;margin:8px 0 0;color:var(--muted)}
.checkout-summary .purchase-consent{margin-top:16px}
.payment-channel-badge{font-size:11px;color:var(--muted)}
.cashier-link{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:42px;margin-top:16px}
.payment-loading{color:var(--muted);font-size:12px;line-height:1.9;padding:32px 12px;text-align:center}
#payment-message{color:var(--muted);font-size:11px;line-height:1.8;margin:12px 0 0;overflow-wrap:anywhere}
#payment-message:empty{display:none}
#payment-qr img{display:block;max-width:100%;height:auto}
.payment-qr-title{font-size:11px;line-height:1.7;color:var(--muted);margin:16px 0}
.catalog-status{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;line-height:1.8;color:var(--muted);padding:16px;margin-bottom:16px;background:var(--page);border:1px solid var(--line);border-radius:10px}
.catalog-status[hidden]{display:none}
body[data-catalog-state=loading] .specifications{pointer-events:none}
.review-footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px}
.verification-block{min-width:0;max-width:100%}
#checkout-turnstile{min-height:65px;width:300px;max-width:100%}
#verification-message{font-size:10px;line-height:1.7;color:var(--muted);margin:6px 0 0}
#verification-message:empty{display:none}
#verification-retry{font-size:11px;padding:4px 0;min-height:32px}
.review-consent{font-size:11px}
.primary-button[disabled]{opacity:.45;cursor:not-allowed}
.checkout-busy .product-nav,.checkout-busy .brand{pointer-events:none;opacity:.6}
.fulfillment-status[data-failed=true] .fulfillment-symbol{color:var(--warning);background:var(--warning-surface)}
@media(hover:hover){.payment-method:hover{border-color:var(--accent);background:var(--selected)}}
@media(max-width:1100px){.review-footer{grid-template-columns:minmax(0,1fr) auto}.review-footer>div:first-child{grid-column:1/-1}.review-footer .primary-button{min-width:160px}}
@media(max-width:760px){.payment-bill{align-self:stretch}.payment-methods{grid-column:1/-1;margin-top:24px}.payment-content{padding-bottom:24px}.payment-method{min-height:64px;flex-direction:row;gap:8px;padding:12px 8px}.payment-method svg{width:20px;height:20px}.payment-method .channel-check{width:11px;height:11px}.catalog-status{padding:12px}}
@media(max-width:650px){.review-footer{display:flex;align-items:stretch;gap:16px}.verification-block{align-self:center;width:300px;max-width:100%}.review-footer .primary-button{width:100%}.payment-methods{margin-top:20px}.payment-method{min-height:70px;flex-direction:column}.payment-method>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.payment-method{transition:none}.payment-method:active{transform:none}}
/* Empty categories keep the three-section navigation and use a natural-height panel. */
.catalog-family-empty{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-align:center}
.catalog-family-empty strong{font-size:14px;color:var(--ink)}
.catalog-family-empty p{margin:0;font-size:12px;color:var(--muted)}
/* Keep sold-out cards distinct without fading their readable content. */
body:not([data-catalog-state=loading]) .selection .option.is-disabled{background:#e5eaec;border-color:#c9d2d6;box-shadow:none}
body:not([data-catalog-state=loading]) .selection .option.is-disabled .sold-out-label{background:#d3dce0;border-color:#bdc9cf;color:#4c5b63;font-weight:550}
body.dark:not([data-catalog-state=loading]) .selection .option.is-disabled{background:#171f22;border-color:#35434a}
body.dark:not([data-catalog-state=loading]) .selection .option.is-disabled .sold-out-label{background:#303d43;border-color:#48585f;color:#c1cdd2}
