/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #1e40af;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.cookie-btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.cookie-btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.cookie-btn-outline {
    background: transparent;
    color: #1e40af;
    border-color: #1e40af;
}

.cookie-btn-outline:hover {
    background: #1e40af;
    color: white;
}

/* Cookie Customizer */
.cookie-customizer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.cookie-customizer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.cookie-customizer-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.cookie-customizer-content > p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cookie-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider {
    background: #1e40af;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-slider {
    background: #9ca3af;
    cursor: not-allowed;
}

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

.cookie-label {
    font-weight: 500;
    color: #1f2937;
    flex-grow: 1;
}

.cookie-required {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.cookie-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.cookie-policy-link {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.cookie-policy-link p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.cookie-policy-link a {
    color: #1e40af;
    text-decoration: none;
}

.cookie-policy-link a:hover {
    text-decoration: underline;
}

.cookie-customizer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-customizer-content {
        padding: 20px 16px;
    }

    .cookie-customizer-actions {
        flex-direction: column;
    }

    .cookie-toggle {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cookie-label {
        flex-basis: 100%;
        order: 1;
    }

    .cookie-slider {
        order: 0;
    }

    .cookie-required {
        order: 2;
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.8rem;
    }

    .cookie-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .cookie-customizer-content h3 {
        font-size: 1.125rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #cookie-banner {
        border-top-width: 4px;
    }

    .cookie-btn-outline {
        border-width: 2px;
    }

    .cookie-category {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-btn,
    .cookie-slider,
    .cookie-slider:before {
        transition: none;
    }
}

/* Print styles */
@media print {
    #cookie-banner {
        display: none !important;
    }
}