I was watching the tv show BULL, and the ep. started w. two teenagers going into a high end clothing store. They pass a security guard as they do.
Inside, they shoplift some stuff, and when they get back outside the guard blocks their way and says he needs to look in their purses.

Now, my questions are:

1. Would it be legal for a store’s guard to do that once a customer is back out on the street?

2. By going into a store are you consenting to be searched, or physically detained if you refuse to be searched until police arrive?