/**
 * Modal Styles for Banya Booking Plugin
 */

/* Пока открыта модалка — не прокручиваем страницу под ней (без position:fixed на body — он ломает скролл внутри модалки в части браузеров) */
html.banya-modal-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}
body.banya-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    /* height 100% помогает темам, где body не сжимается только от overflow */
    min-height: 100%;
}

/* Пока открыта форма бронирования — не показываем плавающие кнопки «наверх» темы поверх модалки */
body.banya-modal-open #scroll-up,
body.banya-modal-open #scroll_top,
body.banya-modal-open #toTop,
body.banya-modal-open #go-top,
body.banya-modal-open #gotop,
body.banya-modal-open .scroll-up,
body.banya-modal-open .scroll-top,
body.banya-modal-open .scroll_top,
body.banya-modal-open .scroll-to-top,
body.banya-modal-open .scrollToTop,
body.banya-modal-open .back-to-top,
body.banya-modal-open .back_top,
body.banya-modal-open .totop-button,
body.banya-modal-open #ast-scroll-top,
body.banya-modal-open #generate-scroll-to-top {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Overlay */
.banya-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Modal Container */
.banya-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content */
.banya-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: banya-modal-appear 0.3s ease;
}

/* Свайп-закрытие (touch): без transition во время перетаскивания */
.banya-modal .banya-modal-content.banya-modal-content--dragging {
    transition: none !important;
    animation: none !important;
}

.banya-modal-content--large {
    max-width: 700px;
}

@keyframes banya-modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.banya-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.banya-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Modal Body */
.banya-modal-body {
    padding: 24px;
}

/* Modal Footer */
.banya-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

/* Close Button */
.banya-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banya-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Services Modal */
.banya-services-notice {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 24px;
}

.banya-services-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.banya-services-notice h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.banya-services-notice p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.banya-services-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banya-service-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banya-service-option:hover {
    border-color: #4CAF50;
}

.banya-service-option:has(input:checked) {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.banya-service-option input {
    display: none;
}

.banya-service-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.banya-service-option:has(input:checked) .banya-service-checkbox {
    background: #4CAF50;
    border-color: #4CAF50;
}

.banya-service-option:has(input:checked) .banya-service-checkbox::after {
    content: '✓';
    color: #fff;
    font-weight: bold;
}

.banya-service-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-weight: 500;
    color: #333;
    flex: 1;
    min-width: 0;
}

.banya-service-icon {
    font-size: 24px;
}

/* Continue Button */
.banya-continue-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Form Styles */
.banya-booking-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.banya-form-section {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
}

.banya-form-section:last-child {
    margin-bottom: 0;
}

