/* Smart Privacy Consent Plugin Styles */

.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.privacy-modal {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.privacy-modal.bottom_banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin: 0;
    max-height: 70vh;
}

.privacy-content {
    padding: 24px;
}

.privacy-content h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.privacy-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.cookie-categories {
    margin: 20px 0;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.cookie-category {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-category input[type="checkbox"] {
    margin: 2px 8px 0 0;
    flex-shrink: 0;
}

.cookie-category strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.cookie-category input[disabled] + strong {
    color: #666;
}

.privacy-links {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.privacy-links a {
    color: var(--primary-color, #2271b1);
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
}

.privacy-links a:hover {
    text-decoration: underline;
}

.privacy-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.privacy-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-primary {
    background: var(--primary-color, #2271b1);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color-dark, #1e5a8a);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color, #f6f7f7);
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Bottom banner specific animations */
.privacy-modal.bottom_banner {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .privacy-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .privacy-modal.bottom_banner {
        margin: 0;
        width: 100%;
    }
    
    .privacy-content {
        padding: 20px;
    }
    
    .privacy-buttons {
        flex-direction: column;
    }
    
    .privacy-buttons button {
        width: 100%;
        min-width: auto;
    }
}

/* Custom scrollbar for modal content */
.privacy-modal::-webkit-scrollbar {
    width: 6px;
}

.privacy-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.privacy-modal::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.privacy-modal::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Accessibility improvements */
.privacy-modal:focus {
    outline: 2px solid var(--primary-color, #2271b1);
    outline-offset: 2px;
}

.privacy-buttons button:focus {
    outline: 2px solid var(--primary-color, #2271b1);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .privacy-modal {
        border: 2px solid #000;
    }
    
    .cookie-category {
        border: 1px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .privacy-modal {
        animation: none;
    }
    
    .privacy-buttons button {
        transition: none;
    }
    
    .privacy-buttons button:hover {
        transform: none;
    }
}