The word “basta”, as you saw in the other examples, is often linked to negative situations where we need to put an end to something. But there are also contexts in which “basta” is used politely, for example when it's followed by “così”. In this case, it's mainly used when we are in a store to buy something.