/* The account widget and its dialog only; existing navigation and game styles stay authoritative. */
.gameWalletWidget{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;max-width:165px;color:var(--blue,#1066AB);font:inherit;font-size:12px;line-height:1.3}
.gameWalletCounter{white-space:nowrap;font-weight:800;background:transparent;border:0;box-shadow:none;color:inherit;font:inherit;padding:0;cursor:pointer}
.gameWalletTrigger{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 8px;border:1px solid var(--line,#D5E4ED);border-radius:8px;background:#fff;box-shadow:none;color:var(--blue,#1066AB);font:inherit;font-weight:800;white-space:nowrap;cursor:pointer}
.gameWalletDialog{width:min(450px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;border:1px solid var(--line,#D5E4ED);border-radius:18px;background:#fff;color:var(--ink,#082F52);font:inherit;direction:rtl;box-shadow:0 18px 50px #063A6530}
.gameWalletDialog::backdrop{background:#063A6560}
.gameWalletDialog h2{margin:0 0 18px;font-size:22px;color:var(--blue,#1066AB)}
.gameWalletDialog label{display:block;font-weight:800;margin-bottom:8px}
.gameWalletDialog input{width:100%;box-sizing:border-box;direction:ltr;text-align:left;font:inherit;border:1px solid #BFD5E2;border-radius:10px;padding:12px}
.gameWalletDialog .gameWalletActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.gameWalletDialog button{border:1px solid var(--blue,#1066AB);border-radius:10px;background:var(--blue,#1066AB);color:#fff;padding:10px 14px;font:inherit;font-weight:800;cursor:pointer}
.gameWalletDialog button.gameWalletSecondary{background:#fff;color:var(--blue,#1066AB)}
.gameWalletDialog button:disabled{opacity:.55;cursor:default}
.gameWalletStatus{min-height:26px;margin:12px 0;line-height:1.8;overflow-wrap:anywhere}
.gameWalletStatus[data-error]{color:#AD3543}
.gameWalletComingSoon{margin:16px 0 0;color:var(--muted,#66859A);font-size:13px;line-height:1.8}
@media(max-width:700px){.gameWalletWidget{max-width:150px;font-size:11px}.gameWalletTrigger{min-height:24px;padding:3px 6px}.gameWalletDialog{padding:18px}}

.gameWalletWidget[hidden],.gameWalletDialog [hidden]{display:none!important}

/* Restore the previously approved stacked wallet/coupon controls in every design.
   Popovers are independent of the header layout and never cover the whole page. */
.gameWalletDialog[data-wallet-anchored]{
 position:fixed;inset:auto;right:auto;z-index:120;margin:0;
 width:min(360px,calc(100vw - 24px));max-height:min(70dvh,440px);
 overflow:auto;overscroll-behavior:contain;padding:15px;
 border:1px solid #c7dde9;border-radius:14px;
 background:#fff;box-shadow:0 16px 44px #0b35572a;
}
.gameWalletDialog[data-wallet-anchored]::backdrop{display:none}
.gameWalletDialog[data-wallet-anchored] h2{font-size:16px;margin:0 0 10px}
.gameWalletDialog[data-wallet-anchored] .gameWalletActions{gap:7px}
.gameWalletDialog[data-wallet-anchored] .gameWalletActions button{font-size:12px;min-height:40px}
.gameWalletDialog[data-wallet-anchored] .gameWalletStatus{margin:9px 0}
.gameWalletDialog[data-wallet-anchored] .clubPromoBox{margin:9px 0;padding:10px}
.gameWalletBalanceDialog .gameWalletBalanceNumber{display:block;font-size:32px;color:var(--blue,#1066AB);line-height:1.4;font-variant-numeric:tabular-nums}
.gameWalletBalanceDialog .gameWalletBalanceHint{font-size:13px;line-height:1.8;color:var(--muted,#66859A);margin:10px 0}
.gameWalletBalanceDialog .gameWalletBalanceClose{border:1px solid var(--blue,#1066AB);border-radius:10px;background:#fff;color:var(--blue,#1066AB);padding:8px 14px;font:inherit;font-weight:800;cursor:pointer}
.gameWalletWidget button:focus-visible,.gameWalletDialog[data-wallet-anchored] button:focus-visible{outline:3px solid #f58d27;outline-offset:2px}
@media(max-width:700px){
 .gameWalletDialog[data-wallet-anchored]{max-height:65dvh;padding:12px}
 .gameWalletDialog[data-wallet-anchored] input{padding:10px}
}

/* V4.5: canonical compact horizontal controls for all available themes. */
header.adminNav .gameWalletWidget{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;max-width:none;min-width:0;flex:0 1 auto;line-height:1.2}
header.adminNav .gameWalletWidget :is(.gameWalletCounter,.gameWalletTrigger){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;min-width:0;padding:8px 10px;border-radius:10px;box-shadow:none;font:inherit;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
header.adminNav .gameWalletCounter{border:1px solid #cbe1ef;background:#e9f4fb;color:#1066ab}
header.adminNav .gameWalletTrigger{border:1px solid #f2cca3;background:#fff3e6;color:#96520e}
header.adminNav .gameWalletCouponIcon{display:inline-flex;align-items:center;justify-content:center}
.gameWalletBalanceDetails{display:grid;gap:7px;margin:10px 0}
.gameWalletBalanceRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:9px;background:#f3f8fb;font-size:12px}
.gameWalletBalanceRow strong{color:#0b5687;font-variant-numeric:tabular-nums}
@media(max-width:1000px){header.adminNav .gameWalletCouponText{display:none}}
@media(max-width:700px){
 header.adminNav .gameWalletWidget{gap:4px}
 header.adminNav .gameWalletWidget :is(.gameWalletCounter,.gameWalletTrigger){min-height:36px;padding:6px 5px;font-size:10px}
 header.adminNav .gameWalletTrigger{min-width:34px}
}

@media(max-width:390px){
 header.adminNav .gameWalletWidget{gap:2px}
 header.adminNav .gameWalletCounter{font-size:9px!important;padding:5px 3px!important}
 header.adminNav .gameWalletTrigger{min-width:30px;padding:5px 3px!important}
}
