Anyone doing a late booking ought to allow 7 days to get a Thai pass.
Also, very little of the price should be at risk in case of cancellation. Flights can usually be moved at zero cost these days. Hotels tend to be refundable.