html,
body {

    overflow-x: hidden;

}

/* ==========================================================
   BOOKING POPUP
========================================================== */

.ua-booking-popup {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 24px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}

/* ==========================================================
   ACTIVE
========================================================== */

.ua-booking-popup.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}

/* ==========================================================
   OVERLAY
========================================================== */

.ua-booking-popup-overlay {

    position: absolute;

    inset: 0;

    background: rgba(15, 23, 42, .55);

    backdrop-filter: blur(8px);

}

/* ==========================================================
   CONTAINER
========================================================== */

.ua-booking-popup-container {

    position: relative;

    display: flex;

    flex-direction: column;

    width: 100%;

    max-width: 920px;

    height: min(92vh, 900px);

    background: var(--surface);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, .18);

    transform: translateY(24px) scale(.98);

    opacity: 0;

    transition:
        transform .3s ease,
        opacity .25s ease;

}

.ua-booking-popup.active .ua-booking-popup-container {

    transform: translateY(0) scale(1);

    opacity: 1;

}

/* ==========================================================
   HEADER
========================================================== */

.ua-booking-popup-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    flex-shrink: 0;

    padding: 18px 24px;

    background: #FFFFFF;

    border-bottom: 1px solid var(--border);

}

/* ==========================================================
   TITLE
========================================================== */

.ua-booking-popup-title {

    margin: 0;

    flex: 1;

    font-size: 1.35rem;

    font-weight: 700;

    line-height: 1.35;

    color: var(--text);

}

/* ==========================================================
   CLOSE
========================================================== */

.ua-booking-popup-close {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 50%;

    background: #FEF2F2;

    color: #DC2626;

    cursor: pointer;

    transition: .25s;

}

.ua-booking-popup-close:hover {

    background: #DC2626;

    color: #FFFFFF;

}

.ua-booking-popup-close i {

    font-size: 1rem;

}

/* ==========================================================
   BODY
========================================================== */

.ua-booking-popup-body {

    flex: 1;

    overflow-y: auto;

    padding: 24px;

    background: var(--surface-secondary);

    -webkit-overflow-scrolling: touch;

}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991.98px) {

    .ua-booking-popup {

        padding: 16px;

    }

    .ua-booking-popup-container {

        max-width: 100%;

        height: calc(100vh - 32px);

    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:575.98px) {

    .ua-booking-popup {

        align-items: flex-end;

        padding: 0;

    }

    .ua-booking-popup-container {

        width: 100%;

        height: 100dvh;

        border-radius: 0;

        transform: translateY(100%);

    }

    .ua-booking-popup.active .ua-booking-popup-container {

        transform: translateY(0);

    }

    .ua-booking-popup-header {

        position: sticky;

        top: 0;

        z-index: 20;

        padding: 14px 16px;

    }

    .ua-booking-popup-title {

        font-size: 1.1rem;

    }

    .ua-booking-popup-close {

        width: 36px;

        height: 36px;

    }

    .ua-booking-popup-close i {

        font-size: .95rem;

    }

    .ua-booking-popup-body {

        padding: 16px;

    }

}