Private counsel appointed under this article shall receive a reasonable sum for compensation and expenses, the amount of which shall be determined by the court. The amount so determined shall be paid by the real parties in interest, other than the child, in proportions the court deems just. However, if the court finds that any of the real parties in interest are unable to afford counsel, the amount shall be paid out of the general fund of the county.
Ca. Fam. Code § 7863