.adult-gate[hidden],
.adult-gate__scrim[hidden] {
    display: none !important;
}

[data-adult-product="1"] {
    position: relative;
    overflow: hidden;
}

.adult-gate__media {
    transition: filter 0.3s ease;
}

html:not(.adult-confirmed) [data-adult-product="1"] .adult-gate__media {
    filter: blur(32px);
}

.adult-gate__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

html.adult-confirmed .adult-gate__overlay {
    visibility: hidden;
    opacity: 0;
}

.adult-gate__label {
    display: inline-block;
    padding: 8px 24px;
    color: #ff4d4d;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    background: #fff;
    border: 2px solid rgba(255, 75, 75, 0.3);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.no-js [data-adult-gate-link],
html.no-js [data-adult-gate-open] {
    pointer-events: none;
}

[data-adult-gate-page-content] {
    visibility: hidden;
    transition: visibility 0s;
}

html.adult-gate-ready.adult-confirmed [data-adult-gate-page="1"] [data-adult-gate-page-content] {
    visibility: visible;
}

.adult-gate-page__fallback {
    display: block;
    max-width: 720px;
    margin: 48px auto;
    padding: 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
}

html.adult-gate-ready [data-adult-gate-page="1"] .adult-gate-page__fallback {
    display: none;
}

.adult-gate {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10051;
    width: min(500px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    color: #333;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

.adult-gate__content {
    padding: 32px 32px 20px;
    text-align: center;
}

.adult-gate__illustration svg {
    display: block;
    width: 113px;
    height: 113px;
    margin: 0 auto;
}

.adult-gate__title {
    margin: 20px 0 12px;
    font-size: 24px;
    font-weight: 700;
}

.adult-gate__description {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.adult-gate__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 32px 32px;
    border-top: 1px solid #eee;
}

.adult-gate__button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 40px;
    cursor: pointer;
}

.adult-gate__button--primary {
    color: #fff;
    background: #ff4d4d;
}

.adult-gate__button--secondary {
    color: #333;
    background: #f5f5f5;
    border-color: #ddd;
}

.adult-gate__button:focus-visible,
.adult-gate-page__fallback a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.adult-gate__scrim {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

body.adult-gate-open {
    overflow: hidden;
}

body.adult-gate-open > *:not(.adult-gate):not(.adult-gate__scrim) {
    pointer-events: none;
}

@media (max-width: 576px) {
    .adult-gate {
        width: calc(100vw - 24px);
        border-radius: 20px;
    }

    .adult-gate__content {
        padding: 24px 16px 16px;
    }

    .adult-gate__footer {
        padding: 12px 16px 20px;
    }

    .adult-gate__title {
        font-size: 20px;
    }

    .adult-gate__description,
    .adult-gate__label {
        font-size: 14px;
    }
}
