There are several scenarios in which a buyer may get their contract deposit refunded without penalty.
co-op
Regardless of the owner's decision to accept an offer, prospective buyers ultimately need the approval of the co-op board in order to close on the property.