/* The cookie banner from public/consent.js, on the marketing pages and the docs alike, so it
   carries its own colours instead of either one's theme. */
.fc-banner {
  --fc-bg: #ffffff;
  --fc-fg: #1c2429;
  --fc-muted: #5e5a5c;
  --fc-line: #ece6e2;
  --fc-button: #1b2b34;
  --fc-button-fg: #ffffff;
  --fc-link: #c73f24;
  position: fixed;
  z-index: 1000;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  background: var(--fc-bg);
  color: var(--fc-fg);
  box-shadow: 0 12px 40px rgb(17 28 34 / 0.18);
  font:
    14px/1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  text-align: start;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fc-banner {
    --fc-bg: #18262e;
    --fc-fg: #eef2f4;
    --fc-muted: #a3b4bd;
    --fc-line: #253740;
    --fc-button: #eef2f4;
    --fc-button-fg: #111c22;
    --fc-link: #ffa488;
  }
}
:root[data-theme="dark"] .fc-banner {
  --fc-bg: #18262e;
  --fc-fg: #eef2f4;
  --fc-muted: #a3b4bd;
  --fc-line: #253740;
  --fc-button: #eef2f4;
  --fc-button-fg: #111c22;
  --fc-link: #ffa488;
}
.fc-banner .fc-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}
.fc-banner .fc-text {
  margin: 0;
  color: var(--fc-muted);
}
.fc-banner a {
  color: var(--fc-link);
}
.fc-banner .fc-choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.fc-banner .fc-choices[hidden] {
  display: none;
}
.fc-banner .fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  cursor: pointer;
}
.fc-banner .fc-row strong {
  display: block;
}
.fc-banner .fc-hint {
  color: var(--fc-muted);
  font-size: 13px;
}
.fc-banner input[type="checkbox"] {
  appearance: none;
  flex: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 11px;
  background: var(--fc-line);
  cursor: pointer;
  transition: background 0.15s;
}
.fc-banner input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.fc-banner input[type="checkbox"]:checked {
  background: #22a06b;
}
.fc-banner input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
.fc-banner input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: default;
}
.fc-banner input[type="checkbox"]:focus-visible,
.fc-banner button:focus-visible {
  outline: 2px solid var(--fc-link);
  outline-offset: 2px;
}
.fc-banner .fc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.fc-banner .fc-button {
  flex: 1 1 0;
  min-width: 110px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fc-button);
  color: var(--fc-button-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.fc-banner .fc-link {
  flex-basis: 100%;
  padding: 4px 0 0;
  border: 0;
  background: none;
  color: var(--fc-link);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .fc-banner input[type="checkbox"],
  .fc-banner input[type="checkbox"]::after {
    transition: none;
  }
}
