.consent-banner[hidden], .consent-choices[hidden], [data-consent-open][hidden] { display: none; }
.consent-banner {
  position: fixed; z-index: 1000; inset: auto 20px 20px;
  max-width: 1080px; margin-inline: auto; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 12px 48px #172a3526;
  max-height: calc(100dvh - 40px); overflow-y: auto;
  font: 500 .84rem/1.6 var(--sans);
}
.consent-banner h2 { font: 700 1rem/1.4 var(--sans); margin: 0 0 7px; }
.consent-banner p { max-width: 88ch; }
.consent-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.consent-actions button, .consent-save {
  min-height: 44px; border: 1px solid var(--ink); border-radius: 5px;
  padding: 10px 16px; cursor: pointer; background: transparent; color: var(--ink);
  font-size: .8rem; font-weight: 700;
}
.consent-actions button:hover, .consent-save:hover { background: var(--sand); }
.consent-actions button:first-child { background: var(--ink); color: white; }
.consent-choices { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.consent-choice { display: flex; align-items: start; gap: 10px; margin: 10px 0; cursor: pointer; }
.consent-choice input, .measurement-permission input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--ink); }
.consent-choice span { display: block; }
.consent-choice small { display: block; font-size: .8rem; color: var(--body); }
.consent-save { margin-top: 7px; }
.consent-link { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.consent-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.measurement-permission { display: flex; align-items: start; gap: 10px; margin: 18px 0; font-size: .8rem; line-height: 1.6; color: var(--body); cursor: pointer; }
.measurement-notice { padding: 24px; margin-bottom: 30px; background: var(--sand); border-left: 3px solid var(--blue); }
.measurement-notice h2 { margin-top: 0; }
@media (max-width: 600px) {
  .consent-banner { inset: auto 12px 12px; padding: 18px; max-height: calc(100dvh - 24px); }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions button { padding-inline: 8px; }
  .consent-actions button:last-child { grid-column: 1 / -1; }
}
