/* Выравнивание контейнера по левому краю */
#custom-calendar, #time-slots-container, #guests-container {
    max-width: 380px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-weekday-label {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

/* Единый стандарт для всех кнопок выбора */
.calendar-date-btn, .guest-btn, .time-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.2s;
    padding: 15px 0; /* Одинаковая высота для всех */
    cursor: pointer;
}

/* Квадратные пропорции только для дат */
.calendar-date-btn {
    aspect-ratio: 1 / 1;
    font-size: 16px;
}

/* Состояния */
.calendar-date-btn.active, .guest-btn.active, .time-btn.active {
    background-color: #0055a4 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Скрываем системные radio-кнопки в публичном выборе провайдера и оставляем только стилизованные кнопки. */
.variant-options input[type="radio"] {
    display: none;
}

/* Подсвечиваем активного провайдера теми же цветами, что и остальные активные элементы визарда. */
.variant-options input[type="radio"]:checked + span {
    background-color: #0055a4 !important;
    color: white !important;
    border-color: #000000 !important;
}

.calendar-date-btn.past-date, .time-btn.time-disabled, .nav-disabled {
    background-color: #f8f9fa !important;
    color: rgb(201, 201, 201) !important;
    cursor: not-allowed;
    opacity: 0.6;
}


/* --- ЭКСТРАКТИРОВАННЫЕ КЛАССЫ ИЗ HTML --- */

.mb-0 { margin-bottom: 0 !important; }
.mt-15 { margin-top: 15px !important; }

.booking-tabs-nav {
    display: flex; 
    gap: 10px; 
    margin-top: 15px;
}

.btn-wizard {
    background-color: #007bff !important; 
    color: white !important;
}

.btn-map-tab {
    background-color: #6c757d !important; 
    color: white !important;
}

.booking-section-wrapper {
    margin-top: 20px;
}

.wizard-step-disabled {
    opacity: 0.5; 
    pointer-events: none; 
    margin-top: 30px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
}

.wizard-step-confirm {
    margin-top: 30px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
}

.guests-time-container {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.contact-form-wrapper {
    max-width: 400px;
}

.btn-confirm-booking {
    background-color: #28a745 !important; 
    color: white !important; 
    width: 100%;
}

.map-controls-flex {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    align-items: flex-end;
}

.btn-check-map {
    background-color: #17a2b8 !important; 
    color: white !important; 
    height: 42px;
}

.floorplan-viewer-box {
    height: 500px; 
    position: relative; 
    border: 1px solid #ccc; 
    background: #fafafa; 
    overflow: hidden;
}

.notification-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
    justify-content: center; 
    align-items: center;
}

.notification-modal-box {
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    max-width: 400px; 
    width: 90%; 
    text-align: center; 
    font-family: 'Inter', sans-serif;
}

.inter-font {
    font-family: 'Inter', sans-serif;
}





/* Базовое состояние всех шагов */
.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Состояние видимого шага */
.wizard-step.active {
    display: block;
    opacity: 1;
}

/* Контейнер визарда, чтобы избежать резких прыжков высоты */
#booking-wizard {
    min-height: 450px;
    position: relative;
}

.step-summary-placeholder {
    display: none; /* Будет переключено на flex через JS */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    max-width: 380px;
    min-height: 45px; /* Резервируем высоту, чтобы контент ниже не прыгал */
}

.floorplan-table-client.table-selected {
    outline: 3px solid #f4a000;
    box-shadow: 0 0 0 4px rgba(244, 160, 0, 0.2);
}

#multi-table-counter {
    margin-top: 12px;
    max-width: 380px;
}

#multi-table-counter p {
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
}