.sandbox-tag { display: inline-flex; align-items: center; background: #332d19 !important; color: #ffdc84 !important; border: 1px solid #69582d; border-radius: 20px; padding: 6px 11px; font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.sandbox-balance { color: #ffdc84; background: #1e2030; padding: 12px 15px; border-radius: 12px; font-size: 14px; font-weight: 650; }
.sandbox-balance[hidden],.sandbox-payment-list[hidden],#sandboxPaymentLink[hidden],.sandbox-methods[hidden],.sandbox-card-help[hidden] { display: none !important; }
.sandbox-methods { border: 0; padding: 0; margin: 18px 0; display: flex; gap: 10px; }
.sandbox-methods legend { color: #b4c6dd; font-size: 13px; margin-bottom: 10px; }
.sandbox-methods label { flex: 1; display: flex; gap: 10px; align-items: center; border: 1px solid #30405a; border-radius: 12px; padding: 12px; background: #10192c; cursor: pointer; }
.sandbox-methods label:has(input:checked) { border-color: #38dce9; background: #142b3b; }
.sandbox-methods input { width: 16px; height: 16px; accent-color: #38dce9; margin: 0; }
.sandbox-methods span { color: #edf5ff; font-size: 14px; font-weight: 700; }
.sandbox-methods small { display: block; font-size: 11px; color: #95aac4; font-weight: 400; margin-top: 4px; }
.sandbox-card-help { background: #111b2e; border: 1px solid #344962; border-radius: 12px; color: #b6c8de; font-size: 12px; line-height: 1.8; padding: 12px 15px; }
.sandbox-card-help strong { color: #edf5ff; white-space: nowrap; }
.sandbox-card-help a { display: block; color: #38dce9; }
.sandbox-payment-dialog { width: min(480px,calc(100vw - 32px)); box-sizing: border-box; padding: 28px; border: 1px solid #344962; border-radius: 25px; color: #edf5ff; background: linear-gradient(135deg,#17233b,#0e1425); box-shadow: 0 26px 100px #0008; }
.sandbox-payment-dialog::backdrop { background: #040811c9; backdrop-filter: blur(5px); }
.sandbox-dialog-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.sandbox-dialog-head h2 { margin: 15px 0 0; font-size: 26px; letter-spacing: -.03em; }
.sandbox-close { background: #ffffff0d; color: #d8e9fd; border: 1px solid #344962; border-radius: 50%; width: 36px; height: 36px; flex-shrink: 0; cursor: pointer; font-size: 24px; }
.sandbox-amount { font-size: 48px; font-weight: 800; margin: 25px 0 8px; letter-spacing: -.04em; }
.sandbox-payment-state { color: #b6c8de; line-height: 1.5; margin-bottom: 22px; }
.sandbox-payment-state[data-state="paid"] { color: #72f0ba; }
.sandbox-payment-state[data-state="failed"],.sandbox-payment-state[data-state="review"] { color: #ffca85; }
.sandbox-payment-dialog .studio-button,.sandbox-payment-dialog .admin-outline-button { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; margin-bottom: 10px; }
.sandbox-note { color: #95aac4; font-size: 12px; line-height: 1.7; margin-top: 17px; }
@media(max-width:600px) { .sandbox-payment-dialog { padding: 22px; border-radius: 20px; } .sandbox-dialog-head h2 { font-size: 23px; } .sandbox-amount { font-size: 40px; } }

.payment-receipt-email { display:grid; gap:8px; margin:14px 0; font-size:13px; color:#b4c6dd; }
.payment-receipt-email[hidden] { display:none !important; }
.payment-receipt-email input { padding:12px; border:1px solid #30405a; border-radius:12px; background:#10192c; color:#edf5ff; }
.payment-reference { overflow-wrap:anywhere; font-size:10px; }

/* Compact payment history below the tariff. */
.wallet-overview .wallet-payment-history { align-self:stretch; width:100%; max-width:380px; margin:2px auto 0; padding:17px 18px 8px; border:1px solid #b0d8ed1c; border-radius:18px; background:#07142466; text-align:left; }
.wallet-payment-history[hidden],.payment-history-toggle[hidden],.payment-history-empty[hidden] { display:none !important; }
.payment-history-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.wallet-panel .payment-history-head h3 { margin:0; color:#dcebf5; font-size:13px; font-weight:750; letter-spacing:0; }
.payment-history-count { min-width:23px; padding:3px 7px; text-align:center; border-radius:8px; background:#abcde914; color:#97aec2; font-size:10px; font-variant-numeric:tabular-nums; }
.wallet-payment-history .sandbox-payment-list { display:grid; gap:0; margin:0; }
.wallet-payment-history .sandbox-payment-list.is-expanded { max-height:234px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#456078 transparent; padding-right:5px; }
.payment-history-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 0; border:0; border-bottom:1px solid #9bbbd212; background:transparent; color:#dcebf5; text-align:left; font:inherit; cursor:pointer; }
.payment-history-row:last-child { border-bottom:0; }
.payment-history-row:hover .payment-history-amount { color:#6ef3e5; }
.payment-history-row:focus-visible,.payment-history-toggle:focus-visible { outline:2px solid #6ef3e5; outline-offset:3px; border-radius:7px; }
.payment-history-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:#aac9e714; color:#a9bdd2; font-size:16px; }
.payment-history-copy { display:grid; gap:5px; min-width:0; }
.wallet-panel .payment-history-row .payment-history-amount { display:block; margin:0; font-size:15px; line-height:1.1; color:#edf6ff; font-weight:750; font-variant-numeric:tabular-nums; }
.payment-history-copy time { color:#8fa6bd; font-size:10px; line-height:1.3; }
.payment-history-status { max-width:105px; color:#9aafc3; font-size:10px; line-height:1.35; text-align:right; }
.payment-history-row[data-state="paid"] .payment-history-icon { background:#71ebba16; color:#83e5bd; }
.payment-history-row[data-state="paid"] .payment-history-status { color:#83d9b7; }
.payment-history-row[data-state="pending"] .payment-history-status { color:#e6c787; }
.payment-history-row[data-state="failed"] .payment-history-icon,.payment-history-row[data-state="canceled"] .payment-history-icon { color:#bd9eaa; }
.wallet-panel .payment-history-empty { color:#8fa6bd; font-size:12px; margin:16px 0; }
.payment-history-toggle { width:100%; margin:0; padding:11px 0; border:0; border-top:1px solid #9bbbd212; background:transparent; color:#94d6da; font:inherit; font-size:11px; font-weight:650; cursor:pointer; }
.payment-history-toggle:hover { color:#b9fff0; }
@media(max-width:680px) { .wallet-overview .wallet-payment-history { max-width:none; } }
