/* ============================================================
   Store Hours Status — Stylesheet v2.1.3
   ============================================================ */

/* ---- Hours table ----------------------------------------- */

.shs-hours-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.shs-hours {
    border-collapse: collapse;
    width: 100%;
    max-width: 540px;
    font-size: 1em;
    background: #e8f5f0; /* lichtgroen */
    border-radius: 8px;
    overflow: hidden;
}

/* Geen thead tonen */
.shs-hours thead {
    display: none;
}

.shs-hours tbody tr {
    border: none;
}

.shs-hours td {
    padding: 13px 20px;
    vertical-align: middle;
    border: none;
    background: transparent;
}

/* Day cell: name only (no stacked date by default, date goes inline) */
.shs-day-cell {
    white-space: nowrap;
    width: 130px;
}

.shs-day-name {
    display: block;
    font-weight: 400;
}

.shs-day-date {
    display: block;
    font-size: 0.82em;
    opacity: 0.55;
    margin-top: 1px;
}

/* Today highlight — groene rij, vette tekst */
.shs-hours tr.shs-today {
    background: #4db896;
}

.shs-hours tr.shs-today td {
    background: #4db896;
    font-weight: 700;
    color: #1a3d2e;
}

/* Closed day */
.shs-closed-text {
    color: #7a9e8e;
    font-style: italic;
    font-weight: 400;
}

.shs-hours tr.shs-today .shs-closed-text {
    color: #2a6b4e;
}

/* Time periods */
.shs-periods {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
}

.shs-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-variant-numeric: tabular-nums;
    font-size: 1em;
    white-space: nowrap;
}

.shs-sep {
    margin: 0 3px;
}

/* ---- Status badge ----------------------------------------- */

.shs-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.shs-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.shs-status.is-open   .shs-status-dot { background: #4db896; }
.shs-status.is-closed .shs-status-dot { background: #ef4444; }

.shs-status-hint {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.9em;
    margin-left: 2px;
}

/* ---- Dark mode ------------------------------------------- */

@media (prefers-color-scheme: dark) {
    .shs-hours {
        background: #1a3d2e;
    }
    .shs-hours tr.shs-today {
        background: #2a6b4e;
    }
    .shs-hours tr.shs-today td {
        background: #2a6b4e;
        color: #e8f5f0;
    }
    .shs-closed-text {
        color: #4a7a60;
    }
}