.banya-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.banya-step-number {
    width: 28px;
    height: 28px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.banya-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.banya-form-row:last-child {
    margin-bottom: 0;
}

.banya-form-row--time {
    grid-template-columns: 1fr 1fr;
}

.banya-form-row--guests {
    grid-template-columns: 1fr 1fr;
}

.banya-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banya-form-field--full {
    grid-column: 1 / -1;
}

.banya-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.banya-form-field .required {
    color: #e53935;
}

.banya-form-field input,
.banya-form-field select,
.banya-form-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.banya-form-field input:focus,
.banya-form-field select:focus,
.banya-form-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.banya-form-field input[type="date"],
.banya-form-field input[type="time"] {
    cursor: pointer;
}

.banya-form-field .banya-hint {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Number Input */
.banya-number-input {
    display: flex;
    align-items: center;
}

.banya-number-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banya-number-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.banya-number-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.banya-number-btn:hover {
    background: #e0e0e0;
}

.banya-number-input input {
    width: 60px;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.banya-number-input input:focus {
    border-color: #ddd;
    box-shadow: none;
}

/* Time Select */
.banya-time-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.banya-time-select option:disabled {
    color: #999;
}

/* Calculation Block */
.banya-calculation {
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.banya-calculation-header {
    padding: 12px 16px;
    background: #4CAF50;
    color: #fff;
}

.banya-calculation-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.banya-calculation-body {
    padding: 16px;
}

.banya-calculation-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.banya-calculation-row:last-child {
    border-bottom: none;
}

.banya-calculation-label {
    color: #666;
}

.banya-calculation-value {
    font-weight: 500;
    color: #333;
}

.banya-calculation-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #ddd;
    font-size: 16px;
    font-weight: 600;
}

.banya-calculation-total .banya-calculation-value {
    color: #4CAF50;
    font-size: 18px;
}

.banya-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   Визуальный пикер времени
   ============================================================ */

.banya-time-picker {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    background: #fafafa;
    min-height: 52px;
}

.banya-time-picker-hint {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 6px 0;
}

/* Спиннер загрузки */
.banya-time-picker-loading {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.banya-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: banya-spin 0.7s linear infinite;
}

@keyframes banya-spin {
    to { transform: rotate(360deg); }
}

/* Подсказка шага */
.banya-time-picker-step {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Сетка часовых слотов */
.banya-time-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.banya-time-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-height: 48px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px 2px;
    line-height: 1.2;
}

.banya-time-slot--with-advantage-badge {
    padding-top: 10px;
    min-height: 52px;
}

.banya-slot-advantage-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    display: inline-block;
    max-width: 76px;
    padding: 2px 5px;
    border-radius: 6px;
    border: 1px solid rgba(22, 163, 74, 0.45);
    background: #16a34a;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(22, 101, 52, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Свободный слот */
.banya-time-slot--free {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}

.banya-time-slot--free:hover {
    background: #c8e6c9;
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(76,175,80,0.25);
}

/* Занятый слот */
.banya-time-slot--busy {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #bdbdbd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.banya-time-slot--busy .banya-slot-status {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
}

/* Технический час — между бронированиями */
.banya-time-slot--tech {
    background: #fff8e1;
    border-color: #ffe082;
    color: #f57f17;
    cursor: not-allowed;
    text-decoration: none;
}

.banya-time-slot--tech .banya-slot-status {
    color: #f9a825;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

/* Слот доступен в расписании, но заблокирован как старт правилом min-gap */
.banya-time-slot--gap-blocked {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
    cursor: pointer;
    text-decoration: none;
}

.banya-time-slot--gap-blocked:hover {
    background: #ffcdd2;
    border-color: #e57373;
    box-shadow: 0 2px 6px rgba(229, 115, 115, 0.28);
    transform: translateY(-1px);
}

.banya-time-slot--gap-blocked .banya-slot-status {
    color: #c62828;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

/* Всплывающая подсказка для заблокированного старта */
.banya-gap-hint-tooltip {
    position: absolute;
    z-index: 700000;
    max-width: 420px;
    background: #111;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    padding-right: 28px;
}

.banya-gap-hint-text {
    display: block;
}

.banya-gap-hint-close {
    position: absolute;
    right: 6px;
    top: 6px;
    transform: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .9;
}

.banya-gap-hint-close:hover {
    opacity: 1;
}

.banya-gap-hint-tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    margin-left: -6px;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111;
}

.banya-gap-hint-tooltip--below:after {
    top: auto;
    bottom: 100%;
    border-top: 0;
    border-bottom: 6px solid #111;
}

/* Выбранное начало */
.banya-time-slot--start {
    background: #4CAF50 !important;
    border-color: #388E3C !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(76,175,80,0.4);
    transform: translateY(-1px);
}

.banya-time-slot--start:hover {
    background: #43A047 !important;
}

/* Диапазон */
.banya-time-slot--range {
    background: #C8E6C9 !important;
    border-color: #81C784 !important;
    color: #1b5e20 !important;
}

/* Конечный слот (отображение при подсветке) */
.banya-time-slot--end {
    background: #a5d6a7 !important;
    border-color: #4CAF50 !important;
    color: #1b5e20 !important;
}

.banya-slot-time {
    display: block;
}

.banya-slot-status {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
}

/* Разделитель между секциями пикера */
.banya-duration-wrap {
    margin-top: 14px;
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
    transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.banya-duration-sheet-overlay,
.banya-duration-sheet-close {
    display: none;
}

.banya-duration-wrap.is-attention {
    background: #f0f7ff;
    border-top-color: #bfdbfe;
    box-shadow: 0 0 0 2px rgba(59,130,246,.22) inset;
}

.banya-modal-main .banya-form-row--guests.is-attention {
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #f8fbff;
    box-shadow: 0 0 0 2px rgba(59,130,246,.14) inset;
    transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
    padding: 8px;
}

/* Кнопки продолжительности */
.banya-duration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 782px) {
    /*
     * Структура: .banya-modal-main > .banya-modal-body (здесь time picker + bottom sheet) + .banya-modal-footer.
     * Лист продолжительности — position:fixed внутри body. Футер идёт в DOM после body и без z-index
     * рисуется поверх предыдущего блока (на iOS Safari это особенно заметно).
     * Поднимаем тело модалки выше футера в порядке наложения.
     */
    .banya-modal-main .banya-modal-body {
        position: relative;
        z-index: 2;
    }

    .banya-modal-main .banya-modal-footer {
        position: relative;
        z-index: 1;
    }

    /* Старая модалка: .banya-modal-content > .body + .calculation + .footer (без .banya-modal-main) */
    .banya-modal-content:not(.banya-modal-content--split) > .banya-modal-body {
        position: relative;
        z-index: 2;
    }

    .banya-modal-content:not(.banya-modal-content--split) > .banya-modal-footer {
        position: relative;
        z-index: 1;
    }

    body.banya-duration-sheet-lock {
        overflow: hidden;
    }

    html.banya-duration-sheet-lock {
        overflow: hidden;
    }

    /*
     * Пока открыт лист продолжительности — убираем подвал с кнопками из потока (iOS / compositor
     * всё равно может рисовать flex‑футер поверх fixed внутри модалки; display:none устраняет перекрытие
     * даже без JS‑портала и при агрессивном кэше).
     */
    body.banya-duration-sheet-lock .banya-modal .banya-modal-footer,
    .banya-modal.banya-modal--duration-sheet-active .banya-modal-footer {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /*
     * На мобильном лист и оверлей переносятся в #banya-duration-portal-root (см. booking-form.js),
     * иначе селектор ниже не сработает. Дублируем правила для обоих вариантов размещения в DOM.
     */
    #banya-duration-portal-root {
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        pointer-events: none;
    }

    #banya-duration-portal-root .banya-duration-sheet-overlay,
    #banya-duration-portal-root .banya-duration-wrap {
        pointer-events: auto;
    }

    /*
     * Принудительный слой для WebKit (иногда без этого fixed остаёт «под» соседними элементами модалки).
     */
    #banya-duration-portal-root .banya-duration-sheet-overlay,
    #banya-duration-portal-root .banya-duration-wrap--sheet {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    body.banya-duration-sheet-lock #banya-duration-portal-root .banya-duration-sheet-overlay,
    .banya-time-picker--duration-sheet-open .banya-duration-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 100050;
    }
    .banya-duration-wrap--sheet {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100060;
        margin: 0;
        padding: 14px 12px calc(12px + env(safe-area-inset-bottom));
        border-top: 0;
        border-radius: 16px 16px 0 0;
        background: #fff;
        box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.28);
        max-height: 72vh;
        overflow: auto;
    }
    .banya-duration-wrap--sheet .banya-time-picker-step-dur {
        padding-right: 28px;
        margin-bottom: 10px;
    }
    .banya-duration-wrap--sheet .banya-duration-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 10px;
        top: 10px;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 999px;
        background: #e2e8f0;
        color: #0f172a;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }
    .banya-duration-wrap--sheet .banya-duration-grid {
        gap: 10px;
    }
    .banya-duration-wrap--sheet .banya-duration-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }
}

.banya-duration-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 90px;
}

.banya-duration-btn:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76,175,80,0.2);
}

.banya-dur-hours {
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
    display: block;
}

/* Bottom sheet / портал: блок вне .banya-modal-main — иначе текст «N часов» остаётся зелёным как в базе */
.banya-duration-wrap--sheet .banya-dur-hours,
#banya-duration-portal-root .banya-dur-hours {
    color: #1d4ed8;
}

