/* Explicit centering overrides the site's global margin reset. */
.checkout-dialog{--co-ink:#192c30;--co-muted:#607175;--co-line:#e2e9e7;--co-accent:#176557;--co-soft:#f3f7f5;position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);padding:36px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #ffffffb3;border-radius:24px;background:#fff;color:var(--co-ink);box-shadow:0 28px 90px #132c3933,0 4px 16px #132c3914;font-size:15px;line-height:1.65;color-scheme:light}
.checkout-dialog::backdrop{background:#15272c80;backdrop-filter:blur(5px)}
html:has(.checkout-dialog[open]){overflow:hidden}
.checkout-dialog .checkout-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--co-muted);font:inherit;font-size:26px;cursor:pointer;transition:background .15s}
.checkout-dialog .checkout-close:hover{background:var(--co-soft)}
.checkout-eyebrow{text-align:center;font-size:12px;letter-spacing:.08em;color:var(--co-muted);margin:4px 24px 10px}
.checkout-content h2{text-align:center;font-family:var(--font-sans);font-size:23px;font-weight:650;line-height:1.45;letter-spacing:-.035em;margin:0 12px;text-wrap:balance}
.checkout-price{text-align:center;font-size:38px;font-weight:650;letter-spacing:-.045em;line-height:1.2;color:var(--co-ink);margin:14px 0 26px;font-variant-numeric:tabular-nums}
.checkout-dialog label{display:block;font-size:14px;font-weight:600;margin:12px 0 8px}
.checkout-dialog input{box-sizing:border-box;width:100%;min-height:50px;padding:12px 14px;border:1px solid #b9c8c3;border-radius:12px;font:inherit;font-size:16px;color:var(--co-ink);background:#fff;transition:border-color .15s,box-shadow .15s}
.checkout-dialog input:focus{border-color:var(--co-accent);box-shadow:0 0 0 3px #17655712}
.checkout-muted{font-size:12px;color:var(--co-muted);line-height:1.7;margin:10px 0}
.checkout-notice{padding:12px 14px;border-radius:12px;background:var(--co-soft);color:#35544b;font-size:13px;line-height:1.75;margin:16px 0}
.checkout-email-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;padding-bottom:14px}
.checkout-email-row>span{color:var(--co-muted)}
.checkout-email-row strong{flex:1;min-width:0;font-weight:500}
.checkout-number{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:var(--co-soft);border:1px solid var(--co-line);border-radius:12px;font-size:12px}
.checkout-number>span{min-width:0;color:var(--co-muted)}
.checkout-number strong{display:block;color:var(--co-ink);font-size:15px;font-weight:600;letter-spacing:.03em;overflow-wrap:anywhere}
.checkout-dialog .btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--co-line);border-radius:12px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transform:none;transition:background .15s,border-color .15s}
.checkout-dialog .btn-primary{background:var(--co-accent);border-color:var(--co-accent);color:#fff}
.checkout-dialog .btn-primary:hover{background:#124f44;border-color:#124f44;transform:none}
.checkout-dialog .btn-ghost{background:#fff;color:var(--co-ink)}
.checkout-dialog .btn-ghost:hover{background:var(--co-soft);border-color:#b9c8c3}
.checkout-number .btn{flex-shrink:0;font-size:12px;padding:8px 10px;min-height:44px}
.checkout-dialog form>.btn,.checkout-claim-area>.btn,#checkout-refresh{width:100%;min-height:50px}
.checkout-qr{display:block;width:216px;max-width:100%;height:auto;margin:14px auto 8px;border-radius:12px;border:1px solid var(--co-line);padding:8px;background:#fff}
.checkout-recipient{text-align:center;font-size:12px;color:var(--co-muted);margin:8px 0 14px}
.checkout-recipient strong{color:var(--co-ink);font-weight:500}
.checkout-wrap{overflow-wrap:anywhere}
.checkout-dialog .checkout-link{border:0;background:none;color:var(--co-accent);font:inherit;font-size:13px;padding:0 8px;min-height:44px;cursor:pointer}
.checkout-dialog details{border-top:1px solid var(--co-line)}
.checkout-dialog summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.5;font-size:12px;color:var(--co-muted)}
.checkout-dialog details p{font-size:13px;margin-bottom:12px}
.checkout-claim-area{min-height:50px;margin-top:14px}
#checkout-countdown{text-align:center;font-size:12px;color:var(--co-muted);line-height:50px}
#checkout-countdown:empty{display:none}
.checkout-footer{margin-top:18px;text-align:center}
.checkout-dialog [hidden]{display:none!important}
.checkout-dialog :focus-visible{outline:2px solid var(--co-accent);outline-offset:3px}
#checkout-error{color:#a62222;font-size:13px;line-height:1.6;margin:10px 0}
#checkout-error:empty{display:none}
.checkout-dialog button:disabled{opacity:.6;cursor:wait}
[data-checkout-slot]{margin:20px 0}
[data-checkout-slot]>.btn{width:100%;justify-content:center;min-height:48px;border-radius:12px}
[data-checkout-slot]>p{margin-top:8px;text-align:center;font-size:12px}
.post-main>[data-checkout-slot]{max-width:420px;margin:24px auto}
@media(max-width:480px){.checkout-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:28px 20px 22px;border-radius:20px}.checkout-content h2{font-size:21px}.checkout-price{font-size:34px;margin:12px 0 20px}.checkout-qr{width:200px}.checkout-email-row{gap:4px}}
@media(max-height:600px){.checkout-dialog{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding-top:24px;padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){.checkout-dialog *{transition:none!important}}
/* Order confirmation and payment hierarchy, based on the supplied reference. */
.checkout-dialog{border-radius:20px;padding:32px;--co-accent:#d64a58}
.checkout-dialog[data-stage=confirm]{width:min(800px,calc(100vw - 40px));padding:34px 38px}
.checkout-dialog[data-stage=pay],.checkout-dialog[data-stage=status]{width:min(540px,calc(100vw - 32px))}
.co-heading{margin-bottom:24px}
.co-heading .checkout-muted{text-align:center;margin-bottom:0}
.co-heading .checkout-eyebrow{font-size:11px;letter-spacing:.12em}
.checkout-dialog[data-stage=confirm] .co-heading{text-align:left}
.checkout-dialog[data-stage=confirm] .co-heading h2,.checkout-dialog[data-stage=confirm] .co-heading p{text-align:left;margin-left:0}
.co-product-table{border-top:3px solid #d64a58;border-bottom:1px solid var(--co-line)}
.co-table-head{display:flex;justify-content:space-between;color:var(--co-muted);font-size:12px;padding:14px 0}
.co-product-row{display:flex;align-items:center;gap:20px;padding:8px 0 24px}
.co-product-cover{width:130px;height:88px;flex-shrink:0;background:linear-gradient(120deg,#233539,#476865);border-radius:8px;color:white;display:flex;flex-direction:column;justify-content:center;padding:14px 16px;gap:2px}
.co-product-cover>span{font-size:9px;letter-spacing:.16em;color:#cee0dc}
.co-product-cover>strong{font-size:18px;font-weight:600}
.co-product-cover>small{font-size:10px;color:#cee0dc}
.co-product-info{flex:1;min-width:0}
.co-product-info h3{font:600 17px/1.5 var(--font-sans);margin:0 0 6px}
.co-product-info p,.co-product-info>span{font-size:12px;color:var(--co-muted)}
.co-product-amount{font-size:19px;font-weight:600;white-space:nowrap}
.co-delivery{display:grid;grid-template-columns:90px 1fr;gap:20px;padding:24px 0;border-bottom:1px solid var(--co-line)}
.co-delivery label{margin:13px 0 0}
.co-delivery .checkout-muted{margin:8px 0 0}
.co-method{padding:22px 0}
.co-method h3{font:600 14px/1.5 var(--font-sans);margin-bottom:12px}
.co-method-option{display:flex;align-items:center;gap:10px;border:1px solid #aacbc4;border-radius:10px;background:#f4faf7;padding:12px 14px;width:fit-content;color:#216858}
.co-method-option strong{font-size:15px;font-weight:600}
.co-method-option>span:not(.co-radio){font-size:12px}
.co-radio{width:15px;height:15px;border:4px solid #23816b;border-radius:50%;background:white;flex-shrink:0}
.co-selected{margin-left:18px}
.co-checkout-bar{display:flex;align-items:center;gap:20px;border-top:1px solid var(--co-line);padding-top:22px}
.co-checkout-bar>span{font-size:13px;color:var(--co-muted);margin-right:auto}
.co-total{display:flex;align-items:baseline;gap:12px}
.co-total>span{font-size:13px;color:var(--co-muted)}
.co-total>strong,.co-payment-amount{font-size:28px!important;font-weight:500!important;color:#d74251;letter-spacing:-.02em;white-space:nowrap}
.co-checkout-bar .btn{min-width:130px;border-radius:999px;min-height:48px}
.checkout-dialog .btn-primary:hover{background:#bd3745;border-color:#bd3745}
.co-payment-summary{padding:0 0 18px;border-bottom:1px solid var(--co-line)}
.co-summary-row{display:flex;align-items:center;gap:10px;min-height:34px;font-size:13px}
.co-summary-row>span{flex-shrink:0;width:66px;color:var(--co-muted)}
.co-summary-row>strong{font-weight:500;overflow-wrap:anywhere;min-width:0}
.co-summary-row .checkout-link{margin-left:auto;flex-shrink:0;min-height:34px;padding:0;font-size:12px}
.co-scan{text-align:center;margin:16px 0 0}
.co-scan h3{font:500 20px/1.5 var(--font-sans);color:#1677d8;margin-bottom:8px}
.co-scan .checkout-qr{width:218px;padding:0;border:0;border-radius:8px;margin:10px auto}
.co-scan-hint{font-size:13px;color:var(--co-muted);margin:8px 0 0}
.co-scan .checkout-recipient{margin:4px 0 12px}
.co-remark{text-align:center;font-size:12px;color:#79544a;background:#fcf6f3;border-radius:8px;padding:9px 10px}
.checkout-claim-area{max-width:340px;margin:14px auto}
.checkout-email-row{border-top:1px solid var(--co-line);padding-top:8px;padding-bottom:8px;margin-top:16px;font-size:12px}
.checkout-footer{margin-top:10px}
.checkout-footer .checkout-muted{margin-top:0}
@media(max-width:600px){
.checkout-dialog[data-stage=confirm],.checkout-dialog[data-stage=pay],.checkout-dialog[data-stage=status]{width:calc(100vw - 24px);padding:28px 20px 20px;max-height:calc(100dvh - 24px);border-radius:16px}
.co-heading{margin-bottom:20px}.co-product-row{gap:12px;padding-bottom:18px;flex-wrap:wrap}.co-product-cover{width:92px;height:76px;padding:10px}.co-product-cover>strong{font-size:15px}.co-product-info h3{font-size:15px}.co-product-amount{font-size:17px;margin-left:auto}.co-delivery{grid-template-columns:1fr;gap:8px;padding:18px 0}.co-delivery label{margin:0}.co-method{padding:18px 0}.co-method-option{width:100%;gap:8px}.co-selected{margin-left:auto}.co-checkout-bar{gap:12px;flex-wrap:wrap;padding-top:16px}.co-checkout-bar>span{font-size:12px}.co-total{gap:8px}.co-total>strong{font-size:26px!important}.co-checkout-bar .btn{width:100%;min-height:48px}.co-scan .checkout-qr{width:190px}.co-summary-row{font-size:12px;gap:6px}.co-summary-row>span{width:60px}.co-payment-amount{font-size:26px!important}.co-scan h3{font-size:18px}.checkout-claim-area{max-width:none}
}
