/* ==========================================================
   SHARED FOOTER — sole owner of .site-footer styles
   Fixed to viewport bottom (does not scroll, does not blink).
   Do NOT redeclare .site-footer / footer height / position
   in any page CSS (office-dashboard, queue-list, reports, etc.).
========================================================== */

.site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    margin: 0 !important;
    z-index: 150 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ffffff !important;
    color: #333333 !important;
    border-top: 1px solid rgba(92, 10, 20, 0.10);
    box-shadow: none !important;

    box-sizing: border-box !important;
    flex-shrink: 0 !important;

    /* Kill any transform/animation that could make it "blink" */
    transform: none !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
}

.site-footer__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.site-footer__copy {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-align: center !important;
    width: 100%;
    color: #8a2e35 !important;
}

.site-footer__copy a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    color: inherit;
}

/* Reserve space so content is never hidden under the fixed bar.
   Same on every page → no layout jump when navigating. */
html {
    /* sticky/fixed footer space */
}
body {
    /* footer height 45px + clear visual gap above it */
    padding-bottom: calc(45px + 2.5rem) !important;
    box-sizing: border-box !important;
}


/* ── Session / cookie notice banner ─────────────────────────
   Sits just above the fixed footer. Styles live here (not only
   in legal.css) so every page that includes footer.php gets a
   consistent, non-broken banner. */
.consent-banner {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 45px !important; /* above fixed .site-footer */
    z-index: 160 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    margin: 0;
    background: #4a0a10 !important;
    color: #f5f5f5 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    line-height: 1.45;
    box-sizing: border-box;
}
.consent-banner[hidden] {
    display: none !important;
}
.consent-banner p {
    margin: 0 !important;
    flex: 1 1 220px;
    color: rgba(255,255,255,0.92) !important;
}
.consent-banner a {
    color: #ffd4d8 !important;
    text-decoration: underline;
    font-weight: 500;
}
.consent-banner a:hover {
    color: #fff !important;
}
.consent-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.consent-banner__accept {
    appearance: none;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    background: #fff !important;
    color: #1f1f1f !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.consent-banner__accept:hover {
    background: #f0f0f0 !important;
}
.consent-banner__accept:active {
    transform: scale(0.98);
}
@media (max-width: 560px) {
    .consent-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        bottom: 45px !important;
    }
    .consent-banner__accept {
        width: 100%;
        text-align: center;
    }
}

/* FOOTER_CONTENT_GAP_LOCK — ensure last content never sits flush on footer
   (wins over page CSS that zeros padding-bottom on .od-wrap / body) */
.od-wrap,
.app-shell > .od-wrap,
.staff-wrap,
.req-wrap {
    padding-bottom: 2.5rem !important;
    margin-bottom: 0 !important;
}
.app-shell {
    padding-bottom: 0.75rem !important;
}
