/* Nunes Engenharia — consentimento compacto, isolado do layout homologado. */
.nunes-privacy {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10020;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  padding: 6px;
  color: #fff;
  background: #0d1b2a;
  border: 1px solid rgba(194,154,86,.55);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  font: 14px/1.45 var(--ff-sans, "Instrument Sans", Arial, sans-serif);
}
.nunes-privacy [hidden] { display: none !important; }
.nunes-privacy.is-open {
  width: 414px;
  padding: 18px 18px 14px;
  max-height: min(380px, calc(100dvh - 32px));
  overflow: auto;
}
.nunes-privacy h2 {
  max-width: 34ch;
  margin: 0 22px 8px 0;
  color: #fff;
  font: 700 18px/1.25 var(--ff-sans, "Instrument Sans", Arial, sans-serif);
  letter-spacing: -.015em;
}
.nunes-privacy p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.48;
}
.nunes-privacy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nunes-privacy #nunes-preferences {
  appearance: none;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 7px;
  background: #0d1b2a;
  color: #fff;
  font: 600 13px/1.3 var(--ff-sans, "Instrument Sans", Arial, sans-serif);
  cursor: pointer;
}
.nunes-privacy.is-open #nunes-preferences {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  color: transparent;
  font-size: 0;
}
.nunes-privacy.is-open #nunes-preferences::after {
  content: "×";
  position: absolute;
  inset: 0;
  color: #fff;
  font: 400 25px/30px Arial, sans-serif;
  text-align: center;
}
.nunes-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.nunes-consent-actions button {
  appearance: none;
  display: grid;
  place-items: center;
  min-height: 44px;
  width: 100%;
  padding: 8px 6px;
  border-radius: 7px;
  border: 2px solid transparent;
  color: #0d1b2a;
  font: 700 13px/1.2 var(--ff-sans, "Instrument Sans", Arial, sans-serif);
  text-align: center;
  cursor: pointer;
}
.nunes-consent-actions button[data-consent="granted"] { background: #c29a56; border-color: #c29a56; }
.nunes-consent-actions button[data-consent="denied"] { background: #fff; border-color: #fff; }
.nunes-consent-actions button:hover { filter: brightness(.94); }
.nunes-privacy .nunes-policy { display: inline-block; margin-top: 10px; font-size: 12px; }
.nunes-privacy #nunes-consent-status:not(:empty) { margin-top: 9px; }
.nunes-privacy button:focus-visible, .nunes-privacy a:focus-visible {
  outline: 3px solid #c29a56;
  outline-offset: 3px;
}
/* Deixa a barra comercial fixa do celular totalmente acessível. */
@media (max-width: 899px) {
  .nunes-privacy { right: 10px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .nunes-privacy.is-open {
    width: calc(100vw - 20px);
    padding: 16px 15px 13px;
    max-height: min(340px, calc(100dvh - 102px));
  }
  .nunes-privacy h2 { font-size: 17px; margin-bottom: 6px; }
  .nunes-privacy p { font-size: 12.8px; }
  .nunes-consent-actions { gap: 7px; margin-top: 11px; }
  .nunes-consent-actions button { font-size: 12.5px; min-height: 44px; }
}
