/**
 * CxQ Google Hours - Public Styles
 *
 * @package CxQ\Plugin\GoogleHours
 */

.cxq-google-hours {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cxq-hours-location-name {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.cxq-hours-status {
    margin: 0 0 15px 0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.cxq-hours-status-open {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cxq-hours-status-closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cxq-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content;
}

.cxq-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cxq-hours-list li:last-child {
    border-bottom: none;
}

.cxq-hours-list li.cxq-hours-today {
    background-color: #f0f8ff;
    padding: 10px;
    margin: 0 -10px;
    border-left: 3px solid #0073aa;
    border-bottom: 1px solid #0073aa;
}

.cxq-hours-day {
    font-weight: 600;
    min-width: 100px;
}

.cxq-hours-time {
    color: #555;
}

.cxq-google-hours-error {
    color: #d63638;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .cxq-hours-list li {
        font-size: 14px;
    }

    .cxq-hours-day {
        min-width: 80px;
    }
}
