/* ==========================================================================
   KBC Opening Hours — Frontend Widget Styles
   Paste [kbc_opening_hours] into any page or widget.
   ========================================================================== */

.kbc-hours-widget {
    max-width: 380px;
    font-family: inherit;
}

/* ── Status bar ──────────────────────────────────────────────────── */
.kbc-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.kbc-status-open {
    background: #e8f5e9;
    color: #2e7d32;
}
.kbc-status-closed {
    background: #fce4e4;
    color: #c62828;
}
.kbc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: kbc-pulse 2s infinite;
}
.kbc-status-open .kbc-status-dot {
    background: #43a047;
}
.kbc-status-closed .kbc-status-dot {
    background: #e53935;
    animation: none;
}
@keyframes kbc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ── Holiday notice ──────────────────────────────────────────────── */
.kbc-holiday-notice {
    background: #fff8e1;
    border-left: 3px solid #FFD700;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    border-radius: 0 4px 4px 0;
    margin-bottom: 12px;
}

/* ── Hours table ─────────────────────────────────────────────────── */
.kbc-hours-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.kbc-hours-frontend-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.kbc-hours-frontend-table td {
    padding: 9px 4px;
    vertical-align: middle;
}
.kbc-day-name {
    font-weight: 500;
    color: #333;
    width: 55%;
}
.kbc-day-hours {
    color: #555;
    text-align: right;
}

/* Today row */
.kbc-today .kbc-day-name,
.kbc-today .kbc-day-hours {
    color: #CC0000;
    font-weight: 700;
}
.kbc-today-marker {
    display: inline-block;
    background: #CC0000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Closed row */
.kbc-day-closed .kbc-day-name {
    color: #aaa;
    font-weight: 400;
}
.kbc-closed-text {
    color: #bbb;
    font-style: italic;
}

.kbc-separator {
    margin: 0 4px;
    color: #bbb;
}

/* ── Phone link ──────────────────────────────────────────────────── */
.kbc-hours-phone {
    margin: 12px 0 0;
    font-size: 14px;
    color: #555;
}
.kbc-hours-phone a {
    color: #CC0000;
    font-weight: 600;
    text-decoration: none;
}
.kbc-hours-phone a:hover {
    text-decoration: underline;
}

/* ── List style ([kbc_opening_hours style="list"]) ───────────────── */
.kbc-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.kbc-hours-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid #f0f0f0;
}
.kbc-hours-list__item .kbc-day-name {
    font-weight: 500;
    color: #333;
}
.kbc-hours-list__item .kbc-day-hours {
    color: #555;
    text-align: right;
}
.kbc-hours-list__item.kbc-day-closed .kbc-day-name {
    color: #aaa;
    font-weight: 400;
}

/* ── .kbc-hours--today (spec alias — also covers list rows) ─────── */
.kbc-hours--today .kbc-day-name,
.kbc-hours--today .kbc-day-hours {
    color: #CC0000;
    font-weight: 700;
}
