/* Scoped wallet presentation. It uses the Astra page/surface variables when present. */
.wallet-view{color:var(--astra-ink,#292924);padding-block-end:112px}.wallet-head{margin-block-end:16px}.wallet-head h1{font-size:clamp(25px,7vw,36px);line-height:1.25;margin:3px 0}.wallet-head p,.wallet-history header>div>p{font-size:11px;color:var(--astra-gold,#7461d7);margin:0}.wallet-head span{font-size:12px;line-height:1.85;color:var(--n-muted,#67666d)}
.wallet-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wallet-total{min-height:86px;border:1px solid var(--ws-line,#d9d7e3);border-radius:16px;background:var(--astra-surface,#fffdf9);padding:12px}.wallet-total span,.wallet-week p,.wallet-history-row span{display:block;font-size:10px;color:var(--n-muted,#75727b)}.wallet-total b{display:block;direction:ltr;text-align:right;margin-top:8px;font-size:24px;color:var(--astra-copper,#5d47ca);font-variant-numeric:tabular-nums}
.wallet-week,.wallet-rules,.wallet-history{border:1px solid var(--ws-line,#d9d7e3);border-radius:19px;background:var(--astra-surface,#fffdf9);padding:14px;margin-top:11px}.wallet-week{display:grid;gap:14px;align-items:start;background:linear-gradient(135deg,#fffdf9,#efedf7)}.wallet-week h2,.wallet-rules h2,.wallet-history h2{font-size:18px;line-height:1.55;margin:2px 0}.wallet-week>div>span{font-size:11px;line-height:1.85;color:var(--n-muted,#67666d);margin:4px 0 0}.wallet-week dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.wallet-week dl>div{border:1px solid #dddae8;border-radius:11px;background:rgba(255,253,249,.75);padding:8px}.wallet-week dt{font-size:9px;color:#757184}.wallet-week dd{direction:ltr;text-align:right;margin:5px 0 0;color:var(--astra-copper,#5d47ca);font-weight:800;font-size:17px;font-variant-numeric:tabular-nums}
.wallet-rules ul{padding:0;margin:9px 0 0;list-style:none}.wallet-rules li{display:grid;gap:3px;border-top:1px solid #e5e3ef;padding:10px 0}.wallet-rules li:first-child{border-top:0;padding-top:0}.wallet-rules b{font-size:12px}.wallet-rules span{font-size:11px;line-height:1.8;color:var(--n-muted,#67666d)}.wallet-rules small{font-size:10px;color:var(--astra-copper,#5d47ca)}
.wallet-history header{display:flex;align-items:end;justify-content:space-between;gap:8px}.wallet-history-tabs{display:flex;gap:5px;overflow:auto;max-width:58%}.wallet-history-tabs button{white-space:nowrap;border:1px solid #d7d4e2;border-radius:999px;background:transparent;color:#5d5a69;padding:7px 9px;font:inherit;font-size:10px}.wallet-history-tabs button[aria-selected=true]{background:#292a26;border-color:#292a26;color:#d5cef9}.wallet-history ul{padding:0;margin:10px 0 0;list-style:none}.wallet-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;align-items:start;border-top:1px solid #e5e3ef;padding:10px 0}.wallet-history-row:first-child{border-top:0;padding-top:0}.wallet-history-row>div{min-width:0}.wallet-history-row b{display:block;font-size:12px;overflow-wrap:anywhere}.wallet-history-row small{display:block;font-size:10px;line-height:1.75;color:#7b4e43}.wallet-history-row strong{direction:ltr;text-align:left;color:var(--astra-copper,#5d47ca);font-size:15px;font-variant-numeric:tabular-nums}.wallet-history-row em{grid-column:1/-1;justify-self:start;font-size:9px;font-style:normal;border-radius:999px;background:#eceaf3;color:#5f5b6c;padding:3px 7px}.wallet-empty,.wallet-boundary{font-size:11px;line-height:1.9;color:var(--n-muted,#67666d)}.wallet-boundary{text-align:center;margin:13px auto 0;max-width:42rem}
@media(min-width:650px){.wallet-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.wallet-total{min-height:96px}.wallet-history-tabs{max-width:none}.wallet-week{grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);padding:17px}}
@media(prefers-reduced-motion:reduce){.wallet-view *{scroll-behavior:auto!important}}
