/* ─── AiConsentGate — voice/AI consent bottom sheet ───────────────────────── */

.acs-overlay {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.acs-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--kith-surface);
  border: 1px solid var(--kith-border);
  border-radius: 20px 20px 0 0;
  padding: 12px 24px max(28px, env(safe-area-inset-bottom, 28px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Grabber ── */
.acs-grabber {
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.acs-grabber-pill {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--kith-border);
}

/* ── Icon ── */
.acs-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--kith-accent-soft, color-mix(in srgb, var(--kith-green) 12%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

/* ── Text ── */
.acs-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--kith-text);
}

.acs-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--kith-text-muted);
}

.acs-body strong {
  color: var(--kith-text);
  font-weight: 500;
}

/* ── Privacy link ── */
.acs-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--kith-green);
  text-decoration: none;
}

.acs-link:hover,
.acs-link:focus-visible {
  text-decoration: underline;
}

.acs-ext {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Action buttons ── */
.acs-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.acs-btn-cancel {
  flex: 1;
  padding: 12px 16px;
  background: var(--kith-surface-2, var(--kith-bg));
  border: 1px solid var(--kith-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--kith-text-muted);
  cursor: pointer;
  transition: background 120ms ease;
}

.acs-btn-cancel:hover {
  background: var(--kith-surface-hover, var(--kith-surface-2));
}

.acs-btn-grant {
  flex: 2;
  padding: 12px 16px;
  background: var(--kith-green);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 120ms ease, opacity 120ms ease;
}

.acs-btn-grant:hover:not(:disabled) {
  background: var(--kith-accent-ink, #14341F);
}

.acs-btn-grant:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Settings Privacy toggle row ─────────────────────────────────────────── */

.st-toggle-row {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--kith-border);
  cursor: default;
}

.st-toggle-row.last-row {
  border-bottom: none;
}

.st-toggle-content {
  flex: 1;
  min-width: 0;
}

.st-toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--kith-text);
}

.st-toggle-hint {
  font-size: 0.8125rem;
  color: var(--kith-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── iOS-style toggle switch ── */
.st-toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.st-toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.st-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: var(--kith-border);
  transition: background 200ms ease;
  pointer-events: none;
}

.st-toggle-switch input:checked + .st-toggle-track {
  background: var(--kith-green);
}

.st-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 200ms ease;
  pointer-events: none;
}

.st-toggle-switch input:checked ~ .st-toggle-thumb {
  transform: translateX(18px);
}