.banya-dur-range {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
}

.banya-duration-btn--gift-badge {
    padding-top: 28px;
}

.banya-duration-btn--gift-unavailable-hint {
    padding-top: 20px;
}

.banya-dur-gift-badge {
    position: absolute;
    top: -10px;
    right: -6px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding: 2px 6px;
    border-radius: 7px;
    border: 1px solid #fca5a5;
    background: #ef4444;
    color: #fff;
    line-height: 1.05;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.25);
}

.banya-dur-gift-badge-line1 {
    font-size: 9px;
    font-weight: 700;
}

.banya-dur-gift-badge-line2 {
    font-size: 9px;
    font-weight: 600;
}

.banya-dur-gift-badge--unavailable {
    background: #64748b;
    border-color: #94a3b8;
    color: #f8fafc;
    font-size: 9px;
    font-weight: 600;
    align-items: center;
    text-align: right;
    max-width: 110px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.banya-time-no-slots {
    color: #e53935;
    font-size: 13px;
    margin: 0;
}

/* Итоговое выбранное время */
.banya-time-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}

.banya-time-selected-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.banya-time-selected-text {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banya-time-selected-main {
    display: block;
    line-height: 1.15;
}

.banya-time-selected-gift {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    color: #166534;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(22, 101, 52, 0.35);
    border-radius: 999px;
    line-height: 1.35;
}

.banya-time-reset {
    border: none;
    background: transparent;
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    text-decoration: underline;
    flex-shrink: 0;
}

.banya-time-reset:hover {
    background: #c8e6c9;
    text-decoration: none;
}

/* Блок расчёта стоимости */
.banya-calculation {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.banya-calculation-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: #fff;
}

.banya-calculation-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.banya-calculation-body {
    padding: 12px 16px;
}

.banya-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.banya-calc-row:last-child {
    border-bottom: none;
}

.banya-calc-row span {
    color: #777;
    flex-shrink: 0;
}

.banya-calc-row strong {
    color: #333;
    text-align: right;
}

.banya-calc-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0 !important;
    border-bottom: none !important;
    font-size: 15px;
}

.banya-calc-total strong {
    color: #2e7d32;
    font-size: 18px;
}

.banya-calc-prepaid strong {
    color: #1565C0;
}

.banya-calc-promo {
    margin-top: 10px;
    padding: 10px 12px;
    background: #FFF9C4;
    border: 1px solid #F9A825;
    border-radius: 6px;
    font-size: 13px;
    color: #5d4037;
}

.banya-calc-split-line {
    justify-content: flex-start;
    align-items: center;
}

.banya-calc-split-label {
    flex: 1 1 100%;
    min-width: 0;
    color: rgba(255, 255, 255, 0.62) !important;
}

.banya-calc-split-line--title {
    border-bottom: none;
    padding-bottom: 2px;
}

.banya-calc-split-line--formula {
    padding-top: 0;
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.banya-calc-split-formula-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    white-space: nowrap;
}

.banya-calc-split {
    background: #f7f9ff;
    border: 1px solid #dce6f5;
    border-radius: 6px;
    padding: 2px 10px;
    margin: 2px 0 4px;
}

.banya-calc-split-row {
    font-size: 13px;
    border-bottom: 1px dashed #e0e8f5 !important;
}

.banya-calc-split-row:last-child {
    border-bottom: none !important;
}

.banya-calc-split-row span {
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.banya-calc-split-row span em {
    font-style: normal;
    font-size: 11px;
    color: #999;
}

.banya-calc-split-row strong {
    white-space: nowrap;
    font-size: 13px;
}

.banya-calculation-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e65100;
    font-size: 14px;
    padding: 4px 0;
}

/* Responsive */
@media (max-width: 782px) {
    .banya-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .banya-modal-content {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }

    /**
     * Визуальная ручка (как у iOS sheet): не участвует в разметке, pointer-events: none —
     * зона захвата задаётся в JS по верхним ~48px .banya-modal-content.
     */
    .banya-modal .banya-modal-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 5px;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.35);
        z-index: 12;
        pointer-events: none;
    }

    .banya-modal-content--large {
        max-width: 100%;
    }

    .banya-form-row {
        grid-template-columns: 1fr;
    }

    .banya-form-row--time,
    .banya-form-row--guests {
        grid-template-columns: 1fr 1fr;
    }

    .banya-time-slots-wrap {
        max-height: 252px;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 2px;
    }

    /* Одна строка: Назад / Отмена / Продолжить — компактнее, чем столбик */
    .banya-modal-footer {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: stretch;
        gap: 8px;
    }

    .banya-modal-footer .banya-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .banya-modal-header {
        padding: 16px;
    }

    .banya-modal-body {
        padding: 16px;
    }

    .banya-form-row--time,
    .banya-form-row--guests {
        grid-template-columns: 1fr;
    }

    .banya-time-slots-wrap {
        max-height: 224px;
    }

    .banya-services-options {
        gap: 8px;
    }

    .banya-service-option {
        padding: 12px;
    }
}

/* ============================================================
   SPLIT LAYOUT — двухколоночный дизайн модальных окон
   ============================================================ */

/* Контейнер split */
.banya-modal-content--split {
    max-width: 860px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: 14px;
    max-height: 92vh;
}

/* ── БОКОВАЯ ПАНЕЛЬ ── */
.banya-sidebar {
    width: 252px;
    flex-shrink: 0;
    background: #1a2f4e;
    display: flex;
    flex-direction: column;
    padding: 22px 18px 18px;
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.banya-sidebar::-webkit-scrollbar { display: none; }

/* Бренд */
.banya-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.banya-sidebar-brand-icon { font-size: 24px; }
.banya-sidebar-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* Навигация шагов */
.banya-sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.banya-sidebar-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.38);
    transition: all 0.15s;
}
.banya-sidebar-step--active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}
.banya-sidebar-step--done {
    color: rgba(255, 255, 255, 0.58);
}

