Sometimes I left the cat overnight without access to the litter box, thinking - nothing to worry about. After this article
https://pacoandpepper.shop/blog/how-long-can-a-cat-go-without-a-litter-box
, I really reconsidered my attitude. I didn't know that it could cause infections and even change behavior. Now I try to always leave at least a temporary litter box if we go somewhere or close the door at night. The information is presented clearly and without pressure, just what I needed.