"(1) Where – … (c) any person is convicted of an offence before the Crown Court the court may make such order as to the costs to be paid by the accused to the prosecutor as it considers just and reasonable."
"(1) The court must not make an order about costs unless each party and any other person directly affected – (a) is present; or (b) has had an opportunity – (i) to attend, or (ii) to make representations. … (3) In deciding what order, if any, to make about costs, the court must have regard to all the circumstances, including – (a) the conduct of all the parties; and (b) any costs order already made. … (6) If the court makes an order for the payment of costs – (a) the general rule is that it must be for an amount that is sufficient reasonably to compensate the recipient for costs – (i) actually, reasonably and properly incurred, and (ii) reasonable in amount; … … (7) On an assessment of the amount of costs, relevant factors include – (a) the conduct of all the parties; (b) the particular complexity of the matter or the difficulty or novelty of the questions raised; (c) the skill, effort, specialised knowledge and responsibility involved; (d) the time spent on the case; (e) the place where and the circumstances in which work or any part of it was done; and (f) any directions or observations by the court that made the cost order. …"