/* ==========================================================================
   Agro Wine Age Gate Modal & Access Verification
   ========================================================================== */

/* Freeze page scrolling when Age Gate is active */
html.agro-age-locked,
body.agro-age-locked {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

/* Modal Overlay Base */
.agro-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}

.agro-age-gate-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Wrapper & Centering */
.agro-age-gate-wrapper {
    position: relative;
    z-index: 2;
    width: max-content;
    max-width: 80vw;
    max-height: 80vh;
    overflow-y: auto;
    margin: auto;
    background-color: #fff;
    border-radius: 1rem;
}

.agro-age-gate-container {
    position: relative;
    width: 100%;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.agro-age-gate-overlay.active .agro-age-gate-container {
    transform: translateY(0) scale(1);
}

/* Content Container (UX Block) */
.agro-age-gate-content {
    position: relative;
    width: 100%;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .agro-age-gate-overlay {
        padding: 15px;
    }

}