@use "@tencentcloud/uikit-base-component-react/dist/styles/theme/util" as *;

.conversationItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.avatarWrapper {
  flex-shrink: 0;
}

.conversationContent {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.conversationHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.name {
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  @include theme() {
    color: get(text-color-primary);
  }
}

.showText {
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  @include theme() {
    color: get(text-color-secondary);
  }
}

:global(.highlight) {
  @include theme() {
    background-color: get(bg-color-operate);
    color: get(text-color-link);
  }
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}