/* agent/_message.html.erb — a reply the user stopped. With no answer written
 * it is the platform's "Stopped before an answer was written." in the muted
 * documentor style; when it is the thread's last message it offers "Remove
 * message and edit" (chat#withdraw). */

.message-assistant-stopped { margin: 0; }

.message-assistant-withdraw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-8);
  margin: var(--spacing-8) 0 0;
  font-size: var(--font-size-12);
}

.message-assistant-withdraw-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;

  &:hover { color: var(--text-primary); }
  &:disabled { opacity: 0.5; cursor: progress; }
}

.message-assistant-withdraw-refused { color: var(--text-tertiary); }
