/* Consentimento — barra inferior fixa (sem blur / sem bloquear a página) */

.mkt-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  pointer-events: none;
}

.mkt-consent[hidden],
.mkt-consent-manage[hidden],
.mkt-consent__prefs[hidden] {
  display: none !important;
}

.mkt-consent__bar {
  pointer-events: auto;
  background: #faf8f4;
  border-top: 1px solid rgba(22, 23, 25, 0.1);
  box-shadow: 0 -10px 32px rgba(22, 23, 25, 0.08);
}

.mkt-consent__inner {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 0 1.05rem;
  font-family: Manrope, system-ui, sans-serif;
  color: #161719;
}

.mkt-consent__copy {
  min-width: 0;
}

.mkt-consent__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #17191d;
}

.mkt-consent__desc {
  margin: 0;
  max-width: 44rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(22, 23, 25, 0.64);
}

.mkt-consent__controls {
  display: grid;
  gap: 0.65rem;
}

.mkt-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mkt-consent__btn {
  appearance: none;
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mkt-consent__btn--ghost {
  border: 1px solid rgba(22, 23, 25, 0.16);
  background: #fff;
  color: #17191d;
}

.mkt-consent__btn--ghost:hover,
.mkt-consent__btn--ghost:focus-visible {
  border-color: #4c0911;
  color: #4c0911;
  outline: none;
}

.mkt-consent__btn--primary {
  border: 1px solid #4c0911;
  background: #4c0911;
  color: #f5f3ee;
}

.mkt-consent__btn--primary:hover,
.mkt-consent__btn--primary:focus-visible {
  background: #17191d;
  border-color: #17191d;
  outline: none;
}

.mkt-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.mkt-consent__textlink {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4c0911;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mkt-consent__textlink:hover,
.mkt-consent__textlink:focus-visible {
  color: #17191d;
  outline: none;
}

.mkt-consent__prefs {
  display: grid;
  gap: 0.5rem;
}

.mkt-consent__cat {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(22, 23, 25, 0.035);
  border: 1px solid rgba(22, 23, 25, 0.06);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.35;
}

.mkt-consent__cat input {
  margin-top: 0.15rem;
  accent-color: #4c0911;
  flex: 0 0 auto;
}

.mkt-consent__cat strong {
  display: block;
  color: #17191d;
  font-weight: 700;
}

.mkt-consent__cat em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  color: rgba(22, 23, 25, 0.58);
}

.mkt-consent__prefs .mkt-consent__btn {
  width: fit-content;
  justify-self: start;
}

.mkt-consent-manage {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1250;
  appearance: none;
  border: 1px solid rgba(22, 23, 25, 0.12);
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.96);
  color: #17191d;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 23, 25, 0.1);
}

.mkt-consent-manage:hover,
.mkt-consent-manage:focus-visible {
  color: #4c0911;
  border-color: rgba(76, 9, 17, 0.35);
  outline: none;
}

@media (min-width: 860px) {
  .mkt-consent__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 1.25rem 1.75rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .mkt-consent__controls {
    justify-self: end;
  }

  .mkt-consent__actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .mkt-consent__btn {
    width: auto;
    min-width: 8.5rem;
  }

  .mkt-consent__links {
    justify-content: flex-end;
  }

  /* Preferências abertas ocupam a linha toda */
  .mkt-consent__inner:has([data-mkt-prefs]:not([hidden])) {
    grid-template-columns: 1fr;
  }
}

/* Reserva espaço acima do WhatsApp flutuante no mobile */
@media (max-width: 859px) {
  .mkt-consent {
    bottom: 4.75rem;
  }

  .mkt-consent__bar {
    border-radius: 0.75rem 0.75rem 0 0;
    margin-inline: 0.5rem;
    border: 1px solid rgba(22, 23, 25, 0.1);
    border-bottom: 0;
  }

  .mkt-consent-manage {
    bottom: 5.5rem;
  }
}

@media (min-width: 860px) {
  .mkt-consent-manage {
    left: 1rem;
    bottom: 1rem;
  }
}
