html.ml-age-gate-open,
body.ml-age-gate-open {
    overflow: hidden !important;
}

.ml-age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--ml-age-overlay, rgba(0,0,0,.82));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.ml-age-gate.is-visible {
    opacity: 1;
    visibility: visible;
}

.ml-age-gate__panel {
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-sizing: border-box;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 20px;
    background: #fff;
    color: #151515;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    transform: translateY(14px) scale(.985);
    transition: transform .22s ease;
    outline: none;
}

.ml-age-gate.is-visible .ml-age-gate__panel {
    transform: translateY(0) scale(1);
}

.ml-age-gate__logo {
    display: block;
    width: auto;
    max-width: min(220px, 70%);
    max-height: 90px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.ml-age-gate__eyebrow {
    margin: 0 0 10px;
    color: var(--ml-age-accent, #155b3a);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ml-age-gate h2 {
    margin: 0 0 14px;
    color: #151515;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.08;
}

.ml-age-gate #ml-age-gate-message {
    margin: 0 auto 28px;
    max-width: 42ch;
    color: #575757;
    font-size: 16px;
    line-height: 1.65;
}

.ml-age-gate__actions {
    display: grid;
    gap: 12px;
}

.ml-age-gate button {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ml-age-gate button:hover {
    transform: translateY(-1px);
}

.ml-age-gate button:focus-visible {
    outline: 3px solid rgba(21,91,58,.3);
    outline-offset: 3px;
}

.ml-age-gate__confirm {
    border: 1px solid var(--ml-age-accent, #155b3a);
    background: var(--ml-age-accent, #155b3a);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.ml-age-gate__decline {
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #222;
}

.ml-age-gate__legal {
    margin: 22px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .ml-age-gate {
        padding: 16px;
    }

    .ml-age-gate__panel {
        max-height: calc(100vh - 32px);
        border-radius: 16px;
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-age-gate,
    .ml-age-gate__panel,
    .ml-age-gate button {
        transition: none !important;
    }
}
