.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--section-bg-color);
    border: 1px solid var(--section-border-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-banner-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--heading-color);
}

.cookie-banner-content p {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-secondary {
    background-color: var(--section-bg-color);
    border: 1px solid var(--section-border-color);
    color: var(--text-color);
}

.button-secondary:hover {
    background-color: var(--background-color);
}

.button-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.button-outline:hover {
    background-color: var(--accent-color);
    color: var(--button-text-color);
}

/* Modal Styling */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.cookie-settings-modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--section-bg-color);
    border: 1px solid var(--section-border-color);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--heading-color);
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--section-border-color);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.category-info strong {
    display: block;
    color: var(--heading-color);
}

.category-info p {
    margin: 5px 0 0;
    font-size: 0.8em;
    color: var(--text-color);
}

/* Custom Toggle Switch */
.category-toggle {
    position: relative;
    width: 40px;
    height: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
    box-sizing: border-box;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

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

.toggle-slider.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }

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