jQuery('form.checkout').on('change','input[name^="shipping_method"]',function() {
    var val = jQuery( this ).val();
    if (val.match("^local_pickup")) {
             jQuery('#customer_details .col-2 .woocommerce-shipping-fields').fadeOut();
       } else {
       jQuery('#customer_details .col-2 .woocommerce-shipping-fields').fadeIn();
    }
 });