/* The consent bar of BS.Analytics.Client (analytics.js) from our own origin: the site's Content-Security-Policy applies no inline style, so the page links
   this file with the id bs-consent-style and analytics.js adds no <style> of its own. The rules are the package's (0.273.0), the colours the site's
   tokens (app.scss), so the bar follows light and dark. Linked only while Microsoft Clarity is configured (SiteAnalytics). */
.bs-consent {
  --bs-consent-bg: var(--card);
  --bs-consent-fg: var(--foreground);
  --bs-consent-border: var(--border);
  --bs-consent-link: var(--signal);
  --bs-consent-button: transparent;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483000;
  margin: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-surface, 0.75rem);
  background: var(--bs-consent-bg);
  border: 1px solid var(--bs-consent-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bs-consent:focus {
  outline: 2px solid var(--bs-consent-link);
  outline-offset: 2px;
}

.bs-consent-body {
  max-width: 48rem;
}

.bs-consent p {
  margin: 0;
  color: var(--bs-consent-fg);
}

.bs-consent p + p {
  margin-top: 0.375rem;
}

.bs-consent .bs-consent-current {
  font-weight: 600;
}

.bs-consent a {
  color: var(--bs-consent-link);
  text-decoration: underline;
}

.bs-consent span {
  display: flex;
  gap: 0.5rem;
}

.bs-consent button {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-control, 0.5rem);
  color: var(--bs-consent-fg);
  background: var(--bs-consent-button);
  border: 1px solid var(--bs-consent-border);
}

.bs-consent button:hover {
  border-color: var(--bs-consent-link);
}

.bs-consent button:focus-visible {
  outline: 2px solid var(--bs-consent-link);
  outline-offset: 2px;
}
