/* Cannabicity Age Verification Styles */

/* Blur the page content when popup is active */
body.cav-active > *:not(#cav-overlay):not(#cav-denied):not(script):not(style) {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* Overlay - hidden by default, shown via JS */
.cav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cav-overlay.cav-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cav-overlay.cav-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Popup Container */
.cav-popup {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    text-align: center;
}

/* Header - Rise (Navy Blue) */
.cav-header {
    background-color: #11274a;
    padding: 30px 20px;
}

/* Logo */
.cav-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#cav-overlay .cav-popup .cav-title {
    color: #f5b335;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-transform: uppercase;
    background: none !important;
    border: none !important;
}

/* Content Area */
.cav-content {
    padding: 30px 40px 35px;
    background-color: #ffffff;
}

.cav-content p {
    color: #333333;
    font-size: 18px;
    margin: 0 0 25px 0;
    font-weight: 400;
}

/* Buttons */
.cav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cav-btn {
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* Yes Button - Shine (Gold) */
.cav-btn-yes {
    background-color: #f5b335;
    color: #11274a;
    border-color: #f5b335;
}

.cav-btn-yes:hover {
    background-color: #e0a02f;
    border-color: #e0a02f;
}

/* No Button - White with border */
.cav-btn-no {
    background-color: #ffffff;
    color: #11274a;
    border-color: #11274a;
}

.cav-btn-no:hover {
    background-color: #f5f5f5;
}

/* Focus styles for keyboard accessibility */
.cav-btn:focus-visible {
    outline: 3px solid #f5b335;
    outline-offset: 2px;
}

.cav-btn-yes:focus-visible {
    outline-color: #11274a;
}

/* Denied Screen */
.cav-denied {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #11274a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cav-denied.cav-show {
    opacity: 1;
    visibility: visible;
}

.cav-denied-content {
    text-align: center;
    padding: 40px;
}

.cav-denied-content h2 {
    color: #f5b335;
    font-size: 32px;
    margin: 0 0 15px 0;
}

.cav-denied-content p {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .cav-popup {
        width: 95%;
    }

    .cav-header {
        padding: 25px 15px;
    }

    .cav-logo {
        max-width: 120px;
        margin-bottom: 15px;
    }

    #cav-overlay .cav-popup .cav-title {
        font-size: 22px;
    }

    .cav-content {
        padding: 25px 20px 30px;
    }

    .cav-content p {
        font-size: 16px;
    }

    .cav-buttons {
        flex-direction: row;
    }

    .cav-btn {
        padding: 12px 35px;
        font-size: 15px;
    }
}
