The bail payment shall be returned if:
the grounds for detention no longer apply;
the criminal proceedings are concluded by a final judgment of abandonment or acquittal;
the accused has begun a custodial sanction.
Before the bail payment made by the accused is returned, any monetary penalties, fines, costs and compensation that have been imposed on the accused may be deducted from it.
The authority before which the case is pending or was last pending shall decide on the return of the bail payment.