/**
 * CM Restaurant Reservation - Frontend Styles
 * Erweiterte Zeitfenster-Anzeige + Personen-Dropdown
 *
 * @package CM_Restaurant_Reservation
 * @version 1.3.0
 */

/* Persons dropdown - matches EA form styling */
.ea-bootstrap .cmrr-persons-step {
    margin-bottom: 15px;
}

.ea-bootstrap .cmrr-persons-step select {
    max-width: 200px;
}

/* Enhanced slot display */
.ea-bootstrap .time .time-value.cmrr-enhanced {
    min-width: 150px;
    text-align: center;
    font-size: 0.95em;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

/* Loading state */
.ea-bootstrap .time .time-value.cmrr-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Disabled slots - clear visual distinction */
.ea-bootstrap .time .time-disabled.cmrr-no-capacity {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Tooltip styling */
.ea-bootstrap .time .time-value[title] {
    cursor: pointer;
}

/* EA "no slots" message fix */
.ea-bootstrap .time .time-message {
    color: #000;
    font-weight: 700;
}

/* Day notice info box */
.cmrr-day-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffa000;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #5d4037;
}

.cmrr-day-notice-icon {
    font-size: 1.2em;
    margin-right: 4px;
    color: #ffa000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ea-bootstrap .time .time-value.cmrr-enhanced {
        min-width: 130px;
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .ea-bootstrap .cmrr-persons-step select {
        max-width: 100%;
    }
}
