@charset "utf-8";
/* Cookie banner (primeiro nível) e painel de preferências (segundo nível) */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 20px 24px;
    background-color: #fff;
    border-top: 4px solid #32556e;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    font-family: "Arial", sans-serif;
    box-sizing: border-box;
}

.cookie-banner-conteudo {
    flex: 1 1 520px;
    max-width: 820px;
}

.cookie-banner p,
.cookie-painel p {
    margin: 0 0 8px;
    color: #333;
    font-size: 14px;
    line-height: 21px;
    text-align: left;
}

.cookie-banner p:last-child {
    margin-bottom: 0;
}

.cookie-banner a,
.cookie-painel a {
    font-size: inherit;
    font-family: inherit;
    color: #0062b9;
    text-decoration: underline;
}

.cookie-banner a:hover,
.cookie-painel a:hover {
    color: #32556e;
}

.cookie-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    min-width: 120px;
    padding: 10px 16px;
    border: 2px solid #32556e;
    border-radius: 4px;
    background-color: #fff;
    color: #32556e;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.cookie-btn:hover {
    background-color: #e7eada;
}

.cookie-btn-primario {
    background-color: #32556e;
    color: #fff;
}

.cookie-btn-primario:hover {
    background-color: #0062b9;
    border-color: #0062b9;
}

.cookie-btn:focus-visible,
.cookie-fechar:focus-visible,
.cookie-switch input:focus-visible + .cookie-slider {
    outline: 3px solid #438ecf;
    outline-offset: 2px;
}

/* Painel de preferências */

.cookie-painel-fundo {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.cookie-painel-fundo.aberto {
    display: flex;
}

.cookie-painel {
    position: relative;
    width: 640px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 28px 28px 24px;
    background-color: #fff;
    border-top: 4px solid #32556e;
    border-radius: 4px;
    font-family: "Arial", sans-serif;
    box-sizing: border-box;
}

.cookie-painel h2 {
    margin: 0 0 16px;
    padding-right: 32px;
    color: #32556e;
    font-size: 22px;
    font-weight: 700;
}

.cookie-fechar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #32556e;
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
}

.cookie-categorias {
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.cookie-categoria {
    padding: 14px 16px;
    margin-bottom: 10px;
    background-color: #f1f1f1;
    border-left: 4px solid #32556e;
}

.cookie-categoria-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #32556e;
    font-size: 15px;
}

.cookie-categoria-topo strong {
    font-family: "Arial", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.cookie-categoria p {
    margin: 0;
    font-size: 13px;
    line-height: 19px;
}

.cookie-sempre-ativo {
    color: #2a7a3b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 46px;
    height: 24px;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background-color: #999;
    border-radius: 24px;
    transition: 0.2s ease;
    pointer-events: none;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.2s ease;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #32556e;
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(22px);
}

.cookie-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-botoes {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-painel {
        padding: 22px 16px 16px;
    }
}
