html.florattica-sr-modal-open,
body.florattica-sr-modal-open {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

/*
 * Full-screen SevenRooms-style overlay.
 * The SevenRooms booking page itself fills the viewport, while our close
 * control sits above the cross-origin iframe in the top-right corner.
 */
.florattica-sr-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.82);
}

.florattica-sr-modal.is-open {
    display: block;
}

.florattica-sr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.florattica-sr-modal__dialog {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #000;
    box-shadow: none;
}

.florattica-sr-modal__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #000;
}

.florattica-sr-modal__iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: #000;
    opacity: 0;
    transition: opacity .15s ease;
}

.florattica-sr-modal.is-loaded .florattica-sr-modal__iframe {
    opacity: 1;
}

/* Keep the close control outside/above the SevenRooms iframe. */
.florattica-sr-modal__close {
    -webkit-appearance: none;
    appearance: none;
    position: fixed;
    z-index: 2147483646;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    opacity: .98;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.florattica-sr-modal__close:hover,
.florattica-sr-modal__close:focus,
.florattica-sr-modal__close:active {
    background: transparent;
    color: #fff;
    opacity: 1;
    outline: none;
}

.florattica-sr-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.82);
}

.florattica-sr-modal.is-loaded .florattica-sr-modal__loading {
    display: none;
}

.florattica-sr-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-top-color: rgba(255, 255, 255, .95);
    border-radius: 50%;
    animation: florattica-sr-spin .75s linear infinite;
}

@keyframes florattica-sr-spin {
    to { transform: rotate(360deg); }
}

/* Respect phone safe areas while keeping the iframe truly full-screen. */
@supports (top: env(safe-area-inset-top)) {
    .florattica-sr-modal__close {
        top: max(14px, env(safe-area-inset-top));
        right: max(18px, env(safe-area-inset-right));
    }
}

@media (max-width: 700px) {
    .florattica-sr-modal__close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
        font-size: 44px;
    }

    @supports (top: env(safe-area-inset-top)) {
        .florattica-sr-modal__close {
            top: max(8px, env(safe-area-inset-top));
            right: max(8px, env(safe-area-inset-right));
        }
    }
}
