/* Privacy Consent Popup - Green Theme */

.privacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.privacy-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.privacy-popup-header {
    background: linear-gradient(135deg, #2d5016, #6b8e23);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.privacy-popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.privacy-popup-body {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.privacy-rights {
    background: #f8f9fa;
    border-left: 4px solid #2d5016;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

.privacy-details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-header {
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #2d5016;
}

.cookie-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-name {
    font-weight: 600;
    color: #2d5016;
    font-size: 1rem;
}

.cookie-required {
    color: #666;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-style: italic;
}

.cookie-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 30px;
}

.privacy-ccpa {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.privacy-ccpa p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

.privacy-ccpa a {
    color: #2d5016;
    font-weight: 600;
    text-decoration: underline;
}

.privacy-links {
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-size: 0.9rem;
}

.privacy-links a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 500;
}

.privacy-links a:hover {
    text-decoration: underline;
}

.privacy-popup-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.privacy-popup-footer button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(135deg, #2d5016, #6b8e23);
    color: white;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.btn-decline {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-decline:hover {
    background: #dc3545;
    color: white;
}

.btn-customize {
    background: white;
    color: #2d5016;
    border: 2px solid #2d5016;
}

.btn-customize:hover {
    background: #2d5016;
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .privacy-popup-content {
        border-radius: 15px 15px 0 0;
        max-height: 95vh;
    }
    
    .privacy-popup-header {
        padding: 1rem 1.5rem;
        border-radius: 15px 15px 0 0;
    }
    
    .privacy-popup-header h2 {
        font-size: 1.2rem;
    }
    
    .privacy-popup-body {
        padding: 1.5rem;
    }
    
    .privacy-popup-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .privacy-popup-footer button {
        width: 100%;
        margin: 0;
    }
    
    .cookie-description {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-popup-header {
        padding: 1rem;
    }
    
    .privacy-popup-header h2 {
        font-size: 1.1rem;
    }
    
    .privacy-popup-body {
        padding: 1rem;
    }
    
    .privacy-intro {
        font-size: 0.95rem;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
}

/* Desktop - centered modal instead of bottom popup */
@media (min-width: 1024px) {
    .privacy-popup-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        right: auto;
        max-width: 700px;
        width: 90%;
        border-radius: 20px;
        animation: zoomIn 0.4s ease;
    }
    
    .privacy-popup-header {
        border-radius: 20px 20px 0 0;
    }
    
    @keyframes zoomIn {
        from {
            transform: translate(-50%, -50%) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
    }
}

/* Accessibility */
.privacy-popup button:focus {
    outline: 3px solid #2d5016;
    outline-offset: 2px;
}

.cookie-toggle:focus-within {
    outline: 2px solid #2d5016;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print - hide popup */
@media print {
    .privacy-popup {
        display: none !important;
    }
}
