/* ── Store-hours widget ────────────────────────────────────────────────────── */
/* Sits inside the existing dark header info row — no card of its own.        */

.cucu-store-hours-widget {
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #f8fafc;
    width: 100%;
}

.cucu-store-hours-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cucu-store-hours-row {
    display: flex;
    gap: 6px;
}

.cucu-store-hours-label {
    width: auto !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fda4af;
    white-space: nowrap;
}

.cucu-store-hours-widget.is-open .cucu-store-hours-label {
    color: #86efac;
}

.cucu-store-hours-countdown {
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.cucu-store-hours-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.cucu-store-hours-headline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.cucu-store-hours-more {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.cucu-store-hours-more:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.cucu-store-hours-widget.is-open .cucu-store-hours-more {
    background: rgba(134, 239, 172, 0.12);
    border-color: rgba(134, 239, 172, 0.3);
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */

.cucu-store-hours-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* CSS maximum — beats any WCFM/plugin element */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cucu-store-hours-modal[hidden] {
    display: none;
}

.cucu-store-hours-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.cucu-store-hours-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    color: #111827;
    border-radius: 22px;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.3);
    padding: 24px 22px 20px;
    animation: cucuStoreHoursPop 0.2s ease-out;
}

@keyframes cucuStoreHoursPop {
    from {
        transform: translateY(16px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cucu-store-hours-modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    border: 0 !important;
    background: none !important;
    color: #374151 !important;
    font-size: 36px;
    cursor: pointer;
    padding: 0 !important;
}

.cucu-store-hours-modal h3 {
    margin: 0 44px 6px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.cucu-store-hours-modal-summary {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 0.88rem;
}

/* ── Day list ──────────────────────────────────────────────────────────────── */

.cucu-store-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cucu-store-hours-day {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cucu-store-hours-day.is-today {
    border-color: rgba(249, 115, 22, 0.35) !important;
    background: linear-gradient(135deg, rgba(255, 247, 237, 1), rgba(255, 255, 255, 1)) !important;
}

/* Force text colors — overrides any theme/plugin stylesheet rules */
.cucu-store-hours-day-name {
    color: #111827 !important;
}

.cucu-store-hours-day-slots {
    color: #4b5563 !important;
}

.cucu-store-hours-day.is-closed .cucu-store-hours-day-slots {
    color: #9ca3af !important;
}

/* ── Hide store header contact info (keep address) ─────────────────────────── */

.wcfmmp_store_header_email,
.wcfmmp_store_header_phone,
.wcfmmp_store_header_mobile,
.wcfmmp_store_social { display: none !important; }

/* ── Suppress WCFM overlay elements when modal is open ─────────────────────── */

body.cucu-store-hours-open .wcfm_notification_wrapper,
body.cucu-store-hours-open .wcfm_buttons,
body.cucu-store-hours-open #wcfm_menu { display: none !important; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .cucu-store-hours-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .cucu-store-hours-modal-card {
        border-radius: 20px 20px 0 0;
        max-height: 86vh;
        width: 100%;
    }
}
