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

.tffo-age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 24, 40, 0.56);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.tffo-age-gate-overlay.no-blur {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(16, 24, 40, 0.72);
}

.tffo-age-gate-overlay.is-hidden {
    display: none !important;
}

.tffo-age-gate-card {
    width: min(448px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 32px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
    color: #1d2939;
    font-family: inherit;
}

.tffo-age-gate-logo {
    margin: 2px auto 18px;
}

.tffo-age-gate-logo .custom-logo-link {
    display: inline-block;
}

.tffo-age-gate-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 82px;
    margin: 0 auto;
}

.tffo-age-gate-card h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    color: #101828;
}

.tffo-age-gate-intro,
.tffo-age-gate-secondary {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: #475467;
}

.tffo-age-gate-secondary {
    margin-top: 2px;
}

.tffo-age-gate-confirm {
    margin: 24px 0;
    padding: 18px 20px 16px;
    border: 1px solid #cfe0ff;
    border-radius: 12px;
    background: #eff6ff;
    text-align: left;
}

.tffo-age-gate-confirm > strong {
    display: block;
    margin-bottom: 12px;
    text-align: center;
    font-size: 15px;
    color: #1d2939;
}

.tffo-age-gate-confirm ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tffo-age-gate-confirm li {
    position: relative;
    margin: 9px 0;
    padding-left: 29px;
    font-size: 14px;
    line-height: 1.45;
    color: #344054;
}

.tffo-age-gate-confirm li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 800;
}

.tffo-age-gate-terms {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: #667085;
}

.tffo-age-gate-terms a {
    color: #155eef;
    text-decoration: underline;
}

.tffo-age-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tffo-age-gate-actions button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    padding: 12px 16px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.18);
}

.tffo-age-gate-agree {
    background: #059337;
}

.tffo-age-gate-agree:hover,
.tffo-age-gate-agree:focus {
    background: #047a2f;
}

.tffo-age-gate-decline {
    background: #c41008;
}

.tffo-age-gate-decline:hover,
.tffo-age-gate-decline:focus {
    background: #a90e07;
}

.tffo-age-gate-remember {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 9px;
    background: #f8fafc;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.4;
    color: #475467;
    cursor: pointer;
}

.tffo-age-gate-remember input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

@media (max-width: 520px) {
    .tffo-age-gate-overlay {
        padding: 12px;
    }

    .tffo-age-gate-card {
        padding: 24px 18px 22px;
        border-radius: 13px;
    }

    .tffo-age-gate-actions {
        grid-template-columns: 1fr;
    }
}
