/* The shared "Keep living relatives private" offer (#504) — one row, mounted
   identically in the GEDCOM, slice-share and pass-the-tree-on dialogs. Styled
   as its own component so the three surfaces can't drift apart visually any
   more than they can in wording. Shape follows the slice-share toggle it sits
   beside. */

.redact-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  min-height: var(--touch-target-min);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.redact-toggle:hover {
  border-color: var(--color-border-strong);
}
.redact-toggle:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.redact-toggle__input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.redact-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.redact-toggle__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.redact-toggle__desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Nobody living to hide: the promise still shows, visibly inert (UI/UX RULE 4)
   rather than vanishing — a missing privacy control reads as a missing
   feature. */
.redact-toggle--empty {
  opacity: 0.55;
  cursor: not-allowed;
}
.redact-toggle--empty:hover {
  border-color: var(--color-border);
}
.redact-toggle--empty .redact-toggle__input {
  cursor: not-allowed;
}
