.credit-panel{width:min(440px,100%);max-width:100%;height:100dvh;max-height:100dvh;color:var(--ink);background:#fff;border:0;margin:0;padding:0;position:fixed;inset:0 0 0 auto;box-shadow:-8px 0 36px #10234622}.credit-panel::backdrop{background:#17233c59}body:has(.credit-panel[open]){overflow:hidden}.credit-sheet{flex-direction:column;height:100%;display:flex}.credit-heading,.credit-heading h2,.credit-account,.credit-total,.credit-panel button,.credit-history li{align-items:center;gap:8px;display:flex}.credit-heading,.credit-account,.credit-total{justify-content:space-between}.credit-heading{border-bottom:1px solid var(--line);padding:12px 18px 12px 24px}.credit-heading h2{font-size:18px;font-weight:680}.credit-heading h2 svg{color:var(--blue)}.credit-heading .drawer-close{position:static}.credit-content{padding:22px 24px max(24px, env(safe-area-inset-bottom));overscroll-behavior:contain;overflow:auto}.credit-account{overflow-wrap:anywhere;background:#f0f5ff;border:1px solid #dbe7fa;border-radius:12px;flex-wrap:wrap;padding:16px}.credit-account>div{min-width:0}.credit-caption,.credit-content p,.credit-history small{color:var(--muted);font-size:13px;line-height:1.6}.credit-amount{font-size:21px;font-weight:660;display:block}.credit-content button{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:center;min-height:38px;padding:8px 12px;font-size:13px}.credit-content button.credit-primary{background:var(--blue);color:#fff;border-color:var(--blue)}.credit-content button:disabled{color:#596271;background:#eceef3;border-color:#e5e8ee}.credit-buy{margin-top:24px}.credit-buy h3,.credit-history summary{font-size:15px;font-weight:650}.credit-buy>p{margin-top:4px}.credit-packs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:14px 0;display:grid}.credit-packs label{text-align:center;border:1px solid var(--line);cursor:pointer;border-radius:9px;gap:3px;padding:10px 2px;font-size:14px;display:grid;position:relative}.credit-packs label:hover{border-color:#aec9ee}.credit-packs input{opacity:0;width:1px;height:1px;position:absolute}.credit-packs label:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}.credit-packs label:has(input:checked){color:#175ab5;background:#edf4ff;border-color:#307bd2}.credit-packs label span{color:#4a5b70;font-size:11px}.credit-custom{align-items:center;gap:8px;font-size:13px;display:flex}.credit-custom label{align-items:center;gap:7px;display:inline-flex}.credit-custom input[type=number]{border:1px solid #bcc9da;border-radius:6px;width:100px;padding:5px 7px}.credit-total{border-top:1px solid var(--line);flex-wrap:wrap;margin-top:16px;padding-top:16px;font-size:13px}.credit-total strong{font-size:17px;display:block}.credit-history{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.credit-history summary{cursor:pointer}.credit-history li{border-bottom:1px solid var(--line);padding:10px 0;font-size:13px}.credit-history li div{flex:1}.credit-history small{display:block}.credit-content .error{color:#932a36}.credit-content>p,.credit-history p{margin-top:10px}@media (max-width:600px){.credit-panel{border-radius:18px 18px 0 0;width:100%;height:auto;max-height:90dvh;inset:auto 0 0}.credit-sheet{height:auto;max-height:90dvh}.credit-heading{padding:8px 12px 8px 18px}.credit-content{padding:16px 18px max(20px, env(safe-area-inset-bottom))}}
