/* StewBot: site fit. Loaded after sf-assistant.css. Keeps the button clear of the cookie notice and the footer. */

/* 1. Footer: room at the very end of every page so the button never sits on a footer link, icon or legal link */
footer.site-footer{padding-bottom:96px}
@media (max-width:480px){
  footer.site-footer{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
}

/* 2. Cookie notice on screen: stewbot-site.js sets the class and --sfs-up (height of the notice plus its gap plus 12px) */
html.sfs-cc-on .sfa-launcher{bottom:var(--sfs-up,160px)!important}
html.sfs-cc-on .sfa-panel{bottom:calc(var(--sfs-up,160px) + 64px)!important}

/* 3. Pop-up panel while the cookie notice is on screen: shorter, so its top stays on screen; the details form scrolls inside it */
html.sfs-cc-on .sfa-panel{max-height:calc(100vh - var(--sfs-up,160px) - 64px - 16px)!important}
