/* ============================================
   SIPO Status Strip — Thonglor Thai Restaurant
   ============================================
   Only the open/closed strip is styled here.
   No modal/popup styles: this site does not use
   the closed, info, or offer popups.
   Palette follows the site: deep green + gold.
   ============================================ */

:root {
    --strip-height: 36px;
    --thonglor-green: #294300;
    --thonglor-gold: #e6ca48;
}

/* ---- The strip ---- */
.status-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: var(--thonglor-green);
    color: var(--thonglor-gold);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    border-bottom: 1px solid rgba(230, 202, 72, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    transition: background 0.3s ease;
}

.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 9px 16px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Pulsing status dot ---- */
.status-strip-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 0 0 0 currentColor;
    animation: strip-pulse 2.2s infinite;
}

.status-strip.open .status-strip-dot { animation: strip-pulse-green 2.2s infinite; }
.status-strip.closed .status-strip-dot { animation: none; }

@keyframes strip-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(156, 163, 175, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(156, 163, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(156, 163, 175, 0); }
}

@keyframes strip-pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---- States ---- */
.status-strip.open   { background: var(--thonglor-green); color: var(--thonglor-gold); }
.status-strip.closed { background: #3a1212; color: #f6d5d5; border-bottom-color: rgba(239, 68, 68, 0.35); }
.status-strip.error  { background: #33270a; color: #f0dfae; }

.status-strip .countdown-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
}

/* ---- Push the page down so nothing hides under the fixed strip ---- */
body.has-status-strip #root {
    padding-top: var(--strip-height, 36px);
}

/* The Canva nav is position:sticky;top:0 — hold it below the strip. */
body.has-status-strip #root > nav {
    top: var(--strip-height, 36px) !important;
}

/* ---- Optional: dim ordering CTAs when disabled by config ---- */
body.ordering-disabled a[href*="order.sipo.nz"] {
    opacity: 0.55;
    pointer-events: none;
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
    :root { --strip-height: 42px; }
    .status-strip { font-size: 0.74rem; }
    .status-strip-inner { padding: 8px 12px; gap: 0.45rem; }
}