.banya-sidebar-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}
.banya-sidebar-step--active .banya-sidebar-step-icon {
    background: rgba(255, 255, 255, 0.16);
}
.banya-sidebar-step--done .banya-sidebar-step-icon {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.banya-sidebar-step-check { font-size: 13px; }

.banya-sidebar-step-label {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}
.banya-sidebar-step--active .banya-sidebar-step-label { font-weight: 700; }

.banya-sidebar-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
    flex-shrink: 0;
}
.banya-sidebar-step-done-dot { color: #4ade80; font-size: 12px; }

/* Распорка */
.banya-sidebar-spacer {
    flex: 1;
    min-height: 8px;
    max-height: 32px;
}

/* ── ТАРИФЫ В САЙДБАРЕ ── */
.banya-sidebar-tariff { margin-bottom: 12px; }

.banya-sidebar-tariff-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.36);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.banya-sidebar-tariff-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 6px;
}
.banya-sidebar-tariff-card--hl {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.22);
}

.banya-sidebar-tariff-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.banya-sidebar-tariff-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.banya-sidebar-tariff-detail {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 4px;
    line-height: 1.4;
}
.banya-sidebar-tariff-price {
    font-size: 17px;
    font-weight: 800;
    color: #93c5fd;
    line-height: 1.2;
}
.banya-sidebar-tariff-price span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
}
.banya-sidebar-tariff-note {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}
.banya-sidebar-tariff-card-summary {
    display: flex;
    flex-direction: column;
}
.banya-sidebar-tariff-card-details {
    margin-top: 6px;
}
.banya-sidebar-tariff-card-toggle {
    display: none;
}

.banya-sidebar-tariff-bonus {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fcd34d;
    margin-bottom: 6px;
    line-height: 1.4;
}
.banya-sidebar-tariff-bonus-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fef3c7;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(253, 230, 138, 0.5);
}
.banya-sidebar-tariff-bonus-text {
    display: block;
    line-height: 1.35;
}

/* Пользовательский текст тарифов / акций */
.banya-sidebar-tariff-note-custom {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 6px 6px 0;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre-line;
}

/* Кнопка «Свернуть» под тарифами — по умолчанию скрыта (на десктопе заголовком «Тарифы») */
.banya-sidebar-tariff-toggle-wrap {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 4px;
    margin-bottom: 2px;
}

/* booking-form.js: пока виден «Расчёт стоимости», скрываем «Свернуть»/«Развернуть» (перебивает display:flex !important на мобилке) */
.banya-modal-main .banya-sidebar-tariff-toggle-wrap.banya-tariff-toggle-wrap--hidden-for-calc {
    display: none !important;
}

.banya-tariff-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 96px;
    margin: 0 auto;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    color: #334155;
    background: #f8fafc;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.banya-tariff-collapse-btn:hover {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #93c5fd;
    box-shadow:
        0 2px 6px rgba(37, 99, 235, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.banya-tariff-collapse-btn:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.14);
}

.banya-sidebar-tariff--collapsed .banya-tariff-collapse-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow:
        0 1px 3px rgba(29, 78, 216, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.banya-sidebar-tariff--collapsed .banya-tariff-collapse-btn:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

/* ── РАСЧЁТ СТОИМОСТИ В САЙДБАРЕ ── */
/* Переопределяем белый фон базового .banya-calculation */
.banya-sidebar-calc {
    margin-top: 0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: rgba(15, 28, 50, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}
.banya-sidebar-calc .banya-calculation-header {
    background: rgba(59, 130, 246, 0.22) !important;
    padding: 7px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.banya-sidebar-calc .banya-calculation-header h4 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}
.banya-calc-header-bonus {
    display: none;
}
.banya-sidebar-calc .banya-calculation-body {
    background: transparent !important;
    padding: 7px 12px !important;
}
/* Строки расчёта — читаемые цвета (на телефоне — крупнее, см. max-width:600px) */
.banya-sidebar-calc .banya-calc-row {
    font-size: 11px;
    border-bottom-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
}
.banya-sidebar-calc .banya-calc-row span {
    color: rgba(255, 255, 255, 0.45);
}
.banya-sidebar-calc .banya-calc-row strong {
    color: rgba(255, 255, 255, 0.88);
}
.banya-sidebar-calc .banya-calc-total {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}
.banya-sidebar-calc .banya-calc-total strong {
    color: #93c5fd;
    font-size: 15px;
}
.banya-sidebar-calc .banya-calc-prepaid strong {
    color: #93c5fd;
}
.banya-sidebar-calc .banya-calc-promo {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fde68a;
    font-size: 11px;
}
.banya-sidebar-calc .banya-bonus-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    font-size: 10px;
}
.banya-sidebar-calc .banya-calc-split {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.banya-sidebar-calc .banya-calc-split-row {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.banya-sidebar-calc .banya-calc-split-row span {
    color: rgba(255, 255, 255, 0.5);
}
.banya-sidebar-calc .banya-calc-split-row span em {
    color: rgba(255, 255, 255, 0.3);
}
.banya-sidebar-calc .banya-calc-split-row strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
}
.banya-sidebar-calc .banya-calculation-warning {
    color: #fca5a5;
}

/* ── ТАРИФЫ: компактный/свёрнутый режим ── */
.banya-sidebar-tariff-title {
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
    padding: 3px 4px;
    margin-bottom: 8px;
    transition: background 0.15s;
}
.banya-sidebar-tariff-title:hover {
    background: rgba(255, 255, 255, 0.07);
}
/* Стрелка-индикатор состояния */
.banya-tariff-toggle-icon {
    margin-left: auto;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Свёрнутое состояние */
.banya-sidebar-tariff--collapsed .banya-sidebar-tariff-card,
.banya-sidebar-tariff--collapsed .banya-sidebar-tariff-bonus,
.banya-sidebar-tariff--collapsed .banya-sidebar-tariff-note-custom {
    display: none !important;
}
.banya-sidebar-tariff--collapsed .banya-sidebar-tariff-title {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
    padding: 5px 8px;
}
.banya-sidebar-tariff--collapsed .banya-tariff-toggle-icon {
    transform: rotate(0deg);
}
/* Развёрнутое состояние — стрелка вверх */
.banya-sidebar-tariff:not(.banya-sidebar-tariff--collapsed) .banya-tariff-toggle-icon {
    transform: rotate(180deg);
}

/* ── СВОДКА БРОНИРОВАНИЯ (ШАГ 3) ── */
.banya-sidebar-summary {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    padding: 11px 12px;
    margin-bottom: 10px;
}
.banya-sidebar-summary-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4ade80;
    margin-bottom: 8px;
}
.banya-sidebar-summary-datetime {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.4;
}
.banya-sidebar-summary-guests {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 8px;
}
.banya-sidebar-summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
}
.banya-sidebar-summary-total {
    font-size: 16px;
    font-weight: 800;
    color: #93c5fd;
}

/* ── ОСНОВНАЯ ПАНЕЛЬ ── */
.banya-modal-main {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 0 14px 14px 0;
    overflow: hidden;
    position: relative;
}

/* Заголовок основной панели */
.banya-modal-content--split .banya-modal-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
}
.banya-modal-content--split .banya-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    padding-right: 32px;
}
.banya-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Тело основной панели */
.banya-modal-main .banya-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 24px;
}

