/* Keep the mobile drawer and its backdrop in the same, top-level stacking context. */
.star365-menu-backdrop[hidden]{display:none!important;pointer-events:none!important}
@media(max-width:1307px){
 body>#leftpanel_container{position:fixed!important;inset:var(--star365-menu-top,60px) auto 0 0!important;width:min(320px,calc(100vw - 44px))!important;max-width:calc(100vw - 44px)!important;height:calc(var(--star365-viewport-height,100dvh) - var(--star365-menu-top,60px))!important;z-index:22000!important;transform:translateX(-105%)!important;visibility:hidden!important;pointer-events:none!important;overflow:visible!important;transition:transform .15s ease!important;float:none!important;margin:0!important;isolation:isolate}
 body.menuOpened>#leftpanel_container{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
 body>#leftpanel_container .leftPanel{position:relative!important;inset:auto!important;transform:none!important;visibility:inherit!important;pointer-events:inherit!important;width:100%!important;max-width:100%!important;height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;float:none!important;margin:0!important;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;background:#303030;touch-action:pan-y!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:auto!important}
 body.menuOpened>.star365-menu-backdrop{position:fixed!important;inset:var(--star365-menu-top,60px) 0 0!important;width:100vw!important;height:calc(var(--star365-viewport-height,100dvh) - var(--star365-menu-top,60px))!important;display:block!important;z-index:21999!important;background:#0008!important;border:0!important;margin:0!important;padding:0!important;pointer-events:auto!important;touch-action:none}
 body.menuOpened{overflow:hidden!important}
 #leftpanel_container .menuHolder{width:100%!important;margin:0!important;float:none!important;min-height:100%}
 #leftpanel_container .star365-az-tabs{position:sticky!important;top:0!important;z-index:2;background:#383838;display:flex!important;float:none!important}
 #leftpanel_container .star365-az-tabs>*{min-height:66px!important;touch-action:manipulation;cursor:pointer}
 #leftpanel_container a.menuItem,#leftpanel_container .star365-az-my-bets{display:flex!important;align-items:center!important;min-height:44px!important;width:100%!important;float:none!important;position:relative!important;pointer-events:auto!important}
 #leftpanel_container .menuItemListed[hidden],#leftpanel_container .star365-az-games[hidden]{display:none!important}
 #leftpanel_container .star365-az-games.active{display:flex!important;flex-direction:column!important;width:100%!important;float:none!important;position:relative!important;pointer-events:auto!important}
 #leftpanel_container .star365-az-games>a{display:flex!important;align-items:center!important;min-height:100px!important;gap:12px!important;padding:12px!important;pointer-events:auto!important}
 #leftpanel_container .star365-az-games img{width:66px!important;height:76px!important;object-fit:cover}
 #leftpanel_container .star365-az-games span{color:#fff;font-size:14px;font-weight:bold}
 .countryListContentItem,.leagueListContentItem,.leagueListItem{min-height:44px;touch-action:manipulation;cursor:pointer}
 #header_container .profileDropdown{position:absolute!important;top:60px!important;right:0!important;left:auto!important;max-width:calc(100vw - 12px)!important;min-width:200px!important;z-index:23000!important}
 #header_container .profileNav a{min-height:44px;display:flex;align-items:center;cursor:pointer}
 .star365-az-games>a:focus-visible,.star365-az-tabs>*:focus-visible{outline:2px solid #26e2af;outline-offset:-2px}
}
@media(max-width:767px){
 .av-page{padding:10px!important;max-width:100vw!important;box-sizing:border-box}.av-layout{display:flex!important;flex-direction:column!important;gap:12px!important}.av-play,.av-roster{width:100%!important;min-width:0!important}.av-panels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.av-panel{padding:10px!important;min-width:0!important}.av-inputs{display:flex!important;flex-direction:column!important;gap:8px!important}.av-panel input{width:100%!important;min-width:0!important;box-sizing:border-box!important;font-size:16px!important}.av-action{min-height:48px!important;width:100%!important}.av-heading h1{font-size:24px!important}.av-history{overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}.av-proof{max-width:calc(100vw - 24px)!important;box-sizing:border-box;overflow:auto}.av-proof code{overflow-wrap:anywhere}.av-stage{min-height:230px!important;height:clamp(230px,55vw,360px)!important}
}
/* Native dialog puts placement status above the betslip, even across stacking contexts. */
#star365-submission{position:fixed!important;inset:0!important;margin:auto!important;padding:0!important;border:0!important;border-radius:6px!important;width:min(300px,calc(100vw - 36px))!important;max-width:calc(100vw - 36px)!important;height:fit-content!important;max-height:calc(100dvh - 40px)!important;overflow:auto!important;background:#ededed!important;color:#111!important;box-shadow:0 7px 24px #0004;font:18px Arial,sans-serif!important;text-align:center!important;z-index:2147483647!important}
#star365-submission:not([open]){display:none!important}#star365-submission::backdrop{background:#0005}#star365-submission>strong{display:block!important;background:#13815e!important;color:#ffe500!important;padding:8px 14px!important;font:bold 27px Arial,sans-serif!important;line-height:1.15!important}#star365-submission>p{padding:13px 12px!important;margin:0!important;color:#111!important;line-height:1.4!important;overflow-wrap:anywhere}#star365-submission>button{border:0!important;border-radius:4px;background:#147b5b!important;color:#fff!important;margin:0 10px 12px!important;padding:9px 20px!important;font:14px Arial,sans-serif!important;min-height:40px;cursor:pointer}#star365-submission>button[hidden]{display:none!important}
.messageModal.showMessage{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;z-index:2147483646!important}
@media(max-width:767px){
 .createUsersWrapper,.createUsersHolder,.changePasswordHolder,.accountBalanceWrapper{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .createUsersHolder input,.createUsersHolder select,.createUsersHolder textarea{max-width:100%!important;box-sizing:border-box!important;min-height:44px}
 .createUsersHolder .updateCreateUserBtn{min-height:44px;display:inline-flex!important;align-items:center;justify-content:center;white-space:normal!important}
 .star365-game-access-row{flex-wrap:wrap;gap:8px}.star365-game-access-row>span{flex-basis:100%}.star365-game-access-row button{min-height:44px}
 #star365Support{right:6px!important;bottom:calc(55px + env(safe-area-inset-bottom,0px))!important;width:calc(100vw - 12px)!important;height:min(580px,calc(100dvh - 125px))!important}
 .countryHeaderContent,.leaguesContent,.myBetsWrapper{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
@media(max-width:1307px){#betslip{z-index:12000!important}body.betSlipOpened #betslip{max-height:calc(var(--star365-viewport-height,100dvh) - 60px)!important}#betslip .betSlipSingleMatch{overflow-wrap:anywhere}#betslip .bsFooter{padding-bottom:env(safe-area-inset-bottom,0px)}#betslip input{font-size:16px!important}#betslip .bsButton button{min-height:48px!important;touch-action:manipulation}}
@media(max-width:767px){
 #content_container .configHolder,#content_container .configPostion,#content_container .filterWrapperMain{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding-left:10px!important;padding-right:10px!important}
 #content_container .myBalanceTable{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 #content_container .myBalanceTable :is(.myBalanceTableHeader,.myBalanceTableHeader2,.myBalanceTableRow,.myBalanceTableRow2){min-width:620px!important}
 #content_container input,#content_container select,#content_container textarea{max-width:100%!important;box-sizing:border-box!important}
 #content_container :is(.countryListContentItem,.leagueListContentItem){min-height:44px!important;overflow-wrap:anywhere;white-space:normal!important}
 #content_container :is(.singleMatchBetModuleGroupContent,.singleColumnModule) :is(a,button){touch-action:manipulation}
}

/* The original full-screen eventShown layer is superseded by our owned backdrop.
   Portalling the drawer otherwise brings this legacy layer above its links. */
@media(max-width:1307px){
 body>#leftpanel_container>.eventShown{display:none!important;visibility:hidden!important;pointer-events:none!important}
 #contentLoader>.loaderWrapper{pointer-events:none!important}
 #content_container[aria-busy="true"]{pointer-events:none}
 #header_container .burgerBtn,#header_container .star365-header-live,#header_container .logo{touch-action:manipulation;pointer-events:auto}
}
