#avp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999; /* Increased to ensure it’s above other overlays */
    display: flex;
    justify-content: center;
    align-items: center;
}

#avp-popup {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 1000000; /* Ensure popup content is also above */
}

#avp-popup h2 {
    margin-top: 0;
}

#avp-agree, #avp-underage {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#avp-agree {
    background: #28a745;
    color: #fff;
}

#avp-underage {
    background: #dc3545;
    color: #fff;
}

/* Ensure buttons are clickable */
#avp-agree, #avp-underage {
    position: relative;
    z-index: 1000001;
}

/* Desktop-specific adjustments */
@media (min-width: 768px) {
    #avp-overlay {
        z-index: 9999999; /* Even higher for desktop */
    }
    #avp-popup {
        z-index: 10000000;
    }
    #avp-agree, #avp-underage {
        z-index: 10000001;
    }
}