:host {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.hb-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: inherit;
  color: inherit;
  flex-shrink: 0;
}

.hb-icon--spin {
  animation: hb-icon-spin 1s linear infinite;
}

.hb-icon--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--hb-font-size-xs);
  color: var(--hb-color-text-tertiary);
  background-color: var(--hb-color-fill-tertiary);
  border-radius: var(--hb-border-radius-xs);
  line-height: 1;
  overflow: hidden;
  word-break: break-all;
  padding: 0 2px;
}

@keyframes hb-icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
