/* Sticky footer in normal document flow, not a fixed overlay. */
body.storefront,
body.admin {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
}
body > .site-header,
body > .site-footer {
    flex: 0 0 auto;
}
body > main.main {
    flex: 1 0 auto;
    min-height: 0;
}
body > .site-footer {
    margin-top: auto;
}
/* Reserve room INSIDE the footer, rather than a blank strip below it.
   The existing fixed accessibility control stays reachable without
   obscuring the last footer links or copyright. */
@media (min-width: 851px) and (max-width: 1050px) {
    body > .site-footer { padding-bottom: 5.3rem; }
}
:root[data-scale='150'] body > .site-footer,
:root[data-scale='200'] body > .site-footer {
    padding-bottom: 5.3rem;
}
@media (max-width: 850px) {
    body > .site-footer {
        padding-bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
    }
    :root[data-scale='150'] body > .site-footer,
    :root[data-scale='200'] body > .site-footer {
        padding-bottom: calc(5.3rem + env(safe-area-inset-bottom, 0px));
    }
}
