.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #6b5c59; /* --color-text-primary */
    color: #ffffff; /* --color-text-inverse */
    padding: 15px 5%;
    box-shadow: 0 -5px 15px rgba(107, 92, 89, 0.3); /* Usando a cor base da sombra */
    border-top: 3px solid #cb898a; /* --color-primary */
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.5;
    color: #f7eeea; /* --color-background-light */
}

.cookie-content a {
    color: #cb898a; /* --color-primary */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: #ba8947; /* --color-secondary */
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-accept, .cookie-settings {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
}

.cookie-accept {
    background-color: #cb898a; /* --color-primary */
    color: #ffffff; /* --color-text-inverse */
    border-color: #cb898a;
}

.cookie-accept:hover {
    background-color: #ba7a7b; /* Tom mais escuro do rosa */
    border-color: #ba7a7b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 92, 89, 0.2);
}

.cookie-settings {
    background-color: transparent;
    color: #f7eeea; /* --color-background-light */
    border: 2px solid #8a7a77; /* --color-text-secondary */
}

.cookie-settings:hover {
    background-color: rgba(203, 137, 138, 0.1); /* --color-primary com transparência */
    border-color: #cb898a; /* --color-primary */
    color: #cb898a; /* --color-primary */
    transform: translateY(-2px);
}

/* Estados de foco para acessibilidade */
.cookie-accept:focus,
.cookie-settings:focus {
    outline: 2px solid #ba8947; /* --color-secondary */
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 12px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cookie-content p {
        min-width: unset;
        font-size: 13px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-accept, .cookie-settings {
        padding: 8px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 10px 15px;
    }
    
    .cookie-content p {
        font-size: 12px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-accept, .cookie-settings {
        width: 100%;
        max-width: 200px;
    }
}

/* Animação suave de entrada */
@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.active {
    animation: slideUpCookie 0.4s ease-out;
}


/* Modal de Cookies */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 92, 89, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cookie-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(107, 92, 89, 0.3);
    border: 2px solid #cb898a;
}

.cookie-modal-header {
    background: #f7eeea;
    padding: 20px;
    border-bottom: 1px solid #f1cac6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #6b5c59;
    font-size: 1.3rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8a7a77;
    transition: color 0.3s;
}

.cookie-modal-close:hover {
    color: #cb898a;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7eeea;
    border-radius: 8px;
    border-left: 4px solid #ba8947;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-header h4 {
    margin: 0;
    color: #6b5c59;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
}

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

.cookie-toggle-label {
    display: block;
    width: 50px;
    height: 26px;
    background: #8a7a77;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle-label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label {
    background: #4caf50;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label:after {
    transform: translateX(24px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-label {
    background: #ba8947;
    cursor: not-allowed;
}

.cookie-category p {
    margin: 0;
    color: #6b5c59;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-preferences-info {
    margin-top: 20px;
    padding: 10px;
    background: #f0f9f0;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #f1cac6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-modal-cancel, .cookie-modal-save {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid;
}

.cookie-modal-cancel {
    background: transparent;
    color: #8a7a77;
    border-color: #8a7a77;
}

.cookie-modal-cancel:hover {
    color: #6b5c59;
    border-color: #6b5c59;
}

.cookie-modal-save {
    background: #cb898a;
    color: #ffffff;
    border-color: #cb898a;
}

.cookie-modal-save:hover {
    background: #ba7a7b;
    border-color: #ba7a7b;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}