/* Shared USDT presentation. Payment state and amounts remain in app.js. */
.payment-checkout{--checkout-bg:#192430;--checkout-panel:#263341;--checkout-ink:#f6f8fc;--checkout-muted:#b5c3d3;--checkout-mint:#45d3ad;background:var(--checkout-bg);color:var(--checkout-ink);border:1px solid #3a4a5b;border-radius:20px;padding:26px;margin-top:18px;box-sizing:border-box;min-width:0;color-scheme:dark}
.payment-checkout *{box-sizing:border-box}
.payment-checkout .checkout-heading{display:flex;align-items:center;gap:14px;border:0;background:none;padding:0;margin:0;min-height:68px}
.payment-checkout .checkout-heading h4{font-size:23px;line-height:1.25;color:var(--checkout-ink);margin:0 0 4px;font-weight:750}
.payment-checkout .checkout-heading p{margin:0;color:var(--checkout-muted);font-size:13px}
.checkout-usdt{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:50%;background:#239a7f;color:white;font-size:29px;font-weight:700}
.checkout-clock{--progress:0deg;position:relative;width:70px;height:70px;flex:none;margin-left:auto;border-radius:50%;background:conic-gradient(var(--checkout-mint) var(--progress),#364553 0);display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate}
.checkout-clock:before{content:"";position:absolute;inset:5px;background:var(--checkout-bg);border-radius:50%;z-index:-1}
.checkout-clock b{font-size:17px;font-variant-numeric:tabular-nums;color:var(--checkout-mint)}
.checkout-clock small{font-size:10px;line-height:1.4;color:var(--checkout-muted)}
.checkout-meta{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 14px;font-size:11px;color:var(--checkout-muted)}
.checkout-meta>span{border:1px solid #435060;border-radius:18px;background:#26313d;padding:7px 11px;overflow-wrap:anywhere}
.checkout-meta b{color:var(--checkout-ink);font-weight:650}
.checkout-products{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.checkout-products:empty,.checkout-network-slot:empty{display:none}
.checkout-product{display:flex;flex-direction:column;gap:4px;background:var(--checkout-panel);border:1px solid #3b4b5b;border-radius:10px;padding:10px 13px;max-width:100%;font-size:13px}
.checkout-product b{color:var(--checkout-ink)}
.checkout-product span{color:var(--checkout-muted);font-variant-numeric:tabular-nums;font-size:12px}
.checkout-networks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#263341;padding:6px;border:1px solid #465361;border-radius:15px;margin:8px 0 20px;min-width:0}
.checkout-networks button{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;min-height:55px;margin:0;border:1px solid transparent;border-radius:10px;padding:9px 12px;background:transparent;color:#f6f8fc;text-align:left;cursor:pointer;box-shadow:none}
.checkout-networks button[aria-pressed=true]{background:#244b48;border-color:#45d3ad}
.checkout-networks button:hover:not(:disabled){background:#344552}
.checkout-networks button:focus-visible{outline:2px solid #a8caff;outline-offset:2px}
.checkout-networks button:disabled{cursor:default;opacity:.62}
.checkout-network-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#425f75;color:white;font-size:11px;font-weight:750}
.checkout-networks button[aria-pressed=true] .checkout-network-icon{background:#239a7f}
.checkout-network-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.checkout-network-name b{font-size:14px;color:#f6f8fc;line-height:1.2;overflow-wrap:anywhere}
.checkout-network-name small{font-size:10px;line-height:1.3;color:#b5c3d3}
.checkout-native-network-select{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}
.checkout-network-relocated{display:none!important}
.payment-checkout .payment-result-grid{display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-areas:"qr copy";gap:28px;align-items:start;padding:0;margin-top:20px;border:0;background:transparent}
.payment-checkout .payment-result-copy{grid-area:copy;min-width:0}
.payment-checkout .exact-payment{background:none;border:0;padding:0;margin:0 0 18px;box-shadow:none}
.payment-checkout .exact-payment>span{display:block;color:var(--checkout-muted);font-size:13px;line-height:1.6}
.payment-checkout .exact-payment strong{display:block;font-size:clamp(28px,3.5vw,44px);color:var(--checkout-ink);line-height:1.25;font-weight:760;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:-.6px;margin:5px 0 10px}
.payment-checkout .exact-payment small{font-size:17px;color:var(--checkout-mint);letter-spacing:0;white-space:nowrap}
.payment-checkout .exact-payment p{color:var(--checkout-muted);font-size:12px;line-height:1.65;margin:0}
.checkout-amount-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.payment-checkout .checkout-amount-row strong{margin-bottom:0}
.checkout-address-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.checkout-address-row>span{flex:1 1 200px;min-width:0;overflow-wrap:anywhere;word-break:break-all}
.checkout-address-row>button{flex:none;word-break:normal}
.payment-checkout .payment-address-actions:empty{display:none}
.payment-checkout .quote-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;color:var(--checkout-ink)}
.payment-checkout .quote-details>div{background:transparent;padding:0;border:0;min-width:0}
.payment-checkout .quote-details dt{color:var(--checkout-muted);font-size:11px;margin:0 0 5px}
.payment-checkout .quote-details dd{color:var(--checkout-ink);font-size:13px;margin:0;overflow-wrap:anywhere}
.payment-checkout .quote-details .wide{grid-column:1/-1}
.payment-checkout .quote-details .checkout-address{padding:14px;background:var(--checkout-panel);border:1px solid #43515e;border-radius:12px}
.payment-checkout .checkout-address dd{font-size:13px;font-weight:650;line-height:1.7;overflow-wrap:anywhere;word-break:break-all}
.payment-checkout .checkout-deadline dd{font-size:12px}
.payment-checkout .payment-address-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.payment-checkout button.ghost.copy-payment-address,.payment-checkout button.ghost.copy-payment-amount{border:0;border-radius:22px;background:#456ae5;color:white;font-weight:650;min-height:44px;padding:9px 16px;font-size:12px;margin:0}
.payment-checkout button.ghost.copy-payment-address:hover,.payment-checkout button.ghost.copy-payment-amount:hover{background:#3557c5}
.payment-checkout .payment-qr{grid-area:qr;background:none;border:0;box-shadow:none;margin:0;padding:0;max-width:230px;min-width:0}
.payment-checkout .payment-qr img{display:block;width:226px;height:auto;max-width:100%;aspect-ratio:1;background:white;padding:12px;border-radius:14px;border:2px solid var(--checkout-mint);object-fit:contain}
.payment-checkout .payment-qr figcaption{display:flex;flex-direction:column;gap:6px;color:var(--checkout-muted);font-size:11px;line-height:1.6;margin-top:10px;text-align:left}
.payment-checkout .payment-qr figcaption strong{color:var(--checkout-ink);font-size:12px}
.payment-checkout .payment-receipt{background:none;border:0;padding:0;margin-top:22px}
.checkout-receipt-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.payment-checkout .checkout-more{border:0;background:transparent;color:var(--checkout-muted);padding:0;margin:0}
.payment-checkout .checkout-more summary{cursor:pointer;font-size:12px;padding:6px 0;color:var(--checkout-muted)}
.payment-checkout .checkout-more[open] .checkout-receipt-fields{margin-top:12px}
.payment-checkout .checkout-receipt-fields label{display:block;color:var(--checkout-muted);font-size:12px;margin:0;line-height:1.5}
.payment-checkout .checkout-receipt-fields input{display:block;width:100%;margin:7px 0 0;background:#263341;color:var(--checkout-ink);border:1px solid #4d5e70;border-radius:9px;min-height:44px;padding:9px 11px}
.checkout-check-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#263341;border:1px solid #43556d;border-radius:13px;padding:13px;margin-top:18px}
.payment-checkout .checkout-waiting{flex:1 1 230px;color:#c5d4e6;font-size:13px;margin:0;padding-left:18px;position:relative;line-height:1.6}
.checkout-waiting:before{content:"";position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:50%;background:#6f9eff;box-shadow:0 0 0 4px #6f9eff25}
.payment-checkout .checkout-check-row .actions{margin:0;display:flex;flex-wrap:wrap;gap:8px}
.payment-checkout .checkout-check-row button{margin:0;min-height:44px;border-radius:22px;padding:10px 17px;background:#456ae5;color:white;font-size:12px;border:0}
.payment-checkout .checkout-check-row button.ghost{background:#344452;color:#d8e4f2}
.payment-checkout .payment-cumulative{margin-top:18px;color:var(--checkout-mint);background:#21443e;border:1px solid #3d6a5c;border-radius:10px;padding:13px}
.payment-checkout .payment-cumulative p,.payment-checkout .payment-cumulative summary{color:#d4e8e0}
.payment-checkout.checkout-expired .checkout-waiting{color:#ffcb82}
.payment-checkout.checkout-expired .checkout-waiting:before{background:#ffcb82}
.payment-checkout [hidden]{display:none!important}
@media(max-width:700px){.payment-checkout{padding:20px}.payment-checkout .payment-result-grid{grid-template-columns:1fr;grid-template-areas:"copy" "qr";gap:24px}.payment-checkout .payment-qr{justify-self:center}.checkout-receipt-fields{grid-template-columns:1fr}.checkout-clock{width:62px;height:62px}.checkout-networks button{padding:8px;gap:6px}.checkout-network-icon{display:none}.checkout-networks button .checkout-network-name b{font-size:13px}.checkout-check-row .actions{width:100%}.payment-checkout .checkout-check-row button.primary{width:100%}.payment-checkout .exact-payment strong{font-size:34px}}
@media(prefers-reduced-motion:reduce){.payment-checkout *{transition:none!important;animation:none!important}}

/* QR + caption are one vertically centered unit; the right column includes receipt status. */
.payment-checkout .payment-result-grid{grid-template-columns:minmax(240px,.95fr) minmax(0,1.3fr);grid-template-areas:"qr copy" "qr receipt";column-gap:26px;row-gap:0;align-items:start}
.payment-checkout .payment-result-grid>.payment-qr{align-self:center;max-width:100%;width:100%;padding:0 4px}
.payment-checkout .payment-result-grid>.payment-qr img{width:100%;max-width:290px;margin-inline:auto}
.payment-checkout .payment-result-grid>.payment-qr figcaption{max-width:290px;margin-inline:auto}
.payment-checkout .payment-result-grid>.payment-receipt{grid-area:receipt;margin-top:12px;min-width:0}
.payment-checkout .exact-payment small{font-size:14px}
.payment-checkout .checkout-amount-row{flex-wrap:nowrap;justify-content:space-between;gap:10px}
.payment-checkout .checkout-amount-row strong{min-width:0;font-size:clamp(24px,2.8vw,38px);white-space:nowrap}
.payment-checkout .checkout-amount-row button{flex:none;white-space:nowrap;padding:9px 12px}
.payment-checkout .checkout-address-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.payment-checkout .checkout-address-row>span{font-size:12px}
.payment-checkout .quote-details .checkout-address{padding:12px}
.payment-checkout .checkout-check-row{margin-top:10px;padding:11px}
.payment-checkout .checkout-waiting{flex-basis:140px;font-size:12px}
@media(max-width:800px){.payment-checkout .payment-result-grid{grid-template-columns:1fr;grid-template-areas:"copy" "qr" "receipt";gap:18px}.payment-checkout .payment-result-grid>.payment-qr{max-width:270px;justify-self:center}.payment-checkout .payment-result-grid>.payment-receipt{margin-top:0}}
@media(max-width:380px){.payment-checkout .checkout-amount-row{flex-wrap:wrap}.payment-checkout .checkout-address-row{grid-template-columns:1fr}.payment-checkout .checkout-address-row>button{justify-self:start}}

/* Approved second draft: compact reference proportions and real controller actions. */
.payment-checkout{padding:25px 26px 24px;border-radius:22px;background:linear-gradient(115deg,#1d2837,#1b232f 58%,#19212c);border-color:#ffffff15}
.payment-checkout .checkout-heading{gap:13px;min-height:62px}.payment-checkout .checkout-heading h4{font-size:22px}.payment-checkout .checkout-heading p{font-size:12px}.payment-checkout .checkout-usdt{width:44px;height:44px;font-size:27px;background:linear-gradient(135deg,#44c5a6,#18886e);box-shadow:inset 0 1px 0 #ffffff55,0 6px 16px #18ac8040}
.payment-checkout .checkout-clock{width:62px;height:62px}.payment-checkout .checkout-clock b{font-size:15px}.payment-checkout .checkout-clock small{font-size:9px}
.payment-checkout .checkout-meta{margin:17px 0 8px;gap:7px}.payment-checkout .checkout-meta>span{font-size:11px;padding:7px 11px;background:#ffffff09;border-color:#ffffff17}
.payment-checkout .checkout-products{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.payment-checkout .checkout-product{padding:7px 11px;border:1px solid #ffffff17;border-radius:12px;background:#ffffff09;min-height:0;max-width:100%;gap:3px}.payment-checkout .checkout-product b{font-size:12px}.payment-checkout .checkout-product span{font-size:11px}
.payment-checkout .checkout-networks{padding:5px;gap:6px;border-radius:15px}.payment-checkout .checkout-networks button{min-height:49px;padding:8px 11px;border-radius:11px}.payment-checkout .checkout-network-name b{font-size:13px}.payment-checkout .checkout-network-name small{font-size:10px}
.payment-checkout .payment-result-grid{grid-template-columns:268px minmax(0,1fr);grid-template-areas:'qr copy' 'qr receipt';column-gap:31px;margin-top:23px}.payment-checkout .payment-result-grid>.payment-qr{padding:10px 0;max-width:268px}.payment-checkout .payment-qr img{padding:10px;border:3px solid #49d2ac;border-radius:15px;width:254px;max-width:100%}.payment-checkout .payment-qr figcaption{font-size:10px;line-height:15px;margin-top:10px;text-align:center}.payment-checkout .payment-qr figcaption strong{display:none}
.payment-checkout .exact-payment{margin-bottom:18px}.payment-checkout .exact-payment>span{font-size:12px;line-height:18px}.payment-checkout .checkout-amount-row{justify-content:flex-start;gap:12px;min-height:49px;margin-bottom:7px}.payment-checkout .checkout-amount-row strong{display:flex;align-items:center;gap:8px;margin:0;font-size:40px;line-height:1.1;letter-spacing:-1px}.payment-checkout .exact-payment small{font-size:14px;color:#48caa5;letter-spacing:0}.payment-checkout .exact-payment p{font-size:11px;line-height:17px}
.payment-checkout .quote-details{display:block}.payment-checkout .quote-details>div:nth-child(1),.payment-checkout .quote-details>div:nth-child(2){display:none}.payment-checkout .quote-details .checkout-address{padding:0;border:0;background:none}.payment-checkout .checkout-address dt{font-size:12px;margin-bottom:7px}.payment-checkout .checkout-address dd{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 14px;min-height:61px;border:1px solid #ffffff20;border-radius:15px;background:linear-gradient(110deg,#ffffff07,#ffffff04)}.payment-checkout .checkout-address-row>span{font-size:12px;line-height:18px;flex:1;min-width:0}.payment-checkout .checkout-deadline{display:flex;gap:5px;flex-wrap:wrap;font-size:10px;line-height:16px;margin:7px 0 3px}.payment-checkout .checkout-deadline dt,.payment-checkout .checkout-deadline dd{display:inline;font-size:10px;line-height:16px;margin:0;color:#939eae}
.payment-checkout button.ghost.copy-payment-amount,.payment-checkout button.ghost.copy-payment-address{width:112px;min-width:112px;height:36px;min-height:36px;padding:0 10px;display:inline-flex;justify-content:center;align-items:center;gap:6px;border-radius:20px;font-size:12px;line-height:1;font-weight:650;color:white;border:1px solid #72a7fa7a;background:linear-gradient(120deg,#285abe,#278ee4);box-shadow:inset 0 1px 0 #ffffff24,0 4px 11px #123b6d35}
.payment-checkout .copy-payment-amount:before,.payment-checkout .copy-payment-address:before{content:'▣';font-size:14px}
.payment-checkout .payment-result-grid>.payment-receipt{margin-top:10px}.payment-checkout .checkout-more summary{font-size:10px;line-height:16px;padding:2px 0 6px}
.payment-checkout .checkout-check-row{display:flex;align-items:center;gap:10px;padding:0;margin-top:7px;border:0;background:none;flex-wrap:nowrap}.payment-checkout .checkout-waiting{height:36px;min-height:36px;display:flex;align-items:center;padding:8px 10px 8px 27px;border:1px solid #47669d8a;border-radius:18px;background:#263248;font-size:11px;line-height:17px;overflow:hidden;white-space:nowrap;flex:1;min-width:0}.payment-checkout .checkout-waiting:before{left:12px;top:13px;width:8px;height:8px}
.payment-checkout .checkout-check-row button.primary,.payment-checkout .checkout-cancel-row button{width:112px;min-width:112px;height:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:1;padding:0 8px;border-radius:20px;color:#ecf3f9;border:1px solid #8c9fac80;background:linear-gradient(120deg,#ffffff08,#30505c66);box-shadow:inset 0 1px 0 #ffffff10;white-space:nowrap}
.payment-checkout .checkout-cancel-row{display:flex;align-items:center;justify-content:flex-end;gap:11px;margin-top:12px;min-height:36px}.payment-checkout .checkout-cancel-row small{font-size:10px;color:#939eae;line-height:16px}.payment-checkout .checkout-cancel-row button{color:#bdc8d8;background:#ffffff04;border-color:#697d9859;margin:0}.payment-checkout .checkout-supplement-actions{margin-top:10px}
@media(max-width:900px){.payment-checkout .payment-result-grid{grid-template-columns:minmax(210px,.8fr) minmax(0,1.3fr);gap:0 22px}.payment-checkout .checkout-amount-row strong{font-size:32px}}
@media(max-width:700px){.payment-checkout{padding:20px 18px}.payment-checkout .payment-result-grid{grid-template-columns:1fr;grid-template-areas:'copy' 'receipt' 'qr';gap:18px}.payment-checkout .payment-qr{justify-self:center}.payment-checkout .checkout-amount-row strong{font-size:28px}.payment-checkout .exact-payment small{font-size:12px}.payment-checkout .checkout-amount-row{gap:8px;flex-wrap:nowrap}.payment-checkout .checkout-address dd{gap:8px;padding-inline:10px}.payment-checkout .checkout-address-row>span{font-size:11px}.payment-checkout .checkout-check-row .actions{width:auto;flex:none}.payment-checkout .checkout-more summary{font-size:11px}.payment-checkout .checkout-networks button{padding:8px 6px}.payment-checkout .checkout-network-name b{font-size:12px}}
@media(max-width:360px){.payment-checkout .checkout-amount-row strong{font-size:24px}.payment-checkout .checkout-amount-row{gap:5px}.payment-checkout .exact-payment small{font-size:11px}.payment-checkout button.ghost.copy-payment-amount,.payment-checkout button.ghost.copy-payment-address,.payment-checkout .checkout-check-row button.primary,.payment-checkout .checkout-cancel-row button{width:96px;min-width:96px;font-size:11px}.payment-checkout .checkout-address-row>button{justify-self:auto}.payment-checkout .checkout-waiting{font-size:10px}}
