/* Payment dialog only: preserve the shared dialog system and other Tools pages. */
.dialog.tools-dsb-payment{width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.tools-dsb-payment-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;align-items:start;min-width:0}
.tools-dsb-payment-qr{display:grid;gap:10px;justify-items:center;min-width:0}
.tools-dsb-payment-qr img{display:block;width:200px;height:200px;object-fit:contain;background:#fff;border-radius:8px}
.tools-dsb-payment-qr p{font-size:12px;line-height:1.5;margin:0;text-align:center;color:var(--muted)}
.tools-dsb-payment-info{min-width:0}
.tools-dsb-payment-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tools-dsb-payment-status h2{margin:0;font-size:24px;letter-spacing:-.025em;line-height:1.3;font-variant-numeric:tabular-nums}
.tools-dsb-payment-info>p{margin:8px 0 16px;font-size:12px;line-height:1.5}
.tools-dsb-payment-facts{display:grid;gap:0;margin:0}
.tools-dsb-payment-fact{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border);min-width:0}
.tools-dsb-payment-fact>div{min-width:0}.tools-dsb-payment-fact dt{font-size:11px;color:var(--muted);margin-bottom:4px}
.tools-dsb-payment-fact dd{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;user-select:text}
.tools-dsb-payment-fact>.btn{flex-shrink:0}
.tools-dsb-payment .dialog-footer{gap:8px;flex-wrap:wrap}.tools-dsb-payment .dialog-footer>.btn{font-size:13px;min-height:36px}
@media(max-width:620px){.tools-dsb-payment-layout{grid-template-columns:minmax(0,1fr);gap:18px}.tools-dsb-payment-qr{grid-template-columns:128px minmax(0,1fr);align-items:center;gap:16px;justify-items:start}.tools-dsb-payment-qr img{width:128px;height:128px}.tools-dsb-payment-qr p{text-align:left}.tools-dsb-payment-status h2{font-size:22px}.tools-dsb-payment-fact{padding:8px 0}.tools-dsb-payment .dialog-footer>.btn{font-size:12px}}
.dialog.tools-dsb-checkout{--border:var(--line,rgba(128,128,128,.2));width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px)}
.tools-dsb-checkout .dialog-head{padding:18px 22px 12px}
.tools-dsb-checkout .dialog-head h2,.tools-dsb-checkout .dialog-title{font-size:18px;line-height:1.35;letter-spacing:-.015em}
.tools-dsb-checkout .dialog-body{padding:0 22px 18px}
.tools-dsb-checkout-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0 0 16px}
.tools-dsb-checkout-fact{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:baseline;gap:12px;padding:9px 0;border-bottom:1px solid var(--border);min-width:0}
.tools-dsb-checkout-fact dt{font-size:12px;color:var(--muted);font-weight:400}
.tools-dsb-checkout-fact dd{margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere;user-select:text}
.tools-dsb-checkout-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;flex-wrap:wrap}
.tools-dsb-checkout-result{font-size:12px;color:var(--muted);margin-right:auto}
.tools-dsb-checkout .dialog-footer{padding:12px 22px}
.tools-dsb-checkout .dialog-footer .btn{font-size:13px;min-height:34px}
.tools-dsb-checkout .table td,.tools-dsb-checkout .table th{font-size:12px;padding:9px 12px}
@media(max-width:700px){.tools-dsb-checkout-facts{grid-template-columns:1fr}.tools-dsb-checkout .dialog-head h2{font-size:16px}.tools-dsb-checkout-fact{grid-template-columns:100px minmax(0,1fr)}.tools-dsb-checkout .dialog-body{padding:0 16px 16px}.tools-dsb-checkout .dialog-head{padding:16px}.tools-dsb-checkout-result{flex-basis:100%}}
