.ty-avatar {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--ty-avatar-bg);
  color: var(--ty-avatar-color);
  white-space: nowrap;
  position: relative;
  vertical-align: middle;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  border: var(--ty-avatar-border-width) solid var(--ty-avatar-border);
}
.ty-avatar__img {
  width: 100%;
  height: 100%;
}
.ty-avatar__text {
  position: absolute;
  left: 50%;
  transform-origin: 0 center;
  transform: translateX(-50%);
}
.ty-avatar__presence {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 50%;
  box-shadow: var(--ty-avatar-presence-shadow);
  height: var(--ty-avatar-presence-size);
  width: var(--ty-avatar-presence-size);
}
.ty-avatar__presence_online {
  background-color: var(--ty-avatar-presence-color-online);
}
.ty-avatar__presence_busy {
  background-color: var(--ty-avatar-presence-color-busy);
}
.ty-avatar__presence_away {
  background-color: var(--ty-avatar-presence-color-away);
}
.ty-avatar__presence_offline {
  background-color: var(--ty-avatar-offline-color);
}
.ty-avatar_circle {
  border-radius: 50%;
}
.ty-avatar_circle .ty-avatar__img {
  border-radius: 50%;
}
.ty-avatar_square {
  border-radius: var(--ty-avatar-border-radius);
}
.ty-avatar_clickable {
  cursor: pointer;
}
.ty-avatar-group .ty-avatar {
  z-index: 1;
}
.ty-avatar-group .ty-avatar:hover {
  z-index: 2;
}