jQuery(window).load(function(){function a(){var a=jQuery(document).scrollTop(),b=jQuery("#order_review_heading").outerWidth(),c=jQuery("form.woocommerce-checkout").outerWidth(),d=jQuery("#customer_details").outerWidth(),e=c-d-b,f=d+e,g=jQuery("#order_review_heading").offset();jQuery(window).width()>768&&a>g.top?(jQuery("#order_review").addClass("payment-fixed"),jQuery("#order_review").css({"margin-left":f,width:b})):jQuery("#order_review").removeAttr("style").removeClass("payment-fixed")}var b=jQuery(window).height(),c=jQuery("#order_review").height(),d=-1;jQuery(".payment_box").each(function(){d=d>jQuery(this).outerHeight()?d:jQuery(this).outerHeight()});var e=jQuery(".wc_payment_method input:checked").siblings(".payment_box").outerHeight();b>c+(d-e+30)&&(jQuery(window).scroll(function(){a()}),jQuery(window).resize(function(){a()}))});