/**
 * Google Opening Hours - Frontend Styles
 */

.google-opening-hours {
    font-family: inherit;
    line-height: 1.6;
}

.google-opening-hours__name {
    margin: 0 0 1em;
    font-size: 1.25em;
    font-weight: 600;
}

/* Status badge */
.google-opening-hours__status {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 600;
    text-transform: uppercase;
}

.google-opening-hours__status--open {
    background-color: #d4edda;
    color: #155724;
}

.google-opening-hours__status--closed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Today format */
.google-opening-hours__today {
    display: flex;
    gap: 0.5em;
    align-items: baseline;
}

.google-opening-hours__today-label {
    font-weight: 600;
}

.google-opening-hours__today-hours {
    color: inherit;
}

/* List format */
.google-opening-hours__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.google-opening-hours__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.google-opening-hours__item:last-child {
    border-bottom: none;
}

.google-opening-hours__item--today {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
    margin: 0 -0.5em;
    padding: 0.5em;
    border-radius: 4px;
}

.google-opening-hours__day {
    flex-shrink: 0;
    min-width: 100px;
}

.google-opening-hours__hours {
    text-align: right;
    color: inherit;
}

/* Error message (admin only) */
.google-opening-hours-error {
    padding: 1em;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}
