/**
 * Widget de horários de funcionamento (página Endereço)
 * Luz verde/vermelha, cabeçalho clicável, painel expandível
 */
.horarios-funcionamento-widget:not(.footer-menu__horarios) {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.horarios-funcionamento-widget__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.horarios-funcionamento-widget__header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.horarios-funcionamento-widget__luz {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.horarios-funcionamento-widget__luz--aberto {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.horarios-funcionamento-widget__luz--fechado {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.horarios-funcionamento-widget__texto {
    flex: 1;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.horarios-funcionamento-widget__chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.horarios-funcionamento-widget--expandido .horarios-funcionamento-widget__chevron {
    transform: rotate(180deg);
}

.horarios-funcionamento-widget__body {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem 1rem;
}

.horarios-funcionamento-widget--expandido .horarios-funcionamento-widget__body {
    display: block;
}

.horarios-funcionamento-widget__tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #4b5563;
}

.horarios-funcionamento-widget__tabela th,
.horarios-funcionamento-widget__tabela td {
    padding: 0.375rem 0.5rem 0.375rem 0;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.horarios-funcionamento-widget__tabela tr:last-child th,
.horarios-funcionamento-widget__tabela tr:last-child td {
    border-bottom: none;
}

.horarios-funcionamento-widget:not(.footer-menu__horarios) .horarios-funcionamento-widget__tabela th {
    font-weight: 500;
    color: #374151;
}

.horarios-funcionamento-widget__tabela td {
    font-variant-numeric: tabular-nums;
}
