/* ============================================================
   LGPD Cookie Consent — banner (barra fixa inferior) + botões.
   O modal de preferências vive em cookie_consent_modal.css.
   Mobile-first; z-index acima do header e componentes Bootstrap.
   Só aparece via .is-visible (JS decide pela ausência de consentimento).
   ============================================================ */

.gf-cookie {
  --gf-cookie-bg: #1f2937;
  --gf-cookie-fg: #f8fafc;
  --gf-cookie-accent: #1a7431;
  --gf-cookie-accent-hover: #145c26;
}

/* -------------------- Banner (barra inferior) -------------------- */
.gf-cookie__banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1900;
  display: none;
  background: var(--gf-cookie-bg);
  color: var(--gf-cookie-fg);
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.25);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.gf-cookie.is-visible .gf-cookie__banner {
  display: block;
}

.gf-cookie__inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gf-cookie__text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.gf-cookie__text a {
  color: var(--gf-cookie-fg);
  text-decoration: underline;
}

.gf-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* -------------------- Botões (banner + modal) -------------------- */
.gf-cookie__btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  width: 100%;
}

.gf-cookie__btn--accept {
  background: var(--gf-cookie-accent);
  color: #fff;
}
.gf-cookie__btn--accept:hover,
.gf-cookie__btn--accept:focus {
  background: var(--gf-cookie-accent-hover);
}

.gf-cookie__btn--reject,
.gf-cookie__btn--manage {
  background: transparent;
  color: var(--gf-cookie-fg);
  border-color: rgba(248, 250, 252, 0.5);
}
.gf-cookie__btn--reject:hover,
.gf-cookie__btn--manage:hover,
.gf-cookie__btn--reject:focus,
.gf-cookie__btn--manage:focus {
  background: rgba(248, 250, 252, 0.12);
}

/* No modal (fundo claro) os botões neutros precisam de contraste próprio */
.gf-cookie__dialog .gf-cookie__btn--reject {
  color: #1f2937;
  border-color: #cbd5e1;
}
.gf-cookie__dialog .gf-cookie__btn--reject:hover,
.gf-cookie__dialog .gf-cookie__btn--reject:focus {
  background: #f1f5f9;
}

/* -------------------- Desktop (banner) -------------------- */
@media (min-width: 768px) {
  .gf-cookie__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .gf-cookie__actions {
    flex-direction: row;
    flex-shrink: 0;
  }
  .gf-cookie__btn {
    width: auto;
  }
}
