(B) an agreement that allows the court to retain all or a part of the cash or securities to pay fines, costs, fees, and restitution that the court may order the defendant to pay if the defendant is convicted.
A portion of the deposit, not to exceed ten percent (10%) of the monetary value of the deposit or fifty dollars ($50), whichever is the lesser amount, may be retained as an administrative fee. The clerk shall also retain from the deposit under this subdivision fines, costs, fees, and restitution as ordered by the court, publicly paid costs of representation that shall be disposed of in accordance with subsection (b), and the fee required by subsection (d). In the event of the posting of a real estate bond, the bond shall be used only to insure the presence of the defendant at any stage of the legal proceedings, but shall not be foreclosed for the payment of fines, costs, fees, or restitution. The individual posting bail for the defendant or the defendant admitted to bail under this subdivision must be notified by the sheriff, court, or clerk that the defendant's deposit may be forfeited under section 7 of this chapter or retained under subsection (b).