:root {
    --bpa-age-primary: #111131;
    --bpa-age-accent: #00a29b;
    --bpa-age-highlight: #fdc831;
}

html.bpa-age-gate-lock,
html.bpa-age-gate-lock body,
body.bpa-age-gate-lock {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.bpa-age-gate {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: clamp(18px, 4vw, 24px);
    color: var(--bpa-age-primary);
    font-family: "Myriad Pro", "Trebuchet MS", sans-serif;
    isolation: isolate;
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.bpa-age-gate *,
.bpa-age-gate *::before,
.bpa-age-gate *::after {
    box-sizing: border-box;
}

.bpa-age-gate__backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #eef3f1;
    background:
        radial-gradient(circle at 14% 16%, color-mix(in srgb, var(--bpa-age-accent) 26%, transparent) 0 8%, transparent 32%),
        radial-gradient(circle at 86% 84%, color-mix(in srgb, var(--bpa-age-highlight) 22%, transparent) 0 8%, transparent 30%),
        linear-gradient(145deg, #f2f5f4 0%, #e7efed 46%, #f8f4e8 100%);
}

.bpa-age-gate__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: linear-gradient(rgba(17, 17, 49, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 49, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.bpa-age-gate__card {
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(400px, 1.18fr);
    width: min(930px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(17, 17, 49, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 35px 90px rgba(17, 17, 49, .22);
    animation: bpa-age-gate-enter 500ms cubic-bezier(.2, .75, .25, 1) both;
}

.bpa-age-gate__visual {
    position: relative;
    display: flex;
    min-height: 510px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 42px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .06), transparent 42%),
        var(--bpa-age-primary);
}

.bpa-age-gate__visual::before,
.bpa-age-gate__visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.bpa-age-gate__visual::before {
    width: 190px;
    height: 190px;
    top: -82px;
    left: -65px;
    background: var(--bpa-age-highlight);
}

.bpa-age-gate__visual::after {
    width: 120px;
    height: 120px;
    right: -54px;
    bottom: -35px;
    background: var(--bpa-age-accent);
}

.bpa-age-gate__orbit {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
}

.bpa-age-gate__orbit::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 24px;
    right: 30px;
    border-radius: 50%;
    background: var(--bpa-age-highlight);
    box-shadow: 0 0 0 7px rgba(253, 200, 49, .13);
}

.bpa-age-gate__age {
    position: relative;
    z-index: 1;
    font-family: "Arsenica Variable", Georgia, serif;
    font-size: clamp(94px, 12vw, 120px);
    font-weight: 600;
    line-height: .82;
    letter-spacing: -.08em;
}

span.bpa-age-gate__age-label {
    font-family: "Arsenica Variable", Georgia, serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 600;
    line-height: .82;
    letter-spacing: -.08em;
}


.bpa-age-gate__age sup {
    margin-left: .06em;
    color: var(--bpa-age-highlight);
    font-family: "Myriad Pro", sans-serif;
    font-size: .28em;
    letter-spacing: 0;
    vertical-align: top;
}

.bpa-age-gate__visual-label {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bpa-age-gate__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vw, 40px);
}

.bpa-age-gate__logo {
    display: flex;
    min-height: 42px;
    align-items: center;
    margin-bottom: 42px;
}

.bpa-age-gate__logo img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 58px;
    object-fit: contain;
}

.bpa-age-gate__logo strong {
    font-family: "Arsenica Variable", Georgia, serif;
    font-size: 26px;
}

.bpa-age-gate__eyebrow {
    margin: 0 0 12px;
    color: var(--bpa-age-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bpa-age-gate h2 {
    max-width: 520px;
    margin: 0;
    color: var(--bpa-age-primary);
    font-family: "Arsenica Variable", Georgia, serif;
    font-size: clamp(34px, 4vw, 24px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.025em;
}

.bpa-age-gate__message {
    max-width: 510px;
    margin: 22px 0 0;
    color: #55596b;
    font-size: 17px;
    line-height: 1.55;
}

.bpa-age-gate__actions {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.bpa-age-gate__date-form {
    margin-top: 30px;
}

.bpa-age-gate__date-form > label {
    display: block;
    margin-bottom: 9px;
    color: var(--bpa-age-primary);
    font-size: 14px;
    font-weight: 700;
}

.bpa-age-gate__date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 10px;
}

.bpa-age-gate__date-fields > input[type="text"] {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #c8cbd5;
    border-radius: 14px;
    color: var(--bpa-age-primary);
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 54px;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bpa-age-gate__date-fields > input[type="text"]::placeholder {
    color: #858997;
    font-weight: 600;
    opacity: 1;
}

.bpa-age-gate__date-fields > input[type="text"]:focus {
    border-color: var(--bpa-age-accent);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpa-age-accent) 18%, transparent);
}

.bpa-age-gate__date-fields > input[aria-invalid="true"] {
    border-color: #bd2935;
    box-shadow: 0 0 0 3px rgba(189, 41, 53, .12);
}

.bpa-age-gate__date-help,
.bpa-age-gate__date-error {
    margin: 8px 2px 0;
    font-size: 12px;
    line-height: 1.4;
}

.bpa-age-gate__date-help {
    color: #747887;
}

.bpa-age-gate__date-error {
    color: #b5222e;
    font-weight: 700;
}

.bpa-age-gate__date-error[hidden] {
    display: none;
}

.bpa-age-gate__date-form > .bpa-age-gate__button {
    margin-top: 20px;
}

.bpa-age-gate__notices {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #e2e4ea;
}

.bpa-age-gate__notice {
    text-align: center;
}

.bpa-age-gate__notice h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    color: var(--bpa-age-primary);
    font-family: "Myriad Pro", "Trebuchet MS", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

.bpa-age-gate__notice h3 svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #d51424;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.bpa-age-gate__notice--warning h3 svg path:first-child {
    fill: #d51424;
    stroke: #d51424;
}

.bpa-age-gate__notice--warning h3 svg path + path {
    stroke: #fff;
}

.bpa-age-gate__notice p {
    margin: 8px auto 0;
    color: #666a78;
    font-size: 13px;
    line-height: 1.45;
}

.bpa-age-gate__button {
    width: 100%;
    min-height: 54px;
    padding: 13px 22px;
    border: 1px solid var(--bpa-age-primary);
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.bpa-age-gate__button:hover {
    transform: translateY(-2px);
}

.bpa-age-gate__button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--bpa-age-highlight) 78%, white);
    outline-offset: 3px;
}

