/* Cookie Consent Banner Styles */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #0056b3;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 20px 0;
    display: none;
}

    #cookieConsentBanner.show {
        display: block;
        animation: slideUp .3s ease;
    }

.cookie-banner-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-banner-left {
    flex: 1;
}

    .cookie-banner-left strong {
        font-size: 16px;
        display: block;
        margin-bottom: 5px;
    }

    .cookie-banner-left p {
        font-size: 14px;
        color: #555;
        margin: 0;
        line-height: 1.5;
    }

.cookie-banner-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: .2s;
}

    .cookie-btn.primary {
        background: #0066cc;
        color: #fff;
    }

        .cookie-btn.primary:hover {
            background: #004fa3;
        }

    .cookie-btn.secondary {
        background: #f3f3f3;
        color: #333;
    }

        .cookie-btn.secondary:hover {
            background: #e5e5e5;
        }

    .cookie-btn.link {
        background: transparent;
        color: #0066cc;
        text-decoration: underline;
    }

/* Cookie Settings Page */
.cookie-settings-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.cookie-settings-header {
    margin-bottom: 30px;
}

.cookie-settings-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.cookie-settings-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.cookie-category {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-essential {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-optional {
    background: #e3f2fd;
    color: #1565c0;
}

.cookie-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-category-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.cookie-category-list li:before {
    content: "• ";
    color: #0066cc;
    font-weight: bold;
    margin-right: 8px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #0066cc;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-settings-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cookie-settings-actions {
        flex-direction: column;
    }

    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }
}
