.analytics-preferences {
  box-sizing: border-box;
  padding: .75rem 1rem;
  background: #faf7ef;
  color: #183d31;
  font: 1rem/1.5 system-ui, sans-serif;
}
.analytics-preferences:has(div[aria-label]:not([hidden])) {
  position: fixed;
  z-index: 100;
  inset: auto 1rem 1rem auto;
  max-width: min(30rem, calc(100vw - 2rem));
  border: 1px solid #6a8277;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem #183d3126;
}
.analytics-preferences [hidden] { display: none; }
.analytics-preferences p { margin: 0 0 .5rem; }
.analytics-preferences button,
.analytics-preferences a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .65rem;
  color: #183d31;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.analytics-preferences button { cursor: pointer; border: 0; }
.analytics-preferences :focus-visible { outline: 2px solid #183d31; outline-offset: 1px; }
