html #modal:has(.walletSheet){width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(800px,calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom))));padding:0;overflow:hidden;border:1px solid var(--border);border-radius:26px;background:var(--surface);box-sizing:border-box}
html #modal:has(.walletSheet)>#modalBody{padding:0;display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden}
html #modal .walletSheet{display:flex;flex-direction:column;padding:0;margin:0;width:100%;max-height:inherit;min-height:0;background:var(--surface);text-align:left}
.walletSheet>.sheetHeader{padding:20px;flex:0 0 auto;align-items:center;gap:12px;margin:0}
.walletSheet .sheetHeader h2{font-size:24px;line-height:1.25;margin:0;color:var(--text)}
.walletSheet .sheetHeader .close{width:40px;height:40px;min-width:40px;display:grid;place-items:center;padding:11px;background:var(--surface2);border:1px solid var(--border);border-radius:14px;color:var(--sub)}.walletSheet .close>.uiIcon{width:18px;height:18px}
.walletBody{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 20px 20px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.walletBalance{display:flex;align-items:center;gap:14px;padding:20px 16px;background:var(--surface2);border:1px solid var(--border);border-radius:20px;margin-bottom:18px}
.walletBalanceIcon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--coin) 10%,var(--surface));color:var(--coin);flex:none}.walletBalanceIcon>.uiIcon{width:30px;height:30px}
.walletBalance>div{min-width:0}.walletBalance small{display:block;font-size:12px;line-height:1.5;color:var(--sub);margin-bottom:5px}.walletBalance strong{display:block;font:600 32px/1.2 Outfit,sans-serif;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.walletBalance strong>span{display:block;font:500 12px/1.5 'DM Sans',sans-serif;color:var(--sub);margin-top:4px}
.walletProduct{padding:18px 16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:0 2px 0 color-mix(in srgb,var(--bg) 40%,var(--border))}
.walletProductHeading{display:flex;align-items:center;gap:12px}.walletProductHeading>span{width:42px;height:44px;display:grid;place-items:center;flex:none;background:var(--surface2);border-radius:14px;color:var(--green)}.walletProductHeading>span>.uiIcon{width:25px;height:25px}.walletProductHeading>div{min-width:0}.walletProduct h3{font:600 18px/1.35 Outfit,sans-serif;color:var(--text);margin:0 0 4px;overflow-wrap:break-word}.walletProductHeading small{font-size:12px;color:var(--sub)}.walletProduct>p{font-size:13px;line-height:1.7;color:var(--sub);margin:15px 0}
.walletPrice{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--text);margin-bottom:16px}.walletPrice>.uiIcon{width:19px;height:19px;color:var(--coin)}.walletPrice>span{color:var(--sub);font-size:11px}
.walletProduct>.primary{display:block;width:100%;min-height:48px;padding:12px;font-size:13px;line-height:1.5;white-space:normal;letter-spacing:0;border-radius:16px}
.walletRules{margin:15px 0 22px;border:1px solid var(--border);border-radius:16px;background:var(--surface2);overflow:hidden}.walletRules>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:var(--text)}.walletRules>summary::-webkit-details-marker{display:none}.walletRules>summary>.uiIcon{width:16px;height:16px;color:var(--sub);flex:none}.walletRules[open]>summary>.uiIcon{transform:rotate(90deg)}.walletRules>div{padding:0 16px 16px}.walletRules p{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;line-height:1.6;color:var(--sub);margin:0;padding:9px 0;border-bottom:1px solid var(--border)}.walletRules strong{font-size:12px;color:var(--green)}.walletRules small{display:block;font-size:11px;color:var(--sub);line-height:1.6;margin-top:12px}
.walletHistory>h3{font:600 18px/1.4 Outfit,sans-serif;color:var(--text);margin:0 0 10px}.walletMovement{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--border)}.walletMovementIcon{color:var(--sub);display:grid;place-items:center}.walletMovementIcon>.uiIcon{width:21px;height:21px}.walletMovement>div>strong{display:block;font-size:12px;line-height:1.5;font-weight:600;color:var(--text);overflow-wrap:anywhere}.walletMovement small{display:block;font-size:10px;line-height:1.6;color:var(--sub);margin-top:4px}.walletMovement>b{font-size:14px;font-weight:700;text-align:right;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.walletMovement>b.positive{color:var(--green)}.walletMovement>b>small{font-size:9px;font-weight:400;margin:0}
.walletEmpty{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface2);border-radius:16px}.walletEmpty>.uiIcon{width:24px;height:24px;color:var(--green);flex:none}.walletEmpty p{font-size:12px;line-height:1.7;color:var(--sub);margin:0}
.walletFooter{flex:0 0 auto;padding:13px 20px 18px;border-top:1px solid var(--border);background:var(--surface)}.walletFooter>p{font-size:10px;color:var(--sub);line-height:1.6;text-align:center;margin:0 0 12px}.walletFooter>.secondary{display:block;min-height:44px;width:100%;padding:10px;font-size:13px;color:var(--text);background:var(--surface2);border:1px solid var(--border);border-radius:14px}
@media(max-width:350px){.walletSheet>.sheetHeader{padding:16px}.walletBody{padding:0 14px 16px}.walletBalance{padding:16px 13px}.walletProduct{padding:15px 13px}.walletProduct h3{font-size:16px}.walletProduct>p{font-size:12px}.walletFooter{padding:12px 16px 16px}.walletMovement{grid-template-columns:22px minmax(0,1fr) auto;gap:8px}}
@media(max-height:550px){.walletSheet>.sheetHeader{padding-top:12px;padding-bottom:12px}.walletFooter{padding-top:10px;padding-bottom:12px}.walletFooter>p{display:none}}

.walletBody{scrollbar-width:none;-ms-overflow-style:none}.walletBody::-webkit-scrollbar{display:none;width:0;height:0}
