/* Kudzu: the "Your Privacy Choices" dialog (consent.v2.js). Its own file so
   kudzu.v4.css stays as cached. v2 (Nov 23): replaces the v1 cookie banner. */
.privacy-panel {
  width: calc(100% - 2 * var(--gutter));
  max-width: 480px;
  max-height: calc(100% - 2 * var(--gutter));
  margin: auto;
  padding: 0;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.privacy-panel::backdrop {
  background: rgba(17, 20, 13, 0.55);
}
/* Browsers without showModal(): pin it to the bottom of the screen. */
.privacy-panel.is-fallback {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 100;
}
.privacy-inner {
  padding: 20px;
}
.consent-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.3;
}
.consent-body {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.privacy-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
  cursor: pointer;
}
.privacy-switch input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 14px;
  background: var(--muted);
  cursor: pointer;
  transition: background 0.15s;
}
.privacy-switch input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.15s;
}
.privacy-switch input:checked {
  background: var(--kudzu);
}
.privacy-switch input:checked::before {
  transform: translateX(20px);
}
.privacy-switch input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.privacy-switch input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.privacy-note {
  margin: 4px 0 16px;
  min-height: 1.5em;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.consent-buttons .btn {
  flex: 1 1 140px;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .privacy-switch input,
  .privacy-switch input::before {
    transition: none;
  }
}
