/* Barra de consentimento de cookies.
   Altura automática (antes era fixa por breakpoint e o texto vazava da barra), conteúdo centralizado
   e espaço reservado para o widget de atendimento fixo no canto inferior direito, que cobria o botão. */
.fundo-cokkie {
    background: #5a5566ee;
    color: rgb(255, 255, 255);
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
    position: fixed;
    text-align: justify;
    font-size: 14px;
    /* mesmo recuo dos dois lados (centraliza); nunca menos que a largura do widget, até o limite de 1140px do site */
    padding: 0 max(390px, calc((100% - 1140px) / 2));
}

.fundo-cokkie .container-fluid {
    padding: 12px 0 !important;
}

.fundo-cokkie .row {
    align-items: center;
    flex-wrap: nowrap;
}

/* texto ocupa o espaço que sobra; o botão só a largura dele
   (o Bootstrap dá width: 100% a todo .col-*, por isso o width: auto) */
.fundo-cokkie .col-9 {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.fundo-cokkie .col-3 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.fundo-cokkie p {
    margin: 0;
}

.cokkie {
    text-align: right;
}

.button-cookie {
    background-color: #ffffff;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-cookie:hover {
    background-color: #ffffff5d;
    color: #333333;
}

.fundo-cokkie .cookie-close {
    position: absolute;
    top: 6px;
    right: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Telas menores: texto em cima e botão embaixo, centralizados, acima do widget de atendimento */
@media screen and (max-width: 1399.98px) {
    .fundo-cokkie {
        padding: 0 20px 76px 20px;
        font-size: 13px;
    }

    .fundo-cokkie .container-fluid {
        max-width: 960px;
        margin: 0 auto;
        padding: 28px 0 0 0 !important;
    }

    .fundo-cokkie .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fundo-cokkie .col-9,
    .fundo-cokkie .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .fundo-cokkie p {
        text-align: center;
    }

    .cokkie {
        text-align: center;
        margin-top: 10px;
    }
}
