/* ==========================================================================
   AVISO DE COOKIES / CONSENTIMENTO (LGPD)
   ========================================================================== */

[x-cloak] {
    display: none !important;
}

.amb-cookie {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    font-family: 'Poppins', sans-serif;
}

.amb-cookie-reopen {
    background: #ffffff;
    color: #013963;
    border: 1px solid #dce4e8;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(1, 57, 99, 0.12);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.amb-cookie-reopen:hover,
.amb-cookie-reopen:focus-visible {
    transform: translateY(-1px);
    background: #e4eef5;
}

/* --------------------------------------------------------------------------
   Painel — animação de "subida" ao aparecer (fade + translateY curto)
   -------------------------------------------------------------------------- */

.amb-cookie-panel-enter {
    transition: opacity 320ms ease, transform 320ms ease;
}

.amb-cookie-panel-leave {
    transition: opacity 220ms ease, transform 220ms ease;
}

.amb-cookie-panel-enter-start {
    opacity: 0;
    transform: translateY(24px);
}

.amb-cookie-panel-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.amb-cookie-panel {
    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(1, 57, 99, 0.22);
}

.amb-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.amb-cookie-title {
    color: #013963;
    font-size: 1.02rem;
    font-weight: 700;
}

.amb-cookie-close {
    background: none;
    border: none;
    color: #767676;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.amb-cookie-close:hover,
.amb-cookie-close:focus-visible {
    color: #013963;
}

.amb-cookie-message {
    color: #767676;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Categorias — bloco cinza-claro, com label + controle + chevron na mesma
   linha, igual ao site atual
   -------------------------------------------------------------------------- */

.amb-cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.amb-cookie-category {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 0 14px;
}

.amb-cookie-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

.amb-cookie-category-title {
    flex: 1 1 auto;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
}

.amb-cookie-always-active {
    color: #1a9c6a;
    font-size: 0.78rem;
    font-weight: 600;
}

.amb-cookie-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #013963;
    cursor: pointer;
}

.amb-cookie-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #767676;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 160ms ease, color 160ms ease;
}

.amb-cookie-chevron:hover,
.amb-cookie-chevron:focus-visible {
    color: #013963;
}

.amb-cookie-chevron.is-open {
    transform: rotate(180deg);
    color: #013963;
}

.amb-cookie-description {
    color: #767676;
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
    padding: 0 0 14px;
}

/* --------------------------------------------------------------------------
   Botões — Aceitar isolado numa linha, Negar/Salvar preferências em duas
   colunas por baixo, igual ao site atual
   -------------------------------------------------------------------------- */

.amb-cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.amb-cookie-buttons-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 16px;
}

.amb-cookie-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.amb-cookie-btn {
    width: 100%;
    border-radius: 999px;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid #dce4e8;
    background: #f4f4f4;
    color: #013963;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.amb-cookie-btn:hover,
.amb-cookie-btn:focus-visible {
    transform: translateY(-1px);
    background: #e9e9e9;
}

.amb-cookie-btn:active {
    transform: translateY(0);
    background: #dedede;
}

.amb-cookie-btn--primary {
    background: #013963;
    border-color: #013963;
    color: #ffffff;
}

.amb-cookie-btn--primary:hover,
.amb-cookie-btn--primary:focus-visible {
    background: #00558c;
}

.amb-cookie-btn--primary:active {
    background: #013963;
}

.amb-cookie-link {
    display: block;
    text-align: center;
    color: #013963;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .amb-cookie {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .amb-cookie-panel {
        width: 100%;
    }
}
