Ah, thank you! I see that this solution works for generic Woocommerce checkout errors.
However, I also use the Authorize.net CIM plugin for credit card processing at checkout, and it seems to have its own JS for scrolling up to see error messages when you input invalid card details, and the same problem is repeated. I guess I’ll try to hunt through its files and see if I can apply this same / similar fix.
If you happen to have any experience with that plugin, though, I’d appreciate any help you can provide. The page in question, btw, is https://www.drinkreorient.com/checkout/
Thanks!