/**
 * Internal Opening Hours — Frontend Shortcode Styles
 */

/* Wrapper: block-level, sized to content, creates new BFC so floats can't intrude */
.internal-opening-hours-wrapper {
    display: flow-root;
    width: -moz-fit-content;
    width: fit-content;
}

/* Department name heading */
.internal-opening-hours-title {
    font-weight: 600;
    margin-bottom: 0.4em;
}

/* Container for all rows — grid ensures columns align across rows */
.internal-opening-hours-rows {
    display: grid;
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: baseline;
    row-gap: 0.2em;
    column-gap: 2em;
}

/* Each row spans both columns via subgrid (falls back gracefully without it) */
.internal-opening-hours-row {
    display: contents;
}

/* Hours column: don't wrap times */
.internal-opening-hours-hours {
    white-space: nowrap;
}

/* Highlight the current day */
.internal-opening-hours-day.is-today,
.internal-opening-hours-hours.is-today {
    font-weight: bold;
}

/* Small date line shown below the day name for inline special dates */
.internal-opening-hours-special-date {
    display: block;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.6;
    opacity: 0.7;
}

/* Visual gap between weekly hours and special dates */
.internal-opening-hours-separator {
    grid-column: 1 / -1;
    height: 0.75em;
}
