Bus companies do not always allow access to the toilets, notably for a question of comfort for other users (smells, inconveniences...).
Don't worry, there will be breaks during the journey so that everyone can stretch their legs and go to the toilet.
In case of emergency, talk to the bus driver.

Travelling well: in order to avoid cravings, remember to stop at the station or airport toilets before getting on the bus.