(a) The court may compel either party to pay attorney's fees and court costs reasonably necessary to enable the other party to prosecute or defend the action. The question of whether or not a party is entitled to temporary spousal support is not decisive of that party's right to a reasonable allowance of attorney's fees and court costs.
(b) An order for temporary relief awarding attorney fees and court costs may be modified at any time during the pendency of the action, as the exigencies of the case or equity and justice may require, including, but not limited to, a modification which would require full or partial repayment of fees and costs by a party to the action to whom or on whose behalf payment of fees and costs was previously ordered. If an appeal is taken or an intention to appeal is stated, the court may further order either party to pay attorney fees and costs on appeal.
(c) If it appears to the court that a party has incurred attorney fees and costs unnecessarily because the opposing party has asserted unfounded claims or defenses for vexatious, wanton or oppressive purposes, thereby delaying or diverting attention from valid claims or defenses asserted in good faith, the court may order the offending party, or his or her attorney, or both, to pay reasonable attorney fees and costs to the other party.