
.banner-cookies[hidden],
.modal-cookies[hidden] {
    display: none !important;
}

.banner-cookies {
    position: fixed;
    z-index: 9998;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(18, 48, 72, .18);
    color: #263f53;
    font-family: 'Poppins', sans-serif;
}

.cookies-conteudo {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookies-icone {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e8f2fa;
    color: #24577d;
    font-size: 22px;
}

.cookies-texto h2,
.cookies-painel h2 {
    margin: 0 0 10px;
    color: #173d5c;
    font-size: 21px;
}

.cookies-texto p,
.cookies-introducao {
    margin: 0 0 10px;
    color: #52697b;
    font-size: 13px;
    line-height: 1.7;
}

.cookies-texto a {
    color: #24577d;
    font-size: 13px;
    text-decoration: underline;
}

.cookies-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookies-botao {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #cbd9e4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cookies-botao:focus-visible,
.cookies-fechar:focus-visible,
.cookies-reabrir:focus-visible {
    outline: 3px solid #78add8;
    outline-offset: 3px;
}

.cookies-principal {
    background: #24577d;
    color: #fff;
    border-color: #24577d;
}

.cookies-principal:hover {
    background: #173d5c;
}

.cookies-secundario {
    background: #fff;
    color: #24577d;
}

.cookies-secundario:hover {
    background: #edf4f9;
}

.modal-cookies {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 35, 52, .62);
    overflow-y: auto;
}

.cookies-painel {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 16px;
    background: #fff;
    color: #263f53;
    font-family: 'Poppins', sans-serif;
}

.cookies-fechar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #edf4f9;
    color: #24577d;
    cursor: pointer;
    font-size: 18px;
}

.cookies-etiqueta {
    display: block;
    margin-bottom: 8px;
    color: #477ba7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.cookies-painel h2 {
    padding-right: 28px;
}

.cookies-categoria {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #e3ebf1;
}

.cookies-categoria h3 {
    margin: 0 0 5px;
    color: #173d5c;
    font-size: 14px;
}

.cookies-categoria p {
    margin: 0;
    color: #607587;
    font-size: 12px;
    line-height: 1.6;
}

.cookies-sempre {
    grid-column: 1 / -1;
    margin-top: -8px;
    color: #426c50;
    font-size: 11px;
}

.cookies-chave {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cookies-chave input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookies-chave-visual {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #cbd5de;
    cursor: pointer;
    transition: background .2s;
}

.cookies-chave-visual::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}

.cookies-chave input:checked + .cookies-chave-visual {
    background: #24577d;
}

.cookies-chave input:checked + .cookies-chave-visual::before {
    transform: translateX(20px);
}

.cookies-chave input:focus-visible + .cookies-chave-visual {
    outline: 3px solid #78add8;
    outline-offset: 3px;
}

.cookies-chave input:disabled + .cookies-chave-visual {
    opacity: .65;
    cursor: not-allowed;
}

.cookies-aviso {
    margin: 16px 0 0;
    color: #607587;
    font-size: 11px;
    line-height: 1.6;
}

.cookies-acoes-modal {
    flex-direction: column;
}

.cookies-acoes-modal .cookies-botao {
    width: 100%;
}

.cookies-reabrir {
    position: fixed;
    z-index: 9997;
    left: 14px;
    bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #cbd9e4;
    border-radius: 24px;
    background: #fff;
    color: #24577d;
    box-shadow: 0 3px 14px rgba(18, 48, 72, .12);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.cookies-reabrir i {
    margin-right: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .banner-cookies {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }

    .cookies-conteudo {
        gap: 10px;
    }

    .cookies-icone {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .cookies-texto h2 {
        font-size: 17px;
    }

    .cookies-acoes {
        flex-direction: column;
    }

    .cookies-botao {
        width: 100%;
    }

    .cookies-painel {
        padding: 24px 18px;
    }

    .cookies-reabrir {
        bottom: 8px;
        left: 8px;
    }
}
