.chat-header {
  padding: 0 10px;
  height: 64px;
  display: flex;
  justify-content: center;
  background-color: var(--uikit-bg-color-operate);

  &__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  &__left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  &__back {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: 0 8px 0 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--uikit-text-color-primary);
  }

  &__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-inline-start: 12px;
  }

  &__title {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--uikit-text-color-primary);
  }

  &__typing-indicator {
    font-size: 12px;
    color: var(--uikit-text-color-secondary);
  }

  &__live {
    margin-top: 4px;
    font-size: 12px;
    color: var(--uikit-text-color-tertiary);
  }
}

.icon-button {
  flex: 0 0 auto;
  border: none;
  padding: 4px;
  margin: 0;
  background: none;
  // inline-flex: keeps button width snug while aligning icon & text
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  color: var(--uikit-text-color-link);
  background-color: var(--uikit-dropdown-color-default);

  &:hover {
    background-color: var(--uikit-dropdown-color-hover);
  }

  &:active {
    background-color: var(--uikit-dropdown-color-active);
  }
}
