/* Banner de consentimento de cookies (LGPD) — componente isolado.
   Não interfere em nenhum script de rastreamento; apenas registra a escolha. */

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 149;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  background: #FDFBF6;
  border-top: 1px solid #CEBFAC;
  box-shadow: 0 -6px 24px rgba(84, 68, 50, 0.08);
  padding: 16px clamp(90px, 11vw, 108px) 16px clamp(20px, 5vw, 64px);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#cookie-banner[hidden] { display: none; }
#cookie-banner.is-visible { transform: none; }

#cookie-banner p {
  margin: 0;
  flex: 1 1 420px;
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7D664E;
}
#cookie-banner p a {
  color: #7D664E;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #CEBFAC;
}
#cookie-banner p a:hover {
  color: #957F62;
  text-decoration-color: #957F62;
}

#cookie-banner-acoes {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
/* Aceitar e Recusar: mesma geometria, mesma fonte, mesmo peso e mesmo contraste
   de texto — exigência de conformidade (nenhuma opção menos visível). */
#cookie-banner-acoes button {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border: 1px solid #7D664E;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
#cookie-accept { background: #7D664E; color: #F2E6D9; }
#cookie-accept:hover { background: #957F62; border-color: #957F62; }
#cookie-deny { background: #FDFBF6; color: #7D664E; }
#cookie-deny:hover { background: #F2E6D9; }

@media (max-width: 880px) {
  /* acima do botão flutuante do WhatsApp (bottom 24px + 56px de altura) */
  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 96px;
    border: 1px solid #CEBFAC;
    padding: 16px clamp(16px, 4vw, 24px);
    justify-content: center;
    text-align: center;
    transform: translateY(calc(100% + 108px));
  }
  #cookie-banner.is-visible { transform: none; }
  #cookie-banner p { flex: 1 1 100%; font-size: 13px; }
  #cookie-banner-acoes { width: 100%; justify-content: center; }
  #cookie-banner-acoes button { flex: 1 1 0; padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-banner { transition: none; }
}