/* Подвал */
.banya-modal-content--split .banya-modal-footer {
    padding: 14px 24px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 14px 0;
    justify-content: flex-end;
}

/* Кнопка закрытия поверх main-панели */
.banya-modal-content--split .banya-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: #f1f5f9;
    color: #94a3b8;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.banya-modal-content--split .banya-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Поля форм в main-панели */
.banya-modal-main .banya-form-field input,
.banya-modal-main .banya-form-field select,
.banya-modal-main .banya-form-field textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 14px;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.banya-modal-main .banya-form-field input:focus,
.banya-modal-main .banya-form-field select:focus,
.banya-modal-main .banya-form-field textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Компактнее поле комментария на шаге контактов */
.banya-modal-main .banya-form-field textarea[name="comment"] {
    min-height: 96px;
    height: 96px;
    resize: vertical;
}

/* Заголовок секции без нумератора (используется в split) */
.banya-modal-main .banya-form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* Бейдж «бесплатно» рядом с лейблом */
.banya-free-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Кнопки +/− в split */
.banya-modal-main .banya-number-btn {
    width: 38px;
    height: 40px;
    font-size: 17px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.banya-modal-main .banya-number-btn:first-child { border-radius: 8px 0 0 8px; }
.banya-modal-main .banya-number-btn:last-child  { border-radius: 0 8px 8px 0; }
.banya-modal-main .banya-number-btn:hover { background: #e2e8f0; }
.banya-modal-main .banya-number-input input {
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* Слоты времени */
.banya-modal-main .banya-time-picker {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
}
.banya-modal-main .banya-time-slot--free {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.banya-modal-main .banya-time-slot--free:hover,
.banya-modal-main .banya-time-slot--start {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #fff !important;
}
.banya-modal-main .banya-time-slot--range {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}
.banya-modal-main .banya-duration-btn {
    border-color: #e2e8f0;
}
.banya-modal-main .banya-duration-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.banya-modal-main .banya-dur-hours { color: #1d4ed8; }
.banya-modal-main .banya-dur-gift-badge {
    border-color: #fca5a5;
    background: #ef4444;
    color: #fff;
}

/* Услуги в split */
.banya-modal-main .banya-services-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 14px;
    text-align: left;
}
.banya-modal-main .banya-service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.banya-modal-main .banya-service-option:hover {
    border-color: #93c5fd;
    background: #f8faff;
}
.banya-modal-main .banya-service-option:has(input:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
}
.banya-service-icon-wrap { font-size: 22px; flex-shrink: 0; }
.banya-service-label strong { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }
.banya-service-label em {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-style: normal;
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
    white-space: normal;
}
.banya-service-price {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}
.banya-modal-main .banya-service-option:has(input:checked) .banya-service-checkbox {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Кнопки в split */
.banya-modal-content--split .banya-btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    padding: 10px 24px;
    font-size: 15px;
}
.banya-submit-btn.is-loading,
.besedka-submit-btn.is-loading,
.banya-modal-content--split .banya-submit-btn.is-loading,
.banya-modal-content--split .banya-btn-primary.is-loading,
.banya-modal-content--split button[aria-busy="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait;
    opacity: 0.95;
}

.banya-btn-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent;
    border-radius: 50%;
    animation: banya-spin 0.7s linear infinite;
}
.banya-modal-content--split .banya-btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}
.banya-modal-content--split .banya-btn-secondary {
    border-color: #e2e8f0;
    color: #64748b;
    background: #fff;
}
.banya-modal-content--split .banya-btn-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Выбор оплаты на шаге "Ваша информация" */
.banya-contact-payment {
    margin-top: 2px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
}
.banya-contact-payment-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.banya-contact-payment .banya-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 8px;
    align-items: stretch;
}
.banya-contact-payment .banya-payment-method {
    margin: 0;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px 10px;
    padding: 8px 10px;
    min-height: 0;
}
.banya-contact-payment .banya-payment-method input[type="radio"] {
    margin-top: 3px;
}
.banya-contact-payment .banya-payment-method-inner {
    flex: 1;
    min-width: 0;
}
.banya-contact-payment .banya-payment-method-title {
    font-size: 13px;
    line-height: 1.25;
}
.banya-contact-payment .banya-payment-method-desc {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 520px) {
    .banya-contact-payment .banya-payment-methods {
        grid-template-columns: 1fr;
    }
}
.banya-contact-payment-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Старый отдельный шаг оплаты больше не используется */
.banya-modal-main > .banya-step4 {
    display: none !important;
}

/* ── АДАПТИВНОСТЬ ── */

/* ── Ошибка валидации шага (в body, над формой) ── */
.banya-step-error {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 12px;
    animation: banya-shake 0.35s ease;
}
.banya-step-error-icon { font-size: 15px; flex-shrink: 0; }

@keyframes banya-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
}

@media (max-width: 600px) {
    .banya-step-error {
        margin-bottom: 8px;
        font-size: 12px;
    }
}

