/* CSS para a camada escurecida */
.cookie-consent-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* CSS para a barra de cookies */
.cookie-consent-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #22355C; /* Cor de fundo */
    color: #ffffff; /* Cor do texto */
    padding: 20px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cookie-consent-bar .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Texto da barra de cookies */
.cookie-text {
    text-align: center;
    margin-bottom: 20px; /* Espaçamento entre o texto e os botões */
}

.cookie-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5; /* Melhor legibilidade */
}

/* Botões da barra de cookies */
.cookie-consent-buttons {
    display: flex;
    justify-content: center; /* Centraliza os botões no desktop */
    gap: 10px; /* Espaçamento entre os botões */
    flex-wrap: wrap; /* Permite quebra no mobile */
}

/* Botões individuais */
.cookie-consent-buttons button {
    background: #34562f; /* Cor dos botões */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 5px; /* Borda arredondada */
}

/* Hover nos botões */
.cookie-consent-buttons button:hover {
    background: #ffffff;
    color: #22355C;
}

/* Estilo para telas maiores (desktop) */
@media (min-width: 769px) {
    .cookie-consent-bar .container {
        align-items: center; /* Centraliza o conteúdo */
    }

    .cookie-consent-buttons {
        flex-wrap: nowrap; /* Garante que os botões fiquem em uma única linha */
    }

    .cookie-consent-buttons button {
        width: auto; /* Garante tamanho dinâmico no desktop */
    }
}

/* Estilo para dispositivos móveis */
@media (max-width: 768px) {
    .cookie-text {
        margin-bottom: 15px; /* Espaçamento menor no mobile */
    }

    .cookie-consent-buttons {
        flex-direction: column; /* Empilha os botões no mobile */
        align-items: center; /* Centraliza os botões */
    }

    .cookie-consent-buttons button {
        width: 100%; /* Botões ocupam toda a largura */
        max-width: 300px; /* Define um tamanho máximo */
    }
}
