.ga4-preferences[hidden],
.ga4-notice[hidden] { display: none; }

.ga4-preferences {
  display: block;
  margin-top: .4rem;
  text-align: start;
  text-decoration: underline;
}

.ga4-notice {
  position: fixed;
  z-index: 80;
  inset-inline-end: 1rem;
  bottom: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(28rem, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  border: 1px solid #b9c1b7;
  border-radius: .45rem;
  background: #fbfaf5;
  color: #263329;
  box-shadow: 0 6px 24px #26332929;
}

.ga4-notice h2 { margin: 0 0 .35rem; font: 650 1rem/1.4 var(--sans); }
.ga4-notice p { margin: 0; font-size: .86rem; line-height: 1.5; }
.ga4-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.ga4-choices button {
  border: 1px solid #263329;
  border-radius: .25rem;
  background: transparent;
  color: #263329;
  cursor: pointer;
  font: 600 .82rem/1.4 var(--sans);
  min-height: 40px;
  padding: .4rem .75rem;
}
.ga4-choices button:hover { background: #e9eee7; }
.ga4-choices button:focus-visible,
.ga4-preferences:focus-visible { outline: 2px solid #4c694c; outline-offset: 2px; }
