.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 1rem;
    z-index: 1500;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.hidden {
    transform: translateY(100%);
}
:root {
    --cdi-reserva-consentimento: 0px;
}
body:has(.cookie-banner:not(.hidden)) {
    padding-bottom: var(--cdi-reserva-consentimento, 0px);
}
html:has(.cookie-banner:not(.hidden)) {
    scroll-padding-bottom: calc(var(--cdi-reserva-consentimento, 0px) + 0.5rem);
}
.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}
.cookie-banner-content p {
    margin: 0;
    flex-grow: 1;
}
.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-banner-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}
#cookie-accept-all {
    background-color: var(--primary-color);
    color: #fff;
    min-width: 8rem;
}
#cookie-accept-all:hover {
    background-color: var(--primary-color-dark);
}
.cookie-banner-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-banner-link:hover,
.cookie-banner-link:focus-visible {
    text-decoration: none;
}
.link-como-botao {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.link-como-botao:hover,
.link-como-botao:focus-visible {
    text-decoration: underline;
}
.cookie-nota {
    font-size: 0.85rem;
    color: var(--text-muted-color);
    margin-top: 1rem;
    margin-bottom: 0;
}
#cookie-preferences-modal .modal-content {
    max-width: 600px;
}
.cookie-category {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-category h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}
.cookie-category p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
}
#cookie-save-preferences {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
#cookie-save-preferences:hover {
    background-color: var(--primary-color-dark);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: .4s;
    border-radius: 28px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--success-color);
}
input:checked + .slider:before {
    transform: translateX(22px);
}
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}
#cookie-accept-all { background-color: var(--primary-btn-bg); }
#cookie-accept-all:hover { background-color: var(--primary-btn-bg-hover); }
.cookie-banner a { color: #6cb2ff; }
