/* ========================================
   HOURS PROZON
   Scoped theme-variable styling

   This file intentionally consumes the site editor's
   semantic --pz-* variables instead of creating a separate
   color system for the hours prozon.
======================================== */

.pz-hours {
    width: 100%;
    overflow: hidden;
    color: var(--pz-color-body-text, var(--pz-text, #1f2933));
    font-family: var(--pz-font-body, inherit);
    font-size: var(--pz-size-body, 1rem);
}

.pz-hours,
.pz-hours * {
    box-sizing: border-box;
}

/*
   Match the Google Reviews prozon width pattern:
   - the outer prozon fills the editor/export zone
   - this inner wrapper controls the visible card width and centering
   - the card then fills the wrapper
*/
.pz-hours__inner {
    width: min(var(--pz-container, 1200px), calc(100% - 2rem));
    margin: 0 auto;
}

.pz-hours__card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--pz-radius, 12px);
    border: 1px solid var(--pz-color-border-medium, var(--pz-border, #d7d7d7));
    background: var(--pz-bg-card, var(--pz-surface-bg, var(--pz-surface, #ffffff)));
    color: var(--pz-color-body-text, var(--pz-text, #1f2933));
    box-shadow: var(--pz-shadow, none);
}

.pz-hours__title {
    margin: 0;
    padding: 1.5rem 1.5rem 0;
    color: var(--pz-color-h2, var(--pz-color-h1, var(--pz-headings, #7a1f16)));
    font-family: var(--pz-font-h2, var(--pz-font-h1, var(--pz-font-body, inherit)));
    font-size: var(--pz-size-h2, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

.pz-hours__content {
    flex: 1 1 auto;
    padding: 1rem 1.5rem 1.5rem;
    color: var(--pz-color-body-text, var(--pz-text, #1f2933));
}

.pz-hours__list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pz-hours__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    padding: 0.4rem 0 0.55rem;
    border-bottom: 1px solid var(--pz-color-divider, var(--pz-color-border-light, var(--pz-border, #d7d7d7)));
}

.pz-hours__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pz-hours__day {
    flex: 0 0 auto;
    min-width: 4rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--pz-color-h3, var(--pz-color-h2, var(--pz-headings, #7a1f16)));
}

.pz-hours__time {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    color: var(--pz-color-body-text, var(--pz-text, #1f2933));
}

.pz-hours__message {
    margin: 0;
    color: var(--pz-color-muted-text, var(--pz-color-body-text, var(--pz-text, #1f2933)));
}

.pz-hours a {
    color: var(--pz-color-link-text, var(--pz-color-body-text, var(--pz-text, #1f2933)));
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.pz-hours a:hover,
.pz-hours a:focus-visible {
    color: var(--pz-color-link-hover, var(--pz-color-link-text, var(--pz-color-body-text, var(--pz-text, #1f2933))));
}

.pz-hours a:focus-visible {
    outline: 2px solid var(--pz-color-focus-outline, var(--pz-color-link-hover, currentColor));
    outline-offset: 3px;
    border-radius: calc(var(--pz-radius, 12px) * 0.35);
}

@media (max-width: 980px) {
    .pz-hours__title {
        font-size: calc(var(--pz-size-h2, 2rem) * 0.8);
    }

    .pz-hours__content {
        padding: 0.85rem 1.25rem 1.25rem;
    }
}


@media (max-width: 640px) {
    .pz-hours__inner {
        width: min(calc(100% - 1.5rem), 520px);
    }
}

@media (max-width: 420px) {
    .pz-hours__title {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pz-hours__content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
