.typingAvatar {
  position: relative;
  width: 25px;
  height: 25px;
  margin: 0 2px;
}

.avatar {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 25px;
  height: 25px;
}

/* Base styles for the element that has a tooltip */
[data-tooltip] {
  display: inline-block;
  position: relative;
  cursor: pointer;
}
/* Tooltip styling */
[data-tooltip]:before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  background-color: #000;
  font-size: 12px;
  content: attr(data-tooltip);
  opacity: 0;
  color: #fff;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: center;
  border-radius: 4px;
  white-space: pre-wrap;
}

/* Tooltip Bottom Arrow */
[data-tooltip]:after {
  content: '';
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  left: 50%;
  margin-left: -6px;
  bottom: 31px;
  border-width: 6px 6px 0;
  border-top-color: #000;
}

/* Show the tooltip when hovering */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  opacity: 1;
}
