(a) Costs and attorney fees may be awarded to either party as justice and equity may require. Unless the attorney represents a public agency in an action, the court may order that the amount be paid directly to the attorney, who may enforce the order in the attorney’s name in the same case.

(b) The court may order reasonable fees for the child’s guardian ad litem.

(c) The court may order other expenses of the action, including genetic tests, to be paid by the parties in proportions and at times determined by the court. The court may order the proportion of any indigent party to be paid from the general fund of the county. After payment, the court may tax all, part or none of the expenses as costs in the action.

(d) The fee of an expert witness qualified to perform genetic testing, but not appointed by the court, shall be paid by the party calling the expert witness but shall not be taxed as costs in the action.