/* ─── Планшет 782px: убираем тарифные карточки, оставляем шаги и расчёт ─── */
@media (max-width: 782px) {
    .banya-modal {
        padding: 0;
        align-items: flex-end;
    }
    .banya-modal-content--split {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        max-height: 96vh;
        border-radius: 12px 12px 0 0;
    }
    .banya-sidebar {
        width: 100%;
        padding: 8px 12px 0;
        overflow: visible;
    }
    .banya-sidebar-brand {
        display: none;
    }
    .banya-sidebar-steps {
        display: none !important;
    }
    .banya-sidebar-tariff,
    .banya-sidebar-tariff-bonus {
        display: none !important;
    }
    .banya-modal-main .banya-sidebar-tariff-toggle-wrap {
        display: flex !important;
        margin: -10px 0 2px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        position: relative;
        z-index: 3;
    }
    .banya-sidebar-calc .banya-calc-header-bonus {
        display: none;
        margin-left: 6px;
        padding: 2px 6px;
        border-radius: 999px;
        background: rgba(74, 222, 128, 0.2);
        color: #86efac;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }
    .banya-sidebar-calc .banya-calc-header-bonus.is-visible {
        display: none !important;
    }
    /* Акция должна быть видна даже в свернутом расчете */
    .banya-sidebar-calc .banya-calc-row.banya-calc-bonus {
        display: flex !important;
    }
    .banya-sidebar-spacer { display: none; }
    .banya-modal-content--split .banya-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.9);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 6px 16px rgba(2, 6, 23, 0.35);
        font-size: 20px;
        font-weight: 700;
    }
    .banya-modal-content--split .banya-modal-close:hover {
        background: #0f172a;
        color: #ffffff;
    }
}

