.root {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 3.625rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--color-borders);

  :global(.modal-title) {
    margin: 0 !important;
    font-size: inherit;
    font-weight: inherit;
  }
}

.closeButton, .markAsReadButton {
  z-index: 1;
}

.closeButton {
  position: absolute !important;
  top: 0.875rem;
  right: 0.875rem;
}

.markAsReadButton {
  position: absolute !important;
  top: 0.5rem;
  right: 3rem;
}

.chatInfoOverride {
  // Mimic left column chat list styling
  :global(.ChatInfo) {
    display: flex;
    flex: 1;
    gap: 0.625rem;
    align-items: center;
  }

  :global(.Avatar) {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
  }

  :global(.info) {
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-direction: column;

    text-align: left;
  }

  :global(.title),
  :global(.fullName) {
    --custom-emoji-size: 1.375rem;

    overflow: hidden;

    margin-bottom: 0;

    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  :global(.status), :global(.typing-status) {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.125rem;
    color: var(--color-text-secondary);
  }

  :global(.topic-header-icon) {
    --custom-emoji-size: 2.25rem;

    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 2.25rem;

    :global(.emoji-small) {
      width: 1.25rem;
      height: 1.25rem;
    }

    :global(.topic-icon-letter) {
      font-size: 1.25rem;
    }

    &:global(.general-forum-icon) {
      color: var(--color-text-secondary);
    }
  }

  :global(.Transition.message-count-transition) {
    height: 1.125rem;
  }
}
