On mobile, when writing on the main search input bar, you eventually arrive to the end of the input box which is next to the X.
Highlighting or selecting the last word is scary because you risk accidentally pressing the X button thereby clearing your whole search query without undo.
The UI for this should be improved. Maybe the X should appear somewhere else or should only appear if you’re not typing and the input box is not focused.
I would prefer the X button to not be there. iOS has an easy way to select all and clear.