If you come in contact with unplanned food and get a craving for it, remind yourself, “I’ve had [this food] before. I know what it tastes like. I’ll have it again so I don’t need to eat it every time the opportunity arises.” Then make a plan for when you will eat it (tomorrow? Over the weekend?) so that not eating it in the moment doesn’t feel as hard