/**
 * Dowin — traduction des messages (1.167.0).
 *
 * <p>La traduction s'affiche sous la bulle, dans un encart discret qui rappelle
 * d'où elle vient (« Traduit sur cet appareil » ou « Traduit par le serveur de
 * l'établissement »). C'est une information de confiance, pas un détail : elle
 * dit si le texte est resté dans le chiffrement ou non.</p>
 */

.msg__traduction {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--green, #07c160);
  border-radius: 8px;
  background: var(--panel-2, rgba(0, 0, 0, 0.04));
  color: var(--text, inherit);
  font-size: 0.92em;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.msg__traduction[data-provenance='serveur'] {
  border-left-color: #f59e0b;
}

.msg__traduction-texte {
  white-space: pre-wrap;
}

.msg__traduction-pied {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted, #6b7280);
  font-size: 0.78em;
}

.msg__traduction-pied svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.msg__traduction-origine {
  flex: 1 1 auto;
  min-width: 0;
}

.msg__traduction-masquer {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--green, #07c160);
  font: inherit;
  font-size: 0.95em;
  cursor: pointer;
}

.traduction-consentement__corps p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.traduction-consentement__langues {
  font-weight: 600;
}

.traduction-consentement__rappel {
  color: var(--muted, #6b7280);
  font-size: 0.82em;
}

@media (max-width: 420px) {
  .msg__traduction {
    font-size: 0.9em;
  }
}
