/**
 * Move coupon form to review order
 */
document.addEventListener("DOMContentLoaded", () => {
  const originalToggle = document.querySelector(".woocommerce-form-coupon-toggle");
  const originalForm = document.querySelector("form.woocommerce-form-coupon");
  const target = document.querySelector(".rt_review_order_coupon");

  if (!originalToggle || !originalForm || !target) return;
  
  originalToggle.style.display = "block";
  target.appendChild(originalToggle);
  target.appendChild(originalForm);
});
