.analytics-consent[hidden],
.analytics-settings[hidden] {
  display: none !important;
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: auto;
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: 1rem 1.125rem;
  border: 1px solid #c9c9ce;
  border-radius: 0.75rem;
  background: #fff;
  color: #20202a;
  box-shadow: 0 10px 30px #18182728;
  font: 0.875rem/1.5 system-ui, sans-serif;
}

.analytics-consent h2 {
  margin: 0 0 0.375rem;
  color: inherit;
  font: 700 1rem/1.3 system-ui, sans-serif;
  letter-spacing: normal;
}

.analytics-consent p {
  margin: 0;
  color: inherit;
}

.analytics-consent a {
  color: inherit;
  text-decoration: underline;
}

.analytics-consent .analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.analytics-consent button {
  min-width: 7rem;
  min-height: 44px;
  padding: 0.375rem 0.75rem;
  border: 1px solid #383842;
  border-radius: 0.375rem;
  background: #fff;
  color: #20202a;
  font: 600 0.875rem/1.35 system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent button:hover {
  background: #f1f1f4;
}

.analytics-consent :focus-visible,
.analytics-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.analytics-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
