Hi Albert
One way is to grant a role that automatically expires after 24 hours. In the Configuration > Checkout, you want to use an Availability rule to check if the user has this role and deny the checkout.
Similarly, you want to grant a role with an expiration in the Place order action rule under Configuration > Checkout. Take a look at this link on how to assign a role.
I hope this helps.