/* =========================================================
   COOKIES — aviso de consentimento
   Fica no rodapé da janela, sem bloquear a leitura da página.
   ========================================================= */
.cookie-aviso {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 940px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform var(--t-med) var(--ease);
}
.cookie-aviso.is-open { transform: translateY(0); }

.cookie-texto { flex: 1; min-width: 260px; }
.cookie-texto strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 5px;
}
.cookie-texto p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.cookie-texto a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-acoes {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-acoes .btn { padding: 11px 20px; font-size: 14px; }

/* Botão discreto de recusa: a escolha precisa ser real, então ele não pode
   estar escondido — mas o aceite continua sendo o caminho em destaque. */
.btn-recusar {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.btn-recusar:hover { border-color: var(--color-text-muted); color: var(--color-text); }

/* Link no rodapé para rever a escolha depois */
.cookie-refazer {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.cookie-refazer:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .cookie-aviso {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
    gap: 14px;
  }
  .cookie-acoes { width: 100%; }
  .cookie-acoes .btn { flex: 1; }
}

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