/* Voice notes use the same quiet surfaces and controls as the WhatsApp composer. */
#akiwhatshap #divformmandawhats .wa-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--dt-muted);
  background: transparent;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
#akiwhatshap #divformmandawhats .wa-voice-button:hover {
  color: var(--dt-text);
  background: var(--dt-hover);
}
#akiwhatshap #divformmandawhats .wa-voice-button.is-recording {
  color: var(--dt-danger);
  background: color-mix(in srgb, var(--dt-danger) 12%, var(--dt-surface-2));
}
#akiwhatshap #divformmandawhats .wa-voice-button:disabled { opacity: .55; cursor: default; }
#akiwhatshap #divformmandawhats .wa-voice-button[hidden],
#akiwhatshap #divformmandawhats #whatsVoiceTextRow[hidden],
#akiwhatshap #divformmandawhats .wa-voice-composer[hidden],
#akiwhatshap #divformmandawhats .wa-voice-composer [hidden] { display: none !important; }

#akiwhatshap #divformmandawhats .wa-voice-composer {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--dt-surface-2);
  color: var(--dt-text);
  font-size: 12px;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__recording {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dt-danger);
}
#akiwhatshap #divformmandawhats .wa-voice-composer__timer {
  min-width: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__wave {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 32px;
  height: 28px;
  overflow: hidden;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__wave span {
  flex: 0 0 3px;
  height: var(--wa-voice-level, 4px);
  max-height: 22px;
  border-radius: 3px;
  background: var(--dt-muted);
  transition: height .08s linear;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__primary,
#akiwhatshap #divformmandawhats .wa-voice-composer__quiet {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__primary {
  color: var(--dt-cta-fg);
  background: var(--dt-cta);
}
#akiwhatshap #divformmandawhats .wa-voice-composer__primary:hover { background: var(--dt-cta-hover); }
#akiwhatshap #divformmandawhats .wa-voice-composer__quiet {
  color: var(--dt-muted);
  background: transparent;
}
#akiwhatshap #divformmandawhats .wa-voice-composer__quiet:hover {
  color: var(--dt-text);
  background: var(--dt-field-hover);
}
#akiwhatshap #divformmandawhats .wa-voice-composer button:disabled { opacity: .55; cursor: default; }
#akiwhatshap #divformmandawhats .wa-voice-composer__preview { display: flex; align-items: center; gap: 12px; }
#akiwhatshap #divformmandawhats .wa-voice-composer__preview audio { flex: 1 1 auto; min-width: 0; height: 36px; }
#akiwhatshap #divformmandawhats .wa-voice-composer__preview-actions { display: flex; gap: 6px; }
#akiwhatshap #divformmandawhats .wa-voice-composer__status { margin: 0; color: var(--dt-muted); }
#akiwhatshap #divformmandawhats .wa-voice-composer__status.is-error { color: var(--dt-danger); }

#akiwhatshap #divformmandawhats .wa-voice-button:focus-visible,
#akiwhatshap #divformmandawhats .wa-voice-composer button:focus-visible {
  outline: 2px solid var(--dt-focus);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #akiwhatshap #divformmandawhats .wa-voice-composer__preview { align-items: stretch; flex-direction: column; }
  #akiwhatshap #divformmandawhats .wa-voice-composer__preview audio { width: 100%; }
  #akiwhatshap #divformmandawhats .wa-voice-composer__preview-actions { justify-content: flex-end; }
  #akiwhatshap #divformmandawhats .wa-voice-composer__recording { gap: 7px; }
  #akiwhatshap #divformmandawhats .wa-voice-composer__wave span:nth-child(n+17) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #akiwhatshap #divformmandawhats .wa-voice-composer__wave span { transition: none; }
}
@media (forced-colors: active) {
  #akiwhatshap #divformmandawhats .wa-voice-button:focus-visible,
  #akiwhatshap #divformmandawhats .wa-voice-composer button:focus-visible { outline-color: Highlight; }
  #akiwhatshap #divformmandawhats .wa-voice-composer__dot,
  #akiwhatshap #divformmandawhats .wa-voice-composer__wave span { background: CanvasText; }
}
