:root {
    --evav-primary: #aa7b33;
    --evav-primary-contrast: #ffffff;
    --evav-surface: #ffffff;
    --evav-text: #273142;
    --evav-muted: #606a78;
    --evav-border: #c5c9d1;
    --evav-backdrop: transparent;
    --evav-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    --evav-radius: 18px;
    --evav-button-radius: 12px;
    --evav-font: "Helvetica Neue", Arial, sans-serif;
}

#evav-overlay-wrap {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: transparent;
    backdrop-filter: none;
    z-index: 9999999999;
    overflow: auto;
    box-sizing: border-box;
}

#evav-overlay-wrap * {
    box-sizing: border-box;
    font-family: var(--evav-font);
}

#evav-overlay {
    position: relative;
    width: min(520px, 96vw);
    margin: 0 auto;
    z-index: 9999999998;
    background: var(--evav-surface);
    border-radius: var(--evav-radius);
    box-shadow: var(--evav-shadow);
    color: var(--evav-text);
    text-align: center;
    padding: 30px 28px 32px;
    overflow: hidden;
}

#evav-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-radius: inherit;
    z-index: 0;
}

#evav-overlay > * {
    position: relative;
    z-index: 1;
}

#evav_verify_form {
    margin-bottom: 0 !important;
}

#evav-overlay img {
    max-width: 220px;
    max-height: 22vh;
    display: block;
    margin: 0 auto 12px;
}

#evav-overlay h2,
#evav-overlay h3 {
    font-size: 26px;
    font-weight: 700;
    background: none !important;
    color: var(--evav-text);
    margin: 10px 0 12px;
    padding: 0;
}

#evav-overlay p {
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
    background: none !important;
    color: var(--evav-text);
    padding: 0;
    margin: 0 0 18px;
}

#evav-overlay .evav-message {
    margin-top: 8px;
    margin-bottom: 18px;
}

#evav-overlay h3 + p {
    margin-top: 6px;
}

.evav_buttons {
    display: grid;
    gap: 14px;
    margin: 14px 0 6px;
}

.evav_buttons input {
    text-transform: initial;
}

#evav-overlay input:not([type=checkbox]) {
    width: 100%;
    padding: 16px 18px;
    line-height: initial;
    border-radius: var(--evav-button-radius);
    font-weight: 600;
    font-size: 18px;
    color: var(--evav-primary-contrast);
    border: 1.5px solid transparent;
    background: var(--evav-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    text-align: center !important;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    box-shadow: none;
}

/* Override any inline styles to match first image design - only for confirm button */
#evav-overlay input[type="button"]#evav_confirm_age {
    background-color: #aa7b33 !important;
    color: #ffffff !important;
    border: none !important;
}

#evav-overlay input:focus:not([type=checkbox]) {
    outline: none;
}

#evav-overlay input:hover:not([type=checkbox]),
#evav-overlay input:focus:not([type=checkbox]) {
    text-decoration: none !important;
}

#evav_confirm_age {
    background-color: #aa7b33 !important;
    margin-bottom: 0;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(170, 123, 51, 0.38);
    border: none !important;
}

#evav_confirm_age:hover,
#evav_confirm_age:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(170, 123, 51, 0.45);
}

#evav_not_confirm_age {
    background-color: #ffffff !important;
    color: #273142 !important;
    border: 1.5px solid #c5c9d1 !important;
    box-shadow: none;
}

/* Ensure background is transparent */
#evav-overlay-wrap {
    background: transparent !important;
    backdrop-filter: none !important;
}

#evav_not_confirm_age:hover,
#evav_not_confirm_age:focus {
    transform: translateY(-1px);
    border-color: var(--evav-primary);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

#evav_verify_form label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--evav-muted) !important;
}

#evav-overlay input[type=checkbox] {
    width: auto !important;
    margin-top: 10px;
    vertical-align: initial;
    cursor: pointer;
}

#evav-overlay input[type=text] {
    width: 50px;
    outline: none;
}

#evav-overlay #evav_verify_y {
    width: 70px;
}

#evav-overlay .disclaimer {
    max-width: 520px;
    margin: 16px auto 0;
}

#evav-overlay .disclaimer p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0.1em;
    text-align: center;
    color: var(--evav-muted);
}

#evav-overlay .disclaimer a {
    background: none !important;
    color: var(--evav-primary);
    text-decoration: none;
}

#evav-overlay .disclaimer a:hover {
    color: var(--evav-text);
    text-decoration: underline;
}

.evav-error {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4em;
    padding: 8px 0 0;
    color: #c0392b;
    background: none !important;
}

@media screen and (max-width: 768px) {
    #evav-overlay {
        width: 100%;
        padding: 26px 20px 30px;
    }

    #evav-overlay h2,
    #evav-overlay h3 {
        font-size: 24px;
    }

    #evav-overlay p {
        font-size: 18px;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 480px) {
    #evav-overlay {
        padding: 22px 18px 26px;
    }

    #evav-overlay h2,
    #evav-overlay h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    #evav-overlay p {
        font-size: 17px;
        line-height: 1.45;
    }

    #evav-overlay img {
        max-width: 180px;
        max-height: 18vh;
    }
}

@media screen and (max-height: 480px) {
    #evav-overlay {
        padding: 18px 16px 22px;
    }

    #evav-overlay h2,
    #evav-overlay h3 {
        font-size: 20px;
        margin: 6px 0 8px;
    }

    #evav-overlay p {
        font-size: 16px;
    }

    #evav-overlay img {
        max-height: 14vh;
    }
}
