.avatar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: $primary-on;
  overflow: visible;
}

.avatar--image {
  background: $surface-2;
}

.avatar__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar--sm {
  width: 30px;
  height: 30px;
}

.avatar--md {
  width: 40px;
  height: 40px;
}

.avatar--lg {
  width: 50px;
  height: 50px;
}

.avatar--xl {
  width: 64px;
  height: 64px;
  box-shadow: 0 8px 20px rgba(216, 180, 255, 0.3);
}

.avatar__label {
  font-family: $font-display;
  font-weight: 700;
  font-size: 16px;
}

.avatar--xl .avatar__label {
  font-size: 24px;
}

.avatar__online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: $success;
  border: 2px solid $bg;
}

.avatar__pet-tag {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: $bg;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid $bg;
  font-size: 12px;
}

