How to protect ourselves when ordering online?

I have gotten what I believe is the best OTD deal from a NY dealership 4 hours away, 115 miles. After some numbers crunching later (family visitng for the holidays), if this deal turns out to be best of all dealers I’ve been negotiating with, I will want to buy from from them.

It is too far for me to go for a test drive and trade in my car. Besides I’ve already test driven the model (CX-5 Premium Plus).

They offer free delivery and the ability to sign paperwork and take the down payment upon delivery.

How do I protect myself if the car arrives damaged or the purchase order/financing contract is inaccurate etc?

What steps do I need to do to protect myself with taking delivery of a car from afar? I’ve never bought a car this way before and I want to make absolutely sure everything is safe and done right.