/* ─── Мобильный 600px: sidebar сверху → горизонт. шаги + прокрутка тарифов ─── */
@media (max-width: 600px) {

    /* Модал выезжает снизу */
    .banya-modal {
        padding: 0;
        align-items: flex-end;
    }
    .banya-modal-content--split {
        flex-direction: column;
        border-radius: 16px 16px 0 0;
        max-height: 96vh;
    }

    /* ── Сайдбар — верхняя полоска ── */
    .banya-sidebar {
        width: 100%;
        padding: 8px 12px 0;
        overflow: visible;
        flex-shrink: 0;
    }

    /* Бренд — скрыт на мобилке (экономим пространство) */
    .banya-sidebar-brand {
        display: none;
    }

    /* Тарифные карточки — скрыты на мобилке (расчёт уже виден ниже) */
    .banya-sidebar-tariff,
    .banya-sidebar-tariff-bonus {
        display: none !important;
    }

    .banya-sidebar-steps {
        display: none !important;
    }

    /* Распорка убрана */
    .banya-sidebar-spacer { display: none; }

    /* ── Тарифные карточки — горизонтальная лента ── */
    .banya-sidebar-tariff {
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 8px 0 6px;
        margin: 0 -2px;
    }
    .banya-sidebar-tariff::-webkit-scrollbar { display: none; }

    /* Кнопка «Свернуть» — вверху блока «Дата и время» */
    .banya-modal-main .banya-sidebar-tariff-toggle-wrap {
        display: flex !important;
        margin: -8px 0 2px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        position: relative;
        z-index: 3;
    }
    .banya-sidebar-tariff--collapsed {
        display: none !important;
    }
    .banya-sidebar-tariff-title {
        display: none;
    }
    .banya-sidebar-tariff-card {
        flex-shrink: 0;
        width: 148px;
        padding: 8px 10px;
        margin-bottom: 0;
        border-radius: 8px;
    }
    .banya-sidebar-tariff-name   { font-size: 11px; }
    .banya-sidebar-tariff-detail { font-size: 10px; margin-bottom: 4px; }
    .banya-sidebar-tariff-price  { font-size: 14px; }
    .banya-sidebar-tariff-note   { font-size: 9px; }

    /* Компактные карточки выбора продолжительности на мобильных */
    .banya-duration-grid,
    .banya-duration-wrap--sheet .banya-duration-grid {
        gap: 6px;
    }
    .banya-duration-btn,
    .banya-duration-wrap--sheet .banya-duration-btn {
        min-width: 86px;
        padding: 9px 11px;
        border-radius: 8px;
    }
    .banya-duration-btn--gift-badge,
    .banya-duration-btn--gift-unavailable-hint {
        padding-top: 24px;
    }
    .banya-dur-hours,
    .banya-duration-wrap--sheet .banya-dur-hours {
        font-size: 16px;
        line-height: 1.1;
    }
    .banya-dur-range,
    .banya-duration-wrap--sheet .banya-dur-range {
        font-size: 11px;
        margin-top: 1px;
    }
    .banya-dur-gift-badge {
        top: -8px;
        right: -4px;
        padding: 2px 5px;
    }
    .banya-dur-gift-badge-line1,
    .banya-dur-gift-badge-line2 {
        font-size: 8px;
    }
    .banya-dur-gift-badge--unavailable {
        max-width: 96px;
        line-height: 1.1;
    }
    .banya-sidebar-tariff-card-summary {
        gap: 2px;
    }
    .banya-sidebar-tariff-card-details {
        margin-top: 0;
        display: none;
    }
    .banya-sidebar-tariff-card.is-expanded .banya-sidebar-tariff-card-details {
        display: block;
        margin-top: 6px;
    }
    .banya-sidebar-tariff-card--main .banya-sidebar-tariff-card-details {
        display: block;
        margin-top: 6px;
    }
    .banya-sidebar-tariff-card--main .banya-sidebar-tariff-card-toggle {
        display: none;
    }
    .banya-sidebar-tariff-card-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: 4px;
        padding: 3px 0;
        border: 0;
        background: transparent;
        color: rgba(255,255,255,.72);
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
    }
    .banya-sidebar-tariff-card-toggle-icon {
        font-size: 10px;
        transition: transform .2s ease;
    }
    .banya-sidebar-tariff-card.is-expanded .banya-sidebar-tariff-card-toggle-icon {
        transform: rotate(180deg);
    }

    /* Бонусная плашка — в той же ленте */
    .banya-sidebar-tariff-bonus {
        display: flex !important;
        flex-direction: column;
        flex-shrink: 0;
        width: 136px;
        font-size: 10px;
        padding: 7px 9px;
        margin-bottom: 0;
        align-self: stretch;
        align-items: stretch;
        justify-content: center;
        line-height: 1.4;
    }
    .banya-sidebar-tariff-bonus-badge {
        font-size: 8px;
        padding: 2px 5px;
    }
    /* ── Расчёт стоимости — компактная плашка под тарифами ── */
    .banya-sidebar-calc {
        /* НЕ скрываем — JS управляет через slideDown/slideUp */
        margin: 0 0 8px;
        border-radius: 8px;
        overflow: hidden;
    }
    .banya-sidebar-calc .banya-calculation-header {
        padding: 5px 10px !important;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    .banya-sidebar-calc .banya-calculation-header h4 {
        font-size: 12px;
        pointer-events: none;
        flex: 1;
        min-width: 0;
    }
    /* Стрелка раскрытия */
    .banya-sidebar-calc .banya-calculation-header::after {
        content: 'Детали ▼';
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .02em;
        color: rgba(255,255,255,.78);
        transition: transform 0.2s, color 0.2s;
        flex-shrink: 0;
        margin-left: 6px;
    }
    .banya-sidebar-calc.banya-calc--expanded .banya-calculation-header::after {
        content: 'Скрыть ▲';
        color: rgba(191, 219, 254, 0.96);
    }
    .banya-sidebar-calc .banya-calculation-body {
        padding: 6px 12px !important;
    }
    /* Строки расчёта на мобилке — 14px */
    .banya-sidebar-calc .banya-calc-row {
        font-size: 14px;
        padding: 3px 0;
    }
    .banya-sidebar-calc .banya-calc-total strong {
        font-size: 16px;
    }
    .banya-sidebar-calc .banya-calc-promo {
        font-size: 14px;
    }
    .banya-sidebar-calc .banya-calc-split-row strong {
        font-size: 14px;
    }
    /* Детальные строки — скрыты по умолчанию на мобилке */
    .banya-sidebar-calc .banya-calc-row--detail {
        display: none;
    }
    .banya-sidebar-calc .banya-calc-detail {
        display: none;
    }
    /* Когда раскрыто — показываем всё */
    .banya-sidebar-calc.banya-calc--expanded .banya-calc-row--detail {
        display: flex;
    }
    .banya-sidebar-calc.banya-calc--expanded .banya-calc-detail {
        display: block;
    }

    /* ── Сводка бронирования (шаг 3) — всегда показываем ── */
    .banya-sidebar-summary {
        /* JS управляет через .show() */
        margin: 6px 0 8px;
        padding: 9px 11px;
        border-radius: 8px;
    }
    .banya-sidebar-summary-title  { font-size: 9px; margin-bottom: 5px; }
    .banya-sidebar-summary-datetime { font-size: 11px; }
    .banya-sidebar-summary-guests   { font-size: 10px; }
    .banya-sidebar-summary-total    { font-size: 14px; }

    /* ── Основная панель ── */
    .banya-modal-main {
        border-radius: 0;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        /* Небольшой зазор от нижнего края модалки / экрана (вместе с safe-area на вырезах) */
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    /* Подтягиваем название бани ближе к блоку тарифов над белой панелью */
    .banya-modal-content--split .banya-modal-header {
        margin-top: -20px;
        padding: 10px 14px 8px;
    }
    .banya-modal-content--split .banya-modal-header h3 { font-size: 15px; }
    .banya-modal-subtitle { font-size: 12px; }
    .banya-modal-main .banya-modal-body { padding: 12px 14px; }
    /* Боковые отступы как у тела модалки (.banya-modal-body: 12px 14px); кнопки без скруглений, делят ряд поровну */
    .banya-modal-content--split .banya-modal-footer {
        padding: 0 14px;
        margin: 0;
        border-radius: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: stretch;
        gap: 0;
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
    }
    .banya-modal-content--split .banya-modal-footer .banya-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        margin: 0;
        border-radius: 0;
        padding: 14px 10px;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
        min-height: 48px;
        box-sizing: border-box;
    }
    .banya-modal-content--split .banya-modal-footer .banya-btn + .banya-btn {
        border-left: 1px solid #e2e8f0;
    }
    .banya-form-row { grid-template-columns: 1fr; }
    .banya-form-row--guests { grid-template-columns: 1fr 1fr; }
}

/* ─── Телефон ≤480px: модал на весь экран ─────────────────────────────────── */
@media (max-width: 480px) {
    .banya-modal {
        padding: 0;
        align-items: stretch;
    }
    .banya-modal-content--split {
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }
    /* Шаги ещё компактнее */
    .banya-sidebar-step { min-width: 64px; padding: 5px 6px; }
    .banya-sidebar-step-icon { width: 20px; height: 20px; font-size: 10px; }
    .banya-sidebar-step-label { font-size: 9px; line-height: 1.2; }
}

/* ══════════════════════════════════════════════════════
   ШАГ 4: Подтверждение бронирования + Оплата
   ══════════════════════════════════════════════════════ */

