.checkout-dialog{padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);width:min(590px,94vw);max-width:94vw;max-height:90dvh;height:min(800px,90dvh);box-shadow:0 24px 90px #0006;overflow:auto}
.checkout-dialog::backdrop{background:#111c2c80}
.checkout-dialog>header{display:flex;align-items:center;gap:16px;padding:24px 26px 18px;border-bottom:1px solid var(--line)}
.checkout-dialog h2{margin:0;font-size:28px;font-weight:600}.checkout-dialog>header>span{margin-left:auto;font-size:12px;color:var(--muted)}
.checkout-x{border:0;background:none;color:var(--muted);font-size:32px;line-height:1;cursor:pointer;padding:0 4px}
.checkout-content{padding:28px 32px 20px}.checkout-due{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:15px;font-size:18px}
.checkout-due>span{text-align:right}.checkout-due strong{font-size:25px;white-space:nowrap;padding:13px 14px;background:var(--accent-soft);border-radius:3px;font-variant-numeric:tabular-nums}
.checkout-meta{margin:20px 0}.checkout-meta p{display:flex;justify-content:flex-end;gap:12px;margin:17px 0}.checkout-meta span{color:var(--muted)}.checkout-meta strong{font-weight:600;text-align:right}
.checkout-prepaid{display:grid;gap:8px;font-size:12px;padding:12px 0 16px;color:var(--muted);border-bottom:1px solid var(--line)}.checkout-prepaid span{display:flex;justify-content:space-between;gap:10px}.checkout-prepaid b{color:var(--text);white-space:nowrap}
.checkout-method{padding:19px 0 16px}.checkout-split-toggle{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:13px;margin-bottom:17px}.checkout-split-toggle input{width:16px;height:16px;min-height:0;margin:0}
#checkout-single{display:grid;gap:12px}#checkout-single label{display:grid;grid-template-columns:1fr 1.45fr;align-items:center;gap:12px;text-align:right}
.checkout-dialog input,.checkout-dialog select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:3px;padding:10px 12px;font:inherit;width:100%;min-width:0}.checkout-dialog input:focus,.checkout-dialog select:focus{outline:2px solid var(--accent);outline-offset:1px}
.checkout-dialog input[type=checkbox]{width:16px;height:16px;padding:0}.checkout-dialog [hidden]{display:none!important}
#checkout-mixed{display:grid;gap:10px}#checkout-mixed label{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:center}#checkout-mixed small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.checkout-balance{display:grid;gap:7px;font-size:12px;color:var(--red-text);margin-top:14px}.checkout-balance span{display:flex;justify-content:space-between;gap:10px}.checkout-balance.complete{color:var(--green)}
.checkout-note{display:block;margin-top:15px;font-size:12px;color:var(--muted)}.checkout-note input{display:block;margin-top:5px;font-size:13px}
.checkout-pay,.checkout-without{width:100%;border:1px solid var(--line);border-radius:3px;background:var(--surface-alt);color:var(--text);padding:17px 20px;cursor:pointer;font:inherit;font-size:19px;font-weight:600}
.checkout-pay{display:flex;gap:19px;align-items:center;text-align:left;background:var(--accent-soft);border-color:var(--accent);min-height:90px}.checkout-pay small,.checkout-without small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:6px;line-height:1.5}.checkout-pay-icon{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border:1px solid var(--accent);border-radius:50%;font-size:29px;background:var(--surface)}
.checkout-pay:disabled{opacity:.45;cursor:not-allowed}.checkout-without{margin-top:10px;text-align:center;font-size:17px}.checkout-without:hover,.checkout-pay:not(:disabled):hover{filter:brightness(.96)}
.checkout-covered{padding:16px 0;font-size:13px;line-height:1.5;color:var(--green)}.checkout-message{margin:15px 0 0;padding:12px;border-radius:4px;color:var(--red-text);background:var(--red-bg);font-size:13px}
.checkout-dialog>footer{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);background:var(--surface);padding:17px 26px;margin-top:auto}.checkout-dialog .print-menu>div{bottom:100%;top:auto}
html[data-theme=dark] .checkout-dialog{--surface:#35424e;--surface-alt:#414e5a;--line:#647787;--text:#f1f5f8;--muted:#c1cdd8;--accent-soft:#3d5576;--green:#8de0ac;--red-text:#ffaca4}
@media(max-width:560px){.checkout-content{padding:22px 18px}.checkout-dialog>header{padding:18px 16px;gap:10px}.checkout-dialog h2{font-size:24px}.checkout-due{font-size:14px;grid-template-columns:1fr 1.1fr;gap:8px}.checkout-due strong{font-size:22px;padding:10px 8px}.checkout-meta{font-size:13px}.checkout-meta p{flex-wrap:wrap}.checkout-dialog>footer{padding:14px 18px}}
@media print{#checkout{display:none!important}}
/* Reset the legacy page form padding inside the payment window. */
#checkout-form{padding:0;margin:0}.checkout-split-toggle{flex-direction:row;font-weight:400}.checkout-dialog label{font-weight:400;color:var(--muted)}
/* Keep both payment actions visible on a normal desktop screen. */
.checkout-dialog>header{padding-top:18px;padding-bottom:15px}.checkout-content{padding-top:20px;padding-bottom:16px}.checkout-meta{margin:15px 0}.checkout-meta p{margin:12px 0}.checkout-prepaid{padding-top:8px;padding-bottom:12px}.checkout-method{padding-top:13px;padding-bottom:12px}.checkout-split-toggle{margin-bottom:12px}.checkout-note{margin-top:10px}.checkout-pay{min-height:74px;padding:11px 18px;font-size:18px}.checkout-pay-icon{width:48px;height:48px;font-size:26px}.checkout-without{padding:11px 18px}.checkout-without small{margin-top:3px}
