You can say “Have a nice day,” no problem, but saying “Enjoy the next 24 hours” sounds vaguely threatening.

Commentary:
πŸ˜‚ "Next time my barista tells me to 'enjoy the next 24 hours,' I'm ordering my coffee with a side of panic! β˜•πŸ˜…πŸš¨"