.banya-step4 {
    flex: 1;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

/* Заголовок с галочкой */
.banya-step4-header {
    text-align: center;
}
.banya-step4-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 14px;
}
.banya-step4-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
.banya-step4-number {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Сводка данных */
.banya-step4-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.banya-step4-rows {
    display: flex;
    flex-direction: column;
}
.banya-step4-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.banya-step4-row:last-child {
    border-bottom: none;
}
.banya-step4-row-label {
    color: #64748b;
    min-width: 90px;
    flex-shrink: 0;
}
.banya-step4-row-value {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Блок оплаты */
.banya-step4-payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.banya-step4-payment-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Список методов оплаты */
.banya-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Шаг 4 / скрытые сценарии: такая же компактная сетка, как в контактах */
.banya-step4 .banya-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 8px;
    align-items: stretch;
}
.banya-step4 .banya-payment-method {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px 10px;
    padding: 8px 10px;
    margin: 0;
}
.banya-step4 .banya-payment-method input[type="radio"] {
    margin-top: 3px;
}
.banya-step4 .banya-payment-method-inner {
    flex: 1;
    min-width: 0;
}
.banya-step4 .banya-payment-method-title {
    font-size: 13px;
    line-height: 1.25;
}
.banya-step4 .banya-payment-method-desc {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 520px) {
    .banya-step4 .banya-payment-methods {
        grid-template-columns: 1fr;
    }
}
.banya-payment-method {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.banya-payment-method:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.banya-payment-method input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--banya-primary, #1d4ed8);
    flex-shrink: 0;
}
.banya-payment-method:has(input:checked) {
    border-color: var(--banya-primary, #1d4ed8);
    background: #eff6ff;
}
.banya-payment-method-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.banya-payment-method-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.banya-payment-method-desc {
    font-size: 12px;
    color: #64748b;
}
.banya-step4-no-methods {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    padding: 12px 0;
}

/* Кнопка "Оплатить" */
.banya-step4-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.banya-step4-actions .banya-pay-btn {
    min-width: 140px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
    .banya-step4 {
        flex: 1;
        padding: 20px 16px 16px;
        gap: 18px;
        justify-content: center;
    }
    .banya-step4-check {
        width: 52px;
        height: 52px;
        font-size: 26px;
        line-height: 52px;
    }
    .banya-step4-title { font-size: 17px; }
    .banya-step4-row { font-size: 13px; }
    .banya-step4-actions { justify-content: stretch; }
    .banya-step4-actions .banya-pay-btn { width: 100%; }
}

/* ── Финальное сообщение (после оплаты) ── */
.banya-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 24px 34px;
    text-align: center;
    gap: 16px;
}
.banya-final-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 38px;
    line-height: 76px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .28);
}
.banya-final-message {
    font-size: 40px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
    max-width: 520px;
    margin: 0;
    letter-spacing: -0.01em;
}
.banya-final-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #f6f9fd 100%);
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 340px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(2px);
}
.banya-final-detail-line { margin: 0; }
.banya-final-detail-line--date {
    font-size: 33px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}
.banya-final-detail-line--time {
    font-size: 33px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}
.banya-final-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}
.banya-final-detail-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
}
.banya-final-detail-label {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}
.banya-final-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-word;
}
.banya-final-phone-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, .3);
}
.banya-final-phone-link:hover {
    color: #1e40af;
    border-bottom-color: rgba(30, 64, 175, .55);
}
/* «Перезвоните мне» после оплаты */
.banya-final-callback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    max-width: 420px;
}
/* Перебиваем .banya-modal-content--split .banya-btn-secondary — основная кнопка действия */
.banya-modal-content--split .banya-final-callback .banya-callback-request-btn.banya-btn,
.banya-final-callback .banya-callback-request-btn.banya-btn {
    min-width: 220px;
    margin-top: 6px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #1d4ed8;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.38);
}
.banya-modal-content--split .banya-final-callback .banya-callback-request-btn.banya-btn:hover:not(:disabled),
.banya-final-callback .banya-callback-request-btn.banya-btn:hover:not(:disabled) {
    background: #1e40af;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.45);
}
.banya-modal-content--split .banya-final-callback .banya-callback-request-btn.banya-btn:focus-visible,
.banya-final-callback .banya-callback-request-btn.banya-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
}
.banya-final-callback-msg {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    max-width: 360px;
}
@media (max-width: 600px) {
    .banya-final-message {
        font-size: 40px;
        max-width: 320px;
    }
    .banya-final-details {
        min-width: 0;
        width: 100%;
        max-width: 340px;
        padding: 14px 14px;
        gap: 6px;
    }
    .banya-final-detail-line--date,
    .banya-final-detail-line--time { font-size: 35px; }
    .banya-final-detail-label { font-size: 14px; }
    .banya-final-detail-value { font-size: 16px; }
}

/* ── Согласие на обработку персональных данных ── */
.banya-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.banya-consent-label:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.banya-consent-label.error {
    border-color: #f87171;
    background: #fef2f2;
}
.banya-consent-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 1px 0 0;
    cursor: pointer;
    accent-color: #2563eb;
    border: 2px solid #94a3b8;
    border-radius: 4px;
}
.banya-consent-check.error {
    outline: 2px solid #f87171;
}
.banya-consent-label a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.banya-consent-label a:hover {
    color: #1d4ed8;
}
.banya-consent-label .banya-consent-privacy-open {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    vertical-align: baseline;
}
.banya-consent-label .banya-consent-privacy-open:hover {
    color: #1d4ed8;
}

/* Модалка политики конфиденциальности (поверх формы бронирования) */
.banya-modal--privacy-policy {
    z-index: 600020;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.banya-modal--privacy-policy .banya-modal-content--privacy {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: min(560px, 100%);
    width: 100%;
    max-height: min(85vh, 720px);
    margin: 0;
    padding: 20px 22px 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}
.banya-modal--privacy-policy .banya-privacy-modal-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    max-height: 100%;
}
.banya-modal--privacy-policy .banya-privacy-modal-heading {
    margin: 0 0 12px;
    padding-right: 36px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.banya-modal--privacy-policy .banya-privacy-modal-loading {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}
.banya-modal--privacy-policy .banya-privacy-modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}
.banya-modal--privacy-policy .banya-privacy-modal-body h2,
.banya-modal--privacy-policy .banya-privacy-modal-body h3 {
    font-size: 1.05em;
    margin: 1em 0 0.5em;
}
.banya-modal--privacy-policy .banya-privacy-modal-body p {
    margin: 0 0 0.75em;
}
.banya-modal--privacy-policy .banya-privacy-modal-error {
    font-size: 14px;
    color: #b91c1c;
    margin-top: 8px;
}
.banya-modal--privacy-policy .banya-privacy-modal-error a {
    color: #2563eb;
    text-decoration: underline;
}
.banya-modal--privacy-policy .banya-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
