        (function() {
            document.querySelectorAll('.po-cust-addr').forEach(function(box) {
                var editBtn = box.querySelector('.po-cust-addr-edit');
                var cancelBtn = box.querySelector('.po-cust-addr-cancel');
                if (editBtn) {
                    editBtn.addEventListener('click', function() {
                        box.classList.add('is-editing');
                        var street = box.querySelector('.po-ca-street');
                        if (street) street.focus();
                    });
                }
                if (cancelBtn) {
                    cancelBtn.addEventListener('click', function() {
                        box.classList.remove('is-editing');
                    });
                }
            });
        })();
