/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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 {
    flex: 1;
}

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

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    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.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #6366f1;
    color: white;
}

.cookie-btn-primary:hover {
    background: #4f46e5;
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.cookie-btn-secondary:hover {
    background: #e5e7eb;
}

.cookie-btn-outline {
    background: transparent;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.cookie-btn-outline:hover {
    background: #6366f1;
    color: white;
}

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

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

.cookie-customizer-content h4 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

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

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

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

.cookie-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    transition: background 0.2s ease;
    margin-right: 12px;
    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;
}

.cookie-switch input:checked + .cookie-slider {
    background: #6366f1;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
    background: #9ca3af;
    cursor: not-allowed;
}

.cookie-switch input:disabled ~ .cookie-label {
    color: #9ca3af;
    cursor: not-allowed;
}

.cookie-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

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

.cookie-customizer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cookie-policy-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: auto;
}

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

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

    .cookie-banner-text {
        text-align: center;
    }

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

    .cookie-btn {
        width: 100%;
        padding: 12px 16px;
    }

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

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

    .cookie-customizer-actions .cookie-btn {
        width: 100%;
    }

    .cookie-policy-link {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }
}

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

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

    .cookie-category {
        padding: 12px;
    }

    .cookie-slider {
        width: 40px;
        height: 22px;
    }

    .cookie-slider:before {
        width: 18px;
        height: 18px;
    }

    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(18px);
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 2px solid #000;
    }
    
    .cookie-btn-primary {
        border: 2px solid #000;
    }
    
    .cookie-btn-outline {
        border: 2px solid #000;
    }
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-switch:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.cookie-policy-link:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 2px;
}