/* =========================================================
   OpenTable Booking Modal
   ========================================================= */

.opentable-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* =========================================================
   Active / Open State
   ========================================================= */

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


/* =========================================================
   Background Overlay
   ========================================================= */

.opentable-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    cursor: pointer;
}


/* =========================================================
   Modal Dialog
   ========================================================= */

.opentable-modal-dialog {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 520px;

    max-height: 92vh;

    background: #ffffff;

    border-radius: 4px;

    overflow: hidden;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

    transform: translateY(20px) scale(0.98);

    transition: transform 0.25s ease;
}


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


/* =========================================================
   Close Button
   ========================================================= */

.opentable-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;

    z-index: 10;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.06);

    color: #222;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.opentable-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);

    transform: rotate(90deg);
}


/* =========================================================
   Modal Header
   ========================================================= */

.opentable-modal-header {
    padding: 28px 55px 18px 25px;

    text-align: center;

    border-bottom: 1px solid #eeeeee;
}


.opentable-modal-header span {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #777;
}


.opentable-modal-header h2 {
    margin: 0;

    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;

    color: #222;
}


/* =========================================================
   OpenTable Widget Container
   ========================================================= */

.opentable-widget-container {
    width: 100%;

    max-height: calc(92vh - 100px);

    overflow-y: auto;

    padding: 15px 20px 25px;

    background: #fff;
}


/* =========================================================
   OpenTable Iframe
   ========================================================= */

.opentable-widget-container iframe {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    border: 0 !important;

    margin: 0 auto;
}


/* =========================================================
   Body Scroll Lock
   ========================================================= */

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


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 575px) {

    .opentable-modal {
        padding: 10px;
    }

    .opentable-modal-dialog {
        max-width: 100%;
        max-height: 95vh;

        border-radius: 3px;
    }

    .opentable-modal-header {
        padding: 22px 50px 15px 20px;
    }

    .opentable-modal-header h2 {
        font-size: 24px;
    }

    .opentable-widget-container {
        padding: 10px 12px 20px;

        max-height: calc(95vh - 85px);
    }

    .opentable-modal-close {
        top: 8px;
        right: 8px;

        width: 36px;
        height: 36px;

        font-size: 28px;
    }
}


/* =========================================================
   Very Small Screens
   ========================================================= */

@media (max-width: 375px) {

    .opentable-modal {
        padding: 5px;
    }

    .opentable-modal-dialog {
        max-height: 96vh;
    }

    .opentable-modal-header {
        padding: 18px 45px 12px 15px;
    }

    .opentable-modal-header span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .opentable-modal-header h2 {
        font-size: 22px;
    }

    .opentable-widget-container {
        padding: 8px 8px 15px;

        max-height: calc(96vh - 75px);
    }
}
