/* Cookie Consent Banner Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    border-top: 4px solid var(--primary-color, #5fa926);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-text h3 i {
    color: var(--primary-color, #5fa926);
    font-size: 1.4rem;
}

.cookie-consent-text p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-consent-text a {
    color: var(--primary-color, #5fa926);
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #4a8c1f;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-color, #5fa926);
    color: white;
}

.cookie-btn-primary:hover {
    background: #4a8c1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(95, 169, 38, 0.3);
}

.cookie-btn-secondary {
    background: #6c757d;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #5a6268;
}

.cookie-btn-outline {
    background: transparent;
    color: var(--primary-color, #5fa926);
    border: 2px solid var(--primary-color, #5fa926);
}

.cookie-btn-outline:hover {
    background: var(--primary-color, #5fa926);
    color: white;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-settings-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings-content > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color, #5fa926);
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-left: 2rem;
}

.cookie-settings-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cookie-settings-buttons .cookie-btn {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cookie-settings-content {
        padding: 1.5rem;
        width: 95%;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }
}

/* Print - Hide cookie banner */
@media print {
    #cookie-consent-banner,
    #cookie-settings-modal {
        display: none !important;
    }
}
