/* ============================================
   SIPO API Dynamic Component Styles
   ============================================
   Scoped to the pieces this site actually uses:
   the status strip and the API-rendered opening
   hours. No modal/popup styles — this site shows
   no popups.
   ============================================ */

:root {
    --sipo-red: #ea272d;
    --sipo-green: #22c55e;
    --sipo-danger: #ef4444;
    /* Overwritten with the measured height by statusManager.js once the strip
       renders; this default just avoids a jump on first paint. */
    --strip-height: 30px;
}

/* ---- Status Strip ---- */
.status-strip {
    background: #141414;
    color: #fff;
    padding: 7px 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200; /* above .fh5co-nav (1001) */
    transition: background 0.3s ease;
}

.status-strip.open { background: #14532d; }
.status-strip.closed { background: #7f1d1d; }
.status-strip.error { background: #3f3f46; }

.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #9ca3af;
    flex: 0 0 auto;
}

.status-strip.open .status-strip-dot {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: sipo-pulse 2s infinite;
}

@keyframes sipo-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.countdown-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* The template's nav is fixed at top:0 — push it below the strip so the
   strip always sits above it. */
body.has-status-strip .fh5co-nav {
    top: var(--strip-height);
}

/* On scroll the template hides the logo row by lifting the WHOLE nav up 82px
   (top:-82px). With a strip present that slides the nav underneath it and
   leaves the logo half-clipped. So pin the nav below the strip at every scroll
   position and collapse the logo row itself instead — same compact result,
   nothing ever disappears behind the strip. */
body.has-status-strip .fh5co-nav.scrolled {
    top: var(--strip-height);
}

body.has-status-strip .fh5co-nav.scrolled .logo-wrap {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: height 0.3s ease, opacity 0.2s ease;
}

@media screen and (max-width: 480px) {
    .status-strip {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ---- API-rendered opening hours (footer) ---- */
#fh5co-footer #footer-hours {
    padding: 0;
    margin: 0;
    list-style: none;
}

#fh5co-footer #footer-hours li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

#fh5co-footer #footer-hours li .day {
    flex: 0 0 auto;
    min-width: 42px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.55);
}

#fh5co-footer #footer-hours li .time {
    flex: 1 1 auto;
    text-align: right;
    font-size: 15px;
    line-height: 1.45;
}

#fh5co-footer #footer-hours li.today .day,
#fh5co-footer #footer-hours li.today .time {
    color: #fff;
    font-weight: 700;
}

#fh5co-footer #footer-hours li.today .day::after {
    content: " ·";
    color: var(--sipo-red);
}

#fh5co-footer #footer-hours li .time.closed-day {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ---- Hours table (contact / reservation style pages) ---- */
.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-row:last-child { border-bottom: 0; }
.hours-row.today { font-weight: 700; color: #fff; }
.hours-row .time.closed-day { opacity: 0.55; font-style: italic; }

/* ---- Ordering disabled state (only if the flag is turned on) ---- */
body.ordering-disabled .orderbutton,
body.ordering-disabled a.order-link {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}
