.checkout-dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; color: var(--ink); background: var(--reading-surface, #fff); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 100px rgb(0 0 0 / 25%); }
.checkout-dialog::backdrop { background: rgb(10 16 30 / 65%); backdrop-filter: blur(4px); }
.checkout-status-row { display:flex; align-items:center; gap:12px; padding:14px; margin:14px 0; border-radius:10px; background:var(--reading-soft); }
.checkout-status-row #checkout-status { padding:0; margin:0; flex:1; }
.checkout-wait-spinner { width:23px; height:23px; flex:0 0 23px; border:3px solid var(--line); border-top-color:var(--reading-accent); border-radius:50%; animation:checkout-wait 1s linear infinite; }
.checkout-dialog[data-payment-state="paid"] .checkout-status-row { background:#dcf6e7; color:#125b35; }
@keyframes checkout-wait { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .checkout-wait-spinner { animation:none; border-top-color:var(--reading-accent); } }
.checkout-heading { display:flex; align-items: flex-start; justify-content:space-between; gap:12px; }
.checkout-heading small { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.1em; }
.checkout-heading h2 { margin:8px 0; font-size:23px; }
#checkout-close { width:44px; height:44px; flex-shrink:0; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--canvas); font-size:26px; cursor:pointer; }
#checkout-status { padding:14px; border-radius:10px; background:var(--reading-soft); font-size:13px; line-height:1.8; }
.checkout-qr { text-align:center; }
#checkout-qr { display:block; width:min(260px, 100%); margin:16px auto; border-radius:12px; background:#fff; }
.checkout-info { margin:16px 0; }
.checkout-info > div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.checkout-info dt { color:var(--muted); flex-shrink:0; }
.checkout-info dd { text-align:right; margin:0; overflow-wrap:anywhere; min-width:0; font-weight:650; }
.checkout-info button { display:block; margin:6px 0 0 auto; padding:6px 10px; min-height:36px; border:1px solid var(--line); border-radius:8px; color:var(--reading-accent); background:var(--canvas); cursor:pointer; }
.checkout-amount dd { font-size:23px; color:var(--reading-accent); }
.checkout-warning, #checkout-expiry, #checkout-feedback { font-size:12px; line-height:1.8; color:var(--muted); }
#checkout-check { width:100%; min-height:46px; margin:6px 0; }
@media(max-width:480px) { .checkout-dialog {padding:18px;} .checkout-info > div {gap:10px;font-size:12px;} .checkout-amount dd {font-size:20px;} }
