/* Swap the subtitle in-place on the two staff portals. Avoid changing the
   scroll area's geometry while the person on the other side is typing. */
#view-chats .chat-identity .kf-typing-line,
.chat-heading .kf-typing-line {
  position: relative;
  line-height: 1.45;
  min-height: 1.45em;
  min-width: 0;
  overflow: hidden;
}
.kf-typing-default { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kf-typing-line:has(> .kf-typing-cue:not(:empty)) > .kf-typing-default { visibility:hidden; }
.kf-typing-line .kf-typing-cue { position:absolute; inset:0; }
.kf-typing-cue, #visitorChat #typingTip {
  color:#235b9e;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kf-typing-cue:not(:empty)::before, #visitorChat #typingTip:not(:empty)::before {
  display:inline-block;
  content:"";
  width:.4em;
  height:.4em;
  margin-inline-end:.42em;
  border-radius:50%;
  vertical-align:.15em;
  background:currentColor;
}
#visitorChat #typingTip { margin:0 0 2px; padding:3px 10px; line-height:1.4; }
#visitorChat #typingTip:empty { display:none; }
