/* Mundo Open - Hotfix de contraste da Central WhatsApp no tema Escuro Linear.
   Não modifica envio, histórico, roteamento ou conteúdo das mensagens.
   Causa: o CSS do tema Moderno mantém .wa-bubble-content com cor escura,
   embora o tema Linear escureça os balões. */

html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content,
html.mo-linear-dark body.mo-skin-modern #wa-app .wa-bubble .wa-bubble-content {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content .wa-msg-text,
html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content p,
html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content span,
html.mo-linear-dark body.mo-skin-modern #wa-app .wa-bubble .wa-msg-text {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  opacity: 1 !important;
}

html.mo-linear-dark body #wa-app .wa-bubble.incoming .wa-bubble-content,
html.mo-linear-dark body #wa-app .wa-bubble.incoming .wa-msg-text {
  color: #edf4ff !important;
  -webkit-text-fill-color: #edf4ff !important;
}

html.mo-linear-dark body #wa-app .wa-bubble.outgoing .wa-bubble-content,
html.mo-linear-dark body #wa-app .wa-bubble.outgoing .wa-msg-text {
  color: #f2fffb !important;
  -webkit-text-fill-color: #f2fffb !important;
}

/* Metadados continuam diferentes do corpo, porém com contraste suficiente. */
html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-footer,
html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-meta {
  color: #c4d5df !important;
  -webkit-text-fill-color: #c4d5df !important;
  font-size: 11.5px !important;
  opacity: 1 !important;
}

/* Anexos e links não podem herdar um azul escuro ilegível. */
html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content a,
html.mo-linear-dark body #wa-app .wa-bubble .wa-media-open {
  color: #9cf5eb !important;
  -webkit-text-fill-color: #9cf5eb !important;
  text-decoration-color: #9cf5eb !important;
}

/* Opções de resposta e exclusão: visíveis sem aparentar estar habilitadas. */
html.mo-linear-dark body #wa-app .wa-action-1930 {
  color: #e5fff9 !important;
  -webkit-text-fill-color: #e5fff9 !important;
  font-size: 11.5px !important;
}
html.mo-linear-dark body #wa-app .wa-action-danger-1930 {
  color: #ffced8 !important;
  -webkit-text-fill-color: #ffced8 !important;
}
html.mo-linear-dark body #wa-app .wa-action-1930:disabled {
  opacity: .68 !important;
  cursor: not-allowed !important;
}

html.mo-linear-dark body #wa-app .wa-history-divider {
  color: #c0d0dc !important;
  -webkit-text-fill-color: #c0d0dc !important;
}

@media (max-width: 800px) {
  html.mo-linear-dark body #wa-app .wa-bubble .wa-bubble-content {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}
