.chat-container {
  overflow: hidden;
}

.chat-content-top {
  width: 100%;
  padding-inline: 16px;
}
.chat-content-top .chat-content-top-me {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.chat-content-top .chat-content-top-me .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-content-top .chat-content-top-me .icon {
  width: 20px;
  height: 20px;
  margin-left: auto;
}
.chat-content-top .chat-content-top-me .info {
  margin-left: 12px;
}
.chat-content-top .chat-content-top-me .info p {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.chat-content-top .chat-content-top-me .info span {
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.chat-content-top .chat-content-top-search {
  display: flex;
  align-items: center;
  margin: 8px 0;
  width: 100%;
}
.chat-content-top .chat-content-top-search .search-container {
  flex: 1;
  display: flex;
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}
.chat-content-top .chat-content-top-search .search-container .chat-content-search-icon {
  width: 20px;
  height: 20px;
}
.chat-content-top .chat-content-top-search .search-container .chat-content-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(60, 60, 67, 0.6);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}
.chat-content-top .chat-content-top-search .search-filter-icon {
  width: 20px;
  height: 20px;
  margin-left: 12px;
  margin-right: 8px;
}

.chat-content {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline: 16px;
}
.chat-content .chat-content-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: max-content;
  background-color: #fff;
  margin-top: 8px;
}
.chat-content .chat-content-list .chat-content-item {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  padding-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
}
.chat-content .chat-content-list .chat-content-item:not(:first-child) {
  padding-top: 16px;
}
.chat-content .chat-content-list .chat-content-item:not(:last-child)::after {
  position: absolute;
  content: "";
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: #eaecf0;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-avatar {
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-name .chat-content-item-info-name-text {
  color: var(--Gray-700, #344054);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-name .chat-content-item-info-name-time {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-message {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-message .chat-content-item-info-message-text {
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-content .chat-content-list .chat-content-item .chat-content-item-info .chat-content-item-info-message .chat-content-item-info-message-meta {
  color: #475467;
  font-size: 9px;
  font-style: italic;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-content .chat-content-list .chat-content-item .not-read {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #12b76a;
}

.chat-action {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  background: #0d3aff;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: auto;
}
.chat-action .chat-action-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  margin: 0;
  height: max-content;
}
.chat-action .chat-action-button > img {
  width: 16px;
  height: 16px;
}
.chat-action .chat-action-button .chat-action-button-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.status.is-online {
  background-color: #12b76a;
}

.status.is-offline {
  background-color: #d0d5dd;
}

.no-messages {
  text-align: center;
  padding: 20px;
  color: #666;
}