.analytics-consent[hidden] {
  display: none;
}
.analytics-consent {
  position: relative;
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 20px;
  border: 1px solid var(--border-base, #dedfe4);
  border-radius: 14px;
  background: var(--solid-surface, #fff);
  color: var(--text, #20242c);
  box-shadow: 0 8px 32px #0003;
  font:
    14px / 1.6 system-ui,
    sans-serif;
}
.analytics-consent h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.analytics-consent p {
  margin: 0 0 14px;
  color: inherit;
}
.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.analytics-consent-actions button {
  flex: 1;
  min-height: 44px;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--border-base, #dedfe4);
  border-radius: 8px;
  background: var(--bg-soft, #f5f5f5);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.analytics-consent a {
  color: inherit;
  text-decoration: underline;
}
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible {
  outline: 2px solid var(--accent, #166a4d);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .analytics-consent {
    width: calc(100% - 16px);
    padding: 16px;
  }
  .analytics-consent-actions button {
    min-width: 0;
    flex-basis: 100%;
  }
}
[data-theme="dark"] .analytics-consent {
  background: #1e1e22;
  color: #e8e6e1;
}
