.checkout,.payment-dialog{--checkout-surface:var(--paper-card,#fff);--checkout-ink:var(--paper-ink,#263b2e);--checkout-muted:var(--paper-muted,#6d786e);--checkout-line:var(--paper-line,#dfe5df);--checkout-accent:var(--paper-green,#315c46);--checkout-soft:#edf1e7;color:var(--checkout-ink)}.checkout [hidden],.payment-dialog [hidden]{display:none!important}.checkout{max-width:960px;margin:0 auto;padding:clamp(20px,3vw,32px);background:var(--checkout-surface);border-color:var(--checkout-line)}.checkout-test{padding:12px 14px;margin:0 0 18px!important;border:1px solid #d9770670;background:#f59e0b16;border-radius:9px;font-size:13px}.checkout-title-copy h1,.payment-dialog-heading h2{font-size:26px;font-weight:650;letter-spacing:-.04em;line-height:1.3;margin:0}.checkout-title-copy>p{font-size:12px;line-height:1.7;color:var(--checkout-muted);margin:7px 0 0}.checkout-title-copy{position:relative}[data-payment-state=paid]>.payment-dialog-heading .checkout-title-copy,[data-payment-state=paid]>.checkout-page-heading{padding-left:48px}[data-payment-state=paid]>.payment-dialog-heading .checkout-title-copy:before,[data-payment-state=paid]>.checkout-page-heading:before{content:"✓";position:absolute;left:0;top:2px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--checkout-soft);color:var(--checkout-accent);font-size:19px;font-weight:650}.checkout-page-heading{padding-bottom:24px}.checkout-heading{display:flex;align-items:center;gap:14px;padding:17px 0}.checkout-product-cover{position:relative;display:grid;place-items:center;width:76px;height:58px;flex:none;overflow:hidden;border:1px solid var(--checkout-line);border-radius:8px;background:var(--checkout-soft);color:var(--checkout-accent)}.checkout-product-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.checkout-product-copy{min-width:0;flex:1}.checkout .checkout-heading h2{font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.02em;margin:0 0 5px}.checkout-heading .portal-meta{font-size:10px;line-height:1.6;opacity:1;color:var(--checkout-muted);margin:0;overflow-wrap:anywhere}.checkout-total{flex:none;font-size:23px;font-weight:650;white-space:nowrap;letter-spacing:-.04em;margin:0!important}.checkout-total span{font-size:14px;margin-left:1px}.checkout-status{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--checkout-line);border-bottom:1px solid var(--checkout-line);margin:8px 0 16px}.checkout-status p{flex:1;margin:0;font-size:12px;line-height:1.7;color:var(--checkout-muted)}.checkout-badge{display:inline-block;flex:none;border-radius:6px;padding:6px 9px;background:var(--checkout-soft);font-size:11px;font-weight:600}[data-payment-state=expired] .checkout-badge,[data-payment-state=cancelled] .checkout-badge{background:#f59e0b25}.checkout-deadline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 0 16px}.checkout-deadline>div{display:flex;align-items:center;gap:12px;font-size:12px}.checkout-deadline strong{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.03em}.checkout .portal-meta{font-size:11px;line-height:1.7}.checkout-payment{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:28px;padding-top:6px}.checkout h3{font-weight:600;font-size:14px;margin:0 0 10px}.checkout-qr-column{text-align:center}.checkout-qr-frame{background:#fff;border:1px solid var(--checkout-line);border-radius:12px;padding:8px;margin:0 auto 12px;max-width:280px;overflow:hidden}.checkout-qr-frame img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.checkout-qr-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.checkout-qr-column>.portal-meta{margin-top:12px}.checkout-transfer>.portal-meta{color:var(--checkout-muted);margin-bottom:8px}.checkout-field{padding:11px 0;border-bottom:1px solid var(--checkout-line)}.checkout-field dt{font-size:11px;color:var(--checkout-muted);margin-bottom:5px}.checkout-field dd{display:flex;align-items:center;gap:10px;justify-content:space-between;min-width:0}.checkout-field strong{overflow-wrap:anywhere;min-width:0;font-weight:600;font-size:14px}.checkout-copy{flex:none;min-height:34px;padding:6px 9px;border:1px solid var(--checkout-line);border-radius:6px;font-size:11px;cursor:pointer}.checkout-copy:hover{background:var(--checkout-soft)}.checkout .portal-button,.payment-dialog .portal-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;font-size:12px;font-weight:600;line-height:1.5;border:1px solid var(--checkout-accent);border-radius:8px;background:var(--checkout-accent);color:#fff;text-decoration:none}.checkout .portal-button.secondary,.payment-dialog .portal-button.secondary{background:transparent;border-color:var(--checkout-line);color:inherit}.checkout .portal-button:hover{filter:brightness(.96)}.checkout .portal-note{background:var(--checkout-soft);font-size:11px;line-height:1.8;padding:12px;border-radius:8px}.checkout-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}.checkout-detail-link{font-size:11px;color:var(--checkout-muted);text-decoration:underline;text-underline-offset:3px;padding:8px 0}#payment-feedback:empty{display:none}.checkout-fulfillment{border-top:1px solid var(--checkout-line);padding-top:22px}.checkout-success-actions,.checkout-downloads{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.checkout-download:before{content:"↓";font-size:18px;line-height:1;font-weight:500}.checkout .checkout-file-meta{font-size:10px;line-height:1.7;color:var(--checkout-muted);overflow-wrap:anywhere;margin:10px 0 0}.checkout-recommendations{border-top:1px solid var(--checkout-line);margin-top:27px;padding-top:20px}.checkout-recommendations>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.checkout-recommendations h3{font-size:14px;margin:0}.checkout-recommendations>header>a{display:inline-flex;align-items:center;gap:5px;color:var(--checkout-muted);font-size:10px;min-height:32px}.checkout-suggestion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.checkout-suggestion{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--checkout-line);border-radius:10px;min-width:0;transition:border-color .15s,background .15s}.checkout-suggestion:hover{background:var(--checkout-soft);border-color:var(--checkout-accent)}.checkout-suggestion-cover{display:grid;place-items:center;width:53px;height:62px;position:relative;flex:none;border-radius:5px;overflow:hidden;background:var(--checkout-soft);color:var(--checkout-accent)}.checkout-suggestion-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.checkout-suggestion>div:nth-child(2){min-width:0;flex:1}.checkout-suggestion h4{font-size:11px;font-weight:550;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 6px}.checkout-suggestion strong{font-size:11px;font-weight:650;color:var(--checkout-accent)}.checkout-suggestion>svg{flex:none;color:var(--checkout-muted)}.checkout button:focus-visible,.checkout a:focus-visible,.payment-dialog button:focus-visible,.payment-dialog a:focus-visible{outline:2px solid var(--checkout-accent);outline-offset:3px}.payment-dialog{width:min(900px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--checkout-line);border-radius:18px;background:var(--checkout-surface);box-shadow:0 24px 100px #15281f40;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.payment-dialog::backdrop{background:#182b23a6;backdrop-filter:blur(5px)}.payment-dialog-heading{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 26px 20px;background:var(--checkout-surface);border-bottom:1px solid var(--checkout-line)}.payment-dialog-close{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid var(--checkout-line);border-radius:50%;font-size:25px;line-height:1;cursor:pointer;background:transparent}.payment-dialog-close:hover{background:var(--checkout-soft)}.payment-dialog .checkout{border:0;border-radius:0;padding:4px 26px 25px}.payment-dialog-loading,.payment-dialog-error{padding:28px 26px;font-size:13px;line-height:1.8}.payment-dialog-error p{margin-bottom:14px;color:#b1412e}.payment-dialog-error>a{margin-left:14px}.dark .checkout,.dark .payment-dialog{--checkout-surface:#191f1b;--checkout-ink:#e1e9e2;--checkout-muted:#a4b0a7;--checkout-line:#39463c;--checkout-accent:#456c51;--checkout-soft:#29372b}@media(max-width:760px){.checkout-payment{grid-template-columns:minmax(0,1fr);gap:24px}.checkout-status{align-items:flex-start;flex-direction:column;gap:8px}.checkout-heading{gap:11px;flex-wrap:wrap}.checkout-product-cover{width:58px;height:58px}.checkout .checkout-heading h2{font-size:14px}.checkout-product-copy{flex-basis:calc(100% - 75px)}.checkout-total{font-size:19px;margin-left:69px!important}.checkout-total span{font-size:12px}.checkout-title-copy h1,.payment-dialog-heading h2{font-size:23px}.checkout-title-copy>p{font-size:12px}.checkout-suggestion-grid{grid-template-columns:minmax(0,1fr)}.checkout-suggestion-cover{width:48px;height:48px}.checkout-suggestion h4{-webkit-line-clamp:2;font-size:12px}.checkout-suggestion strong{font-size:12px}.checkout .portal-button,.checkout-copy{min-height:44px}.checkout-downloads{flex:1;min-width:130px}.checkout-downloads .portal-button{flex:1}.checkout-success-actions{align-items:flex-start;gap:8px}.checkout-fulfillment{padding-top:18px}.payment-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.payment-dialog-heading{padding:20px 18px 16px;gap:10px}.payment-dialog .checkout{padding:4px 18px 20px}.payment-dialog-loading,.payment-dialog-error{padding:24px 18px}}@media(prefers-reduced-motion:reduce){.checkout-suggestion{transition:none}}
