/* The direct-message header has no in-chat back button. */
.cm-chat-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 46px;
}

.cm-chat-head > .cm-avatar {
  flex: 0 0 45px;
}

.cm-chat-head > div {
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
}

.cm-chat-head b,
.cm-chat-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep the conversation close button at the physical left edge, away from the peer's name. */
.cm-chat-head > [data-cm="results"] {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #dfe8f7 !important;
  border-radius: 12px !important;
  color: #486184 !important;
  background: #fff !important;
}
