.befive-business-hours {
    width: 100%;
    max-width: var(--bbhr-front-max-width, 620px);
    color: var(--bbhr-front-text-color, inherit);
    font: inherit;
    font-size: var(--bbhr-front-font-size, 16px);
}

.befive-business-hours.is-block-left {
    margin-left: 0;
    margin-right: auto;
}

.befive-business-hours.is-block-center {
    margin-left: auto;
    margin-right: auto;
}

.befive-business-hours.is-block-right {
    margin-left: auto;
    margin-right: 0;
}

.befive-business-hours *,
.befive-business-hours *::before,
.befive-business-hours *::after {
    box-sizing: border-box;
}

.befive-business-hours__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(127, 127, 127, .22);
}

.befive-business-hours__row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 24px;
    margin: 0 !important;
    padding: var(--bbhr-front-row-spacing, 12px) 0 !important;
    border-bottom: 1px solid rgba(127, 127, 127, .22);
}

.befive-business-hours__row::before,
.befive-business-hours__row::after {
    display: none !important;
    content: none !important;
}

.befive-business-hours__day {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: inherit;
    opacity: .82;
    font-weight: 500;
    line-height: 1.35;
}

.befive-business-hours__day small {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--bbhr-front-highlight-text, #fff);
    background: var(--bbhr-front-highlight, #e53935);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
}

.befive-business-hours__times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
}

.befive-business-hours.is-times-left .befive-business-hours__times {
    justify-content: flex-start;
}

.befive-business-hours.is-times-center .befive-business-hours__times {
    justify-content: center;
}

.befive-business-hours.is-times-right .befive-business-hours__times {
    justify-content: flex-end;
}

.befive-business-hours__time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid rgba(127, 127, 127, .20);
    border-radius: var(--bbhr-front-pill-radius, 999px);
    color: var(--bbhr-front-time-text, inherit);
    background: var(--bbhr-front-time-bg, rgba(127, 127, 127, .09));
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
}

.befive-business-hours__closed {
    justify-self: end;
    color: inherit;
    opacity: .52;
    font-weight: 600;
    line-height: 1.35;
}

.befive-business-hours.is-times-left .befive-business-hours__closed {
    justify-self: start;
}

.befive-business-hours.is-times-center .befive-business-hours__closed {
    justify-self: center;
}

.befive-business-hours__row.is-today .befive-business-hours__day {
    opacity: 1;
    font-weight: 700;
}

@media (max-width: 520px) {
    .befive-business-hours__row {
        grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr);
        gap: 12px;
        padding: max(8px, calc(var(--bbhr-front-row-spacing, 12px) - 2px)) 0 !important;
    }

    .befive-business-hours__day {
        gap: 5px;
    }

    .befive-business-hours__day small {
        display: none;
    }

    .befive-business-hours__time {
        padding: 3px 7px;
        font-size: .92em;
    }
}

/* Status opening shortcode */
.befive-business-status-wrap {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.befive-business-status-wrap.is-status-left { justify-content: flex-start; }
.befive-business-status-wrap.is-status-center { justify-content: center; }
.befive-business-status-wrap.is-status-right { justify-content: flex-end; }

.befive-business-status {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    width: auto;
    padding: var(--bbhr-status-padding-y, 0) var(--bbhr-status-padding-x, 0);
    border-radius: var(--bbhr-status-radius, 999px);
    color: inherit;
    background: var(--bbhr-status-background, transparent);
    font: inherit;
    font-size: var(--bbhr-status-font-size, 16px);
    line-height: 1.35;
    box-sizing: border-box;
}

.befive-business-status strong {
    font-weight: 700;
}

.befive-business-status.is-open strong {
    color: var(--bbhr-status-open-color, #148a57);
}

.befive-business-status.is-closed strong {
    color: var(--bbhr-status-closed-color, #e53935);
}

.befive-business-status__detail {
    color: var(--bbhr-status-detail-color, inherit);
}
