/* /css/cookie-banner.css */

/* Banner de Consentimento de Cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--content-bg);
    color: var(--text-color);
    padding: 15px 25px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-mode .cookie-consent-banner {
    background-color: var(--content-bg);
    border-top: 1px solid var(--border-color);
}

.cookie-banner-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9em;
    flex-grow: 1;
}

.cookie-banner-content .link-button {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Modal de Preferências de Cookies */
#cookie-preferences-modal .cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

#cookie-preferences-modal .cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-header label {
    font-size: 1.1em;
    color: var(--text-color);
}

.cookie-category-description {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.5;
}

/* Estilo do Switch (Toggle) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:disabled + .slider {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}


input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}