
#optmz-age-gate-overlay.optmz-age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

.optmz-age-gate-backdrop {
    position: absolute;
    inset: 0;
    background: #0019309e;
    backdrop-filter: blur(var(--optmz-age-gate-blur, 5px));
    -webkit-backdrop-filter: blur(var(--optmz-age-gate-blur, 5px));
}

.optmz-age-gate-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.optmz-age-gate-header {
    background: #2060a8;
    padding: 18px 24px 16px;
    border-bottom: 1px solid #d8d8d8;
}

.optmz-age-gate-header h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    color: #FFFFFF;
    font-weight: 700;
}

.optmz-age-gate-body {
    padding: 22px 24px 10px;
    background: #fff;
}

.optmz-age-gate-intro {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.optmz-ag-box,
.optmz-ag-remember {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    color: #666;
}

.optmz-ag-box {
    margin-bottom: 14px;
    padding: 15px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
}

.optmz-ag-box-large {
    align-items: start;
}

.optmz-ag-box input,
.optmz-ag-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.optmz-ag-fake-check {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid #a6a6a6;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}

.optmz-ag-remember {
    grid-template-columns: 18px 1fr;
    gap: 10px;
    margin: 8px 0 16px;
    font-size: 14px;
    align-items: center;
}

.optmz-ag-fake-check.small {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.optmz-ag-label-text {
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}

.optmz-ag-box input:checked + .optmz-ag-fake-check,
.optmz-ag-remember input:checked + .optmz-ag-fake-check {
    background: #c49018;
    border-color: #c49018;
}

.optmz-ag-box input:checked + .optmz-ag-fake-check::after,
.optmz-ag-remember input:checked + .optmz-ag-fake-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.optmz-age-gate-footer {
    padding: 14px 24px 18px;
    border-top: 1px solid #ececec;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
}

.optmz-btn {
    min-width: 125px;
    padding: 13px 16px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.optmz-btn-underage {
    background: #ffffff !important;
    color: #2060a8 !important;
    border: 1px solid #2c90d2 !important;
}

.optmz-btn-underage:hover {
    background: #f4f9ff !important;
    border-color: #2060a8 !important; 
    color: #2060a8 !important;
}

/* Disabled state (before checkboxes are checked) */
.optmz-btn-allowed {
    background: #f2f2f2 !important;
    color: #999 !important;
    border: 1px solid #dcdcdc !important;
}

/* Active state */
.optmz-btn-allowed:not(.is-disabled) {
    background: #2c90d2 !important;
    color: #ffffff !important;
    border: 1px solid #2c90d2 !important;
}

.optmz-btn-allowed:not(.is-disabled):hover {
    background: #2060a8 !important;
    border-color: #2060a8 !important;
}
body.optmz-age-gate-locked {
    overflow: hidden;
}

@media (max-width: 640px) {
    .optmz-age-gate-modal {
        max-width: 100%;
    }

    .optmz-age-gate-header,
    .optmz-age-gate-body,
    .optmz-age-gate-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .optmz-age-gate-footer {
        flex-direction: column;
    }

    .optmz-btn {
        width: 100%;
    }
}
