/* Cookie/analytics consent banner. Kept self-contained because /docs does not
   load the main stylesheet. */

.consent-banner {
  position: fixed;
  z-index: 10000;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  font-family: var(--font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.consent-banner[hidden] {
  display: none;
}

.consent-panel {
  box-sizing: border-box;
  width: min(760px, 100%);
  padding: 18px 20px;
  border: 1px solid var(--line-strong, rgba(26, 29, 41, 0.16));
  border-radius: var(--radius-md, 16px);
  background: var(--surface, #ffffff);
  color: var(--ink, #1a1d29);
  box-shadow: 0 18px 48px rgba(10, 14, 30, 0.18);
  pointer-events: auto;
}

.consent-heading {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.consent-text {
  margin: 0;
  color: var(--text-dim, #4c5364);
  font-size: 13px;
  line-height: 1.65;
}

.consent-privacy {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue, #4a7dff);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.consent-button {
  appearance: none;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong, rgba(26, 29, 41, 0.16));
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.consent-secondary {
  background: transparent;
  color: var(--ink, #1a1d29);
}

.consent-secondary:hover {
  border-color: var(--blue, #4a7dff);
  color: var(--blue, #4a7dff);
}

.consent-primary {
  border-color: var(--blue, #4a7dff);
  background: var(--blue, #4a7dff);
  color: #ffffff;
}

.consent-primary:hover {
  filter: brightness(1.06);
}

.consent-settings {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.consent-settings:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .consent-banner {
    bottom: 0;
    padding: 0;
  }

  .consent-panel {
    width: 100%;
    padding: 16px;
    border-radius: 16px 16px 0 0;
  }

  .consent-actions {
    justify-content: stretch;
  }

  .consent-button {
    flex: 1 1 140px;
  }
}
