/* The cookie notice is informational, not a modal. Reserve its actual measured space. */
html{--ui-cookie-height:0px;--ui-bottom-bar-height:0px}
body.ad-theme,body.ad-theme.cookie-visible,body.ad-theme.has-bottom-bar{padding-block-end:calc(var(--ui-cookie-height) + var(--ui-bottom-bar-height))}
body.ad-theme .cookie{z-index:180;padding-bottom:env(safe-area-inset-bottom,0px)}
body.ad-theme .to-top{bottom:calc(var(--ui-cookie-height) + var(--ui-bottom-bar-height) + 16px)}
html[data-modal-active] body.ad-theme :is(.tc-trigger,.tc-panel,.cookie,.to-top,.bottom-bar){visibility:hidden!important;pointer-events:none!important}
html[data-modal-active] body.ad-theme .drawer-panel{padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:600px){
 body.ad-theme .tc-trigger{bottom:calc(var(--ui-cookie-height) + var(--ui-bottom-bar-height) + 78px)}
 body.ad-theme .to-top{right:12px;width:44px;height:44px}
 body.ad-theme .cookie-inner{gap:8px;padding-block:10px}
 body.ad-theme .cookie p{font-size:12px;line-height:1.5}
 body.ad-theme .cookie-inner>.btn{min-height:40px}
 body.ad-theme .drawer-body{min-height:0;overscroll-behavior:contain}
 body.ad-theme .drawer-head,body.ad-theme .drawer-foot{flex-shrink:0}
}
@media(max-height:460px) and (max-width:600px){
 body.ad-theme .tc-trigger{top:75px;bottom:auto}
}

body.ad-theme .bottom-bar{bottom:var(--ui-cookie-height)}
body.ad-theme .toasts{bottom:calc(var(--ui-cookie-height) + var(--ui-bottom-bar-height) + 12px)}
html[data-modal-active] body.ad-theme .toasts{bottom:12px}
