/**
 * MSB Booking Popup Styles
 */

/* Popup overlay */
.msb-booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.msb-booking-popup-overlay.msb-booking-popup-active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.msb-booking-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    height: 90vh;
    max-height: 700px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.msb-booking-popup-container.msb-booking-popup-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup content */

.msb-booking-popup-title {
    color: #fff;
}

.appoinment_panel {
    white-space: nowrap;
}


.msb-booking-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Popup header */
.msb-booking-popup-header {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    text-align: center;
}

.msb-booking-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Close button */
.msb-booking-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding: 0;
}

/* Эффект наведения на кнопку закрытия удален по запросу пользователя */
/* Hover effect for close button removed as requested by user */

/* Iframe */
.msb-booking-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* Error message */
.msb-booking-popup-error {
    padding: 30px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px;
}

/* Disable body scroll when popup is open */
body.msb-booking-popup-open {
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .msb-booking-popup-container {
        width: 95%;
        height: 95vh;
        max-height: none;
    }
}

/* Appointment button styles */
.msb-appointment-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.msb-appointment-button:hover {
    background-color: #555;
    color: #fff;
}
