Hide the search box for non-admin users

I managed to hide the Gear icon for non-admin users. I can use CSS, but I will hide it from all users.

Is there a similar way to hide the search box only for non-admin users?