/* Keep names simple; no theme overrides needed */

/* Overlay */
#agegate-overlay {
    position: fixed;
    inset: 0;
    display: none; /* toggled to block by JS if cookie missing */
    align-items: center;
    justify-content: center;
    background: rgba(10, 18, 30, 0.55);
    backdrop-filter: blur(4px);
    z-index: 999999; /* above everything */
}

/* Modal */
#agegate-modal {
    width: min(92vw, 640px);
    border-radius: 6px;
    background: #001a3d;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border: 1px solid #edae44;
    text-align: center;
    font-size: 19px;
    line-height: 1.3;
}

#agegate-modal .agegate-header h2 {
    color: #c89d39;
    font-size: 19px;
    line-height: 1.3em;
    font-family: 'open sans', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-weight: bold;
    text-transform: none;
}

#agegate-modal .agegate-header {
    max-width: 450px;
    margin: auto;
}

#agegate-modal .agegate-question {
    margin: 20px auto 14px;
    max-width: 450px;
    font-weight: normal;
}

/* Buttons */
.agegate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.agegate-btn {
    appearance: none;
    border: 0;
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s ease;

    font-weight: bold;
    background: transparent;
    color: #c89d39;
    font-size: 19px;
    line-height: 1.3em;
    font-family: 'open sans', Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-transform: none;
}

.agegate-btn img {
    vertical-align: middle;
    margin: 0 7px 0 0;
}

.agegate-btn:active {
    transform: translateY(1px);
}

/* Body blur when open */
body.agegate-open > *:not(#agegate-overlay) {
    filter: blur(6px) saturate(0.9);
    pointer-events: none;
    user-select: none;
}
