/* ===========================
   COMPONENTES GLOBAIS
   =========================== */

/* Botão "Voltar ao Topo" */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--brand);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background-color 300ms ease, transform 300ms ease, opacity 300ms ease;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--brand-dark);
  transform: translateY(-4px);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* Banner de cookies */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

.cookie-banner__texto {
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  margin-bottom: 1rem;
}

.cookie-banner__acoes {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Os dois botões com o mesmo peso visual: recusar é tão fácil quanto aceitar */
.cookie-banner__botao {
  flex: 0 1 8rem;
  padding: 0.625rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  background-color: var(--color-white);
  border: 1px solid var(--brand);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}

.cookie-banner__botao:hover {
  color: var(--color-white);
  background-color: var(--brand);
}

.cookie-preferencias {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ===========================
   FIM COMPONENTES
   =========================== */