.analytics-consent {
  position: fixed;
  z-index: 1010;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  width: min(27rem, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1rem 1.15rem;
  background: #fff;
  color: var(--brand-fg, #333);
  border: 1px solid #b7cbe1;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgb(20 45 74 / 22%);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.analytics-consent p {
  margin: 0.45rem 0 0.9rem;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.5;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-consent__actions button {
  flex: 1 1 9rem;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--brand-accent, #1966ab);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--brand-accent, #1966ab);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.analytics-consent__actions button:hover,
.analytics-consent__actions button[aria-pressed="true"] {
  background: #eaf2fb;
}

.analytics-consent-settings {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-accent, #1966ab);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.analytics-consent__actions button:focus-visible,
.analytics-consent-settings:focus-visible {
  outline: 2px solid var(--brand-accent, #1966ab);
  outline-offset: 2px;
}
