/* AFZ Age Verification Popup Styles */
.afz-age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(91, 85, 151, 0.81);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: afz-fadeIn 0.3s ease-out;
}

@keyframes afz-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.afz-age-verification-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: afz-slideUp 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes afz-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.afz-verification-header {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.afz-verification-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.afz-verification-content {
    padding: 35px 30px;
}

.afz-verification-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.afz-verification-buttons {
    display: flex;
    gap: 15px;
    margin: 35px 0 25px;
}

.afz-verification-buttons button {
    flex: 1;
    padding: 17px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.afz-btn-confirm {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.afz-btn-confirm:hover {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.afz-btn-deny {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.afz-btn-deny:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.afz-verification-footer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.afz-verification-footer small {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    margin-bottom: 8px;
}

.afz-verification-footer a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.afz-verification-footer a:hover {
    border-bottom: 1px solid #d32f2f;
}

/* Loading state */
.afz-btn-confirm.afz-loading,
.afz-btn-deny.afz-loading {
    position: relative;
    color: transparent;
}

.afz-btn-confirm.afz-loading::after,
.afz-btn-deny.afz-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: afz-spin 0.8s linear infinite;
}

.afz-btn-deny.afz-loading::after {
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top-color: #333;
}

@keyframes afz-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .afz-age-verification-modal {
        width: 95%;
        margin: 20px;
    }
    
    .afz-verification-header {
        padding: 20px;
    }
    
    .afz-verification-header h2 {
        font-size: 22px;
    }
    
    .afz-verification-content {
        padding: 25px 20px;
    }
    
    .afz-verification-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .afz-verification-buttons button {
        padding: 15px;
    }
}

/* Admin bar notice */
.admin-bar .afz-age-verification-overlay {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .afz-age-verification-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}