.payment-open{overflow:hidden}.payment-overlay{position:fixed;inset:0;z-index:100000;background:#0009;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.payment-dialog{width:min(950px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:var(--surface,#fff);color:var(--text,#16212e);border:1px solid var(--line,#d8dee5);border-radius:18px;box-shadow:0 20px 80px #0005;outline:none}.payment-dialog>header{position:sticky;top:0;z-index:2;background:var(--surface,#fff);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 24px;border-bottom:1px solid var(--line,#d8dee5)}.payment-dialog h2{font-size:22px;margin:0;line-height:1.3}.payment-close{min-width:42px;min-height:42px;font-size:25px!important;padding:4px!important}.payment-content{padding:24px;min-width:0}.payment-content>section+section{border-top:1px solid var(--line,#d8dee5);margin-top:24px;padding-top:18px}.payment-content h3{font-size:19px;margin:0 0 14px}.payment-error{color:var(--text,#16212e);margin:0 24px 24px;overflow-wrap:anywhere}.payment-error:empty{display:none}.payment-error:not(:empty){padding:14px;border:1px solid #db5151;border-radius:10px}.payment-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.payment-card-list{display:grid;gap:12px;margin-bottom:16px}.payment-card-list article{border:1px solid var(--line,#d8dee5);border-radius:10px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.payment-card-list small{display:block;color:var(--muted,#566271);margin-top:5px}.payment-card-list strong{overflow-wrap:anywhere}.payment-dialog button,.payment-dialog a{white-space:normal!important;line-height:1.4;max-width:100%}.payment-content>#loadvm-payment-mount+button{margin-top:20px}.payment-success{text-align:center;padding:20px 0}.payment-success p{margin:20px auto;max-width:560px}.payment-dialog button:focus-visible,.payment-dialog a:focus-visible{outline:2px solid var(--blue,#1672d2);outline-offset:3px}@media(max-width:600px){.payment-overlay{padding:8px}.payment-dialog{max-height:calc(100dvh - 16px);border-radius:12px}.payment-dialog>header,.payment-content{padding:16px}.payment-dialog h2{font-size:20px}.payment-card-list article{align-items:stretch}.payment-actions{width:100%}.payment-actions>*{flex:1}.payment-error{margin:0 16px 16px}}

/* Billing tables keep readable actions and become labelled cards on phones. */
.wallet-deposits td,.billing-history-records td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.billing-history-records td:nth-child(2){max-width:28rem}
.wallet-deposits .payment-actions{min-width:220px;margin:0;align-items:flex-start}
.wallet-deposits .payment-actions>form{flex:0 1 auto;margin:0}
.wallet-deposits .payment-actions button{white-space:normal;line-height:1.5}
.billing-history-records{margin-top:20px}
@media(max-width:700px){
.wallet-deposits .table-wrap,.billing-history-records .table-wrap{overflow:visible}
.wallet-deposits table,.billing-history-records table{display:block;min-width:0;width:100%}
.wallet-deposits thead,.billing-history-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wallet-deposits tbody,.billing-history-records tbody{display:grid;gap:12px}
.wallet-deposits tr,.billing-history-records tr{display:block;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px}
.wallet-deposits td,.billing-history-records td{display:block;max-width:none!important;border:0;padding:6px 0}
.wallet-deposits td[data-label],.billing-history-records td[data-label]{display:grid;grid-template-columns:85px minmax(0,1fr);gap:10px;align-items:start}
.wallet-deposits td[data-label]::before,.billing-history-records td[data-label]::before{content:attr(data-label);font-weight:600;color:var(--muted)}
.wallet-deposits td>* ,.billing-history-records td>*{min-width:0}
.wallet-deposits td:last-child,.billing-history-records td:last-child{grid-template-columns:minmax(0,1fr)}
.wallet-deposits .payment-actions{min-width:0;width:100%;gap:8px}
.wallet-deposits .payment-actions>form{flex:1 1 150px}
.wallet-deposits .payment-actions button{width:100%;min-height:42px}
}
