@font-face{font-display:swap;font-family:iranyekan;font-style:normal;font-weight:700;src:url(/wp-content/themes/woodmart-child/fonts/woff/IRANYekanXFaNum-Bold.woff) format('woff'),url(/wp-content/themes/woodmart-child/fonts/woff2/IRANYekanXFaNum-Bold.woff2) format('woff2')}@font-face{font-display:swap;font-family:iranyekan;font-style:normal;font-weight:400;src:url(/wp-content/themes/woodmart-child/fonts/woff/IRANYekanXFaNum-Regular.woff) format('woff'),url(/wp-content/themes/woodmart-child/fonts/woff2/IRANYekanXFaNum-Regular.woff2) format('woff2')}:root{--wd-entities-title-font:iranyekan !important;--wd-text-font:iranyekan !important;--wd-title-font:iranyekan !important;--wd-header-el-font:iranyekan !important}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,body,html{font-family:iranyekan}legend,h1,h2,h3,h4,h5,h6,.title,table th,td.product-name a,.wd-entities-title{font-family:'iranyekan'!important}.cart-totals-inner .woocommerce-shipping-destination{text-align:right}#shipping_method label{text-align:right}.min-footer .col-right{text-align:center!important}a.wksupport_btn{position:fixed;display:block;z-index:999999;left:0;top:80%;background:#2247cc;padding:5px 10px;color:#fff;border-radius:0 15px 15px 0;opacity:.5;transition:2s;box-shadow:1px 0 2px #50575e}a.wksupport_btn:hover{transition:0.2s;opacity:1;box-shadow:1px 1px 7px #50575e}add_action('woocommerce_order_status_changed','woocommerce_ir_switch_user_role');function woocommerce_ir_switch_user_role($order_id){$order=wc_get_order($order_id);$user_id=$order->get_user_id();$order_status=$order->get_status();$switch_already_done=$order->get_meta('_woocommerceir_role_switched');if (! $switch_already_done && $order->has_status(wc_get_is_paid_statuses()) && wc_user_has_role($user_id,'customer')){woocommerce_ir_upgrade_to_vip($user_id);$order->update_meta_data('_woocommerceir_role_switched','true');$order->save()}}function woocommerce_ir_upgrade_to_vip($user_id){if (wc_get_customer_total_spent($user_id)>10000000){// ده میلیون تومان $user=new WP_User($user_id);$user->add_role('مشتری وفادار');$user->remove_role('customer')}}