/* ===== Модальное окно бронирования ===== */

#fd-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.fd-booking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.fd-booking-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.fd-booking-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.fd-booking-close:hover {
    color: #333;
}

.fd-booking-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.fd-booking-header p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.fd-booking-field {
    margin-bottom: 16px;
}

.fd-booking-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.fd-booking-field label span {
    color: #e53935;
}

.fd-booking-field input[type="text"],
.fd-booking-field input[type="tel"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.fd-booking-field input:focus {
    border-color: #f5c518;
}

/* Счётчик количества */
.fd-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 130px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.fd-qty-minus,
.fd-qty-plus {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 5px;
}

.fd-qty-minus:hover,
.fd-qty-plus:hover {
    background: #e8e8e8;
}

.fd-qty-wrap input[type="number"] {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.fd-qty-wrap input[type="number"]::-webkit-outer-spin-button,
.fd-qty-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Кнопка отправки */
.fd-booking-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.fd-booking-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Результат */
#fd-booking-result {
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 12px;
}

.fd-booking-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.fd-booking-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Кнопка в карточке каталога */
.btn-booking-card {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    padding: 7px 14px;
}

/* Блокировка скролла при открытой модалке */
body.fd-modal-open {
    overflow: hidden;
}

.ne-v-nalichii .theme-btn-s2{
    display: none;
}

.the-buttonz{
    display: none !important;
}

@media (max-width: 480px) {
    .fd-booking-dialog {
        padding: 28px 18px 24px;
        margin: 0 12px;
        max-width: 100%;
    }
}
