/* Offline connection banner — UI only.
   Loaded by _Layout.cshtml, _LayoutAuth.cshtml, and _LayoutProfile.cshtml. */

#pamook-offline {
    --offline-ink: #fff8f2;
    --offline-bg: #c05612;
    --offline-z: 1045;

    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--offline-z);
    box-sizing: border-box;
    min-height: 40px;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    direction: rtl;
    color: var(--offline-ink);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    background: var(--offline-bg);
    box-shadow: 0 4px 16px rgba(38, 50, 68, 0.12);
    pointer-events: none;
}

#pamook-offline:not([hidden]) {
    display: block;
}

/* Desktop header is sticky at z-index 1040; dropdowns are 1100.
   1045 keeps the banner visible as a thin top strip without covering menus.

   Storefront mobile header is fixed-top at 110px / z-index 9999999.
   Sit just below it so the banner never covers header or bottom nav (1020). */
@media (max-width: 1077px) {
    body:has(nav.header-responsive.pamook-header) #pamook-offline {
        top: 110px;
        padding-top: 10px;
        z-index: 1010;
    }
}
