window.addEventListener('load', function() {
// Select the customer section and the payment section
var customerSection = document.querySelector('.woocommerce-billing-fields');
var paymentSection = document.querySelector('#payment');
if (customerSection && paymentSection) {
// Append the payment section after the customer section
customerSection.parentNode.insertBefore(paymentSection, customerSection.nextSibling);
}
});