.analytics-consent {
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  left: 20px;
  max-width: 430px;
  margin-right: 20px;
  padding: 20px;
  border: 1px solid #c5cdd1;
  border-radius: 8px;
  background: white;
  color: #253746;
  box-shadow: 0 4px 24px #0002;
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.analytics-consent[hidden] {
  display: none;
}
.analytics-consent p {
  margin: 0 0 16px;
}
.analytics-consent a {
  color: #006eaa;
  text-decoration: underline;
}
.analytics-consent div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.analytics-consent button {
  border: 1px solid #006eaa;
  border-radius: 4px;
  padding: 10px 16px;
  background: white;
  color: #006eaa;
  cursor: pointer;
  font: inherit;
}
.analytics-consent button:hover {
  background: #eaf5fc;
}
.analytics-consent button:focus-visible,
.analytics-preferences:focus-visible {
  outline: 3px solid #0078c8;
  outline-offset: 3px;
}
.analytics-preferences {
  display: block;
  margin: 16px auto;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font:
    13px system-ui,
    sans-serif;
}

/* Match the sunflower website without changing the app's workspace theme. */
.analytics-consent[data-surface="marketing"] {
  box-sizing: border-box;
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: 0 6px 28px #6b4a2b18;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.analytics-consent[data-surface="marketing"] p {
  margin: 0 0 16px;
}
.analytics-consent[data-surface="marketing"] a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--sun-deep);
}
.analytics-consent[data-surface="marketing"] div {
  gap: 10px;
}
.analytics-consent[data-surface="marketing"] button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.analytics-consent[data-surface="marketing"] button:hover {
  background: var(--butter);
  border-color: var(--sun-deep);
}
.analytics-consent[data-surface="marketing"] #analytics-accept {
  background: var(--sun);
  border-color: var(--sun);
}
.analytics-consent[data-surface="marketing"] #analytics-accept:hover {
  background: #ffd465;
  border-color: #ffd465;
}
.analytics-preferences[data-surface="marketing"] {
  color: var(--ink-soft);
  font-family: inherit;
  text-underline-offset: 3px;
}
.analytics-consent[data-surface="marketing"] :focus-visible,
.analytics-preferences[data-surface="marketing"]:focus-visible {
  outline: 3px solid var(--sun-deep);
  outline-offset: 3px;
}
