body.reservation-modal-open {
    overflow: hidden;
}

.reservation-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: visibility .25s ease, opacity .25s ease;
}

.reservation-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.reservation-modal__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(7, 148, 71, .2), transparent 38%),
        rgba(8, 28, 21, .82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.reservation-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    background: #f4f8f6;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 24, 14, .35);
    flex-direction: column;
    outline: 0;
    transform: translateY(20px) scale(.97);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    width: 45%;
}

.reservation-modal.is-open .reservation-modal__dialog {
    transform: translateY(0) scale(1);
}

.reservation-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #075b35, #079447);
}

.reservation-modal__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reservation-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #075b35;
    font-size: 1.1rem;
    background: #ffffff;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(0, 43, 25, .2);
}

.reservation-modal__identity span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .76);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.reservation-modal__identity h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 700;
}

.reservation-modal__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.reservation-modal__close:hover,
.reservation-modal__close:focus-visible {
    color: #075b35;
    background: #ffffff;
    transform: rotate(6deg);
}

.reservation-modal__body {
    overflow-y: auto;
    padding: 8px;
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 216, 20, .16), transparent 25%),
        #edf5f0;
}

.reservation-phone {
    overflow: hidden;
    width: min(390px, 100%);
    margin: 0 auto;
    background: #ffffff;
}

.reservation-phone__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 25px;
    padding: 0 12px;
    color: rgba(255, 255, 255, .8);
    font-size: .62rem;
}

.reservation-phone__bar>span {
    width: 68px;
    height: 5px;
    margin-left: calc(50% - 34px);
    background: #31443d;
    border-radius: 999px;
}

.reservation-phone__bar>div {
    display: flex;
    gap: 5px;
}

.reservation-phone__screen {
    position: relative;
    overflow: hidden;
    height: 85vh;
    /* height: min(600px, calc(100vh - 245px)); */
    min-height: 410px;
    background: #ffffff;
}

.reservation-phone__screen iframe {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 0;
    pointer-events: auto;
    touch-action: auto;
}

.reservation-modal__loader {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #17332a;
    text-align: center;
    background: linear-gradient(145deg, #f8fbf9, #eaf6ef);
    flex-direction: column;
    transition: visibility .25s ease, opacity .25s ease;
}

.reservation-modal__loader.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.reservation-modal__loader>span {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border: 4px solid #cce7d7;
    border-top-color: #079447;
    border-radius: 50%;
    animation: reservation-modal-spin .8s linear infinite;
}

.reservation-modal__loader strong {
    margin-bottom: 5px;
    font-size: .94rem;
}

.reservation-modal__loader small {
    color: #74827c;
}

.reservation-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px 15px;
    background: #ffffff;
    border-top: 1px solid #dfe9e3;
}

.reservation-modal__footer p {
    margin: 0;
    color: #64746d;
    font-size: .7rem;
}

.reservation-modal__footer p i {
    margin-right: 5px;
    color: #079447;
}

.reservation-modal__footer a {
    flex: 0 0 auto;
    color: #087443;
    font-size: .75rem;
    font-weight: 700;
}

.reservation-modal__footer a i {
    margin-left: 5px;
}

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

@media (max-width: 575.98px) {
    body.reservation-modal-open {
        overflow: visible;
    }

    .reservation-modal {
        width: 100vw;
        padding: 0;
    }

    .reservation-modal__dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: auto;
        max-height: none;
        border: 0;
        border-radius: 0;
        transform: none;
        transition: none;
    }

    .reservation-modal.is-open .reservation-modal__dialog {
        transform: none;
    }

    .reservation-modal__header {
        position: absolute;
        z-index: 2;
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        padding: 0;
        background: transparent;
        pointer-events: none;
    }

    .reservation-modal__identity {
        display: none;
    }

    .reservation-modal__close {
        color: #ffffff;
        background: rgba(7, 91, 53, .92);
        border-color: rgba(255, 255, 255, .7);
        box-shadow: 0 4px 14px rgba(0, 36, 21, .28);
        pointer-events: auto;
    }

    .reservation-modal__body {
        /* display: flex; */
        min-height: 0;
        padding: 0;
        /* flex: 1; */
    }

    .reservation-phone {
        display: flex;
        width: 100%;
        min-height: 0;
        flex-direction: column;
    }

    .reservation-phone__screen {
        height: 98vh;
        /* min-height: 0;
        flex: 1; */
    }

    .reservation-modal__footer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reservation-modal,
    .reservation-modal__dialog,
    .reservation-modal__loader {
        transition: none;
    }

    .reservation-modal__loader>span {
        animation-duration: 1.6s;
    }
}
