.pay-overlay { position:fixed; inset:0; z-index:9500; display:grid; place-items:center; overflow-y:auto; padding:24px; background:#1620198c; backdrop-filter:blur(8px); }
.pay-dialog { position:relative; width:min(430px,100%); max-height:calc(100dvh - 48px); overflow-y:auto; padding:30px 32px 23px; border:1px solid var(--line); border-radius:16px; background:var(--card); color:var(--ink); text-align:center; box-shadow:0 24px 90px #13201830; animation:account-enter .25s ease; }
.pay-dialog:focus { outline:none; }.pay-close { position:absolute; top:12px; right:13px; width:34px; height:34px; border:0; border-radius:50%; color:var(--ink-3); background:var(--card-2); font-size:23px; cursor:pointer; }
.pay-dialog h2 { margin:11px 0 9px; font-size:25px; line-height:1.4; font-weight:600; }.pay-subtitle { font-size:12px; color:var(--ink-3); line-height:1.8; }
.pay-amount { display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:4px; margin:17px 0; font-variant-numeric:tabular-nums; }.pay-amount > span:first-child { font-size:17px; }.pay-amount strong { font:400 39px/1.2 'Fraunces',Georgia,serif; letter-spacing:-.035em; }.pay-credits { flex-basis:100%; font-size:11px; color:var(--ink-3); margin-top:7px; }
.pay-qr { width:208px; height:208px; max-width:100%; margin:auto; background:white; color:#252c25; border:1px solid #dce0d3; border-radius:9px; overflow:hidden; display:grid; place-items:center; font-size:12px; }.pay-qr svg { display:block; width:100%; height:100%; }
.pay-result { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; min-height:150px; margin:14px 0 10px; color:var(--ink-3); }.pay-result > span { display:grid; place-items:center; width:70px; height:70px; border:1px solid var(--line); border-radius:50%; font-size:34px; background:var(--card-2); }.pay-result strong { font-size:20px; font-weight:500; }.pay-result.is-paid { color:var(--ok); }.pay-result.is-paid > span { background:#64845415; border-color:#64845445; }
.pay-countdown { color:var(--ink-3); font-size:11px; margin:12px 0 8px; font-variant-numeric:tabular-nums; }.pay-countdown:empty { display:none; }.pay-message { min-height:38px; display:grid; place-items:center; font-size:12px; line-height:1.7; color:var(--ink-2); margin:8px 0 14px; }
.pay-actions { display:grid; gap:9px; }.pay-actions .primary-button { background:var(--forest); color:#f2f4e8; border-color:var(--forest); box-shadow:none; border-radius:7px; min-height:42px; }.pay-actions .ghost-button { min-height:42px; background:transparent; }.pay-order-ref { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin-top:18px; font-size:9px; color:var(--ink-3); overflow-wrap:anywhere; }.pay-order-ref .text-button { font-size:10px; text-decoration:underline; text-underline-offset:3px; }
.pay-footer { margin-top:18px; padding-top:15px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:12px; }.pay-footer .text-button { font-size:11px; }.pay-cancel-confirm { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }.pay-cancel-confirm p { font-size:11px; color:var(--ink-3); line-height:1.7; margin-bottom:12px; }.pay-cancel-confirm button { margin:0 3px; }
.pay-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; font-size:12px; border:1px solid var(--line); background:var(--card-2); border-radius:8px; margin-bottom:22px; }.pay-notice button { flex-shrink:0; }
.pay-dialog { padding-top:24px; padding-bottom:20px; }
.pay-qr { width:184px; height:184px; }
.pay-amount { margin:12px 0; }
.pay-message { margin-bottom:10px; }
.pay-order-ref { margin-top:12px; }
.pay-footer { margin-top:12px; padding-top:12px; }
@media(max-width:540px){.pay-overlay {padding:14px;}.pay-dialog {max-height:calc(100dvh - 28px);padding:24px 22px 20px;}.pay-dialog h2 {font-size:23px;}.pay-qr {width:190px;height:190px;}.pay-amount {margin:13px 0;}.pay-message {margin:7px 0 12px;}.pay-order-ref {font-size:9px;}}
@media(prefers-reduced-motion:reduce){.pay-dialog {animation:none;}}
