.consentimento[hidden], .consentimento__config[hidden], .consentimento-abrir[hidden] { display: none !important; }

/* Aviso de cookies compacto, seguindo a faixa de primeiro nível do Mercado Livre. */
.consentimento {
  position: fixed;
  z-index: 1200;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  color: #333;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, .10);
  font: 12px/1.4 Inter, Arial, sans-serif;
}
.consentimento__resumo { min-width: 0; flex: 1 1 auto; margin: 0; }
.consentimento a { color: #3483fa; text-decoration: none; }
.consentimento a:hover { text-decoration: underline; }
.consentimento__acoes { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.consentimento__acoes button, .consentimento-abrir {
  min-height: 34px;
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: #e6efff;
  color: #3483fa;
  font: 600 12px Inter, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.consentimento__acoes button:hover, .consentimento-abrir:hover { background: #d8e7ff; }
.consentimento__config { width: 100%; color: #333; }
.consentimento__config h2 { margin: 0 0 4px; color: #263746; font-size: 16px; line-height: 1.3; }
.consentimento__config p { margin: 0 0 6px; }
.consentimento__detalhes { margin: 0 0 7px; font-size: 12px; }
.consentimento__detalhes summary { width: fit-content; color: #3483fa; text-decoration: underline; cursor: pointer; }
.consentimento__detalhes p { margin: 5px 0 0; }
.consentimento__opcao { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.consentimento__opcao input { width: 16px; height: 16px; margin: 0; accent-color: #3483fa; }
.consentimento__aviso { margin: 0; color: #a12b20; }
.consentimento__acoes--config { justify-content: flex-end; margin-top: 10px; }
.consentimento__acoes--config button { min-height: 36px; }
/* ACEITAR EM DESTAQUE (pedido do dono em 01/11/2026): botão azul cheio, à direita, onde o polegar
   cai no celular. É só destaque visual — a caixa "Permitir medição" continua desmarcada e nada é
   aceito sem o clique da pessoa; "Configurar" e "Rejeitar opcionais" seguem visíveis ao lado. */
.consentimento .consentimento__aceitar { min-width: 120px; background: #3483fa; color: #fff; box-shadow: 0 2px 8px rgba(52, 131, 250, .35); }
.consentimento .consentimento__aceitar:hover { background: #2968c8; }
/* "RECUSAR MEDIÇÃO" (dono, 12/11/2026): pequeno, discreto, no canto esquerdo; o destaque é o "Fechar e continuar". */
.consentimento .consentimento__recusar {
  order: -1; flex: 0 0 auto; align-self: center; padding: 4px 2px; border: 0; background: none;
  color: #6b7280; font: 500 11px Inter, Arial, sans-serif; text-decoration: underline; white-space: nowrap; cursor: pointer;
}
.consentimento .consentimento__recusar:hover { color: #374151; }
.consentimento .consentimento__aceitar { min-width: 150px; }
.consentimento-abrir { position: fixed; z-index: 1199; right: 10px; bottom: 10px; box-shadow: 0 4px 16px #17324d30; }
.consentimento :focus-visible, .consentimento-abrir:focus-visible { outline: 3px solid #ed8a38; outline-offset: 2px; }

.consentimento--configurando { display: block; }
.consentimento--configurando > .consentimento__resumo,
.consentimento--configurando > .consentimento__acoes { display: none; }

@media (max-width: 700px) {
  /* celular: texto e caixa em cima; embaixo, "Recusar medição" pequeno à esquerda e o botão grande à direita */
  .consentimento {
    display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; row-gap: 0; column-gap: 10px;
    grid-template-areas: "resumo resumo" "opcao opcao" "aviso aviso" "recusar acoes";
    max-height: min(60vh, 360px);
    overflow-y: auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .consentimento__resumo { grid-area: resumo; margin-bottom: 8px; }
  .consentimento__opcao { grid-area: opcao; display: flex; margin-bottom: 9px; }
  .consentimento__aviso { grid-area: aviso; margin-bottom: 8px; }
  .consentimento .consentimento__recusar { grid-area: recusar; justify-self: start; }
  .consentimento__acoes:not(.consentimento__acoes--config) { grid-area: acoes; }
  .consentimento__acoes { width: 100%; min-width: 0; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
  .consentimento__acoes button { min-height: 34px; padding: 7px 12px; }
  .consentimento__acoes:not(.consentimento__acoes--config) button { flex: 1 1 130px; min-width: 0; white-space: normal; }
  .consentimento__acoes:not(.consentimento__acoes--config) .consentimento__aceitar { flex-grow: 2; }
  .consentimento__acoes--config button { flex: 1 1 0; min-width: 0; padding: 6px 5px; font-size: 11px; white-space: normal; }
}

@media (max-width: 360px) {
  .consentimento { padding-right: 12px; padding-left: 12px; }
  .consentimento__acoes { gap: 5px; }
  .consentimento__acoes button { padding-right: 8px; padding-left: 8px; font-size: 11px; }
  .consentimento__acoes--config button { padding-right: 3px; padding-left: 3px; font-size: 10px; }
}
