(a) If none of the costs of a recount are assessed against a person, the entire deposit shall be returned to the person.
(b) If any of the costs of a recount are assessed against a person, any of the deposit in excess of the amount of the assessment shall be refunded to the person.
(c) If the amount of costs assessed against a person exceeds the amount of the person's deposit, the person is liable to the authority responsible for paying the expenses of the election for the amount of the excess.