.bpa-age-gate__button--accept {
    border-color: var(--bpa-age-accent);
    color: #fff;
    background: var(--bpa-age-accent);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--bpa-age-accent) 22%, transparent);
}

.bpa-age-gate__button--accept:hover {
    border-color: var(--bpa-age-primary);
    background: var(--bpa-age-primary);
}

.bpa-age-gate__button--refuse {
    color: var(--bpa-age-primary);
    background: #fff;
}

.bpa-age-gate__button--refuse:hover {
    color: #fff;
    background: var(--bpa-age-primary);
}

.bpa-age-gate__legal {
    margin: 24px 0 0;
    color: #7b7e8e;
    font-size: 12px;
    line-height: 1.45;
}

.bpa-age-gate__denied[hidden],
.bpa-age-gate__question[hidden] {
    display: none;
}

.bpa-age-gate__noscript {
    padding: 10px 12px;
    color: #9e1e28;
    background: #fff0f1;
}

html.bpa-age-gate-verified .bpa-age-gate,
.bpa-age-gate[aria-hidden="true"] {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.bpa-age-gate.is-denied .bpa-age-gate__visual::after {
    background: #cf3340;
}

@keyframes bpa-age-gate-enter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) {
    .bpa-age-gate {
        align-items: center;
        padding: 12px;
    }

    .bpa-age-gate__card {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        border-radius: 24px;
    }

    .bpa-age-gate__visual {
        min-height: 150px;
        padding: 26px 30px;
    }

    .bpa-age-gate__visual::before {
        width: 96px;
        height: 96px;
        top: -50px;
    }

    .bpa-age-gate__visual::after {
        width: 72px;
        height: 72px;
        right: -30px;
    }

    .bpa-age-gate__orbit {
        width: 132px;
        height: 132px;
    }

    .bpa-age-gate__orbit::before {
        width: 12px;
        height: 12px;
        top: 12px;
        right: 14px;
    }

    .bpa-age-gate__age {
        font-size: 55px;
    }

    .bpa-age-gate__visual-label {
        margin-top: 12px;
        font-size: 11px;
        display: none;
    }

    .bpa-age-gate__content {
        padding: 20px 25px 20px;
    }

    .bpa-age-gate__logo {
        min-height: 0;
        margin-bottom: 20px;
    }

    .bpa-age-gate__logo img {
        max-width: 135px;
        max-height: 44px;
    }

    .bpa-age-gate h2 {
        font-size: clamp(20px, 9vw, 25px);
    }

    .bpa-age-gate__date-fields > input[type="text"] {
        height: 40px;
    }

    .bpa-age-gate__button {
        min-height: 40px;
    }

    .bpa-age-gate__message {
        margin-top: 14px;
        font-size: 15px;
    }

    .bpa-age-gate__actions {
        margin-top: 24px;
    }

    .bpa-age-gate__date-form {
        margin-top: 24px;
    }

    .bpa-age-gate__notices {
        gap: 16px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .bpa-age-gate__notice p {
        font-size: 12px;
    }

    .bpa-age-gate__legal {
        margin-top: 18px;
    }
}

@media (max-height: 650px) and (min-width: 761px) {
    .bpa-age-gate__visual {
        min-height: 430px;
    }

    .bpa-age-gate__content {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .bpa-age-gate__logo {
        margin-bottom: 24px;
    }
}

@media (min-width: 762px) and (max-width: 1024px) {
    .bpa-age-gate__logo {
        margin-bottom: 25px;
    }

    .bpa-age-gate__date-fields > input[type="text"] {
        height: 45px;
    }

    .bpa-age-gate__date-form > .bpa-age-gate__button {
        margin-top: 15px;
    }

    .bpa-age-gate__button {
        min-height: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpa-age-gate__card,
    .bpa-age-gate,
    .bpa-age-gate__button {
        animation: none;
        transition: none;
    }
}
