"In appropriate cases, the court may order fees and costs paid while an action is pending, including while on appeal, or may make an order as part of a final decision in a case." . . . .