.visitor-language { position:relative; flex-shrink:0; color:rgb(var(--site-text-ffffff)); }
#appHeader .deste-header-row:has(.visitor-language[open]) { position:relative; z-index:70; overflow:visible; }
#appHeader .deste-header-row:has(.visitor-language[open]) > div:first-child { z-index:1100; }
.visitor-language[open] { z-index:1100; }
.visitor-language summary { display:flex; align-items:center; gap:7px; height:36px; padding:0 10px; cursor:pointer; list-style:none; border:1px solid rgb(var(--site-border-3f3f46)); border-radius:9px; background:var(--site-raised, #18181b); font-size:12px; font-weight:600; }
.visitor-language summary::-webkit-details-marker { display:none; }
.visitor-language img { display:block; width:22px; height:16px; object-fit:cover; border-radius:3px; }
.visitor-language summary i { font-size:9px; opacity:.65; }
.visitor-language summary:focus-visible,.visitor-language button:focus-visible { outline:2px solid var(--deste-accent); outline-offset:2px; }
.visitor-language-options { position:absolute; top:calc(100% + 8px); left:0; width:155px; padding:5px; border:1px solid rgb(var(--site-border-3f3f46)); border-radius:11px; background:var(--site-raised, #18181b); box-shadow:0 10px 30px #0008; z-index:100; }
.visitor-language-options button { display:flex; align-items:center; gap:9px; width:100%; padding:10px 8px; border-radius:7px; background:transparent; border:0; color:inherit; font-size:12px; text-align:left; cursor:pointer; }
.visitor-language-options button:hover,.visitor-language-options button[aria-pressed=true] { background:rgb(var(--site-accent-ebff00) / .1); }
.visitor-language-options button i { margin-left:auto; color:var(--deste-accent); font-size:10px; }
@media(max-width:767px) {
    #appHeader > div:first-child { padding-left:8px; padding-right:8px; }
    #appHeader .deste-header-row { padding-left:0 !important; padding-right:0 !important; }
    #appHeader .deste-logo { flex-shrink:0; }
    #appHeader .deste-logo img { padding:0; width:90px !important; max-width:90px; }
    #appHeader .deste-header-row > div:first-child { gap:6px; }
    #appHeader .deste-topnav { padding-left:8px; }
    #appHeader .deste-topnav a:first-child { padding-left:0; }
    .visitor-language summary { width:34px; height:34px; padding:0; justify-content:center; }
    .visitor-language summary span,.visitor-language summary i { display:none; }
    #appHeader .deste-guest-actions { gap:5px; }
    #appHeader .deste-guest-actions > button { margin-left:0; padding:8px; font-size:11px; }
}
@media(max-width:380px) {
    #appHeader .deste-logo img { width:74px !important; max-width:74px; }
    #appHeader .deste-header-row > div:first-child { gap:4px; }
    #appHeader .deste-account-actions { gap:4px !important; }
    #appHeader .deste-account-actions > .relative:first-child > button[data-account-balance] { padding:5px !important; }
    #appHeader .deste-account-trigger { width:62px; max-width:62px; }
    #appHeader .deste-account-avatar { display:none; }
    #appHeader .deste-guest-actions > button { padding:7px 5px; }
}
@media(max-width:340px) {
    #appHeader .deste-logo img { width:64px !important; max-width:64px; }
    #appHeader .deste-bonus-request { width:28px; height:32px; }
    #appHeader .visitor-language summary { width:30px; height:32px; }
    #appHeader .deste-account-actions > .relative:first-child > button[data-account-balance] { max-width:72px; }
    #appHeader [data-total-balance] { overflow:hidden; text-overflow:ellipsis; }
}
/* Keep the logo and account controls in their established positions in Arabic. */
html[dir=rtl] #appHeader .deste-header-row,html[dir=rtl] #appHeader .deste-topnav { direction:ltr; }
html[dir=rtl] .visitor-language-options { direction:rtl; }
html[dir=rtl] .visitor-language-options button { text-align:right; }
html[dir=rtl] .visitor-language-options button i { margin-left:0; margin-right:auto; }
.visitor-language-options { max-height:calc(100dvh - 100px); overflow-y:auto; }
html[lang=ru] #appHeader .deste-guest-actions > [data-auth-open=register] { font-size:12px; }
@media(max-width:767px) {
    html[lang=ru] #appHeader .deste-guest-actions > [data-auth-open=register] { font-size:10.5px; padding-inline:6px; }
}
