/* One-screen offer: preserve exact approved art, fit available viewport height, retain 44px actions. */
dialog.cq-offer-dialog{position:fixed;inset:0;width:100%;height:100vh;height:100svh;height:100dvh;max-width:none;max-height:none;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box;border:0;border-radius:0;background:#04131e;color:#eefaff;overflow:hidden;overscroll-behavior:contain;--cq-offer-vh:100vh;font:15px/1.5 system-ui,sans-serif}
.cq-offer-dialog *{box-sizing:border-box}
.cq-offer-dialog .cq-offer{position:relative;width:100%;height:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0}
.cq-offer-dialog .cq-offer-art{position:relative;flex:none;width:min(100%,560px,max(0px,calc((var(--cq-offer-vh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 44px) * 941 / 1512)));line-height:0}
.cq-offer-dialog img{display:block;width:100%;height:auto}
.cq-offer-dialog #cqPayBuy{position:absolute;left:6.25%;width:87.5%;top:min(85.01455%,calc(100% - 44px));height:7.18783%;min-height:44px;margin:0;padding:0;background:transparent;border:0;border-radius:10px;cursor:pointer;touch-action:manipulation}
.cq-offer-dialog #cqPayBuy:hover{background:#ffffff12;box-shadow:0 0 18px #ffe18d60}
.cq-offer-dialog .cq-offer-close{position:absolute;z-index:2;right:8px;top:8px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #58869d;border-radius:10px;background:#061621e8;color:#fff;font:28px/1 system-ui}
.cq-offer-dialog .cq-offer-support{flex:0 0 44px;height:44px;width:100%;text-align:center;padding:0 4px;background:#04131e}
.cq-offer-dialog .cq-offer-support p{height:20px;line-height:20px;margin:0;font-size:12px;color:#c0d4df}.cq-offer-dialog .cq-offer-links{display:flex;align-items:center;justify-content:center;height:44px;gap:6px}
.cq-offer-dialog .cq-offer-support a{display:inline-block;width:auto;margin:0;padding:0 12px;line-height:44px;font-size:13px;min-height:44px;border:0;background:none;color:#8feaff}
.cq-offer-dialog #cqPayLater{display:inline-block;width:auto;min-width:64px;height:44px;min-height:44px;margin:0;padding:0 12px;font:13px/44px system-ui;border:0;background:transparent;color:#c0d4df}
.cq-offer-dialog :focus-visible{outline:3px solid #fff;outline-offset:3px}
.cq-offer-dialog .cq-offer-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@supports(height:100svh){dialog.cq-offer-dialog{--cq-offer-vh:100svh}}
@supports(height:100dvh){dialog.cq-offer-dialog{--cq-offer-vh:100dvh}}
body.cq-offer-preview{margin:0;background:#020c15}

/* The payment choice shares ChartQuest typography and palette; prices are server-owned. */
@font-face{font-family:CQBarlow;src:url('/assets/fonts/Barlow-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:CQBarlow;src:url('/assets/fonts/Barlow-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
dialog.cq-payment-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:420px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #3e6979;border-radius:20px;background:linear-gradient(155deg,#102c3c,#04111c);color:#eefaff;font:16px/1.4 CQBarlow,sans-serif;box-shadow:0 24px 100px #0009}
dialog.cq-payment-dialog::backdrop{background:#010811e8}
.cq-payment-dialog *{box-sizing:border-box}.cq-payment-dialog .cq-payment-logo{display:block;width:160px;height:auto;margin:0 auto 12px}.cq-payment-dialog h2{text-align:center;font-size:26px;margin:0 0 6px;letter-spacing:-.4px}.cq-payment-dialog .cq-payment-lead{text-align:center;color:#bdd4df;margin:0 0 22px}.cq-payment-dialog .cq-method{width:100%;display:grid;grid-template-columns:1fr auto;gap:4px 12px;min-height:90px;margin:0 0 12px;padding:16px;text-align:left;border:1px solid #426879;border-radius:12px;background:#102536;color:#eefaff;font:600 18px CQBarlow,sans-serif;cursor:pointer}.cq-payment-dialog .cq-method strong{color:#ffb16a;font-size:25px;grid-row:1/3;grid-column:2;align-self:center}.cq-payment-dialog .cq-method small{font-size:11px;color:#bdcdd6}.cq-payment-dialog .cq-method-detail{font-size:13px;font-weight:400;color:#bdd4df}.cq-payment-dialog .cq-method-crypto{border-color:#46b5a5;background:#0b302f}.cq-payment-dialog .cq-method-crypto strong{color:#7fe1cb}.cq-payment-dialog .cq-method:disabled{opacity:.55;cursor:default}.cq-payment-dialog .cq-payment-note{font-size:13px;color:#b3cad6;margin:16px 0 8px;text-align:center}.cq-payment-dialog .cq-payment-refund{display:block;line-height:44px;text-align:center;color:#81d9ce;font-size:14px}.cq-payment-dialog .cq-payment-back{display:block;width:100%;min-height:44px;margin:0;padding:8px;background:transparent;color:#d4e5ed;border:1px solid #426879;border-radius:10px;font:600 16px CQBarlow,sans-serif}.cq-payment-dialog :focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-height:600px){dialog.cq-payment-dialog{padding:16px}.cq-payment-dialog .cq-payment-logo{width:120px;margin-bottom:6px}.cq-payment-dialog h2{font-size:22px}.cq-payment-dialog .cq-payment-lead{margin-bottom:14px}.cq-payment-dialog .cq-method{min-height:74px;padding:12px;margin-bottom:8px}.cq-payment-dialog .cq-payment-note{margin-top:10px}}

/* Custom crypto step: approved midnight/orange/turquoise purchase language. */
dialog.cq-crypto-dialog{width:calc(100% - 24px);max-width:520px;padding:20px;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));border-color:#427079;background:radial-gradient(ellipse at 50% 0,#16414955,transparent 55%),linear-gradient(155deg,#102a38,#05131e 70%);box-shadow:0 20px 90px #0009,0 0 0 1px #62b2a018 inset}
.cq-crypto-dialog [hidden]{display:none!important}.cq-crypto-dialog button,.cq-crypto-dialog a{touch-action:manipulation}.cq-crypto-head{position:relative;min-height:45px}.cq-crypto-dialog .cq-payment-logo{width:145px;margin:0 auto 8px}.cq-crypto-dialog .cq-crypto-close{position:absolute;right:-6px;top:-6px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #365b67;border-radius:11px;background:#071824;color:#cadce1;font:28px/1 CQBarlow,sans-serif}
.cq-checkout-steps{display:flex;justify-content:center;align-items:center;gap:8px;color:#7496a5;font-size:11px;line-height:16px;margin:0 0 10px}.cq-checkout-steps .is-active{color:#8ce1c9}.cq-checkout-steps i{height:1px;width:22px;background:#365563}.cq-crypto-dialog h2{font-weight:600;margin:0;text-align:center;font-size:27px;line-height:1.15;color:#f1f5e9}.cq-crypto-dialog .cq-crypto-price{margin:8px 0 16px;text-align:center;font-weight:600;font-size:35px;line-height:1.1;color:#ffe297;letter-spacing:-.8px}.cq-crypto-price span{display:block;margin-top:4px;font-size:12px;letter-spacing:.2px;font-weight:400;color:#adc5d0}.cq-crypto-body[aria-busy=true]{opacity:.6;pointer-events:none}.cq-crypto-intro{margin:0 0 10px;font-size:14px;color:#c6dbe1;text-align:center}
.cq-coin-options{display:grid;gap:8px}.cq-crypto-dialog .cq-coin-choice{position:relative;display:grid;grid-template-columns:38px 1fr auto;grid-template-rows:auto auto;align-items:center;gap:0 10px;width:100%;min-height:58px;padding:9px 12px;margin:0;text-align:left;border:1px solid #345663;border-radius:12px;background:#081c28;color:#eff5f2;font:600 16px/1.2 CQBarlow,sans-serif;cursor:pointer}.cq-coin-choice.is-selected{border-color:#79d9bc;background:#0e332f!important;box-shadow:0 0 0 1px #78d9bd26 inset}.cq-coin-choice small{grid-column:2;font-size:12px;font-weight:400;color:#a3c0cd;line-height:1.2}.cq-coin-title{align-self:end}.cq-crypto-dialog .cq-coin-mark{display:grid;place-items:center;grid-row:1/3;align-self:center;min-width:34px;height:34px;border:1px solid #78cbb655;border-radius:10px;background:linear-gradient(135deg,#214846,#0b242f);color:#acf3dc;font:600 11px CQBarlow,sans-serif;letter-spacing:.4px}.cq-coin-choice[data-code=btc] .cq-coin-mark{color:#ffcc87;border-color:#bc895f66;background:#392c20}.cq-coin-tag{grid-column:3;grid-row:1/3;font-size:11px;font-weight:400;color:#e9c67f}.cq-crypto-dialog .cq-crypto-primary{display:block;box-sizing:border-box;width:100%;min-height:46px;margin:12px 0 0;padding:11px 12px;border:1px solid #f1d394;border-radius:11px;background:linear-gradient(150deg,#ffe999,#eeb957);color:#142027;font:600 17px/1.2 CQBarlow,sans-serif;text-align:center;text-decoration:none;box-shadow:0 2px 0 #7b6236;cursor:pointer}.cq-crypto-primary:hover{filter:brightness(1.06)}.cq-crypto-primary:disabled,.cq-wallet[aria-disabled=true]{opacity:.45;cursor:default;box-shadow:none;filter:none}.cq-crypto-small{margin:10px 0 0;font-size:12px;line-height:1.35;color:#95b4c1;text-align:center}.cq-crypto-dialog .cq-crypto-message{min-height:17px;margin:12px 0 0;color:#acdacf;font-size:13px;line-height:1.35;text-align:center}.cq-crypto-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:0 16px;margin-top:12px;padding-top:10px;border-top:1px solid #36566288}.cq-crypto-dialog .cq-payment-back{min-height:44px;margin:0;width:auto;min-width:72px;padding:8px 14px;border-color:#355763;background:#081e2b;color:#c6d9e0;font-size:14px}.cq-crypto-footer a{display:inline-flex;align-items:center;width:auto;margin:0;padding:0;min-height:44px;line-height:1.2;border:0;background:transparent;color:#81cab8;font-size:12px;text-decoration:none}
.cq-asset-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;font-size:14px}.cq-asset-line .cq-coin-mark{height:30px;min-width:32px;border-radius:8px}.cq-network{font-size:11px;color:#97bbc8}.cq-quote-time{margin-left:auto;color:#96b8bf;font-size:11px}.cq-quote-time b{display:block;color:#d7eee3;font:600 16px/1 CQBarlow,sans-serif;letter-spacing:1px}
.cq-deposit-grid{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:center}.cq-qr{position:relative;text-align:center}.cq-qr-code{position:relative;width:160px;height:160px;border-radius:12px;overflow:hidden;background:#fff;border:5px solid #fff;box-sizing:border-box}.cq-qr-code svg{display:block;width:100%;height:100%;shape-rendering:geometricPrecision}.cq-qr>span{display:block;color:#95b6bf;font-size:11px;margin-top:8px}.cq-field-label{display:block;color:#89aaa7;font-size:11px;margin:0 0 5px}.cq-amount-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cq-send-amount{color:#edf9ef;font:600 23px/1.15 CQBarlow,sans-serif;overflow-wrap:anywhere;letter-spacing:.2px}.cq-crypto-dialog .cq-copy{flex:none;display:inline-block;width:auto;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid #42736c;border-radius:9px;background:#15342f;color:#a8e5ce;font:600 12px CQBarlow,sans-serif;cursor:pointer}.cq-copy:disabled{opacity:.4;cursor:default}.cq-network-rule{font-size:12px;color:#a1cdbf;line-height:1.3;margin:6px 0 12px}.cq-address-row{display:flex;gap:5px;align-items:center}.cq-payment-address{box-sizing:border-box;min-width:0;width:100%;height:44px;padding:8px;border:1px solid #345a63;border-radius:9px;background:#071a25;color:#bdd0d9;font:12px ui-monospace,monospace;outline-offset:3px}.cq-crypto-dialog .cq-wallet{font-size:15px;margin-top:12px}.cq-crypto-dialog .cq-refresh{font-size:15px;margin-top:12px}
.cq-confirmation-track{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 8px;margin-top:16px;border-top:1px solid #315260;border-bottom:1px solid #315260;font-size:12px;color:#7c9dac}.cq-confirmation-track span{display:flex;align-items:center;gap:6px}.cq-confirmation-track b{display:grid;place-items:center;width:19px;height:19px;border:1px solid #395b64;border-radius:50%;font:600 10px CQBarlow,sans-serif}.cq-confirmation-track .is-active{color:#adedd4}.cq-confirmation-track .is-active b{border-color:#74c9ae;background:#1d4840;color:#d7f9e9}.cq-wallet-fee{margin:8px 0 0;color:#8cacb9;font-size:11px;line-height:1.25;text-align:center}.cq-quote-expired .cq-qr-code svg,.cq-deposit-started .cq-qr-code svg{visibility:hidden}.cq-quote-expired .cq-qr-code::after,.cq-deposit-started .cq-qr-code::after{position:absolute;inset:0;display:grid;place-items:center;content:'Quote expired';padding:10px;background:#0c252a;color:#f6d08a;font:600 16px/1.3 CQBarlow,sans-serif}.cq-deposit-started .cq-qr-code::after{content:'See payment status';color:#a7ecd0}.cq-quote-expired .cq-send-amount{color:#869ba1}.cq-payment-success{text-align:center;padding:10px 0 20px}.cq-success-seal{display:grid;place-items:center;width:84px;height:84px;margin:6px auto 20px;background:radial-gradient(circle,#2e6351,#123b32);border:1px solid #81d8b9;border-radius:50%;box-shadow:0 0 32px #63cba926;color:#c4f6dc;font:44px/1 CQBarlow,sans-serif}.cq-payment-success h3{font-size:25px;margin:0 0 8px;color:#f0f3de}.cq-payment-success p{color:#afc6d0;font-size:15px;margin:0 0 24px}
.cq-preview-tools{width:100%;display:flex;gap:6px;justify-content:center;align-items:center;margin-top:8px;border-top:1px dashed #426779;padding-top:8px}.cq-preview-tools span{font-size:10px;color:#91afbe}.cq-crypto-dialog .cq-preview-tools button{width:auto;min-height:44px;padding:5px 8px;margin:0;border:1px solid #47646d;border-radius:6px;background:#142a35;color:#d6e3e6;font:11px CQBarlow,sans-serif}
@media(max-width:450px){dialog.cq-crypto-dialog{padding:16px}.cq-deposit-grid{grid-template-columns:126px 1fr;gap:12px}.cq-qr-code{width:126px;height:126px;border-width:3px}.cq-send-amount{font-size:21px}.cq-amount-row .cq-copy{min-height:44px;padding:5px;min-width:44px}.cq-asset-name{font-size:13px}.cq-asset-line{gap:6px}.cq-crypto-dialog .cq-crypto-price{font-size:31px;margin-bottom:12px}.cq-crypto-footer{margin-top:8px;padding-top:8px}.cq-crypto-dialog .cq-crypto-message{margin-top:9px;font-size:12px}.cq-confirmation-track{margin-top:12px;padding:8px 4px}}
@media(max-width:350px){.cq-deposit-grid{grid-template-columns:110px 1fr;gap:10px}.cq-qr-code{width:110px;height:110px}.cq-send-amount{font-size:18px}.cq-network-rule{font-size:11px}.cq-asset-line .cq-network{width:auto;font-size:10px}.cq-crypto-dialog .cq-wallet,.cq-crypto-dialog .cq-refresh{font-size:13px;padding:10px 6px}.cq-crypto-dialog .cq-copy{padding:6px;min-width:44px}.cq-crypto-dialog .cq-payment-address{font-size:10px}}
@media(max-height:700px){.cq-crypto-dialog .cq-payment-logo{width:125px;margin-bottom:5px}.cq-checkout-steps{margin-bottom:6px}.cq-crypto-dialog h2{font-size:24px}.cq-crypto-dialog .cq-crypto-price{margin:6px 0 10px;font-size:30px}.cq-crypto-dialog .cq-coin-choice{min-height:51px;padding:7px 10px}.cq-coin-options{gap:6px}.cq-crypto-intro{margin-bottom:8px}.cq-crypto-dialog .cq-crypto-primary{margin-top:10px;min-height:44px;font-size:15px}.cq-crypto-small{margin-top:8px;font-size:11px}.cq-crypto-dialog .cq-crypto-message{font-size:12px;margin-top:8px}.cq-crypto-footer{margin-top:8px;padding-top:8px}}
.cq-crypto-dialog .cq-coin-mark,.cq-crypto-dialog .cq-coin-choice[data-code=btc] .cq-coin-mark{background:none;border:0;border-radius:0;box-shadow:none}.cq-crypto-dialog .cq-coin-mark img{display:block;width:32px;height:32px;object-fit:contain;filter:none;box-shadow:none}.cq-asset-line .cq-coin-mark img{width:28px;height:28px}

.cq-status-unknown .cq-qr-code svg{visibility:hidden}.cq-status-unknown .cq-qr-code::after{position:absolute;inset:0;display:grid;place-items:center;content:"Checking payment";padding:10px;background:#0c252a;color:#f6d08a;font:600 16px/1.3 CQBarlow,sans-serif}
