/* 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: none;
}

.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;
    line-height: 1.2;
}

.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: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.cookie-btn-primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

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

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

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

.cookie-btn-outline {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.cookie-btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

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

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

.cookie-customizer-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.cookie-categories {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

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

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

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

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

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

.cookie-toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

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

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

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

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider:before {
    background-color: #f3f4f6;
}

.cookie-category-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.cookie-category-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.cookie-customizer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-policy-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    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 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .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-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-categories {
        gap: 12px;
    }

    .cookie-category {
        padding: 12px;
    }

    .cookie-toggle {
        gap: 8px;
    }

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

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

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