/* Focused checkout layout; the store's wordmark and homepage remain unchanged. */
#checkout-dialog.apple-checkout{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 28px);border:0;border-radius:30px;background:#fff;box-shadow:0 30px 110px #00000028}
#checkout-dialog .dialog-wrap{padding:42px 40px 30px}
#checkout-dialog .dialog-close{top:18px;right:18px;width:30px;height:30px;display:grid;place-items:center;font-weight:400}
#checkout-dialog .eyebrow{font-size:10px;font-weight:600;letter-spacing:.15em;color:#86868b;margin:0 34px 14px 0}
#checkout-dialog h2{font-size:34px;line-height:1.16;font-weight:700;letter-spacing:-.035em;margin:0 32px 10px 0}
#checkout-dialog .dialog-notice{padding:0;margin:0 0 28px;border:0;border-radius:0;background:none;font-size:16px;line-height:1.5;color:#6e6e73}
#checkout-dialog .order-summary{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;margin:0;padding:22px;border:0;border-radius:21px;background:#f5f5f7}
#checkout-dialog .order-summary>img{display:block;width:46px;height:46px;border-radius:12px}
#checkout-dialog .order-summary>div{gap:5px;min-width:0}
#checkout-dialog .order-summary strong{font-size:17px;line-height:1.35;letter-spacing:-.02em}
#checkout-dialog .order-summary span{font-size:12px;line-height:1.5;color:#6e6e73}
#checkout-dialog .order-summary>b{font-size:30px;font-weight:650;line-height:1.1;letter-spacing:-.035em;white-space:nowrap}
#checkout-dialog .checkout-benefits{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:13px 2px 28px;flex-wrap:wrap}
#checkout-dialog .checkout-assurance{display:flex;align-items:center;gap:5px;font-size:11px;color:#6e6e73;white-space:nowrap}
#checkout-dialog .checkout-assurance svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}
#checkout-dialog #checkout-estimate{font-size:11px;line-height:1.5;margin:0;color:#86868b}
#checkout-dialog fieldset{margin:0;padding:0;min-width:0}
#checkout-dialog legend{display:block;width:100%;font-size:17px;font-weight:600;letter-spacing:-.02em;color:#1d1d1f;margin:0 0 14px;padding:0}
#checkout-dialog .checkout-account-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:14px}
#checkout-dialog .checkout-account label,#checkout-dialog .checkout-referral label{display:block;font-size:12px;font-weight:500;color:#6e6e73;margin:0 0 7px}
#checkout-dialog input:not([type=radio],[type=checkbox]),#checkout-dialog select{width:100%;min-width:0;min-height:52px;font-size:15px;line-height:1.4;border:1px solid #d2d2d7;border-radius:12px;background:#fff;padding:14px 13px;transition:border-color .15s,box-shadow .15s}
#checkout-dialog input::placeholder{color:#a0a0a5;font-size:14px}
#checkout-dialog input:focus-visible,#checkout-dialog select:focus-visible{outline:2px solid #0071e3;outline-offset:2px;border-color:transparent}
#checkout-dialog .checkout-referral{margin:16px 0 28px}
#checkout-dialog .checkout-referral summary{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:400;color:#0071e3;cursor:pointer;list-style:none;padding:2px 0}
#checkout-dialog .checkout-referral summary::-webkit-details-marker{display:none}
#checkout-dialog .checkout-referral summary::after{content:'+';font-size:16px;line-height:1}
#checkout-dialog .checkout-referral[open] summary::after{content:'−'}
#checkout-dialog .checkout-referral[open] summary{margin-bottom:15px}
#checkout-dialog .checkout-referral .field-note{font-size:11px;margin:7px 0 0}
#checkout-dialog .checkout-payment-options{border:0;margin:0}
#checkout-dialog .checkout-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#checkout-dialog .checkout-method{position:relative;display:flex;align-items:center;gap:11px;min-height:84px;margin:0;padding:18px 40px 18px 17px;border:1.5px solid #d2d2d7;border-radius:16px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
#checkout-dialog .checkout-method:has(input:checked){border-color:#0071e3;background:#f5f9ff}
#checkout-dialog .checkout-method:has(input:focus-visible){outline:2px solid #0071e3;outline-offset:3px}
#checkout-dialog .checkout-method>input{position:absolute;right:14px;top:16px;width:16px;height:16px;margin:0;accent-color:#0071e3}
#checkout-dialog .checkout-method>svg{width:27px;height:27px;flex:none;fill:none;stroke:#5e5e65;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#checkout-dialog .checkout-method:has(input:checked)>svg{stroke:#0071e3}
#checkout-dialog .checkout-method>span{min-width:0;font-size:15px;font-weight:600;line-height:1.4;color:#1d1d1f;margin:0}
#checkout-dialog .checkout-method small{display:block;font-size:11px;font-weight:400;line-height:1.4;color:#86868b;margin-top:4px}
#checkout-dialog .crypto-checkout-preview{margin:14px 0 0;padding:18px;border:1px solid #e8e8ed;border-radius:16px;background:#fafafa}
#checkout-dialog #checkout-crypto-amount{display:block;font-size:12px;line-height:1.5;font-weight:500;color:#6e6e73;margin:0 0 13px}
#checkout-dialog .checkout-network-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:12px}
#checkout-dialog .checkout-network-grid label{display:block;font-size:12px;font-weight:400;color:#6e6e73;margin:0}
#checkout-dialog .checkout-network-grid select{margin-top:6px;padding:12px 10px;font-size:13px;min-height:46px}
#checkout-dialog #checkout-network-note{font-size:11px;line-height:1.65;margin:11px 0 0;color:#86868b}
#checkout-dialog .payment-paused{display:flex;align-items:flex-start;gap:12px;border:0;border-radius:0;background:none;padding:0;margin:26px 0 23px}
#checkout-dialog .checkout-care-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f5f5f7;color:#6e6e73;flex:none}
#checkout-dialog .checkout-care-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.3}
#checkout-dialog .payment-paused strong{display:block;font-size:14px;font-weight:600;line-height:1.5;color:#1d1d1f}
#checkout-dialog .payment-paused p{font-size:12px;line-height:1.7;margin:4px 0 0;color:#86868b}
#checkout-dialog .checkbox-row{align-items:flex-start;gap:9px;margin:0 0 18px}
#checkout-dialog .checkbox-row input{width:15px;height:15px;margin:2px 0 0}
#checkout-dialog .checkbox-row span{font-size:11px;font-weight:400;color:#6e6e73;line-height:1.7}
#checkout-dialog .checkbox-row a{color:#0071e3}
#checkout-dialog .form-submit{min-height:52px;justify-content:center;padding:14px 22px;border-radius:999px;font-size:16px;font-weight:500;letter-spacing:0;margin:0;background:#0071e3;box-shadow:none}
#checkout-dialog .form-submit:hover:not(:disabled){background:#0077ed}
#checkout-dialog .form-caption{font-size:10px;color:#86868b;margin:13px 0 0;line-height:1.5}
#checkout-dialog .form-error{margin:0 0 16px;border-radius:12px;font-size:12px}
.payment-main #payment-panel,#payment-dialog .payment-card{border:0;background:#f5f5f7;padding:26px;border-radius:22px}
.payment-main .payment-total,#payment-dialog .payment-total{font-size:42px;font-weight:650;letter-spacing:-.04em;color:#1d1d1f;margin:24px 0}
.payment-main #payment-state,#payment-dialog #payment-state{font-size:15px;font-weight:600}
.payment-main .payment-meta,#payment-dialog .payment-meta{font-size:11px;color:#86868b}
.payment-main #payment-claim-note,#payment-dialog #payment-claim-note{font-size:12px;color:#6e6e73;line-height:1.7;margin:20px 0 10px}
.payment-main #payment-submit,#payment-dialog #payment-submit{justify-content:center;border-radius:999px;min-height:48px;font-size:15px}
@media(max-width:540px){
 #checkout-dialog.apple-checkout{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:25px}
 #checkout-dialog .dialog-wrap{padding:36px 23px 24px}
 #checkout-dialog h2{font-size:28px;letter-spacing:-.025em}
 #checkout-dialog .dialog-notice{font-size:14px;margin-bottom:22px}
 #checkout-dialog .order-summary{padding:17px;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;border-radius:17px}
 #checkout-dialog .order-summary>img{width:38px;height:38px;border-radius:10px}
 #checkout-dialog .order-summary strong{font-size:15px}
 #checkout-dialog .order-summary span{font-size:10px}
 #checkout-dialog .order-summary>b{font-size:25px}
 #checkout-dialog .checkout-benefits{margin-bottom:24px;gap:7px}
 #checkout-dialog .checkout-benefits :is(.checkout-assurance,#checkout-estimate){font-size:10px}
 #checkout-dialog .checkout-account-grid{grid-template-columns:1fr;gap:15px}
 #checkout-dialog input:not([type=radio],[type=checkbox]),#checkout-dialog select{font-size:16px;min-height:50px}
 #checkout-dialog .checkout-method{min-height:81px;padding:17px 29px 17px 12px;gap:8px}
 #checkout-dialog .checkout-method>svg{width:23px;height:23px}
 #checkout-dialog .checkout-method>span{font-size:14px}
 #checkout-dialog .checkout-method small{font-size:10px}
 #checkout-dialog .checkout-method>input{right:10px;top:12px;width:14px;height:14px}
 #checkout-dialog .crypto-checkout-preview{padding:15px}
 #checkout-dialog .checkout-network-grid{grid-template-columns:1fr}
 #checkout-dialog .checkout-network-grid select{font-size:16px}
 #checkout-dialog .payment-paused{margin:23px 0 20px}
 .payment-main #payment-panel,#payment-dialog .payment-card{padding:20px}
}
@media(prefers-reduced-motion:reduce){#checkout-dialog :is(input,select,.checkout-method){transition:none}}

/* Shared receipt and payment presentation for both payment methods */
#checkout-dialog .checkout-method>.payment-brand-icon{width:32px;height:32px;flex:none;object-fit:contain;border-radius:7px}
#checkout-dialog .checkout-method>input:focus-visible{outline:none}
#receipt-dialog,#payment-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 28px);border:0;border-radius:30px;background:#fff;box-shadow:0 30px 110px #00000028}
:is(#receipt-dialog,#payment-dialog) .dialog-wrap{padding:42px 40px 30px}
:is(#receipt-dialog,#payment-dialog) .dialog-close{top:18px;right:18px;width:30px;height:30px;font-weight:400}
:is(#receipt-dialog,#payment-dialog,.payment-main) .eyebrow{font-size:10px;font-weight:600;letter-spacing:.17em;color:#86868b;margin-bottom:13px}
:is(#receipt-dialog,#payment-dialog) h2,.payment-main h1{font-size:34px;line-height:1.2;letter-spacing:-.035em;margin:0 32px 14px 0}
#receipt-dialog .receipt-icon{width:48px;height:48px;border-radius:15px;font-size:26px;margin-bottom:24px;background:#eaf3ff;color:#0071e3}
#receipt-dialog .receipt-description{font-size:15px;color:#6e6e73;margin:0 0 28px}
#receipt-dialog .receipt-details{margin:0}
#receipt-dialog .receipt-details>div{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:start;gap:20px;padding:17px 0;border-color:#e8e8ed}
#receipt-dialog .receipt-details dt{display:flex;align-items:center;gap:6px;font-size:13px;color:#6e6e73;min-height:28px}
#receipt-dialog .receipt-details dd{font-size:13px;line-height:1.7;text-align:right;color:#1d1d1f;margin:2px 0 0;overflow-wrap:anywhere;min-width:0}
#receipt-dialog .receipt-copy{display:grid;place-items:center;width:28px;height:28px;border:0;background:none;color:#0071e3;border-radius:7px;padding:5px;cursor:pointer;flex:none}
#receipt-dialog .receipt-copy:hover{background:#eaf3ff}
#receipt-dialog .receipt-copy:focus-visible{outline:2px solid #0071e3;outline-offset:2px}
#receipt-dialog .receipt-copy svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#receipt-dialog .dialog-notice{font-size:12px;line-height:1.8;color:#6e6e73;background:#f5f5f7;border:0;padding:16px 18px;border-radius:15px;margin:23px 0}
#receipt-dialog .form-submit{min-height:48px;border-radius:999px;font-size:15px;justify-content:center;box-shadow:none;margin-top:10px}
#receipt-dialog #download-order{border:0;background:transparent;color:#0071e3;font-size:13px;min-height:38px;margin-top:5px}
.payment-main{max-width:620px;padding:32px 40px;background:#fff;border-radius:30px}
.payment-main>p:not(.eyebrow){font-size:14px;color:#6e6e73;line-height:1.6}
.payment-main #payment-panel,#payment-dialog .payment-card{border:0;background:#fff;padding:0;border-radius:0}
:is(.payment-main,#payment-dialog) .payment-head{padding:8px 0 14px;border-bottom:1px solid #e8e8ed;gap:10px}
:is(.payment-main,#payment-dialog) #payment-state{font-size:13px;font-weight:500;color:#6e6e73}
:is(.payment-main,#payment-dialog) #payment-refresh{border:0;background:none;color:#0071e3;font-size:12px;font-weight:400;min-height:32px;padding:5px 0;box-shadow:none}
:is(.payment-main,#payment-dialog) .payment-meta{font-size:10px;color:#86868b;text-align:center;margin:16px 0 10px;overflow-wrap:anywhere}
.payment-method-brand{display:flex;justify-content:center;align-items:center;gap:9px;font-size:13px;color:#6e6e73;margin-top:14px}
.payment-method-brand img{width:36px;height:36px;border-radius:8px;object-fit:contain}
:is(.payment-main,#payment-dialog) .payment-total{text-align:center;font-size:46px;font-weight:650;letter-spacing:-.045em;color:#1d1d1f;line-height:1.2;margin:13px 0 20px}
.payment-recipient-row{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:16px 0;border-block:1px solid #e8e8ed;margin:0;font-size:13px;line-height:1.8;color:#86868b}
.payment-recipient-row strong{color:#1d1d1f;font-weight:500;overflow-wrap:anywhere;text-align:right;min-width:0}
#payment-recipient-label{flex:none}
#payment-crypto-details{padding:7px 0 0;font-size:12px;line-height:1.8;color:#6e6e73;overflow-wrap:anywhere}
#payment-crypto-details p{margin:9px 0}
#payment-crypto-details .button{display:flex;width:100%;justify-content:center;margin-top:16px;border:0;background:#f5f5f7;border-radius:12px;min-height:44px;color:#0071e3;font-size:13px;font-weight:400;box-shadow:none}
:is(.payment-main,#payment-dialog) #payment-instructions{font-size:12px;line-height:1.8;color:#86868b;margin:19px 0;text-align:center}
.payment-qr-window{position:relative;width:min(240px,100%);aspect-ratio:1;margin:20px auto 10px;overflow:hidden;background:#fff;border-radius:14px}
:is(.payment-main,#payment-dialog) .payment-qr-window .payment-qr-image{position:absolute;display:block;width:179.1044776%;max-width:none;height:auto;left:-39.5522388%;top:-69.8507463%;margin:0;border-radius:0}
:is(.payment-main,#payment-dialog) #payment-download{display:flex;width:fit-content;min-height:36px;margin:0 auto 20px;padding:7px 12px;border:0;background:none;color:#0071e3;font-size:12px;font-weight:400;box-shadow:none}
:is(.payment-main,#payment-dialog) #payment-claim-note{font-size:11px;color:#86868b;line-height:1.7;text-align:center;margin:24px 0 10px}
:is(.payment-main,#payment-dialog) #payment-submit{justify-content:center;border-radius:999px;min-height:50px;font-size:15px;box-shadow:none;width:100%;margin:0}
:is(.payment-main,#payment-dialog) .timeline{font-size:12px;margin:24px 0;padding-left:15px}
:is(.payment-main,#payment-dialog) .timeline:empty{display:none}
:is(.payment-main,#payment-dialog) .timeline li{margin:14px 0;padding-left:15px}
:is(.payment-main,#payment-dialog) .timeline p{font-size:12px;color:#86868b}
:is(.payment-main,#payment-dialog) .timeline small{font-size:10px;color:#86868b}
:is(.payment-main,#payment-dialog) .payment-actions{display:flex;justify-content:center;gap:22px;padding-top:18px;border-top:1px solid #e8e8ed;margin:24px 0 0}
:is(.payment-main,#payment-dialog) .payment-actions .button{min-height:30px;flex:none;border:0;background:none;padding:3px 0;font-size:12px;font-weight:400;color:#0071e3;box-shadow:none}
@media(max-width:540px){
 #receipt-dialog,#payment-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:25px}
 :is(#receipt-dialog,#payment-dialog) .dialog-wrap{padding:36px 23px 24px}
 :is(#receipt-dialog,#payment-dialog) h2,.payment-main h1{font-size:28px}
 #receipt-dialog .receipt-details>div{grid-template-columns:1fr;gap:7px;padding:14px 0}
 #receipt-dialog .receipt-details dd{text-align:left;margin:0;font-size:13px}
 #receipt-dialog .receipt-details dt{font-size:12px}
 #receipt-dialog .receipt-description{font-size:13px;margin-bottom:20px}
 .payment-main{margin:20px 8px;padding:28px 23px;border-radius:25px}
 :is(.payment-main,#payment-dialog) .payment-total{font-size:40px}
 .payment-recipient-row{gap:12px;font-size:12px}
 .payment-recipient-row:has(#payment-recipient-label) strong{max-width:73%}
}

@media(max-width:540px){#checkout-dialog .checkout-method{padding-right:25px}#checkout-dialog .checkout-method small{white-space:nowrap;font-size:9.5px}}

:is(.payment-main,#payment-dialog) .payment-qr-window .payment-qr-image[data-qr-asset="alipay-128"]{width:193.5483871%;left:-46.7741935%;top:-79.5161290%}
