/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    backdrop-filter: blur(2px);
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-container {
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.cookie-consent-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.cookie-consent-category:hover {
    background-color: #f3f4f6;
}

.cookie-consent-category input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-consent-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-consent-category-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    flex: 1;
}

.cookie-consent-category-label span:first-child {
    font-weight: 500;
    color: #111827;
}

.cookie-consent-category-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.cookie-consent-btn-primary:hover {
    background-color: #2563eb;
}

.cookie-consent-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.cookie-consent-btn-secondary:hover {
    background-color: #4b5563;
}

.cookie-consent-btn-link {
    background-color: transparent;
    color: #6b7280;
    text-decoration: underline;
    padding: 0.625rem 0.75rem;
}

.cookie-consent-btn-link:hover {
    color: #374151;
}

/* Responsive Design */
@media (max-width: 640px) {
    .cookie-consent-content {
        padding: 1rem;
    }

    .cookie-consent-title {
        font-size: 1.125rem;
    }

    .cookie-consent-description {
        font-size: 0.8125rem;
    }

    .cookie-consent-categories {
        padding: 0.75rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-container {
        background: #1f2937;
        border-top-color: #374151;
    }

    .cookie-consent-title {
        color: #f9fafb;
    }

    .cookie-consent-description {
        color: #d1d5db;
    }

    .cookie-consent-categories {
        background-color: #111827;
    }

    .cookie-consent-category:hover {
        background-color: #1f2937;
    }

    .cookie-consent-category-label {
        color: #e5e7eb;
    }

    .cookie-consent-category-label span:first-child {
        color: #f9fafb;
    }

    .cookie-consent-category-desc {
        color: #9ca3af;
    }

    .cookie-consent-btn-link {
        color: #9ca3af;
    }

    .cookie-consent-btn-link:hover {
        color: #d1d5db;
    }
}

