From 5d2e1ac03188983273b63b3b84be75ff52a58ff2 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 18 Oct 2013 18:10:55 +0100 Subject: [PATCH] Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 --- assets/css/activation.css | 152 ++- assets/css/admin.css | 2 +- assets/css/admin.less | 177 ++-- assets/css/dashboard.css | 195 +--- assets/css/woocommerce-layout.css | 544 +---------- assets/css/woocommerce-smallscreen.css | 166 +--- assets/js/admin/meta-boxes.js | 29 +- assets/js/admin/meta-boxes.min.js | 2 +- assets/js/admin/quick-edit.min.js | 1 + .../class-wc-admin-cpt-shop_coupon.php | 11 +- .../class-wc-meta-box-coupon-data.php | 92 +- includes/class-wc-cart.php | 902 +++++++----------- includes/class-wc-checkout.php | 4 +- includes/class-wc-coupon.php | 117 ++- .../class-wc-shipping-free-shipping.php | 6 +- includes/wc-template-functions.php | 12 +- templates/cart/cart-totals.php | 8 +- templates/checkout/review-order.php | 8 +- 18 files changed, 826 insertions(+), 1602 deletions(-) create mode 100644 assets/js/admin/quick-edit.min.js diff --git a/assets/css/activation.css b/assets/css/activation.css index 95d629a75be..15e37f61c3a 100644 --- a/assets/css/activation.css +++ b/assets/css/activation.css @@ -1 +1,151 @@ -.woocommerce-message{position:relative;z-index:100;border:1px solid #b76ca9!important;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);-moz-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);box-shadow:inset 0 0 15px rgba(0,0,0,0.04);overflow:hidden;padding:10px 0 10px!important;background:#cc99c2 url(../images/message.png) no-repeat right bottom!important}.woocommerce-message .squeezer{max-width:960px;margin:0;padding:0 10px;text-align:left;overflow:hidden}.woocommerce-message h4{margin:5px 10px 5px 0;font-size:18px;line-height:27px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;font-weight:normal;color:#fff;text-shadow:0 1px 1px #b574a8;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;float:left;vertical-align:middle}.woocommerce-message p{margin:5px 0!important;padding:1px 2px!important;float:left!important;line-height:27px;vertical-align:middle}.woocommerce-message .twitter-share-button{vertical-align:middle;margin-left:3px}p.woocommerce-actions a.button-primary,.woocommerce-message a.button-primary{font-size:14px!important;line-height:16px!important;height:auto!important;-webkit-border-radius:3px;border-radius:3px;margin:0 5px 0 0;padding:5px 12px;vertical-align:middle;color:#fff;text-align:center;text-decoration:none;border:1px solid #76456d;-webkit-transition:none;-moz-transition:none;cursor:pointer;outline:0;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#a46497;background-image:-webkit-gradient(linear,left top,left bottom,from(#a46497),to(#864f7b));background-image:-webkit-linear-gradient(top,#a46497,#864f7b);background-image:-moz-linear-gradient(top,#a46497,#864f7b);background-image:-ms-linear-gradient(top,#a46497,#864f7b);background-image:-o-linear-gradient(top,#a46497,#864f7b);background-image:linear-gradient(to bottom,#a46497,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}p.woocommerce-actions a.button-primary:hover,.woocommerce-message a.button-primary:hover{text-shadow:0 -1px 0 rgba(0,0,0,0.3);border:1px solid #76456d;background-color:#ad74a2;background-image:-webkit-gradient(linear,left top,left bottom,from(#ad74a2),to(#864f7b));background-image:-webkit-linear-gradient(top,#ad74a2,#864f7b);background-image:-moz-linear-gradient(top,#ad74a2,#864f7b);background-image:-ms-linear-gradient(top,#ad74a2,#864f7b);background-image:-o-linear-gradient(top,#ad74a2,#864f7b);background-image:linear-gradient(to bottom,#ad74a2,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}p.woocommerce-actions a.button-primary:active,.woocommerce-message a.button-primary:active{border:1px solid #76456d;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#864f7b;background-image:-webkit-gradient(linear,left top,left bottom,from(#864f7b),to(#864f7b));background-image:-webkit-linear-gradient(top,#864f7b,#a46497);background-image:-moz-linear-gradient(top,#864f7b,#a46497);background-image:-ms-linear-gradient(top,#864f7b,#a46497);background-image:-o-linear-gradient(top,#864f7b,#a46497);background-image:linear-gradient(to bottom,#a46497,#a46497);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.2);box-shadow:inset 0 1px 1px rgba(0,0,0,0.2)}p.woocommerce-actions a.skip,.woocommerce-message a.skip,p.woocommerce-actions a.docs,.woocommerce-message a.docs{opacity:.7}p.woocommerce-actions .twitter-share-button,.woocommerce-message .twitter-share-button{vertical-align:middle;margin-left:3px}p.woocommerce-actions{margin-bottom:2em}.woocommerce-about-text{margin-bottom:1em!important} \ No newline at end of file +.woocommerce-message { + position: relative; + z-index: 100; + border: 1px solid #b76ca9 !important; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.04); + -moz-box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.04); + box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.04); + overflow: hidden; + padding: 10px 0 10px !important; + background: #cc99c2 url(../images/message.png) no-repeat right bottom !important; +} +.woocommerce-message .squeezer { + max-width: 960px; + margin: 0; + padding: 0 10px; + text-align: left; + overflow: hidden; +} +.woocommerce-message h4 { + margin: 5px 10px 5px 0; + font-size: 18px; + line-height: 27px; + font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", Verdana, "Bitstream Vera Sans", sans-serif; + font-weight: normal; + color: #fff; + text-shadow: 0px 1px 1px #b574a8; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + float: left; + vertical-align: middle; +} +.woocommerce-message p { + margin: 5px 0 !important; + padding: 1px 2px !important; + float: left !important; + line-height: 27px; + vertical-align: middle; +} +.woocommerce-message .twitter-share-button { + vertical-align: middle; + margin-left: 3px; +} +p.woocommerce-actions a.button-primary, +.woocommerce-message a.button-primary { + font-size: 14px !important; + line-height: 16px !important; + height: auto !important; + -webkit-border-radius: 3px; + border-radius: 3px; + margin: 0 5px 0 0; + padding: 5px 12px; + vertical-align: middle; + color: #fff; + text-align: center; + text-decoration: none; + border: 1px solid #76456d; + -webkit-transition: none; + -moz-transition: none; + cursor: pointer; + outline: none; + font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", Verdana, "Bitstream Vera Sans", sans-serif; + text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3); + background-color: #a46497; + background-image: -webkit-gradient(linear, left top, left bottom, from(#a46497), to(#864f7b)); + /* Saf4+, Chrome */ + + background-image: -webkit-linear-gradient(top, #a46497, #864f7b); + /* Chrome 10+, Saf5.1+, iOS 5+ */ + + background-image: -moz-linear-gradient(top, #a46497, #864f7b); + /* FF3.6+ */ + + background-image: -ms-linear-gradient(top, #a46497, #864f7b); + /* IE10 */ + + background-image: -o-linear-gradient(top, #a46497, #864f7b); + /* Opera 11.10+ */ + + background-image: linear-gradient(to bottom, #a46497, #864f7b); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); +} +p.woocommerce-actions a.button-primary:hover, +.woocommerce-message a.button-primary:hover { + text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3); + border: 1px solid #76456d; + background-color: #ad74a2; + background-image: -webkit-gradient(linear, left top, left bottom, from(#ad74a2), to(#864f7b)); + /* Saf4+, Chrome */ + + background-image: -webkit-linear-gradient(top, #ad74a2, #864f7b); + /* Chrome 10+, Saf5.1+, iOS 5+ */ + + background-image: -moz-linear-gradient(top, #ad74a2, #864f7b); + /* FF3.6+ */ + + background-image: -ms-linear-gradient(top, #ad74a2, #864f7b); + /* IE10 */ + + background-image: -o-linear-gradient(top, #ad74a2, #864f7b); + /* Opera 11.10+ */ + + background-image: linear-gradient(to bottom, #ad74a2, #864f7b); + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); +} +p.woocommerce-actions a.button-primary:active, +.woocommerce-message a.button-primary:active { + border: 1px solid #76456d; + text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3); + background-color: #864f7b; + background-image: -webkit-gradient(linear, left top, left bottom, from(#864f7b), to(#864f7b)); + /* Saf4+, Chrome */ + + background-image: -webkit-linear-gradient(top, #864f7b, #a46497); + /* Chrome 10+, Saf5.1+, iOS 5+ */ + + background-image: -moz-linear-gradient(top, #864f7b, #a46497); + /* FF3.6+ */ + + background-image: -ms-linear-gradient(top, #864f7b, #a46497); + /* IE10 */ + + background-image: -o-linear-gradient(top, #864f7b, #a46497); + /* Opera 11.10+ */ + + background-image: linear-gradient(to bottom, #a46497, #a46497); + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2); +} +p.woocommerce-actions a.skip, +.woocommerce-message a.skip, +p.woocommerce-actions a.docs, +.woocommerce-message a.docs { + opacity: 0.7; +} +p.woocommerce-actions .twitter-share-button, +.woocommerce-message .twitter-share-button { + vertical-align: middle; + margin-left: 3px; +} +p.woocommerce-actions { + margin-bottom: 2em; +} +.woocommerce-about-text { + margin-bottom: 1em !important; +} diff --git a/assets/css/admin.css b/assets/css/admin.css index 14b38eb7f64..788077d55d7 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1 +1 @@ -.clear{clear:both}.nobr{white-space:nowrap}@font-face{font-family:'WooCommerce';src:url('../fonts/WooCommerce.eot');src:url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'),url('../fonts/WooCommerce.woff') format('woff'),url('../fonts/WooCommerce.ttf') format('truetype'),url('../fonts/WooCommerce.svg#WooCommerce') format('svg');font-weight:normal;font-style:normal}.wc_addons_wrap .products{overflow:hidden}.wc_addons_wrap .products li{float:left;margin:0 10px 10px 0!important;padding:0;vertical-align:top;width:300px}.wc_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:162px;overflow:hidden;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.wc_addons_wrap .products li a img{max-width:258px;max-height:30px;padding:20px;display:block;margin:0;background:#fff;border-right:260px solid #fff}.wc_addons_wrap .products li a img.extension-thumb+h3{display:none}.wc_addons_wrap .products li a .price{display:none}.wc_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.wc_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.wc_addons_wrap .products li a:hover,.wc_addons_wrap .products li a:focus{background-color:#f1f1f1}.woocommerce-message{position:relative;z-index:100;border:1px solid #b76ca9!important;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);-moz-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);box-shadow:inset 0 0 15px rgba(0,0,0,0.04);overflow:hidden;padding:10px 0 10px!important;background:#cc99c2 url(../images/message.png) no-repeat right bottom!important}.woocommerce-message .squeezer{max-width:960px;margin:0;padding:0 10px;text-align:left;overflow:hidden}.woocommerce-message h4{margin:5px 10px 5px 0;font-size:18px;line-height:27px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;font-weight:normal;color:#fff;text-shadow:0 1px 1px #b574a8;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;float:left;vertical-align:middle}.woocommerce-message p{margin:5px 0!important;padding:1px 2px!important;float:left!important;line-height:27px;vertical-align:middle}.woocommerce-message p a.button-primary{font-size:14px!important;line-height:16px!important;height:auto!important;-webkit-border-radius:3px;border-radius:3px;margin:0 5px 0 0;padding:5px 12px;vertical-align:middle;color:#fff;text-align:center;text-decoration:none;border:1px solid #76456d;-webkit-transition:none;-moz-transition:none;cursor:pointer;outline:0;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#a46497;background-image:-webkit-gradient(linear,left top,left bottom,from(#a46497),to(#864f7b));background-image:-webkit-linear-gradient(top,#a46497,#864f7b);background-image:-moz-linear-gradient(top,#a46497,#864f7b);background-image:-ms-linear-gradient(top,#a46497,#864f7b);background-image:-o-linear-gradient(top,#a46497,#864f7b);background-image:linear-gradient(to bottom,#a46497,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.woocommerce-message p a.button-primary:hover{text-shadow:0 -1px 0 rgba(0,0,0,0.3);border:1px solid #76456d;background-color:#ad74a2;background-image:-webkit-gradient(linear,left top,left bottom,from(#ad74a2),to(#864f7b));background-image:-webkit-linear-gradient(top,#ad74a2,#864f7b);background-image:-moz-linear-gradient(top,#ad74a2,#864f7b);background-image:-ms-linear-gradient(top,#ad74a2,#864f7b);background-image:-o-linear-gradient(top,#ad74a2,#864f7b);background-image:linear-gradient(to bottom,#ad74a2,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.woocommerce-message p a.button-primary:active{border:1px solid #76456d;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#864f7b;background-image:-webkit-gradient(linear,left top,left bottom,from(#864f7b),to(#864f7b));background-image:-webkit-linear-gradient(top,#864f7b,#a46497);background-image:-moz-linear-gradient(top,#864f7b,#a46497);background-image:-ms-linear-gradient(top,#864f7b,#a46497);background-image:-o-linear-gradient(top,#864f7b,#a46497);background-image:linear-gradient(to bottom,#a46497,#a46497);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.2);box-shadow:inset 0 1px 1px rgba(0,0,0,0.2)}.woocommerce-message p a.skip,.woocommerce-message p a.docs{opacity:.5}.woocommerce-message .twitter-share-button{vertical-align:middle}#variable_product_options #message{margin:10px}#wc_get_started{position:relative;margin:1em 0 2em;padding:15px 15px 15px 90px;border:1px solid #d9d9d9;background:#f5f5f5 url(../images/gear.png) no-repeat 15px 15px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-moz-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-webkit-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff}#wc_get_started span{display:block;text-shadow:1px 1px 0 #fff;font-size:14px;line-height:22px;color:#595959}#wc_get_started span.main{margin-top:2px;font-weight:bold;font-size:16px}#wc_get_started .main-button{position:absolute;right:20px;top:27px}#wc_get_started p{margin:1em 0 .5em}#wc_get_started.mijireh{background:#5bc0de url(../images/mijireh-logo.png) no-repeat 15px 18px;border:1px solid #339bb9;padding:15px 15px 15px 152px;box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5);-moz-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5);-webkit-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5)}#wc_get_started.mijireh span{color:#fff;text-shadow:0 1px 0 #4a94ac}#wc_get_started.mijireh span a{color:#fff}#wc_get_started.mijireh a.button{border-color:#fff;box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b;-moz-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b;-webkit-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b}#wc_get_started.mijireh a.button-primary{background:#2b7e9f;border-color:#266e8b}#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons.png)!important;background-position:-11px -5px;background-size:auto!important}.icon32-posts-product{background-position:-69px -5px!important}.icon32-posts-shop_order{background-position:-127px -5px!important}.icon32-attributes{background-position:-185px -5px!important}.icon32-woocommerce-settings{background-position:-359px -5px!important}.icon32-posts-shop_coupon{background-position:-475px -5px!important}.icon32-posts-product_variation{background-position:-533px -5px!important}.icon32-woocommerce-reports{background-position:-591px -5px!important}.icon32-woocommerce-status{background-position:-417px -5px!important}.icon32-woocommerce-delivery{background-position:-649px -5px!important}.icon32-woocommerce-compose{background-position:-708px -5px!important}.icon32-woocommerce-telephone{background-position:-766px -5px!important}.icon32-woocommerce-users{background-position:-824px -5px!important}.icon32-woocommerce-nav{background-position:-882px -5px!important}.icon32-woocommerce-email{background-position:-940px -5px!important}.icon32-woocommerce-importer{background-position:-11px -50px!important}.wrap.woocommerce div.updated,.wrap.woocommerce div.error{margin-top:10px}mark.amount{background:transparent none;color:inherit}.postbox input:invalid,.woocommerce input:invalid{border:1px solid #cc010b;background:#ffebe8}table.wc_status_table{font-family:monospace}table.wc_status_table th{font-weight:bold}table.wc_status_table td:first-child{width:20%}table.wc_status_table td{padding:6px 9px;font-size:1.1em}table.wc_status_table td mark{background:transparent none}table.wc_status_table td mark.yes{color:green}table.wc_status_table td mark.no{color:#999}table.wc_status_table td mark.error{color:red}table.wc_status_table td ul{margin:0}#debug-report{display:none;margin:10px;padding:0;position:relative;background:#fff;background:-webkit-gradient(linear,0 0,0 100%,from(#d9eaf3),color-stop(4%,#fff)) 0 4px;background:-webkit-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-moz-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-ms-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-o-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;-webkit-background-size:100% 20px;-moz-background-size:100% 20px;-ms-background-size:100% 20px;-o-background-size:100% 20px;background-size:100% 20px;box-shadow:0 1px 1px rgba(0,0,0,0.25),0 10px 0 -5px #fff,0 10px 1px -4px rgba(0,0,0,0.15),0 20px 0 -10px #fff,0 20px 1px -9px rgba(0,0,0,0.15);border-top:40px solid #fff}#debug-report:before{content:'';position:absolute;width:4px;top:0;margin:-40px 0 0 0;left:30px;bottom:0;border:1px solid;border-color:transparent #efe4e4}#debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:5px 40px;border:0;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;background:transparent;outline:0}.inline-edit-product.quick-edit-row .inline-edit-col-center,.inline-edit-product.quick-edit-row .inline-edit-col-right{float:right!important}#woocommerce-fields.inline-edit-col{clear:left}#woocommerce-fields.inline-edit-col label.featured,#woocommerce-fields.inline-edit-col label.manage_stock{margin-left:10px}#woocommerce-fields.inline-edit-col .dimensions div{display:block;margin:.2em 0}#woocommerce-fields.inline-edit-col .dimensions div span.title{display:block;float:left;width:5em}#woocommerce-fields.inline-edit-col .dimensions div span.input-text-wrap{display:block;margin-left:5em}#woocommerce-fields.inline-edit-col .text{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:99%;float:left;margin:1px 1% 1px 1px}#woocommerce-fields.inline-edit-col .length,#woocommerce-fields.inline-edit-col .width,#woocommerce-fields.inline-edit-col .height{width:32.33%}#woocommerce-fields.inline-edit-col .height{margin-right:0}#woocommerce-fields-bulk.inline-edit-col label{clear:left}#woocommerce-fields-bulk.inline-edit-col .inline-edit-group label,#woocommerce-fields-bulk.inline-edit-col .inline-edit-group div.alignright{clear:none;width:49%;margin:.2em 0}#woocommerce-fields-bulk.inline-edit-col .regular_price,#woocommerce-fields-bulk.inline-edit-col .sale_price,#woocommerce-fields-bulk.inline-edit-col .weight,#woocommerce-fields-bulk.inline-edit-col .stock{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}#woocommerce-fields-bulk.inline-edit-col .length,#woocommerce-fields-bulk.inline-edit-col .width,#woocommerce-fields-bulk.inline-edit-col .height{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:32%}.column-coupon_code{line-height:2.25em}ul.wc_coupon_list,.column-coupon_code{margin:0;overflow:hidden;zoom:1;clear:both}ul.wc_coupon_list .code,.column-coupon_code .code{margin-right:6px}ul.wc_coupon_list li.code,.column-coupon_code li.code{margin:0 6px 12px 0!important}ul.wc_coupon_list .code:before,.column-coupon_code .code:before,ul.wc_coupon_list .code a:before,.column-coupon_code .code a:before,ul.wc_coupon_list .code span:before,.column-coupon_code .code span:before,ul.wc_coupon_list .code:after,.column-coupon_code .code:after,ul.wc_coupon_list .code a:after,.column-coupon_code .code a:after,ul.wc_coupon_list .code span:after,.column-coupon_code .code span:after{content:"";display:block;position:absolute;width:8px;height:4px;background:#f7f7f7;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1);box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1)}ul.wc_coupon_list .code,.column-coupon_code .code{overflow:hidden;vertical-align:middle;margin:0 8px 0 0;background:#ececec;color:#21759a;text-shadow:0 1px 0 #ddd;padding:2px;position:relative;float:left;line-height:1em;-moz-box-shadow:0 2px 0 0 #ddd;-webkit-box-shadow:0 2px 0 0 #ddd;box-shadow:0 2px 0 0 #ddd;font-weight:bold}ul.wc_coupon_list .code:before,.column-coupon_code .code:before{bottom:5px;left:0;margin:0 0 0 -4px}ul.wc_coupon_list .code:after,.column-coupon_code .code:after{top:5px;left:0;margin:0 0 0 -4px}ul.wc_coupon_list .code a,.column-coupon_code .code a,ul.wc_coupon_list .code span,.column-coupon_code .code span{float:left;padding:0 4px;color:#21759a}ul.wc_coupon_list .code a:before,.column-coupon_code .code a:before,ul.wc_coupon_list .code span:before,.column-coupon_code .code span:before{bottom:5px;right:0;margin:0 -4px 0 0}ul.wc_coupon_list .code a:after,.column-coupon_code .code a:after,ul.wc_coupon_list .code span:after,.column-coupon_code .code span:after{content:"";top:5px;right:0;margin:0 -4px 0 0}ul.wc_coupon_list .code a span,.column-coupon_code .code a span,ul.wc_coupon_list .code span span,.column-coupon_code .code span span{border:1px dashed #ccc;padding:.5em 6px;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px}ul.wc_coupon_list .code a span:before,.column-coupon_code .code a span:before,ul.wc_coupon_list .code span span:before,.column-coupon_code .code span span:before{top:50%;left:0;margin:-2px 0 0 -4px}ul.wc_coupon_list .code a span:after,.column-coupon_code .code a span:after,ul.wc_coupon_list .code span span:after,.column-coupon_code .code span span:after{top:50%;right:0;margin:-2px -4px 0 0}ul.wc_coupon_list .code:hover,.column-coupon_code .code:hover{background:#975e83;color:#fff;text-shadow:0 1px 0 #5a324b}ul.wc_coupon_list .code:hover a,.column-coupon_code .code:hover a,ul.wc_coupon_list .code:hover span,.column-coupon_code .code:hover span{color:#fff}ul.wc_coupon_list .code:hover a span,.column-coupon_code .code:hover a span,ul.wc_coupon_list .code:hover span span,.column-coupon_code .code:hover span span{border:1px dashed #bb82a7}ul.wc_coupon_list_block{margin:0;padding-bottom:2px}ul.wc_coupon_list_block li{border-top:1px solid #fff;border-bottom:1px solid #ccc;line-height:2.5em;margin:0;padding:.5em 0}ul.wc_coupon_list_block li:first-child{border-top:0;padding-top:0}ul.wc_coupon_list_block li:last-child{border-bottom:0;padding-bottom:0}.button.wc-reload{display:block;text-indent:-999px;position:relative;height:1em;width:1em;padding:0;-webkit-border-radius:100%;border-radius:100%;height:24px;width:24px!important;display:inline-block}.button.wc-reload:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e031";line-height:22px}.tablenav .actions{overflow:visible}.alignleft.actions .chosen-container-single{display:inline-block;vertical-align:middle}#woocommerce-order-data h3.hndle,#woocommerce-order-data .handlediv{display:none}#woocommerce-order-data .inside{display:block!important}#order_data{padding:23px 24px 12px 24px}#order_data h2{margin:0;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-size:21px;font-weight:normal;line-height:1.2;text-shadow:1px 1px 1px white;padding:0}#order_data h4{color:#333;margin:1.33em 0 0}#order_data p{color:#777}#order_data p.order_number{margin:0;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-weight:normal;line-height:1.6em;font-size:16px}#order_data .order_data_column_container{clear:both}#order_data .order_data_column{width:32%;padding:0 2% 0 0;float:left}#order_data .order_data_column:last-child{padding-right:0}#order_data .order_data_column p{padding:0!important}#order_data .order_data_column .address strong{display:block}#order_data .order_data_column .form-field{float:left;width:48%;padding:0;margin:9px 0 0 0}#order_data .order_data_column .form-field label{display:block;padding:0 0 3px}#order_data .order_data_column .form-field input,#order_data .order_data_column .form-field textarea{width:100%}#order_data .order_data_column .form-field select{width:100%}#order_data .order_data_column .form-field #order_status_chosen .chosen-search{display:none}#order_data .order_data_column .form-field .chosen-container{width:100%!important}#order_data .order_data_column .form-field .date-picker-field{width:50%}#order_data .order_data_column .form-field .hour,#order_data .order_data_column .form-field .minute{width:2.5em}#order_data .order_data_column .form-field small{display:block;margin:5px 0 0 0;color:#999}#order_data .order_data_column .form-field.last{float:right}#order_data .order_data_column .form-field-wide{width:100%;clear:both}#order_data .order_data_column .form-field-wide input,#order_data .order_data_column .form-field-wide textarea{width:100%}#order_data .order_data_column .form-field-wide select{width:100%}#order_data .order_data_column p.none_set{color:#999}#order_data .order_data_column ._billing_first_name_field,#order_data .order_data_column ._billing_address_1_field,#order_data .order_data_column ._billing_city_field,#order_data .order_data_column ._billing_country_field,#order_data .order_data_column ._billing_email_field,#order_data .order_data_column ._shipping_first_name_field,#order_data .order_data_column ._shipping_address_1_field,#order_data .order_data_column ._shipping_city_field,#order_data .order_data_column ._shipping_country_field{float:left}#order_data .order_data_column ._billing_last_name_field,#order_data .order_data_column ._billing_address_2_field,#order_data .order_data_column ._billing_postcode_field,#order_data .order_data_column ._billing_state_field,#order_data .order_data_column ._billing_phone_field,#order_data .order_data_column ._shipping_last_name_field,#order_data .order_data_column ._shipping_address_2_field,#order_data .order_data_column ._shipping_postcode_field,#order_data .order_data_column ._shipping_state_field{float:right}#order_data .order_data_column ._billing_company_field,#order_data .order_data_column ._shipping_company_field{clear:both;width:100%}#order_data .order_data_column ._billing_email_field{clear:left}#order_data .order_data_column div.edit_address{display:none;overflow:hidden;zoom:1;padding-right:1px}#order_data a.edit_address{opacity:.4}#order_data a.edit_address:hover,#order_data a.edit_address:focus{opacity:1}.order_actions{margin:0;overflow:hidden;zoom:1}.order_actions li{border-top:1px solid #fff;border-bottom:1px solid #ddd;padding:6px 0;margin:0;line-height:1.6em;float:left;width:50%;text-align:center}.order_actions li a{float:none;text-align:center;text-decoration:underline}.order_actions li.wide{width:auto;float:none;clear:both;padding:6px;text-align:left;overflow:hidden}.order_actions li #delete-action{line-height:25px;vertical-align:middle;text-align:left;float:left}.order_actions li .save_order{float:right}.order_actions li#actions{overflow:hidden}.order_actions li#actions .button{width:24px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:right}.order_actions li#actions select{width:225px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:left}#woocommerce-order-items .inside{margin:0;padding:0;background:#fefefe}#woocommerce-order-items .bulk_actions{float:left;padding-left:12px;vertical-align:top}#woocommerce-order-items .add_items{float:right;padding-right:12px;vertical-align:top}#woocommerce-order-items .add_items .add_item_id,#woocommerce-order-items .add_items .chosen-container{margin-right:9px;vertical-align:top;float:left}#woocommerce-order-items .add_items .add_item_id .search-field input,#woocommerce-order-items .add_items .chosen-container .search-field input{min-width:100px}#woocommerce-order-items .add_items button{margin:2px 0 0 0}#woocommerce-order-items .add_meta{margin-left:0!important}#woocommerce-order-items h3 small{color:#999}#woocommerce-order-items a.edit_order_item{opacity:.4}#woocommerce-order-items a.edit_order_item:hover,#woocommerce-order-items a.edit_order_item:focus{opacity:1}#woocommerce-order-downloads .buttons{float:left;padding:0;margin:0;vertical-align:top}#woocommerce-order-downloads .buttons .add_item_id,#woocommerce-order-downloads .buttons .chosen-container{width:400px!important;margin-right:9px;vertical-align:top;float:left}#woocommerce-order-downloads .buttons button{margin:2px 0 0 0}#woocommerce-order-downloads h3 small{color:#999}#poststuff #woocommerce-order-actions .inside{margin:0;padding:0}#poststuff #woocommerce-order-actions .inside ul.order_actions li{padding:6px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#poststuff #woocommerce-order-actions .inside ul.order_actions li:last-child{border-bottom:0}#poststuff #woocommerce-order-totals .inside{margin:0;padding:0}#poststuff #woocommerce-order-totals h4{margin:0!important}#poststuff #woocommerce-order-totals h4 a.add_tax_row,#poststuff #woocommerce-order-totals h4 a.add_total_row{display:inline-block;padding-bottom:10px}#poststuff #woocommerce-order-totals h4 .inline_total{float:right;color:#999}#poststuff #woocommerce-order-totals .totals_group{border-top:1px solid white;border-bottom:1px solid #DDD;padding:10px 10px 0 10px}#poststuff #woocommerce-order-totals .totals_group:first-child{border-top:0}#poststuff #woocommerce-order-totals .totals_group input,#poststuff #woocommerce-order-totals .totals_group select{font-size:1.4em;width:100%;vertical-align:top;margin:0;font-weight:normal;color:#999;line-height:1em}#poststuff #woocommerce-order-totals .totals_group input:focus,#poststuff #woocommerce-order-totals .totals_group select:focus{color:#555}#poststuff #woocommerce-order-totals .totals_group select{height:30px!important}#poststuff #woocommerce-order-totals .totals_group input{padding:4px 6px}#poststuff #woocommerce-order-totals .totals_group ::-webkit-input-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group ::-moz-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group :-ms-input-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group input:-moz-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group #_order_total,#poststuff #woocommerce-order-totals .totals_group #_order_discount{margin:6px 0 10px}#poststuff #woocommerce-order-totals .buttons{border-top:1px solid white;padding:1em 10px 1em 10px;margin:0;text-align:right}#poststuff #woocommerce-order-totals .buttons .calc_line_taxes{float:left}#poststuff #woocommerce-order-totals ul.totals{margin:6px 0 0;float:left}#poststuff #woocommerce-order-totals ul.totals li{float:left;clear:both;width:100%;font-size:1.2em;font-weight:bold;line-height:1.2em;margin:0;padding:0 0 10px}#poststuff #woocommerce-order-totals ul.totals li label{font-weight:normal;display:block;font-size:.8em;color:#333}#poststuff #woocommerce-order-totals ul.totals li.left{float:left;width:49%;clear:left}#poststuff #woocommerce-order-totals ul.totals li.left input{width:100%}#poststuff #woocommerce-order-totals ul.totals li.right{float:right;width:49%;clear:none}#poststuff #woocommerce-order-totals ul.totals li.right input{width:100%}#poststuff #woocommerce-order-totals ul.totals li.wide{float:left;width:100%;clear:left}#poststuff #woocommerce-order-totals ul.totals li.wide input{width:100%}#poststuff #woocommerce-order-totals ul.totals .calculated{border-color:#ae8ca2;border-style:dotted}#poststuff #woocommerce-order-totals .total_rows{margin:6px 0 0}#poststuff #woocommerce-order-totals .total_row{margin:0 0 9px;border:1px solid #dfdfdf;border-right-width:2px;border-bottom-width:2px;background:#fff;padding:9px 9px 0;position:relative}#poststuff #woocommerce-order-totals .total_row p{margin:0 0 9px}#poststuff #woocommerce-order-totals .total_row label{color:#999;display:block;margin:0 0 3px}#poststuff #woocommerce-order-totals .total_row p.first{float:left;width:49%;clear:left}#poststuff #woocommerce-order-totals .total_row p.first input,#poststuff #woocommerce-order-totals .total_row p.first select{width:100%}#poststuff #woocommerce-order-totals .total_row p.last{float:right;width:49%;clear:none}#poststuff #woocommerce-order-totals .total_row p.last input,#poststuff #woocommerce-order-totals .total_row p.last select{width:100%}#poststuff #woocommerce-order-totals .total_row p.wide{clear:both}#poststuff #woocommerce-order-totals .total_row p.wide input,#poststuff #woocommerce-order-totals .total_row p.wide select{width:100%}#poststuff #woocommerce-order-totals .total_row a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row a.delete_total_row{padding:0;text-decoration:none;font-size:12px;line-height:18px;width:18px;height:18px;text-align:center;color:#fff;float:right;background-color:#d54e21;-webkit-border-radius:100%;-moz-border-radius:100%;-o-border-radius:100%;border-radius:100%;position:absolute;top:0;right:0;margin:-9px -9px 0 0;display:none;font-weight:bold;border:2px solid #fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.4);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.4)}#poststuff #woocommerce-order-totals .total_row a.delete_tax_row:hover,#poststuff #woocommerce-order-totals .total_row a.delete_total_row:hover{background-color:#b32c00}#poststuff #woocommerce-order-totals .total_row:hover a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row:focus a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row:hover a.delete_total_row,#poststuff #woocommerce-order-totals .total_row:focus a.delete_total_row{display:block}#poststuff #woocommerce-order-notes .inside{margin:0;padding:0}#poststuff #woocommerce-order-notes .inside ul.order_notes li{padding:0 10px}.woocommerce_order_items_wrapper{margin:0;overflow:auto}.woocommerce_order_items_wrapper table.woocommerce_order_items{width:100%;background:#fff}.woocommerce_order_items_wrapper table.woocommerce_order_items thead th{background:#ececec;padding:8px;font-size:11px;text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th,.woocommerce_order_items_wrapper table.woocommerce_order_items td{padding:8px;text-align:left;line-height:26px;vertical-align:top;border-bottom:1px dotted #ececec}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th input,.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th textarea,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th select,.woocommerce_order_items_wrapper table.woocommerce_order_items td select{width:50%}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th input,.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th textarea,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{font-size:14px;padding:4px;color:#555}.woocommerce_order_items_wrapper table.woocommerce_order_items td.check-column{padding:8px;width:1%}.woocommerce_order_items_wrapper table.woocommerce_order_items .item{min-width:200px}.woocommerce_order_items_wrapper table.woocommerce_order_items .center,.woocommerce_order_items_wrapper table.woocommerce_order_items .variation-id{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class{text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label{white-space:nowrap;color:#999;font-size:.833em}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label input{display:inline}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class input{width:70px;vertical-align:middle;text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class select{width:85px;height:26px;vertical-align:middle;font-size:1em}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input{text-align:center;width:50px}.woocommerce_order_items_wrapper table.woocommerce_order_items span.subtotal{opacity:.5}.woocommerce_order_items_wrapper table.woocommerce_order_items td.tax_class,.woocommerce_order_items_wrapper table.woocommerce_order_items th.tax_class{text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items .calculated{border-color:#ae8ca2;border-style:dotted}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr th,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr th{border:0;padding:1px 4px 1px 0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr td{padding:1px 4px 1px 0;border:0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td input,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr td input{min-width:50px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb{text-align:left;width:27px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb a{display:block}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb img{padding:1px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:21px;height:21px}.woocommerce_order_items_wrapper table.woocommerce_order_items tr.fee .thumb{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat center}#woocommerce_customers p.search-box{margin:6px 0 4px;float:left}#woocommerce_customers .tablenav{float:right;clear:none}.widefat.customers td{vertical-align:middle;padding:4px 7px}.widefat .column-order_title{width:15%}.widefat .column-order_title time{display:block;color:#999;margin:3px 0}.widefat .column-orders,.widefat .column-paying,.widefat .column-spent{text-align:center;width:8%}.widefat .column-last_order{width:11%}.widefat .column-order_actions,.widefat .column-user_actions,.widefat .column-wc_actions{width:110px}.widefat .column-order_actions a.button,.widefat .column-user_actions a.button,.widefat .column-wc_actions a.button{float:left;margin:0 4px 2px 0;cursor:pointer;padding:3px 4px;height:auto}.widefat .column-order_actions a.button img,.widefat .column-user_actions a.button img,.widefat .column-wc_actions a.button img{display:block;width:12px;height:auto}.widefat small.meta{display:block;color:#999;font-size:inherit;margin:3px 0}.widefat .column-order_total,.widefat .column-order_date{width:9%}.widefat .column-order_status{width:45px;text-align:center}.widefat .column-order_status mark{display:block;text-indent:-999px;position:relative;height:1em;width:1em;background:0;font-size:1.4em;margin:0 auto}.widefat .column-order_status mark.pending:after,.widefat .column-order_status mark.completed:after,.widefat .column-order_status mark.on-hold:after,.widefat .column-order_status mark.failed:after,.widefat .column-order_status mark.cancelled:after,.widefat .column-order_status mark.processing:after,.widefat .column-order_status mark.refunded:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001"}.widefat .column-order_status mark.pending:after{content:"\e012";color:#de9e0c}.widefat .column-order_status mark.completed:after{content:"\e015";color:#21759b}.widefat .column-order_status mark.on-hold:after{content:"\e033";color:#999}.widefat .column-order_status mark.failed:after{content:"\e016";color:#d0c21f}.widefat .column-order_status mark.cancelled:after{content:"\e013";color:#d54e21}.widefat .column-order_status mark.processing:after{content:"\e011";color:#73a724}.widefat .column-order_status mark.refunded:after{content:"\e014";color:#999}.widefat td.column-order_status{padding-top:9px}.column-customer_message .note-on{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto;color:#999}.column-customer_message .note-on:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e026";line-height:16px}.column-order_notes .note-on{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto;color:#999}.column-order_notes .note-on:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e027";line-height:16px}.order_actions .processing,.order_actions .complete,.order_actions .view{display:block;text-indent:-999px;position:relative;height:1em;width:1em;padding:0!important;height:2em!important;width:2em}.order_actions .processing:after,.order_actions .complete:after,.order_actions .view:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001";line-height:1.85}.order_actions .processing:after{content:"\e00f"}.order_actions .complete:after{content:"\e017"}.order_actions .view:after{content:"\e010"}ul.order_notes{padding:2px 0 0 0}ul.order_notes li .note_content{padding:10px;background:#efefef;position:relative}ul.order_notes li .note_content p{margin:0;padding:0}ul.order_notes li p.meta{padding:10px;color:#999;margin:0;font-size:11px}ul.order_notes li p.meta .exact-date{border-bottom:1px dotted #999}ul.order_notes li a.delete_note{color:#f00}ul.order_notes li .note_content:after{content:"";display:block;position:absolute;bottom:-15px;left:30px;width:0;height:0;border-width:15px 15px 0 0;border-style:solid;border-color:#efefef transparent}ul.order_notes li.customer-note .note_content{background:#d7cad2}ul.order_notes li.customer-note .note_content:after{border-color:#d7cad2 transparent}.add_note{border-top:1px solid #ddd;padding:10px 10px 0}.add_note h4{margin-top:5px!important}.add_note #add_order_note{width:100%;height:50px}table.wp-list-table .column-thumb{width:52px;text-align:center;white-space:nowrap}table.wp-list-table .column-name{width:22%}table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag{width:11%!important}table.wp-list-table .column-featured,table.wp-list-table .column-product_type{width:46px;text-align:left!important}table.wp-list-table .column-customer_message,table.wp-list-table .column-order_notes{width:46px;text-align:center}table.wp-list-table .column-customer_message img,table.wp-list-table .column-order_notes img{margin:0 auto;padding-top:0!important}table.wp-list-table .manage-column.column-featured img,table.wp-list-table .manage-column.column-product_type img{padding-left:2px}table.wp-list-table img{margin:1px 2px}table.wp-list-table td.column-thumb img{margin:0;vertical-align:middle;width:auto;height:auto;max-width:40px;max-height:40px}table.wp-list-table span.na{color:#999}table.wp-list-table .column-is_in_stock{text-align:left!important}table.wp-list-table span.wc-image,table.wp-list-table span.wc-featured,table.wp-list-table span.wc-type{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto}table.wp-list-table span.wc-image:before,table.wp-list-table span.wc-featured:before,table.wp-list-table span.wc-type:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c"}table.wp-list-table span.wc-featured{margin:0;cursor:pointer}table.wp-list-table span.wc-featured:before{content:"\e020"}table.wp-list-table span.wc-featured.not-featured:before{content:"\e021"}table.wp-list-table td.column-featured span.wc-featured{font-size:1.2em}table.wp-list-table span.wc-type{margin:0}table.wp-list-table span.wc-type:before{content:"\e01d"}table.wp-list-table span.product-type{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.2em}table.wp-list-table span.product-type:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e006"}table.wp-list-table span.product-type.grouped:before{content:"\e002"}table.wp-list-table span.product-type.external:before{content:"\e034"}table.wp-list-table span.product-type.variable:before{content:"\e003"}table.wp-list-table span.product-type.downloadable:before{content:"\e001"}table.wp-list-table span.product-type.virtual:before{content:"\e000"}table.wp-list-table mark.instock{font-weight:bold;color:green;background:transparent none;line-height:1}table.wp-list-table mark.outofstock{font-weight:bold;color:#a44;background:transparent none;line-height:1}table.wp-list-table .order-notes_head,table.wp-list-table .notes_head,table.wp-list-table .status_head{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto}table.wp-list-table .order-notes_head:after,table.wp-list-table .notes_head:after,table.wp-list-table .status_head:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001"}table.wp-list-table .order-notes_head:after{content:"\e028"}table.wp-list-table .notes_head:after{content:"\e026"}table.wp-list-table .status_head:after{content:"\e011"}table.wp-list-table .column-order_items{width:12%}table.wp-list-table .column-order_items table.order_items{width:100%;margin:3px 0 0 0;padding:0;display:none}table.wp-list-table .column-order_items table.order_items td{border:0;margin:0;padding:0 0 3px}table.wp-list-table .column-order_items table.order_items td.qty{color:#999;padding-right:6px;text-align:left}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:22%;padding:0 1.4%;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;text-align:center}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:4em;line-height:1.2em;font-weight:normal;text-align:center;display:block}#woocommerce_dashboard_right_now p.sub,#woocommerce_dashboard_right_now .table,#woocommerce_dashboard_right_now .versions{margin:-12px}#woocommerce_dashboard_right_now .inside{font-size:12px;margin-bottom:0;padding-top:20px}#woocommerce_dashboard_right_now p.sub{padding:5px 0 15px;color:#8f8f8f;font-size:14px;position:absolute;top:-17px;left:15px}#woocommerce_dashboard_right_now .table{margin:0;padding:0;position:relative}#woocommerce_dashboard_right_now .table_shop_content{float:left;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now .table_orders{float:right;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now table td{padding:3px 0;white-space:nowrap}#woocommerce_dashboard_right_now table tr.first td{border-top:0}#woocommerce_dashboard_right_now td.b{padding-right:6px;text-align:right;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;width:1%}#woocommerce_dashboard_right_now td.b a{font-size:18px}#woocommerce_dashboard_right_now td.b a:hover{color:#d54e21}#woocommerce_dashboard_right_now .t{font-size:12px;padding-right:12px;padding-top:6px;color:#777}#woocommerce_dashboard_right_now .t a{white-space:nowrap}#woocommerce_dashboard_right_now .on-hold a{color:red}#woocommerce_dashboard_right_now .pending a{color:#e66f00}#woocommerce_dashboard_right_now .completed a{color:green}#woocommerce_dashboard_right_now .versions{padding:6px 10px 12px;clear:both}#woocommerce_dashboard_right_now .versions .b{font-weight:bold}#woocommerce_dashboard_right_now a.button{float:right;clear:right;position:relative;top:-5px}ul.recent-orders li,ul.stock_list li{overflow:hidden;zoom:1;border-bottom:#ececec 1px solid;padding:0 0 8px;margin:0 0 8px}ul.recent-orders li .order-status,ul.stock_list li .order-status{float:right}ul.recent-orders li small,ul.stock_list li small{color:#999}ul.recent-orders li .order-cost,ul.stock_list li .order-cost,ul.recent-orders li .order-customer,ul.stock_list li .order-customer{margin-left:8px}ul.recent-orders li .completed,ul.stock_list li .completed{color:green}ul.recent-orders li .on-hold,ul.stock_list li .on-hold{color:red}ul.recent-orders li .processing,ul.stock_list li .processing{color:#21759b}ul.recent-orders li .pending,ul.stock_list li .pending{color:#e66f00}ul.recent-orders li .refunded,ul.stock_list li .refunded,ul.recent-orders li .cancelled,ul.stock_list li .cancelled{color:#999}ul.recent-orders.stock_list small,ul.stock_list.stock_list small{float:right}ul.recent-orders.stock_list a,ul.stock_list.stock_list a{text-decoration:none}mark.notice{background:#fff;color:red;margin:0 0 0 10px}a.export_rates,a.import_rates{float:right;margin-left:9px;margin-top:-2px;margin-bottom:0}table.wc_tax_rates,table.wc_input_table{width:100%}table.wc_tax_rates td,table.wc_input_table td{padding:0;border-right:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;border-top:0;background:#fff}table.wc_tax_rates td input,table.wc_input_table td input{width:100%;padding:5px 7px;margin:0;border:0;background:transparent none}table.wc_tax_rates td.compound,table.wc_input_table td.compound,table.wc_tax_rates td.apply_to_shipping,table.wc_input_table td.apply_to_shipping{padding:5px 7px;vertical-align:middle}table.wc_tax_rates td.compound input,table.wc_input_table td.compound input,table.wc_tax_rates td.apply_to_shipping input,table.wc_input_table td.apply_to_shipping input{width:auto;padding:0}table.wc_tax_rates td:last-child,table.wc_input_table td:last-child{border-right:0}table.wc_tax_rates tr.current td,table.wc_input_table tr.current td{background-color:#fefbcc}table.wc_tax_rates .item_cost,table.wc_input_table .item_cost,table.wc_tax_rates .cost,table.wc_input_table .cost{text-align:right}table.wc_tax_rates .item_cost input,table.wc_input_table .item_cost input,table.wc_tax_rates .cost input,table.wc_input_table .cost input{text-align:right}table.wc_tax_rates th.sort,table.wc_input_table th.sort{width:17px;padding:0}table.wc_tax_rates td.sort,table.wc_input_table td.sort{padding:0 0 0 2em;cursor:move;position:relative;background:#f9f9f9}table.wc_tax_rates td.sort:before,table.wc_input_table td.sort:before{content:"";position:absolute;top:.75em;left:.5em;width:1em;height:.125em;border-top:.375em double #777;border-bottom:.125em solid #777}table.wc_tax_rates .button,table.wc_input_table .button{float:left;margin-right:5px}table.wc_tax_rates .export,table.wc_input_table .export,table.wc_tax_rates .import,table.wc_input_table .import{float:right;margin-right:0;margin-left:5px}table.wc_tax_rates span.tips,table.wc_input_table span.tips{padding:0 3px}table.wc_tax_rates .pagination,table.wc_input_table .pagination{float:right}table.wc_tax_rates .pagination .button,table.wc_input_table .pagination .button{margin-left:5px;margin-right:0}table.wc_tax_rates .pagination .current,table.wc_input_table .pagination .current{background:#bbb;text-shadow:none}table.wc_gateways,table.wc_shipping{position:relative}table.wc_gateways td,table.wc_shipping td{vertical-align:middle;cursor:move;padding:7px}table.wc_gateways th,table.wc_shipping th{padding:9px 7px!important;vertical-align:middle}table.wc_gateways td.name,table.wc_shipping td.name{font-weight:bold}table.wc_gateways .settings,table.wc_shipping .settings{text-align:right}table.wc_gateways .radio,table.wc_shipping .radio,table.wc_gateways .default,table.wc_shipping .default,table.wc_gateways .status,table.wc_shipping .status{text-align:center}table.wc_gateways .radio .tips,table.wc_shipping .radio .tips,table.wc_gateways .default .tips,table.wc_shipping .default .tips,table.wc_gateways .status .tips,table.wc_shipping .status .tips{margin:0 auto}table.wc_gateways .radio input,table.wc_shipping .radio input,table.wc_gateways .default input,table.wc_shipping .default input,table.wc_gateways .status input,table.wc_shipping .status input{margin:0}img.help_tip{vertical-align:middle;margin:0 0 0 9px}.postbox img.help_tip{margin-top:-4px}.status-enabled,.status-disabled{font-size:1.4em;display:block;text-indent:-999px;position:relative;height:1em;width:1em}.status-enabled:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e015";color:#ad74a2}.woocommerce #template div{margin:0}.woocommerce #template div p .button{float:right;margin-left:10px;margin-top:-4px}.woocommerce #template div .editor textarea{margin-bottom:8px}.woocommerce textarea[disabled="disabled"]{background:#dfdfdf!important}.woocommerce table.form-table{margin:0}.woocommerce table.form-table .forminp-radio ul{margin:0}.woocommerce table.form-table .forminp-radio ul li{line-height:1.4em}.woocommerce table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.woocommerce table.form-table input.regular-input{width:25em}.woocommerce table.form-table textarea.wide-input{width:100%}.woocommerce table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.woocommerce table.form-table span.help_tip{cursor:help;color:#21759b}.woocommerce table.form-table th{position:relative;padding-right:24px}.woocommerce table.form-table .chosen-container{vertical-align:top;margin-bottom:3px}.woocommerce table.form-table table.widefat th{padding-right:inherit}.woocommerce table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.woocommerce table.form-table fieldset{margin-top:4px}.woocommerce table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.woocommerce table.form-table fieldset p.description{margin-bottom:8px}.woocommerce table.form-table fieldset:first-child{margin-top:0}.woocommerce table.form-table .color_box{border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding:4px 6px;float:left;width:80px;margin:0 10px 0 0}.woocommerce table.form-table .color_box strong{text-align:left;display:block;padding:0 0 2px;font-size:.92em}.woocommerce table.form-table .color_box strong img{float:right;margin:1px 0 0 0}.woocommerce table.form-table .color_box input.colorpick{width:100%;margin:0;font-family:monospace;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.form-table .color_box .iris-picker{margin:15px 0 0 -7px}.woocommerce table.form-table .color_box_clear{display:block;clear:both;padding-bottom:10px}.woocommerce table.form-table .iris-picker{z-index:100;position:absolute;display:none;border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.woocommerce table.form-table .iris-picker .ui-slider{border:0!important;background:none transparent!important;margin:0!important;width:auto!important;height:auto!important}.woocommerce table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.woocommerce table.form-table .image_width_settings{vertical-align:middle}.woocommerce table.form-table .image_width_settings label{margin-left:10px}.woocommerce #tabs-wrap table a.remove{margin-left:4px}.woocommerce #tabs-wrap table p{margin:0 0 4px!important;overflow:hidden;zoom:1}.woocommerce #tabs-wrap table p a.add{float:left}#wp-excerpt-editor-container{background:#fff}#product_variation-parent #parent_id{width:100%}#postimagediv img{border:1px solid #d5d5d5;max-width:100%}#woocommerce-product-images .inside{margin:0;padding:0}#woocommerce-product-images .inside .add_product_images{padding:0 9px}#woocommerce-product-images .inside #product_images_container{padding:0 0 0 9px}#woocommerce-product-images .inside #product_images_container ul{*zoom:1;margin:0;padding:0}#woocommerce-product-images .inside #product_images_container ul:before,#woocommerce-product-images .inside #product_images_container ul:after{content:" ";display:table}#woocommerce-product-images .inside #product_images_container ul:after{clear:both}#woocommerce-product-images .inside #product_images_container ul li.image,#woocommerce-product-images .inside #product_images_container ul li.add,#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder{width:80px;height:80px;float:left;cursor:move;border:1px solid #d5d5d5;margin:9px 9px 0 0;background:#f7f7f7;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#woocommerce-product-images .inside #product_images_container ul li.image img,#woocommerce-product-images .inside #product_images_container ul li.add img,#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder img{width:100%;height:auto;display:block}#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder{border:3px dashed #ddd;position:relative}#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c";font-size:2.618em;line-height:72px;color:#ddd}#woocommerce-product-images .inside #product_images_container ul ul.actions{position:absolute;top:-8px;right:-8px;padding:2px;display:none}#woocommerce-product-images .inside #product_images_container ul ul.actions li{float:right;margin:0 0 0 2px}#woocommerce-product-images .inside #product_images_container ul ul.actions li a{width:1em;height:1em;margin:0;height:0;display:block;overflow:hidden}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.tips{cursor:pointer}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.view{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.4em}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.view:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c";background-color:#000;color:#fff}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.4em}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e013";color:white;background-color:#000;-webkit-border-radius:100%;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,0.2)}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete:hover:before{background-color:#d54e21}#woocommerce-product-images .inside #product_images_container ul li:hover ul.actions{display:block}#woocommerce-product-data h3.hndle{padding:4px 10px}#woocommerce-product-data h3.hndle span{display:block;vertical-align:middle;line-height:24px}#woocommerce-product-data h3.hndle span span{display:inline;line-height:inherit;vertical-align:baseline}#woocommerce-product-data h3.hndle select{font-family:sans-serif;margin:0}#woocommerce-product-data h3.hndle label{padding-right:1em;font-size:12px;vertical-align:baseline}#woocommerce-product-data h3.hndle label:first-child{margin-right:1em;border-right:1px solid #dfdfdf}#woocommerce-product-data h3.hndle input,#woocommerce-product-data h3.hndle select{margin:-3px 0 0 .5em;vertical-align:middle}#woocommerce-product-data .panel-wrap{background:#f8f8f8;padding-left:153px}#woocommerce-product-data .woocommerce_options_panel,#woocommerce-product-data .wc-metaboxes-wrapper{float:right;width:100%}#woocommerce-product-data .woocommerce_options_panel p,#woocommerce-product-data .wc-metaboxes-wrapper p,#woocommerce-product-data .woocommerce_options_panel .wc-metaboxes,#woocommerce-product-data .wc-metaboxes-wrapper .wc-metaboxes,#woocommerce-product-data .woocommerce_options_panel p.toolbar,#woocommerce-product-data .wc-metaboxes-wrapper p.toolbar{padding-left:12px!important;padding-right:20px!important}#woocommerce-product-data .wc-tabs-back{position:absolute;top:0;left:0;bottom:0;background:#f1f1f1;width:145px;border-right:1px solid #dfdfdf}#woocommerce-product-data ul.product_data_tabs,.woocommerce ul.wc-tabs{background:#f1f1f1;line-height:1em;float:left;width:145px;margin:0;position:relative;padding:0 0 10px;margin-left:-153px}#woocommerce-product-data ul.product_data_tabs li,.woocommerce ul.wc-tabs li{display:block;padding:0;margin:0}#woocommerce-product-data ul.product_data_tabs li a,.woocommerce ul.wc-tabs li a{padding:5px;line-height:18px!important;margin:0;display:block;background:#f1f1f1;text-decoration:none;border-bottom:1px solid #f1f1f1;border-top:1px solid #f1f1f1;padding-left:10px}#woocommerce-product-data ul.product_data_tabs li a:before,.woocommerce ul.wc-tabs li a:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e028"}#woocommerce-product-data ul.product_data_tabs li:first-child a,.woocommerce ul.wc-tabs li:first-child a{border-top:0!important}#woocommerce-product-data ul.product_data_tabs li.general_options a:before,.woocommerce ul.wc-tabs li.general_options a:before{content:"\e006"}#woocommerce-product-data ul.product_data_tabs li.inventory_options a:before,.woocommerce ul.wc-tabs li.inventory_options a:before{content:"\e02c"}#woocommerce-product-data ul.product_data_tabs li.shipping_options a:before,.woocommerce ul.wc-tabs li.shipping_options a:before{content:"\e01a"}#woocommerce-product-data ul.product_data_tabs li.linked_product_options a:before,.woocommerce ul.wc-tabs li.linked_product_options a:before{content:"\e00d"}#woocommerce-product-data ul.product_data_tabs li.attribute_options a:before,.woocommerce ul.wc-tabs li.attribute_options a:before{content:"\e02b"}#woocommerce-product-data ul.product_data_tabs li.advanced_options a:before,.woocommerce ul.wc-tabs li.advanced_options a:before{content:"\e01c"}#woocommerce-product-data ul.product_data_tabs li.variation_options a:before,.woocommerce ul.wc-tabs li.variation_options a:before{content:"\e003"}#woocommerce-product-data ul.product_data_tabs li.active a,.woocommerce ul.wc-tabs li.active a{border-color:#dfdfdf;position:relative;background-color:#f8f8f8;color:#555;margin:0 -1px 0 0}@media only screen and (max-width:900px){#woocommerce-product-data .panel-wrap{padding-left:35px}#woocommerce-product-data .wc-tabs-back{position:absolute;top:0;left:0;bottom:0;background:#f1f1f1;width:28px;border-right:1px solid #dfdfdf}#woocommerce-product-data ul.product_data_tabs,.woocommerce ul.wc-tabs{width:28px;margin-left:-35px}#woocommerce-product-data ul.product_data_tabs li a,.woocommerce ul.wc-tabs li a{width:28px;padding:28px 0 0 0!important;overflow:hidden;height:0}#woocommerce-product-data ul.product_data_tabs li.active a,.woocommerce ul.wc-tabs li.active a{width:29px}}#woocommerce-product-data .inside,#woocommerce-product-type-options .inside,#woocommerce-order-data .inside,#woocommerce-order-downloads .inside,#woocommerce-coupon-data .inside{padding:0;margin:0}.woocommerce_options_panel,.panel{padding:9px 9px 9px 9px;color:#555}.woocommerce_page_settings .woocommerce_options_panel,.panel{padding:0}#woocommerce-product-type-options .panel,#woocommerce-product-specs .inside{padding:9px;margin:0}.woocommerce_options_panel p,#woocommerce-product-type-options .panel p{margin:0 0 9px;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel p:after,#woocommerce-product-type-options .panel p:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce_options_panel .checkbox,table.woocommerce_variable_attributes .checkbox{vertical-align:middle;margin:7px 0;width:auto}.woocommerce_variations .downloadable_files table,.woocommerce_options_panel .downloadable_files table{width:100%;padding:0!important}.woocommerce_variations .downloadable_files table th,.woocommerce_options_panel .downloadable_files table th{padding:7px 0 7px 7px}.woocommerce_variations .downloadable_files table td,.woocommerce_options_panel .downloadable_files table td{vertical-align:middle!important;padding:4px 0 4px 7px;position:relative}.woocommerce_variations .downloadable_files table td:last-child,.woocommerce_options_panel .downloadable_files table td:last-child{padding-right:7px}.woocommerce_variations .downloadable_files table td input.input_text,.woocommerce_options_panel .downloadable_files table td input.input_text{width:100%;float:none;margin:1px 0}.woocommerce_variations .downloadable_files table td .upload_file_button,.woocommerce_options_panel .downloadable_files table td .upload_file_button{float:right;width:auto;cursor:pointer}.woocommerce_variations .downloadable_files table td .delete,.woocommerce_options_panel .downloadable_files table td .delete{display:block;text-indent:-999px;position:relative;height:1em;width:1em}.woocommerce_variations .downloadable_files table td .delete:before,.woocommerce_options_panel .downloadable_files table td .delete:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001";content:"\e013";color:#999}.woocommerce_variations .downloadable_files table td .delete:hover:before,.woocommerce_options_panel .downloadable_files table td .delete:hover:before{color:red}.woocommerce_variations .downloadable_files table th.sort,.woocommerce_options_panel .downloadable_files table th.sort{width:17px;padding:0}.woocommerce_variations .downloadable_files table td.sort,.woocommerce_options_panel .downloadable_files table td.sort{padding:0 0 0 1.5em;cursor:move;position:relative;background:#f9f9f9}.woocommerce_variations .downloadable_files table td.sort:before,.woocommerce_options_panel .downloadable_files table td.sort:before{content:"";position:absolute;top:1em;left:.5em;width:1em;height:.125em;border-top:.375em double #999;border-bottom:.125em solid #999}.woocommerce_options_panel .downloadable_files{padding:0 9px 0 162px;position:relative;margin:9px 0 9px}.woocommerce_options_panel .downloadable_files label{position:absolute;left:0;margin:0 0 0 12px;line-height:24px}.woocommerce_options_panel p{margin:9px 0 9px}.woocommerce_options_panel label,.woocommerce_options_panel legend{float:left;width:150px;padding:0}.woocommerce_options_panel label .req,.woocommerce_options_panel legend .req{font-weight:bold;font-style:normal;color:red}.woocommerce_options_panel .description{padding:0;margin:0 0 0 7px}.woocommerce_options_panel .description-block{margin-left:0;display:block}.woocommerce_options_panel textarea,.woocommerce_options_panel input,.woocommerce_options_panel select{margin:0}.woocommerce_options_panel textarea{vertical-align:top;height:3.5em;line-height:1.5em}.woocommerce_options_panel input{width:50%;float:left}.woocommerce_options_panel input.button{width:auto;margin-left:8px}.woocommerce_options_panel select{float:left}.woocommerce_options_panel .short{width:20%}.woocommerce_options_panel .sized{width:auto!important;margin-right:6px}.woocommerce_options_panel .options_group{border-top:1px solid white;border-bottom:1px solid #dfdfdf}.woocommerce_options_panel .options_group:first-child{border-top:0}.woocommerce_options_panel .options_group:last-child{border-bottom:0}.woocommerce_options_panel .options_group fieldset{margin:9px 0;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel .options_group fieldset label{width:auto;float:none}.woocommerce_options_panel .options_group fieldset ul{float:left;width:50%;margin:0;padding:0}.woocommerce_options_panel .options_group fieldset ul li{margin:0;width:auto}.woocommerce_options_panel .options_group fieldset ul li input{width:auto;float:none;margin-right:4px}.woocommerce_options_panel .dimensions_field .wrap input{margin-right:.2%;width:6.6%}.woocommerce_options_panel .dimensions_field .wrap .last{margin-right:0}#woocommerce-product-data input.dp-applied{float:left}#grouped_product_options,#virtual_product_options,#simple_product_options{padding:12px;font-style:italic;color:#666}.wc-metaboxes-wrapper .toolbar{margin:0!important;border-top:1px solid white;border-bottom:1px solid #dfdfdf;padding:9px 12px!important}.wc-metaboxes-wrapper .toolbar:first-child{border-top:0}.wc-metaboxes-wrapper .toolbar:last-child{border-bottom:0}.wc-metaboxes-wrapper p.toolbar{overflow:hidden;zoom:1}.wc-metaboxes-wrapper select.attribute_taxonomy,.wc-metaboxes-wrapper button.add_attribute,.wc-metaboxes-wrapper button.add_variable_attribute,.wc-metaboxes-wrapper .fr{float:right;margin:0 0 0 6px}.wc-metaboxes-wrapper .wc-metaboxes{border-bottom:1px solid #dfdfdf;padding:0 12px 0}.wc-metaboxes-wrapper .wc-metabox-sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;margin-bottom:9px;border-width:1px;border-style:dashed}.wc-metaboxes-wrapper .wc-metabox{background:#ececec;border:1px solid #ececec;margin:9px 0!important;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wc-metaboxes-wrapper .wc-metabox.closed{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.wc-metaboxes-wrapper .wc-metabox h3{margin:0!important;padding:6px!important;font-size:1em!important;overflow:hidden;zoom:1;cursor:move}.wc-metaboxes-wrapper .wc-metabox h3 button{float:right}.wc-metaboxes-wrapper .wc-metabox h3 strong{font-weight:normal;line-height:24px}.wc-metaboxes-wrapper .wc-metabox h3 select{font-family:sans-serif}.wc-metaboxes-wrapper .wc-metabox h3 .handlediv{background-position:6px 5px!important;display:none;height:24px}.wc-metaboxes-wrapper .wc-metabox h3.fixed{cursor:pointer!important}.wc-metaboxes-wrapper .wc-metabox h3:hover .handlediv{display:block}.wc-metaboxes-wrapper .wc-metabox table{width:100%;position:relative;background:#fff;padding:3px}.wc-metaboxes-wrapper .wc-metabox table td{text-align:left;padding:6px 6px;vertical-align:top;border:0}.wc-metaboxes-wrapper .wc-metabox table td label{text-align:left;display:block;line-height:21px}.wc-metaboxes-wrapper .wc-metabox table td input{float:left;min-width:200px}.wc-metaboxes-wrapper .wc-metabox table td input,.wc-metaboxes-wrapper .wc-metabox table td textarea{width:100%;margin:0;display:block;font-size:14px;padding:4px;color:#555}.wc-metaboxes-wrapper .wc-metabox table td select,.wc-metaboxes-wrapper .wc-metabox table td .chosen-container{width:100%!important}.wc-metaboxes-wrapper .wc-metabox table td input.short{width:200px}.wc-metaboxes-wrapper .wc-metabox table td input.checkbox{width:auto;min-width:inherit;vertical-align:middle;display:inline;float:none}.wc-metaboxes-wrapper .wc-metabox table td.attribute_name{width:200px}.wc-metaboxes-wrapper .wc-metabox table .plus,.wc-metaboxes-wrapper .wc-metabox table .minus{margin-top:6px}.wc-metaboxes-wrapper .wc-metabox table .fl{float:left}.wc-metaboxes-wrapper .wc-metabox table .fr{float:right}.wc-metaboxes-wrapper .expand_all,.wc-metaboxes-wrapper .close_all{float:right;margin-left:14px;line-height:22px;text-decoration:none}.wc-metaboxes-wrapper .expand_all:before,.wc-metaboxes-wrapper .close_all:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e036";font-size:.8em;color:#999}.wc-metaboxes-wrapper .expand_all:before{content:"\e035"}#variable_product_options .woocommerce_variation table{background:#f5f5f5;padding:6px}#variable_product_options .woocommerce_variation table td input{min-width:inherit!important}#variable_product_options .woocommerce_variation table td.dimensions_field input{width:32%;margin-right:2%}#variable_product_options .woocommerce_variation table td.dimensions_field .last{margin-right:0}#variable_product_options .woocommerce_variation table td.options{width:150px}#variable_product_options .woocommerce_variation table td.options label{margin-bottom:6px}#variable_product_options .woocommerce_variation table td.data{padding:0 0 0 12px}#variable_product_options .woocommerce_variation table td.data table.data_table{width:100%;padding:0 12px 6px 12px;background:#fff;border:1px solid #dfdfdf;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table.data_table td{width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table.data_table:before{content:"";display:block;position:absolute;top:33px;left:0;margin:0 0 0 -1px;border:7px solid #dfdfdf;border-color:transparent transparent transparent #dfdfdf}#variable_product_options .woocommerce_variation table td.data table.data_table:after{content:"";display:block;position:absolute;top:34px;left:0;margin:0 0 0 -1px;border:6px solid #f5f5f5;border-color:transparent transparent transparent #f5f5f5}#variable_product_options .woocommerce_variation table td.upload_image{white-space:nowrap;width:75px}#variable_product_options .woocommerce_variation table td.upload_image img{float:none;width:73px;border:1px solid #dfdfdf}#variable_product_options .woocommerce_variation table td.upload_image .button{margin:0;padding:4px 10px;width:auto;float:none;vertical-align:middle}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button{display:block;position:relative}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button .overlay{display:none;width:75px;height:75px;position:absolute;top:0;left:0;margin:0;padding:0;opacity:.5;background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAXklEQVQYGW2OUQrAMAhDFy8+dnKnwiuh2I+aJulDZebDkfSie1b28Q7EXWrfvSm60RQnkQUC8ja7owpmL6d4GdDZ0cNNHyIhZEj4QYCxze6orsluAh8AnR0xKPR07weXJi8JGd3qqwAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button:hover .overlay{display:block}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button.remove .overlay{background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQYGY2OUQ6AMAxCZdm9jSev65K3YKNm+6EFBlVEHDxJJ3Pi0C72xlBNyTs3jU7wEUTTIB51GCp2CL8HLpHEdaOLb/N2dfuq9NT0zOo/M9q6EaImsd/uViMLVuD4KAAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table .cancel_sale_schedule,#variable_product_options .woocommerce_variation table .sale_schedule{float:right}#variable_product_options .woocommerce_variation table tr.sale_price_dates_fields td{padding-right:24px;position:relative}#variable_product_options .woocommerce_variation table tr.sale_price_dates_fields td img{position:absolute;right:0;bottom:0;padding:5px 0;margin:0 0 6px}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0 0}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip,.wc_error_tip{font-size:11px;color:#fff;padding:.5em .5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.1);box-shadow:1px 1px 3px rgba(0,0,0,0.1);text-align:center}#tiptip_content code,.chart-tooltip code,.wc_error_tip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.wc_error_tip{background:#d82223;max-width:20em;white-space:normal;position:absolute;margin:1.5em 1px 0 -1em;z-index:9999999}.wc_error_tip:after{content:"";display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}img.ui-datepicker-trigger{vertical-align:middle;margin-top:-1px;cursor:pointer}.woocommerce_options_panel img.ui-datepicker-trigger,.wc-metabox-content img.ui-datepicker-trigger{float:left;margin-right:8px;margin-top:4px;margin-left:4px}#ui-datepicker-div{display:none}.woocommerce-reports-wrap.woocommerce-reports-wrap,.woocommerce-reports-wide.woocommerce-reports-wrap{margin-left:300px;padding-top:18px}.woocommerce-reports-wrap.halved,.woocommerce-reports-wide.halved{margin:0;overflow:hidden;zoom:1}.woocommerce-reports-wrap .widefat td,.woocommerce-reports-wide .widefat td{vertical-align:top;padding:7px 7px}.woocommerce-reports-wrap .widefat td .description,.woocommerce-reports-wide .widefat td .description{margin:4px 0 0 0}.woocommerce-reports-wrap .postbox:after,.woocommerce-reports-wide .postbox:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce-reports-wrap .postbox h3,.woocommerce-reports-wide .postbox h3{cursor:default!important}.woocommerce-reports-wrap .postbox .inside,.woocommerce-reports-wide .postbox .inside{padding:10px;margin:0!important}.woocommerce-reports-wrap .postbox h3.stats_range,.woocommerce-reports-wide .postbox h3.stats_range{padding:0!important}.woocommerce-reports-wrap .postbox h3.stats_range .export_csv,.woocommerce-reports-wide .postbox h3.stats_range .export_csv{float:right;line-height:26px;border-left:1px solid #dfdfdf;padding:9px 10px;display:block;text-decoration:none}.woocommerce-reports-wrap .postbox h3.stats_range .export_csv:before,.woocommerce-reports-wide .postbox h3.stats_range .export_csv:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e00a";margin-right:4px}.woocommerce-reports-wrap .postbox h3.stats_range ul,.woocommerce-reports-wide .postbox h3.stats_range ul{list-style:none outside;margin:0;padding:0;zoom:1}.woocommerce-reports-wrap .postbox h3.stats_range ul:before,.woocommerce-reports-wide .postbox h3.stats_range ul:before,.woocommerce-reports-wrap .postbox h3.stats_range ul:after,.woocommerce-reports-wide .postbox h3.stats_range ul:after{content:" ";display:table}.woocommerce-reports-wrap .postbox h3.stats_range ul:after,.woocommerce-reports-wide .postbox h3.stats_range ul:after{clear:both}.woocommerce-reports-wrap .postbox h3.stats_range ul li,.woocommerce-reports-wide .postbox h3.stats_range ul li{float:left;margin:0;padding:0;line-height:26px}.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li a{border-right:1px solid #dfdfdf;padding:9px 10px;display:block;text-decoration:none}.woocommerce-reports-wrap .postbox h3.stats_range ul li.active,.woocommerce-reports-wide .postbox h3.stats_range ul li.active{background:#f9f9f9;-webkit-box-shadow:0 4px 0 0 #f9f9f9;box-shadow:0 4px 0 0 #f9f9f9}.woocommerce-reports-wrap .postbox h3.stats_range ul li.active a,.woocommerce-reports-wide .postbox h3.stats_range ul li.active a{color:#777}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom{padding:9px 10px;vertical-align:middle}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom form,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom form,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom div,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom div{display:inline;margin:0}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom form input.range_datepicker,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom form input.range_datepicker,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom div input.range_datepicker,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom div input.range_datepicker{padding:0;margin:0 10px 0 0;background:transparent;border:0;color:#777;text-align:center;-webkit-box-shadow:none;box-shadow:none}.woocommerce-reports-wrap .postbox .chart-with-sidebar,.woocommerce-reports-wide .postbox .chart-with-sidebar{padding:12px 12px 12px 249px;margin:0!important}.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar{width:225px;margin-left:-237px;float:left}.woocommerce-reports-wrap .postbox .chart-widgets,.woocommerce-reports-wide .postbox .chart-widgets{margin:0;padding:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget{margin:0 0 1em;background:#fafafa;border:1px solid #dfdfdf}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget:after,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget h4,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget h4{background:#fff;border:1px solid #dfdfdf;border-left-width:0;border-right-width:0;padding:10px;margin:0;color:#21759b;border-top-width:0;background-image:-webkit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9)}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget h4.section_title:hover,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget h4.section_title:hover{color:#d54e21}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title{cursor:pointer}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title span,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title span{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAFCAYAAACXU8ZrAAAAMElEQVQIW2OcOXPmfwYgSE9PZwTRyAAmB5bAphBZDK4bWRBdE4oVMEl067G6A919AJAYHtDVRR5EAAAAAElFTkSuQmCC) no-repeat right}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title.open,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title.open{color:#333}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title.open span,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title.open span{background-image:none}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section{border-bottom:1px solid #dfdfdf}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section:last-of-type,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section:last-of-type{border-radius:0 0 3px 3px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table{width:100%}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td{padding:7px 10px;vertical-align:top;border-top:1px solid #e5e5e5;line-height:1.4em}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table tr:first-child td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table tr:first-child td{border-top:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.count,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.count{background:#f5f5f5}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.name,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.name{padding-right:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.sparkline,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.sparkline{vertical-align:middle}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table .wc_sparkline,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table .wc_sparkline{width:32px;height:1em;display:block;float:right}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table tr.active td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table tr.active td{background:#f5f5f5}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget form,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget form,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget p,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget p{margin:0;padding:10px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget form .submit,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget form .submit,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget p .submit,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget p .submit{margin-top:10px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget #product_ids,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget #product_ids{width:100%}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .select_all,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .select_all,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .select_none,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .select_none{float:right;color:#999;margin-left:4px;margin-top:10px}.woocommerce-reports-wrap .postbox .chart-legend,.woocommerce-reports-wide .postbox .chart-legend{list-style:none outside;margin:0 0 1em;padding:0;border:1px solid #dfdfdf;border-right-width:0;border-bottom-width:0;background:#fff}.woocommerce-reports-wrap .postbox .chart-legend li,.woocommerce-reports-wide .postbox .chart-legend li{border-right:5px solid #aaa;color:#aaa;padding:1em 1.5em;display:block;margin:0;-webkit-transition:all ease .5s;box-shadow:inset 0 -1px 0 0 #dfdfdf}.woocommerce-reports-wrap .postbox .chart-legend li strong,.woocommerce-reports-wide .postbox .chart-legend li strong{font-size:2.618em;line-height:1.2em;color:#464646;font-weight:normal;display:block;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif}.woocommerce-reports-wrap .postbox .chart-legend li:hover,.woocommerce-reports-wide .postbox .chart-legend li:hover{box-shadow:inset 0 -1px 0 0 #dfdfdf,inset 300px 0 0 rgba(156,93,144,0.1);border-right:5px solid #9c5d90!important;padding-left:2em;color:#9c5d90}.woocommerce-reports-wrap .postbox .pie-chart-legend,.woocommerce-reports-wide .postbox .pie-chart-legend{margin:12px 0 0 0;overflow:hidden}.woocommerce-reports-wrap .postbox .pie-chart-legend li,.woocommerce-reports-wide .postbox .pie-chart-legend li{float:left;margin:0;padding:6px 0 0 0;border-top:4px solid #999;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:50%}.woocommerce-reports-wrap .postbox .stat,.woocommerce-reports-wide .postbox .stat{font-size:1.5em!important;font-weight:bold;text-align:center}.woocommerce-reports-wrap .postbox .chart-placeholder,.woocommerce-reports-wide .postbox .chart-placeholder{width:100%;height:650px;overflow:hidden;position:relative}.woocommerce-reports-wrap .postbox .chart-prompt,.woocommerce-reports-wide .postbox .chart-prompt{line-height:650px;margin:0;color:#999;font-size:1.2em;font-style:italic;text-align:center}.woocommerce-reports-wrap .postbox .chart-container,.woocommerce-reports-wide .postbox .chart-container{background:#fff;padding:12px;position:relative;border:1px solid #dfdfdf;border-radius:3px}.woocommerce-reports-wrap .postbox .main .chart-legend,.woocommerce-reports-wide .postbox .main .chart-legend{margin-top:12px}.woocommerce-reports-wrap .postbox .main .chart-legend li,.woocommerce-reports-wide .postbox .main .chart-legend li{border-right:0;margin:0 8px 0 0;float:left;border-top:4px solid #aaa}.woocommerce-reports-wrap .woocommerce-reports-main,.woocommerce-reports-wide .woocommerce-reports-main{float:left;min-width:100%}.woocommerce-reports-wrap .woocommerce-reports-main table td,.woocommerce-reports-wide .woocommerce-reports-main table td{padding:9px}.woocommerce-reports-wrap .woocommerce-reports-sidebar,.woocommerce-reports-wide .woocommerce-reports-sidebar{display:inline;width:281px;margin-left:-300px;clear:both;float:left}.woocommerce-reports-wrap .woocommerce-reports-left,.woocommerce-reports-wide .woocommerce-reports-left{width:49.5%;float:left}.woocommerce-reports-wrap .woocommerce-reports-right,.woocommerce-reports-wide .woocommerce-reports-right{width:49.5%;float:right}.woocommerce-wide-reports-wrap{padding-bottom:11px}.woocommerce-wide-reports-wrap .widefat .export-data{float:right}.woocommerce-wide-reports-wrap .widefat th,.woocommerce-wide-reports-wrap .widefat td{vertical-align:middle;padding:7px}form.report_filters p{vertical-align:middle}form.report_filters label,form.report_filters input,form.report_filters div{vertical-align:middle}.chart-tooltip{position:absolute;display:none;line-height:1}table.bar_chart{width:100%}table.bar_chart thead th{text-align:left;color:#ccc;padding:6px 0}table.bar_chart tbody th{padding:6px 0;width:25%;text-align:left!important;font-weight:normal!important;border-bottom:1px solid #fee}table.bar_chart tbody td{text-align:right;line-height:24px;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td span{color:#8a4b75;display:block}table.bar_chart tbody td span.alt{color:#47a03e;margin-top:6px}table.bar_chart tbody td.bars{position:relative;text-align:left;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td.bars span,table.bar_chart tbody td.bars a{text-decoration:none;clear:both;background:#8a4b75;float:left;display:block;line-height:24px;height:24px;-moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;-khtml-border-radius:3px;border-radius:3px}table.bar_chart tbody td.bars span.alt{clear:both;background:#47a03e}table.bar_chart tbody td.bars span.alt span{margin:0;color:#c5dec2!important;text-shadow:0 1px 0 #47a03e;background:transparent}.chosen-container-single .chosen-single{height:24px;line-height:25px}.chosen-container-single .chosen-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 2px!important}.chosen-container-active .chosen-single-with-drop div b{background-position:-18px 2px!important}.chosen-container-single .chosen-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chosen-container .chosen-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chosen-container-multi .chosen-choices .search-field input{height:21px!important}.woocommerce_options_panel .chosen-container-multi{width:50%!important;float:left}.woocommerce_options_panel .chosen-container-multi .search-field{min-width:50%}.woocommerce_options_panel .chosen-container-multi .search-field input{min-width:100%}@media only screen and (max-width:1280px){#order_data .order_data_column{width:48%}#order_data .order_data_column:first-child{width:100%}}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons-x2.png)!important;background-size:986px 91px!important}}.woocommerce-checkout .form-row .chosen-container{width:100%!important}.woocommerce-checkout .form-row .chosen-container-single .chosen-single{height:28px;line-height:29px}.woocommerce-checkout .form-row .chosen-container-single .chosen-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 3px!important}.woocommerce-checkout .form-row .chosen-container-active .chosen-single-with-drop div b{background-position:-18px 4px!important}.woocommerce-checkout .form-row .chosen-container-single .chosen-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce-checkout .form-row .chosen-container .chosen-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.woocommerce-checkout .form-row .chosen-container-single .chosen-single div b{background-image:url('../images/chosen-sprite@2x.png')!important;background-position:0 5px!important;background-repeat:no-repeat!important;background-size:52px 37px!important}.woocommerce-checkout .form-row .chosen-container-active .chosen-single-with-drop div b{background-position:-18px 5px!important}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,0.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:23px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;background:url('../images/chosen-sprite.png') -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;background:url('../images/chosen-sprite.png') no-repeat 0 2px}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type="text"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url('../images/chosen-sprite.png') no-repeat 100% -20px;background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,linear-gradient(#eee 1%,#fff 15%);font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.chosen-container .chosen-results{position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type="text"]{margin:1px 0;padding:5px;height:15px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#666;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-field .default{color:#999}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url('../images/chosen-sprite.png') -42px 1px no-repeat;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:transparent}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.chosen-container-active .chosen-choices li.search-field input[type="text"]{color:#111!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type="text"]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:0}.chosen-rtl .chosen-search input[type="text"]{padding:4px 5px 4px 20px;background:#fff url('../images/chosen-sprite.png') no-repeat -30px -20px;background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,linear-gradient(#eee 1%,#fff 15%);direction:rtl}.chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.chosen-rtl .chosen-search input[type="text"],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type="text"],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url('../images/chosen-sprite@2x.png')!important;background-size:52px 37px!important;background-repeat:no-repeat!important}} \ No newline at end of file +.clear{clear:both}.nobr{white-space:nowrap}@font-face{font-family:'WooCommerce';src:url('../fonts/WooCommerce.eot');src:url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'),url('../fonts/WooCommerce.woff') format('woff'),url('../fonts/WooCommerce.ttf') format('truetype'),url('../fonts/WooCommerce.svg#WooCommerce') format('svg');font-weight:normal;font-style:normal}.wc_addons_wrap .products{overflow:hidden}.wc_addons_wrap .products li{float:left;margin:0 10px 10px 0!important;padding:0;vertical-align:top;width:300px}.wc_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:162px;overflow:hidden;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.wc_addons_wrap .products li a img{max-width:258px;max-height:30px;padding:20px;display:block;margin:0;background:#fff;border-right:260px solid #fff}.wc_addons_wrap .products li a img.extension-thumb+h3{display:none}.wc_addons_wrap .products li a .price{display:none}.wc_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.wc_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.wc_addons_wrap .products li a:hover,.wc_addons_wrap .products li a:focus{background-color:#f1f1f1}.woocommerce-message{position:relative;z-index:100;border:1px solid #b76ca9!important;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);-moz-box-shadow:inset 0 0 15px rgba(0,0,0,0.04);box-shadow:inset 0 0 15px rgba(0,0,0,0.04);overflow:hidden;padding:10px 0 10px!important;background:#cc99c2 url(../images/message.png) no-repeat right bottom!important}.woocommerce-message .squeezer{max-width:960px;margin:0;padding:0 10px;text-align:left;overflow:hidden}.woocommerce-message h4{margin:5px 10px 5px 0;font-size:18px;line-height:27px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;font-weight:normal;color:#fff;text-shadow:0 1px 1px #b574a8;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;float:left;vertical-align:middle}.woocommerce-message p{margin:5px 0!important;padding:1px 2px!important;float:left!important;line-height:27px;vertical-align:middle}.woocommerce-message p a.button-primary{font-size:14px!important;line-height:16px!important;height:auto!important;-webkit-border-radius:3px;border-radius:3px;margin:0 5px 0 0;padding:5px 12px;vertical-align:middle;color:#fff;text-align:center;text-decoration:none;border:1px solid #76456d;-webkit-transition:none;-moz-transition:none;cursor:pointer;outline:0;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",Verdana,"Bitstream Vera Sans",sans-serif;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#a46497;background-image:-webkit-gradient(linear,left top,left bottom,from(#a46497),to(#864f7b));background-image:-webkit-linear-gradient(top,#a46497,#864f7b);background-image:-moz-linear-gradient(top,#a46497,#864f7b);background-image:-ms-linear-gradient(top,#a46497,#864f7b);background-image:-o-linear-gradient(top,#a46497,#864f7b);background-image:linear-gradient(to bottom,#a46497,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.woocommerce-message p a.button-primary:hover{text-shadow:0 -1px 0 rgba(0,0,0,0.3);border:1px solid #76456d;background-color:#ad74a2;background-image:-webkit-gradient(linear,left top,left bottom,from(#ad74a2),to(#864f7b));background-image:-webkit-linear-gradient(top,#ad74a2,#864f7b);background-image:-moz-linear-gradient(top,#ad74a2,#864f7b);background-image:-ms-linear-gradient(top,#ad74a2,#864f7b);background-image:-o-linear-gradient(top,#ad74a2,#864f7b);background-image:linear-gradient(to bottom,#ad74a2,#864f7b);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),inset 0 -1px 0 rgba(0,0,0,0.1)}.woocommerce-message p a.button-primary:active{border:1px solid #76456d;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#864f7b;background-image:-webkit-gradient(linear,left top,left bottom,from(#864f7b),to(#864f7b));background-image:-webkit-linear-gradient(top,#864f7b,#a46497);background-image:-moz-linear-gradient(top,#864f7b,#a46497);background-image:-ms-linear-gradient(top,#864f7b,#a46497);background-image:-o-linear-gradient(top,#864f7b,#a46497);background-image:linear-gradient(to bottom,#a46497,#a46497);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.2);box-shadow:inset 0 1px 1px rgba(0,0,0,0.2)}.woocommerce-message p a.skip,.woocommerce-message p a.docs{opacity:.5}.woocommerce-message .twitter-share-button{vertical-align:middle}#variable_product_options #message{margin:10px}#wc_get_started{position:relative;margin:1em 0 2em;padding:15px 15px 15px 90px;border:1px solid #d9d9d9;background:#f5f5f5 url(../images/gear.png) no-repeat 15px 15px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-moz-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff;-webkit-box-shadow:inset 1px 1px 0 #fff,inset -1px -1px 0 #fff}#wc_get_started span{display:block;text-shadow:1px 1px 0 #fff;font-size:14px;line-height:22px;color:#595959}#wc_get_started span.main{margin-top:2px;font-weight:bold;font-size:16px}#wc_get_started .main-button{position:absolute;right:20px;top:27px}#wc_get_started p{margin:1em 0 .5em}#wc_get_started.mijireh{background:#5bc0de url(../images/mijireh-logo.png) no-repeat 15px 18px;border:1px solid #339bb9;padding:15px 15px 15px 152px;box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5);-moz-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5);-webkit-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5),inset -1px -1px 0 rgba(255,255,255,0.5)}#wc_get_started.mijireh span{color:#fff;text-shadow:0 1px 0 #4a94ac}#wc_get_started.mijireh span a{color:#fff}#wc_get_started.mijireh a.button{border-color:#fff;box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b;-moz-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b;-webkit-box-shadow:inset 1px 1px 0 rgba(255,255,255,0.1),inset -1px -1px 0 rgba(255,255,255,0.1),0 1px 3px #206d8b}#wc_get_started.mijireh a.button-primary{background:#2b7e9f;border-color:#266e8b}#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons.png)!important;background-position:-11px -5px;background-size:auto!important}.icon32-posts-product{background-position:-69px -5px!important}.icon32-posts-shop_order{background-position:-127px -5px!important}.icon32-attributes{background-position:-185px -5px!important}.icon32-woocommerce-settings{background-position:-359px -5px!important}.icon32-posts-shop_coupon{background-position:-475px -5px!important}.icon32-posts-product_variation{background-position:-533px -5px!important}.icon32-woocommerce-reports{background-position:-591px -5px!important}.icon32-woocommerce-status{background-position:-417px -5px!important}.icon32-woocommerce-delivery{background-position:-649px -5px!important}.icon32-woocommerce-compose{background-position:-708px -5px!important}.icon32-woocommerce-telephone{background-position:-766px -5px!important}.icon32-woocommerce-users{background-position:-824px -5px!important}.icon32-woocommerce-nav{background-position:-882px -5px!important}.icon32-woocommerce-email{background-position:-940px -5px!important}.icon32-woocommerce-importer{background-position:-11px -50px!important}.wrap.woocommerce div.updated,.wrap.woocommerce div.error{margin-top:10px}mark.amount{background:transparent none;color:inherit}.postbox input:invalid,.woocommerce input:invalid{border:1px solid #cc010b;background:#ffebe8}table.wc_status_table{font-family:monospace}table.wc_status_table th{font-weight:bold}table.wc_status_table td:first-child{width:20%}table.wc_status_table td{padding:6px 9px;font-size:1.1em}table.wc_status_table td mark{background:transparent none}table.wc_status_table td mark.yes{color:green}table.wc_status_table td mark.no{color:#999}table.wc_status_table td mark.error{color:red}table.wc_status_table td ul{margin:0}#debug-report{display:none;margin:10px;padding:0;position:relative;background:#fff;background:-webkit-gradient(linear,0 0,0 100%,from(#d9eaf3),color-stop(4%,#fff)) 0 4px;background:-webkit-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-moz-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-ms-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:-o-linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;background:linear-gradient(top,#d9eaf3 0,#fff 8%) 0 4px;-webkit-background-size:100% 20px;-moz-background-size:100% 20px;-ms-background-size:100% 20px;-o-background-size:100% 20px;background-size:100% 20px;box-shadow:0 1px 1px rgba(0,0,0,0.25),0 10px 0 -5px #fff,0 10px 1px -4px rgba(0,0,0,0.15),0 20px 0 -10px #fff,0 20px 1px -9px rgba(0,0,0,0.15);border-top:40px solid #fff}#debug-report:before{content:'';position:absolute;width:4px;top:0;margin:-40px 0 0 0;left:30px;bottom:0;border:1px solid;border-color:transparent #efe4e4}#debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:5px 40px;border:0;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;background:transparent;outline:0}.inline-edit-product.quick-edit-row .inline-edit-col-center,.inline-edit-product.quick-edit-row .inline-edit-col-right{float:right!important}#woocommerce-fields.inline-edit-col{clear:left}#woocommerce-fields.inline-edit-col label.featured,#woocommerce-fields.inline-edit-col label.manage_stock{margin-left:10px}#woocommerce-fields.inline-edit-col .dimensions div{display:block;margin:.2em 0}#woocommerce-fields.inline-edit-col .dimensions div span.title{display:block;float:left;width:5em}#woocommerce-fields.inline-edit-col .dimensions div span.input-text-wrap{display:block;margin-left:5em}#woocommerce-fields.inline-edit-col .text{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:99%;float:left;margin:1px 1% 1px 1px}#woocommerce-fields.inline-edit-col .length,#woocommerce-fields.inline-edit-col .width,#woocommerce-fields.inline-edit-col .height{width:32.33%}#woocommerce-fields.inline-edit-col .height{margin-right:0}#woocommerce-fields-bulk.inline-edit-col label{clear:left}#woocommerce-fields-bulk.inline-edit-col .inline-edit-group label,#woocommerce-fields-bulk.inline-edit-col .inline-edit-group div.alignright{clear:none;width:49%;margin:.2em 0}#woocommerce-fields-bulk.inline-edit-col .regular_price,#woocommerce-fields-bulk.inline-edit-col .sale_price,#woocommerce-fields-bulk.inline-edit-col .weight,#woocommerce-fields-bulk.inline-edit-col .stock{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}#woocommerce-fields-bulk.inline-edit-col .length,#woocommerce-fields-bulk.inline-edit-col .width,#woocommerce-fields-bulk.inline-edit-col .height{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:32%}.column-coupon_code{line-height:2.25em}ul.wc_coupon_list,.column-coupon_code{margin:0;overflow:hidden;zoom:1;clear:both}ul.wc_coupon_list .code,.column-coupon_code .code{margin-right:6px}ul.wc_coupon_list li.code,.column-coupon_code li.code{margin:0 6px 12px 0!important}ul.wc_coupon_list .code:before,.column-coupon_code .code:before,ul.wc_coupon_list .code a:before,.column-coupon_code .code a:before,ul.wc_coupon_list .code span:before,.column-coupon_code .code span:before,ul.wc_coupon_list .code:after,.column-coupon_code .code:after,ul.wc_coupon_list .code a:after,.column-coupon_code .code a:after,ul.wc_coupon_list .code span:after,.column-coupon_code .code span:after{content:"";display:block;position:absolute;width:8px;height:4px;background:#f7f7f7;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px;-moz-box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1);box-shadow:0 2px 0 0 rgba(255,255,255,0.3),inset 0 2px 0 0 rgba(0,0,0,0.1)}ul.wc_coupon_list .code,.column-coupon_code .code{overflow:hidden;vertical-align:middle;margin:0 8px 0 0;background:#ececec;color:#21759a;text-shadow:0 1px 0 #ddd;padding:2px;position:relative;float:left;line-height:1em;-moz-box-shadow:0 2px 0 0 #ddd;-webkit-box-shadow:0 2px 0 0 #ddd;box-shadow:0 2px 0 0 #ddd;font-weight:bold}ul.wc_coupon_list .code:before,.column-coupon_code .code:before{bottom:5px;left:0;margin:0 0 0 -4px}ul.wc_coupon_list .code:after,.column-coupon_code .code:after{top:5px;left:0;margin:0 0 0 -4px}ul.wc_coupon_list .code a,.column-coupon_code .code a,ul.wc_coupon_list .code span,.column-coupon_code .code span{float:left;padding:0 4px;color:#21759a}ul.wc_coupon_list .code a:before,.column-coupon_code .code a:before,ul.wc_coupon_list .code span:before,.column-coupon_code .code span:before{bottom:5px;right:0;margin:0 -4px 0 0}ul.wc_coupon_list .code a:after,.column-coupon_code .code a:after,ul.wc_coupon_list .code span:after,.column-coupon_code .code span:after{content:"";top:5px;right:0;margin:0 -4px 0 0}ul.wc_coupon_list .code a span,.column-coupon_code .code a span,ul.wc_coupon_list .code span span,.column-coupon_code .code span span{border:1px dashed #ccc;padding:.5em 6px;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px}ul.wc_coupon_list .code a span:before,.column-coupon_code .code a span:before,ul.wc_coupon_list .code span span:before,.column-coupon_code .code span span:before{top:50%;left:0;margin:-2px 0 0 -4px}ul.wc_coupon_list .code a span:after,.column-coupon_code .code a span:after,ul.wc_coupon_list .code span span:after,.column-coupon_code .code span span:after{top:50%;right:0;margin:-2px -4px 0 0}ul.wc_coupon_list .code:hover,.column-coupon_code .code:hover{background:#975e83;color:#fff;text-shadow:0 1px 0 #5a324b}ul.wc_coupon_list .code:hover a,.column-coupon_code .code:hover a,ul.wc_coupon_list .code:hover span,.column-coupon_code .code:hover span{color:#fff}ul.wc_coupon_list .code:hover a span,.column-coupon_code .code:hover a span,ul.wc_coupon_list .code:hover span span,.column-coupon_code .code:hover span span{border:1px dashed #bb82a7}ul.wc_coupon_list_block{margin:0;padding-bottom:2px}ul.wc_coupon_list_block li{border-top:1px solid #fff;border-bottom:1px solid #ccc;line-height:2.5em;margin:0;padding:.5em 0}ul.wc_coupon_list_block li:first-child{border-top:0;padding-top:0}ul.wc_coupon_list_block li:last-child{border-bottom:0;padding-bottom:0}.button.wc-reload{display:block;text-indent:-999px;position:relative;height:1em;width:1em;padding:0;-webkit-border-radius:100%;border-radius:100%;height:24px;width:24px!important;display:inline-block}.button.wc-reload:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e031";line-height:22px}.tablenav .actions{overflow:visible}.alignleft.actions .chosen-container-single{display:inline-block;vertical-align:middle}#woocommerce-order-data h3.hndle,#woocommerce-order-data .handlediv{display:none}#woocommerce-order-data .inside{display:block!important}#order_data{padding:23px 24px 12px 24px}#order_data h2{margin:0;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-size:21px;font-weight:normal;line-height:1.2;text-shadow:1px 1px 1px white;padding:0}#order_data h4{color:#333;margin:1.33em 0 0}#order_data p{color:#777}#order_data p.order_number{margin:0;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-weight:normal;line-height:1.6em;font-size:16px}#order_data .order_data_column_container{clear:both}#order_data .order_data_column{width:32%;padding:0 2% 0 0;float:left}#order_data .order_data_column:last-child{padding-right:0}#order_data .order_data_column p{padding:0!important}#order_data .order_data_column .address strong{display:block}#order_data .order_data_column .form-field{float:left;width:48%;padding:0;margin:9px 0 0 0}#order_data .order_data_column .form-field label{display:block;padding:0 0 3px}#order_data .order_data_column .form-field input,#order_data .order_data_column .form-field textarea{width:100%}#order_data .order_data_column .form-field select{width:100%}#order_data .order_data_column .form-field #order_status_chosen .chosen-search{display:none}#order_data .order_data_column .form-field .chosen-container{width:100%!important}#order_data .order_data_column .form-field .date-picker-field{width:50%}#order_data .order_data_column .form-field .hour,#order_data .order_data_column .form-field .minute{width:2.5em}#order_data .order_data_column .form-field small{display:block;margin:5px 0 0 0;color:#999}#order_data .order_data_column .form-field.last{float:right}#order_data .order_data_column .form-field-wide{width:100%;clear:both}#order_data .order_data_column .form-field-wide input,#order_data .order_data_column .form-field-wide textarea{width:100%}#order_data .order_data_column .form-field-wide select{width:100%}#order_data .order_data_column p.none_set{color:#999}#order_data .order_data_column ._billing_first_name_field,#order_data .order_data_column ._billing_address_1_field,#order_data .order_data_column ._billing_city_field,#order_data .order_data_column ._billing_country_field,#order_data .order_data_column ._billing_email_field,#order_data .order_data_column ._shipping_first_name_field,#order_data .order_data_column ._shipping_address_1_field,#order_data .order_data_column ._shipping_city_field,#order_data .order_data_column ._shipping_country_field{float:left}#order_data .order_data_column ._billing_last_name_field,#order_data .order_data_column ._billing_address_2_field,#order_data .order_data_column ._billing_postcode_field,#order_data .order_data_column ._billing_state_field,#order_data .order_data_column ._billing_phone_field,#order_data .order_data_column ._shipping_last_name_field,#order_data .order_data_column ._shipping_address_2_field,#order_data .order_data_column ._shipping_postcode_field,#order_data .order_data_column ._shipping_state_field{float:right}#order_data .order_data_column ._billing_company_field,#order_data .order_data_column ._shipping_company_field{clear:both;width:100%}#order_data .order_data_column ._billing_email_field{clear:left}#order_data .order_data_column div.edit_address{display:none;overflow:hidden;zoom:1;padding-right:1px}#order_data a.edit_address{opacity:.4}#order_data a.edit_address:hover,#order_data a.edit_address:focus{opacity:1}.order_actions{margin:0;overflow:hidden;zoom:1}.order_actions li{border-top:1px solid #fff;border-bottom:1px solid #ddd;padding:6px 0;margin:0;line-height:1.6em;float:left;width:50%;text-align:center}.order_actions li a{float:none;text-align:center;text-decoration:underline}.order_actions li.wide{width:auto;float:none;clear:both;padding:6px;text-align:left;overflow:hidden}.order_actions li #delete-action{line-height:25px;vertical-align:middle;text-align:left;float:left}.order_actions li .save_order{float:right}.order_actions li#actions{overflow:hidden}.order_actions li#actions .button{width:24px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:right}.order_actions li#actions select{width:225px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:left}#woocommerce-order-items .inside{margin:0;padding:0;background:#fefefe}#woocommerce-order-items .bulk_actions{float:left;padding-left:12px;vertical-align:top}#woocommerce-order-items .add_items{float:right;padding-right:12px;vertical-align:top}#woocommerce-order-items .add_items .add_item_id,#woocommerce-order-items .add_items .chosen-container{margin-right:9px;vertical-align:top;float:left}#woocommerce-order-items .add_items .add_item_id .search-field input,#woocommerce-order-items .add_items .chosen-container .search-field input{min-width:100px}#woocommerce-order-items .add_items button{margin:2px 0 0 0}#woocommerce-order-items .add_meta{margin-left:0!important}#woocommerce-order-items h3 small{color:#999}#woocommerce-order-items a.edit_order_item{opacity:.4}#woocommerce-order-items a.edit_order_item:hover,#woocommerce-order-items a.edit_order_item:focus{opacity:1}#woocommerce-order-downloads .buttons{float:left;padding:0;margin:0;vertical-align:top}#woocommerce-order-downloads .buttons .add_item_id,#woocommerce-order-downloads .buttons .chosen-container{width:400px!important;margin-right:9px;vertical-align:top;float:left}#woocommerce-order-downloads .buttons button{margin:2px 0 0 0}#woocommerce-order-downloads h3 small{color:#999}#poststuff #woocommerce-order-actions .inside{margin:0;padding:0}#poststuff #woocommerce-order-actions .inside ul.order_actions li{padding:6px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#poststuff #woocommerce-order-actions .inside ul.order_actions li:last-child{border-bottom:0}#poststuff #woocommerce-order-totals .inside{margin:0;padding:0}#poststuff #woocommerce-order-totals h4{margin:0!important}#poststuff #woocommerce-order-totals h4 a.add_tax_row,#poststuff #woocommerce-order-totals h4 a.add_total_row{display:inline-block;padding-bottom:10px}#poststuff #woocommerce-order-totals h4 .inline_total{float:right;color:#999}#poststuff #woocommerce-order-totals .totals_group{border-top:1px solid white;border-bottom:1px solid #DDD;padding:10px 10px 0 10px}#poststuff #woocommerce-order-totals .totals_group:first-child{border-top:0}#poststuff #woocommerce-order-totals .totals_group input,#poststuff #woocommerce-order-totals .totals_group select{font-size:1.4em;width:100%;vertical-align:top;margin:0;font-weight:normal;color:#999;line-height:1em}#poststuff #woocommerce-order-totals .totals_group input:focus,#poststuff #woocommerce-order-totals .totals_group select:focus{color:#555}#poststuff #woocommerce-order-totals .totals_group select{height:30px!important}#poststuff #woocommerce-order-totals .totals_group input{padding:4px 6px}#poststuff #woocommerce-order-totals .totals_group ::-webkit-input-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group ::-moz-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group :-ms-input-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group input:-moz-placeholder{line-height:1.4em}#poststuff #woocommerce-order-totals .totals_group #_order_total,#poststuff #woocommerce-order-totals .totals_group #_order_discount{margin:6px 0 10px}#poststuff #woocommerce-order-totals .buttons{border-top:1px solid white;padding:1em 10px 1em 10px;margin:0;text-align:right}#poststuff #woocommerce-order-totals .buttons .calc_line_taxes{float:left}#poststuff #woocommerce-order-totals ul.totals{margin:6px 0 0;float:left}#poststuff #woocommerce-order-totals ul.totals li{float:left;clear:both;width:100%;font-size:1.2em;font-weight:bold;line-height:1.2em;margin:0;padding:0 0 10px}#poststuff #woocommerce-order-totals ul.totals li label{font-weight:normal;display:block;font-size:.8em;color:#333}#poststuff #woocommerce-order-totals ul.totals li.left{float:left;width:49%;clear:left}#poststuff #woocommerce-order-totals ul.totals li.left input{width:100%}#poststuff #woocommerce-order-totals ul.totals li.right{float:right;width:49%;clear:none}#poststuff #woocommerce-order-totals ul.totals li.right input{width:100%}#poststuff #woocommerce-order-totals ul.totals li.wide{float:left;width:100%;clear:left}#poststuff #woocommerce-order-totals ul.totals li.wide input{width:100%}#poststuff #woocommerce-order-totals ul.totals .calculated{border-color:#ae8ca2;border-style:dotted}#poststuff #woocommerce-order-totals .total_rows{margin:6px 0 0}#poststuff #woocommerce-order-totals .total_row{margin:0 0 9px;border:1px solid #dfdfdf;border-right-width:2px;border-bottom-width:2px;background:#fff;padding:9px 9px 0;position:relative}#poststuff #woocommerce-order-totals .total_row p{margin:0 0 9px}#poststuff #woocommerce-order-totals .total_row label{color:#999;display:block;margin:0 0 3px}#poststuff #woocommerce-order-totals .total_row p.first{float:left;width:49%;clear:left}#poststuff #woocommerce-order-totals .total_row p.first input,#poststuff #woocommerce-order-totals .total_row p.first select{width:100%}#poststuff #woocommerce-order-totals .total_row p.last{float:right;width:49%;clear:none}#poststuff #woocommerce-order-totals .total_row p.last input,#poststuff #woocommerce-order-totals .total_row p.last select{width:100%}#poststuff #woocommerce-order-totals .total_row p.wide{clear:both}#poststuff #woocommerce-order-totals .total_row p.wide input,#poststuff #woocommerce-order-totals .total_row p.wide select{width:100%}#poststuff #woocommerce-order-totals .total_row a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row a.delete_total_row{padding:0;text-decoration:none;font-size:12px;line-height:18px;width:18px;height:18px;text-align:center;color:#fff;float:right;background-color:#d54e21;-webkit-border-radius:100%;-moz-border-radius:100%;-o-border-radius:100%;border-radius:100%;position:absolute;top:0;right:0;margin:-9px -9px 0 0;display:none;font-weight:bold;border:2px solid #fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.4);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.4)}#poststuff #woocommerce-order-totals .total_row a.delete_tax_row:hover,#poststuff #woocommerce-order-totals .total_row a.delete_total_row:hover{background-color:#b32c00}#poststuff #woocommerce-order-totals .total_row:hover a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row:focus a.delete_tax_row,#poststuff #woocommerce-order-totals .total_row:hover a.delete_total_row,#poststuff #woocommerce-order-totals .total_row:focus a.delete_total_row{display:block}#poststuff #woocommerce-order-notes .inside{margin:0;padding:0}#poststuff #woocommerce-order-notes .inside ul.order_notes li{padding:0 10px}.woocommerce_order_items_wrapper{margin:0;overflow:auto}.woocommerce_order_items_wrapper table.woocommerce_order_items{width:100%;background:#fff}.woocommerce_order_items_wrapper table.woocommerce_order_items thead th{background:#ececec;padding:8px;font-size:11px;text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th,.woocommerce_order_items_wrapper table.woocommerce_order_items td{padding:8px;text-align:left;line-height:26px;vertical-align:top;border-bottom:1px dotted #ececec}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th input,.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th textarea,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th select,.woocommerce_order_items_wrapper table.woocommerce_order_items td select{width:50%}.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th input,.woocommerce_order_items_wrapper table.woocommerce_order_items td input,.woocommerce_order_items_wrapper table.woocommerce_order_items tbody th textarea,.woocommerce_order_items_wrapper table.woocommerce_order_items td textarea{font-size:14px;padding:4px;color:#555}.woocommerce_order_items_wrapper table.woocommerce_order_items td.check-column{padding:8px;width:1%}.woocommerce_order_items_wrapper table.woocommerce_order_items .item{min-width:200px}.woocommerce_order_items_wrapper table.woocommerce_order_items .center,.woocommerce_order_items_wrapper table.woocommerce_order_items .variation-id{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class{text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost label,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax label,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label{white-space:nowrap;color:#999;font-size:.833em}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax label input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class label input{display:inline}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost input,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax input,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class input{width:70px;vertical-align:middle;text-align:right}.woocommerce_order_items_wrapper table.woocommerce_order_items .cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_cost select,.woocommerce_order_items_wrapper table.woocommerce_order_items .line_tax select,.woocommerce_order_items_wrapper table.woocommerce_order_items .tax_class select{width:85px;height:26px;vertical-align:middle;font-size:1em}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity{text-align:center}.woocommerce_order_items_wrapper table.woocommerce_order_items .quantity input{text-align:center;width:50px}.woocommerce_order_items_wrapper table.woocommerce_order_items span.subtotal{opacity:.5}.woocommerce_order_items_wrapper table.woocommerce_order_items td.tax_class,.woocommerce_order_items_wrapper table.woocommerce_order_items th.tax_class{text-align:left}.woocommerce_order_items_wrapper table.woocommerce_order_items .calculated{border-color:#ae8ca2;border-style:dotted}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta{width:100%}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr th,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr th{border:0;padding:1px 4px 1px 0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr td{padding:1px 4px 1px 0;border:0}.woocommerce_order_items_wrapper table.woocommerce_order_items table.meta tr td input,.woocommerce_order_items_wrapper table.woocommerce_order_items table.display_meta tr td input{min-width:50px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb{text-align:left;width:27px}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb a{display:block}.woocommerce_order_items_wrapper table.woocommerce_order_items .thumb img{padding:1px;margin:0;border:1px solid #dfdfdf;vertical-align:middle;width:21px;height:21px}.woocommerce_order_items_wrapper table.woocommerce_order_items tr.fee .thumb{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYGWP8//8/AzGACV3Rnj17/oMwujiGQnQFMD7RChlBbsRmFcwkEO3i4sJImonIumGmg0xBFifaRKIVgj2DbAUuNgCfThpracSKqwAAAABJRU5ErkJggg==) no-repeat center}#woocommerce_customers p.search-box{margin:6px 0 4px;float:left}#woocommerce_customers .tablenav{float:right;clear:none}.widefat.customers td{vertical-align:middle;padding:4px 7px}.widefat .column-order_title{width:15%}.widefat .column-order_title time{display:block;color:#999;margin:3px 0}.widefat .column-orders,.widefat .column-paying,.widefat .column-spent{text-align:center;width:8%}.widefat .column-last_order{width:11%}.widefat .column-order_actions,.widefat .column-user_actions,.widefat .column-wc_actions{width:110px}.widefat .column-order_actions a.button,.widefat .column-user_actions a.button,.widefat .column-wc_actions a.button{float:left;margin:0 4px 2px 0;cursor:pointer;padding:3px 4px;height:auto}.widefat .column-order_actions a.button img,.widefat .column-user_actions a.button img,.widefat .column-wc_actions a.button img{display:block;width:12px;height:auto}.widefat small.meta{display:block;color:#999;font-size:inherit;margin:3px 0}.widefat .column-order_total,.widefat .column-order_date{width:9%}.widefat .column-order_status{width:45px;text-align:center}.widefat .column-order_status mark{display:block;text-indent:-999px;position:relative;height:1em;width:1em;background:0;font-size:1.4em;margin:0 auto}.widefat .column-order_status mark.pending:after,.widefat .column-order_status mark.completed:after,.widefat .column-order_status mark.on-hold:after,.widefat .column-order_status mark.failed:after,.widefat .column-order_status mark.cancelled:after,.widefat .column-order_status mark.processing:after,.widefat .column-order_status mark.refunded:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001"}.widefat .column-order_status mark.pending:after{content:"\e012";color:#de9e0c}.widefat .column-order_status mark.completed:after{content:"\e015";color:#21759b}.widefat .column-order_status mark.on-hold:after{content:"\e033";color:#999}.widefat .column-order_status mark.failed:after{content:"\e016";color:#d0c21f}.widefat .column-order_status mark.cancelled:after{content:"\e013";color:#d54e21}.widefat .column-order_status mark.processing:after{content:"\e011";color:#73a724}.widefat .column-order_status mark.refunded:after{content:"\e014";color:#999}.widefat td.column-order_status{padding-top:9px}.column-customer_message .note-on{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto;color:#999}.column-customer_message .note-on:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e026";line-height:16px}.column-order_notes .note-on{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto;color:#999}.column-order_notes .note-on:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e027";line-height:16px}.order_actions .processing,.order_actions .complete,.order_actions .view{display:block;text-indent:-999px;position:relative;height:1em;width:1em;padding:0!important;height:2em!important;width:2em}.order_actions .processing:after,.order_actions .complete:after,.order_actions .view:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001";line-height:1.85}.order_actions .processing:after{content:"\e00f"}.order_actions .complete:after{content:"\e017"}.order_actions .view:after{content:"\e010"}ul.order_notes{padding:2px 0 0 0}ul.order_notes li .note_content{padding:10px;background:#efefef;position:relative}ul.order_notes li .note_content p{margin:0;padding:0}ul.order_notes li p.meta{padding:10px;color:#999;margin:0;font-size:11px}ul.order_notes li p.meta .exact-date{border-bottom:1px dotted #999}ul.order_notes li a.delete_note{color:#f00}ul.order_notes li .note_content:after{content:"";display:block;position:absolute;bottom:-15px;left:30px;width:0;height:0;border-width:15px 15px 0 0;border-style:solid;border-color:#efefef transparent}ul.order_notes li.customer-note .note_content{background:#d7cad2}ul.order_notes li.customer-note .note_content:after{border-color:#d7cad2 transparent}.add_note{border-top:1px solid #ddd;padding:10px 10px 0}.add_note h4{margin-top:5px!important}.add_note #add_order_note{width:100%;height:50px}table.wp-list-table .column-thumb{width:52px;text-align:center;white-space:nowrap}table.wp-list-table .column-name{width:22%}table.wp-list-table .column-product_cat,table.wp-list-table .column-product_tag{width:11%!important}table.wp-list-table .column-featured,table.wp-list-table .column-product_type{width:46px;text-align:left!important}table.wp-list-table .column-customer_message,table.wp-list-table .column-order_notes{width:46px;text-align:center}table.wp-list-table .column-customer_message img,table.wp-list-table .column-order_notes img{margin:0 auto;padding-top:0!important}table.wp-list-table .manage-column.column-featured img,table.wp-list-table .manage-column.column-product_type img{padding-left:2px}table.wp-list-table img{margin:1px 2px}table.wp-list-table td.column-thumb img{margin:0;vertical-align:middle;width:auto;height:auto;max-width:40px;max-height:40px}table.wp-list-table span.na{color:#999}table.wp-list-table .column-is_in_stock{text-align:left!important}table.wp-list-table span.wc-image,table.wp-list-table span.wc-featured,table.wp-list-table span.wc-type{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto}table.wp-list-table span.wc-image:before,table.wp-list-table span.wc-featured:before,table.wp-list-table span.wc-type:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c"}table.wp-list-table span.wc-featured{margin:0;cursor:pointer}table.wp-list-table span.wc-featured:before{content:"\e020"}table.wp-list-table span.wc-featured.not-featured:before{content:"\e021"}table.wp-list-table td.column-featured span.wc-featured{font-size:1.2em}table.wp-list-table span.wc-type{margin:0}table.wp-list-table span.wc-type:before{content:"\e01d"}table.wp-list-table span.product-type{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.2em}table.wp-list-table span.product-type:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e006"}table.wp-list-table span.product-type.grouped:before{content:"\e002"}table.wp-list-table span.product-type.external:before{content:"\e034"}table.wp-list-table span.product-type.variable:before{content:"\e003"}table.wp-list-table span.product-type.downloadable:before{content:"\e001"}table.wp-list-table span.product-type.virtual:before{content:"\e000"}table.wp-list-table mark.instock{font-weight:bold;color:green;background:transparent none;line-height:1}table.wp-list-table mark.outofstock{font-weight:bold;color:#a44;background:transparent none;line-height:1}table.wp-list-table .order-notes_head,table.wp-list-table .notes_head,table.wp-list-table .status_head{display:block;text-indent:-999px;position:relative;height:1em;width:1em;margin:0 auto}table.wp-list-table .order-notes_head:after,table.wp-list-table .notes_head:after,table.wp-list-table .status_head:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001"}table.wp-list-table .order-notes_head:after{content:"\e028"}table.wp-list-table .notes_head:after{content:"\e026"}table.wp-list-table .status_head:after{content:"\e011"}table.wp-list-table .column-order_items{width:12%}table.wp-list-table .column-order_items table.order_items{width:100%;margin:3px 0 0 0;padding:0;display:none}table.wp-list-table .column-order_items table.order_items td{border:0;margin:0;padding:0 0 3px}table.wp-list-table .column-order_items table.order_items td.qty{color:#999;padding-right:6px;text-align:left}ul.woocommerce_stats{overflow:hidden;zoom:1}ul.woocommerce_stats li{width:22%;padding:0 1.4%;float:left;font-size:.8em;border-left:1px solid #fff;border-right:1px solid #ececec;text-align:center}ul.woocommerce_stats li:first-child{border-left:0}ul.woocommerce_stats li:last-child{border-right:0}ul.woocommerce_stats strong{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:4em;line-height:1.2em;font-weight:normal;text-align:center;display:block}#woocommerce_dashboard_right_now p.sub,#woocommerce_dashboard_right_now .table,#woocommerce_dashboard_right_now .versions{margin:-12px}#woocommerce_dashboard_right_now .inside{font-size:12px;margin-bottom:0;padding-top:20px}#woocommerce_dashboard_right_now p.sub{padding:5px 0 15px;color:#8f8f8f;font-size:14px;position:absolute;top:-17px;left:15px}#woocommerce_dashboard_right_now .table{margin:0;padding:0;position:relative}#woocommerce_dashboard_right_now .table_shop_content{float:left;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now .table_orders{float:right;border-top:#ececec 1px solid;width:45%}#woocommerce_dashboard_right_now table td{padding:3px 0;white-space:nowrap}#woocommerce_dashboard_right_now table tr.first td{border-top:0}#woocommerce_dashboard_right_now td.b{padding-right:6px;text-align:right;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:14px;width:1%}#woocommerce_dashboard_right_now td.b a{font-size:18px}#woocommerce_dashboard_right_now td.b a:hover{color:#d54e21}#woocommerce_dashboard_right_now .t{font-size:12px;padding-right:12px;padding-top:6px;color:#777}#woocommerce_dashboard_right_now .t a{white-space:nowrap}#woocommerce_dashboard_right_now .on-hold a{color:red}#woocommerce_dashboard_right_now .pending a{color:#e66f00}#woocommerce_dashboard_right_now .completed a{color:green}#woocommerce_dashboard_right_now .versions{padding:6px 10px 12px;clear:both}#woocommerce_dashboard_right_now .versions .b{font-weight:bold}#woocommerce_dashboard_right_now a.button{float:right;clear:right;position:relative;top:-5px}ul.recent-orders li,ul.stock_list li{overflow:hidden;zoom:1;border-bottom:#ececec 1px solid;padding:0 0 8px;margin:0 0 8px}ul.recent-orders li .order-status,ul.stock_list li .order-status{float:right}ul.recent-orders li small,ul.stock_list li small{color:#999}ul.recent-orders li .order-cost,ul.stock_list li .order-cost,ul.recent-orders li .order-customer,ul.stock_list li .order-customer{margin-left:8px}ul.recent-orders li .completed,ul.stock_list li .completed{color:green}ul.recent-orders li .on-hold,ul.stock_list li .on-hold{color:red}ul.recent-orders li .processing,ul.stock_list li .processing{color:#21759b}ul.recent-orders li .pending,ul.stock_list li .pending{color:#e66f00}ul.recent-orders li .refunded,ul.stock_list li .refunded,ul.recent-orders li .cancelled,ul.stock_list li .cancelled{color:#999}ul.recent-orders.stock_list small,ul.stock_list.stock_list small{float:right}ul.recent-orders.stock_list a,ul.stock_list.stock_list a{text-decoration:none}mark.notice{background:#fff;color:red;margin:0 0 0 10px}a.export_rates,a.import_rates{float:right;margin-left:9px;margin-top:-2px;margin-bottom:0}table.wc_tax_rates,table.wc_input_table{width:100%}table.wc_tax_rates td,table.wc_input_table td{padding:0;border-right:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;border-top:0;background:#fff}table.wc_tax_rates td input,table.wc_input_table td input{width:100%;padding:5px 7px;margin:0;border:0;background:transparent none}table.wc_tax_rates td.compound,table.wc_input_table td.compound,table.wc_tax_rates td.apply_to_shipping,table.wc_input_table td.apply_to_shipping{padding:5px 7px;vertical-align:middle}table.wc_tax_rates td.compound input,table.wc_input_table td.compound input,table.wc_tax_rates td.apply_to_shipping input,table.wc_input_table td.apply_to_shipping input{width:auto;padding:0}table.wc_tax_rates td:last-child,table.wc_input_table td:last-child{border-right:0}table.wc_tax_rates tr.current td,table.wc_input_table tr.current td{background-color:#fefbcc}table.wc_tax_rates .item_cost,table.wc_input_table .item_cost,table.wc_tax_rates .cost,table.wc_input_table .cost{text-align:right}table.wc_tax_rates .item_cost input,table.wc_input_table .item_cost input,table.wc_tax_rates .cost input,table.wc_input_table .cost input{text-align:right}table.wc_tax_rates th.sort,table.wc_input_table th.sort{width:17px;padding:0}table.wc_tax_rates td.sort,table.wc_input_table td.sort{padding:0 0 0 2em;cursor:move;position:relative;background:#f9f9f9}table.wc_tax_rates td.sort:before,table.wc_input_table td.sort:before{content:"";position:absolute;top:.75em;left:.5em;width:1em;height:.125em;border-top:.375em double #777;border-bottom:.125em solid #777}table.wc_tax_rates .button,table.wc_input_table .button{float:left;margin-right:5px}table.wc_tax_rates .export,table.wc_input_table .export,table.wc_tax_rates .import,table.wc_input_table .import{float:right;margin-right:0;margin-left:5px}table.wc_tax_rates span.tips,table.wc_input_table span.tips{padding:0 3px}table.wc_tax_rates .pagination,table.wc_input_table .pagination{float:right}table.wc_tax_rates .pagination .button,table.wc_input_table .pagination .button{margin-left:5px;margin-right:0}table.wc_tax_rates .pagination .current,table.wc_input_table .pagination .current{background:#bbb;text-shadow:none}table.wc_gateways,table.wc_shipping{position:relative}table.wc_gateways td,table.wc_shipping td{vertical-align:middle;cursor:move;padding:7px}table.wc_gateways th,table.wc_shipping th{padding:9px 7px!important;vertical-align:middle}table.wc_gateways td.name,table.wc_shipping td.name{font-weight:bold}table.wc_gateways .settings,table.wc_shipping .settings{text-align:right}table.wc_gateways .radio,table.wc_shipping .radio,table.wc_gateways .default,table.wc_shipping .default,table.wc_gateways .status,table.wc_shipping .status{text-align:center}table.wc_gateways .radio .tips,table.wc_shipping .radio .tips,table.wc_gateways .default .tips,table.wc_shipping .default .tips,table.wc_gateways .status .tips,table.wc_shipping .status .tips{margin:0 auto}table.wc_gateways .radio input,table.wc_shipping .radio input,table.wc_gateways .default input,table.wc_shipping .default input,table.wc_gateways .status input,table.wc_shipping .status input{margin:0}img.help_tip{vertical-align:middle;margin:0 0 0 9px}.postbox img.help_tip{margin-top:-4px}.status-enabled,.status-disabled{font-size:1.4em;display:block;text-indent:-999px;position:relative;height:1em;width:1em}.status-enabled:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e015";color:#ad74a2}.woocommerce #template div{margin:0}.woocommerce #template div p .button{float:right;margin-left:10px;margin-top:-4px}.woocommerce #template div .editor textarea{margin-bottom:8px}.woocommerce textarea[disabled="disabled"]{background:#dfdfdf!important}.woocommerce table.form-table{margin:0}.woocommerce table.form-table .forminp-radio ul{margin:0}.woocommerce table.form-table .forminp-radio ul li{line-height:1.4em}.woocommerce table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.woocommerce table.form-table input.regular-input{width:25em}.woocommerce table.form-table textarea.wide-input{width:100%}.woocommerce table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.woocommerce table.form-table span.help_tip{cursor:help;color:#21759b}.woocommerce table.form-table th{position:relative;padding-right:24px}.woocommerce table.form-table .chosen-container{vertical-align:top;margin-bottom:3px}.woocommerce table.form-table table.widefat th{padding-right:inherit}.woocommerce table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.woocommerce table.form-table fieldset{margin-top:4px}.woocommerce table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.woocommerce table.form-table fieldset p.description{margin-bottom:8px}.woocommerce table.form-table fieldset:first-child{margin-top:0}.woocommerce table.form-table .color_box{border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;padding:4px 6px;float:left;width:80px;margin:0 10px 0 0}.woocommerce table.form-table .color_box strong{text-align:left;display:block;padding:0 0 2px;font-size:.92em}.woocommerce table.form-table .color_box strong img{float:right;margin:1px 0 0 0}.woocommerce table.form-table .color_box input.colorpick{width:100%;margin:0;font-family:monospace;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.form-table .color_box .iris-picker{margin:15px 0 0 -7px}.woocommerce table.form-table .color_box_clear{display:block;clear:both;padding-bottom:10px}.woocommerce table.form-table .iris-picker{z-index:100;position:absolute;display:none;border:1px solid #ccc;box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.woocommerce table.form-table .iris-picker .ui-slider{border:0!important;background:none transparent!important;margin:0!important;width:auto!important;height:auto!important}.woocommerce table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.woocommerce table.form-table .image_width_settings{vertical-align:middle}.woocommerce table.form-table .image_width_settings label{margin-left:10px}.woocommerce #tabs-wrap table a.remove{margin-left:4px}.woocommerce #tabs-wrap table p{margin:0 0 4px!important;overflow:hidden;zoom:1}.woocommerce #tabs-wrap table p a.add{float:left}#wp-excerpt-editor-container{background:#fff}#product_variation-parent #parent_id{width:100%}#postimagediv img{border:1px solid #d5d5d5;max-width:100%}#woocommerce-product-images .inside{margin:0;padding:0}#woocommerce-product-images .inside .add_product_images{padding:0 9px}#woocommerce-product-images .inside #product_images_container{padding:0 0 0 9px}#woocommerce-product-images .inside #product_images_container ul{*zoom:1;margin:0;padding:0}#woocommerce-product-images .inside #product_images_container ul:before,#woocommerce-product-images .inside #product_images_container ul:after{content:" ";display:table}#woocommerce-product-images .inside #product_images_container ul:after{clear:both}#woocommerce-product-images .inside #product_images_container ul li.image,#woocommerce-product-images .inside #product_images_container ul li.add,#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder{width:80px;height:80px;float:left;cursor:move;border:1px solid #d5d5d5;margin:9px 9px 0 0;background:#f7f7f7;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#woocommerce-product-images .inside #product_images_container ul li.image img,#woocommerce-product-images .inside #product_images_container ul li.add img,#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder img{width:100%;height:auto;display:block}#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder{border:3px dashed #ddd;position:relative}#woocommerce-product-images .inside #product_images_container ul li.wc-metabox-sortable-placeholder:after{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c";font-size:2.618em;line-height:72px;color:#ddd}#woocommerce-product-images .inside #product_images_container ul ul.actions{position:absolute;top:-8px;right:-8px;padding:2px;display:none}#woocommerce-product-images .inside #product_images_container ul ul.actions li{float:right;margin:0 0 0 2px}#woocommerce-product-images .inside #product_images_container ul ul.actions li a{width:1em;height:1em;margin:0;height:0;display:block;overflow:hidden}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.tips{cursor:pointer}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.view{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.4em}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.view:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e00c";background-color:#000;color:#fff}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete{display:block;text-indent:-999px;position:relative;height:1em;width:1em;font-size:1.4em}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e013";color:white;background-color:#000;-webkit-border-radius:100%;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,0.2)}#woocommerce-product-images .inside #product_images_container ul ul.actions li a.delete:hover:before{background-color:#d54e21}#woocommerce-product-images .inside #product_images_container ul li:hover ul.actions{display:block}#woocommerce-product-data h3.hndle{padding:4px 10px}#woocommerce-product-data h3.hndle span{display:block;vertical-align:middle;line-height:24px}#woocommerce-product-data h3.hndle span span{display:inline;line-height:inherit;vertical-align:baseline}#woocommerce-product-data h3.hndle select{font-family:sans-serif;margin:0}#woocommerce-product-data h3.hndle label{padding-right:1em;font-size:12px;vertical-align:baseline}#woocommerce-product-data h3.hndle label:first-child{margin-right:1em;border-right:1px solid #dfdfdf}#woocommerce-product-data h3.hndle input,#woocommerce-product-data h3.hndle select{margin:-3px 0 0 .5em;vertical-align:middle}#woocommerce-coupon-description{padding:3px 8px;font-size:1.7em;line-height:1.42em;height:auto;width:100%;outline:0;margin:10px 0 10px;display:block}#woocommerce-coupon-description::-webkit-input-placeholder{line-height:1.42em;color:#bbb}#woocommerce-coupon-description::-moz-placeholder{line-height:1.42em;color:#bbb}#woocommerce-coupon-description:-ms-input-placeholder{line-height:1.42em;color:#bbb}#woocommerce-coupon-description:-moz-placeholder{line-height:1.42em;color:#bbb}#woocommerce-product-data .panel-wrap,#woocommerce-coupon-data .panel-wrap{background:#f8f8f8;padding-left:153px}#woocommerce-product-data .woocommerce_options_panel,#woocommerce-coupon-data .woocommerce_options_panel,#woocommerce-product-data .wc-metaboxes-wrapper,#woocommerce-coupon-data .wc-metaboxes-wrapper{float:right;width:100%}#woocommerce-product-data .woocommerce_options_panel p,#woocommerce-coupon-data .woocommerce_options_panel p,#woocommerce-product-data .wc-metaboxes-wrapper p,#woocommerce-coupon-data .wc-metaboxes-wrapper p,#woocommerce-product-data .woocommerce_options_panel .wc-metaboxes,#woocommerce-coupon-data .woocommerce_options_panel .wc-metaboxes,#woocommerce-product-data .wc-metaboxes-wrapper .wc-metaboxes,#woocommerce-coupon-data .wc-metaboxes-wrapper .wc-metaboxes,#woocommerce-product-data .woocommerce_options_panel p.toolbar,#woocommerce-coupon-data .woocommerce_options_panel p.toolbar,#woocommerce-product-data .wc-metaboxes-wrapper p.toolbar,#woocommerce-coupon-data .wc-metaboxes-wrapper p.toolbar{padding-left:12px!important;padding-right:20px!important}#woocommerce-product-data .wc-tabs-back,#woocommerce-coupon-data .wc-tabs-back{position:absolute;top:0;left:0;bottom:0;background:#f1f1f1;width:145px;border-right:1px solid #dfdfdf}#woocommerce-product-data ul.wc-tabs,#woocommerce-coupon-data ul.wc-tabs,.woocommerce ul.wc-tabs{background:#f1f1f1;line-height:1em;float:left;width:145px;margin:0;position:relative;padding:0 0 10px;margin-left:-153px}#woocommerce-product-data ul.wc-tabs li,#woocommerce-coupon-data ul.wc-tabs li,.woocommerce ul.wc-tabs li{display:block;padding:0;margin:0}#woocommerce-product-data ul.wc-tabs li a,#woocommerce-coupon-data ul.wc-tabs li a,.woocommerce ul.wc-tabs li a{padding:5px;line-height:18px!important;margin:0;display:block;background:#f1f1f1;text-decoration:none;border-bottom:1px solid #f1f1f1;border-top:1px solid #f1f1f1;padding-left:10px}#woocommerce-product-data ul.wc-tabs li a:before,#woocommerce-coupon-data ul.wc-tabs li a:before,.woocommerce ul.wc-tabs li a:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e028"}#woocommerce-product-data ul.wc-tabs li:first-child a,#woocommerce-coupon-data ul.wc-tabs li:first-child a,.woocommerce ul.wc-tabs li:first-child a{border-top:0!important}#woocommerce-product-data ul.wc-tabs li.general_options a:before,#woocommerce-coupon-data ul.wc-tabs li.general_options a:before,.woocommerce ul.wc-tabs li.general_options a:before{content:"\e006"}#woocommerce-product-data ul.wc-tabs li.inventory_options a:before,#woocommerce-coupon-data ul.wc-tabs li.inventory_options a:before,.woocommerce ul.wc-tabs li.inventory_options a:before{content:"\e02c"}#woocommerce-product-data ul.wc-tabs li.shipping_options a:before,#woocommerce-coupon-data ul.wc-tabs li.shipping_options a:before,.woocommerce ul.wc-tabs li.shipping_options a:before{content:"\e01a"}#woocommerce-product-data ul.wc-tabs li.linked_product_options a:before,#woocommerce-coupon-data ul.wc-tabs li.linked_product_options a:before,.woocommerce ul.wc-tabs li.linked_product_options a:before{content:"\e00d"}#woocommerce-product-data ul.wc-tabs li.attribute_options a:before,#woocommerce-coupon-data ul.wc-tabs li.attribute_options a:before,.woocommerce ul.wc-tabs li.attribute_options a:before{content:"\e02b"}#woocommerce-product-data ul.wc-tabs li.advanced_options a:before,#woocommerce-coupon-data ul.wc-tabs li.advanced_options a:before,.woocommerce ul.wc-tabs li.advanced_options a:before{content:"\e01c"}#woocommerce-product-data ul.wc-tabs li.variation_options a:before,#woocommerce-coupon-data ul.wc-tabs li.variation_options a:before,.woocommerce ul.wc-tabs li.variation_options a:before{content:"\e003"}#woocommerce-product-data ul.wc-tabs li.usage_restriction_options a:before,#woocommerce-coupon-data ul.wc-tabs li.usage_restriction_options a:before,.woocommerce ul.wc-tabs li.usage_restriction_options a:before{content:"\e013"}#woocommerce-product-data ul.wc-tabs li.usage_limit_options a:before,#woocommerce-coupon-data ul.wc-tabs li.usage_limit_options a:before,.woocommerce ul.wc-tabs li.usage_limit_options a:before{content:"\e016"}#woocommerce-product-data ul.wc-tabs li.active a,#woocommerce-coupon-data ul.wc-tabs li.active a,.woocommerce ul.wc-tabs li.active a{border-color:#dfdfdf;position:relative;background-color:#f8f8f8;color:#555;margin:0 -1px 0 0}@media only screen and (max-width:900px){#woocommerce-product-data .panel-wrap,#woocommerce-coupon-data .panel-wrap{padding-left:35px}#woocommerce-product-data .wc-tabs-back,#woocommerce-coupon-data .wc-tabs-back{position:absolute;top:0;left:0;bottom:0;background:#f1f1f1;width:28px;border-right:1px solid #dfdfdf}#woocommerce-product-data ul.product_data_tabs,.woocommerce ul.wc-tabs{width:28px;margin-left:-35px}#woocommerce-product-data ul.product_data_tabs li a,.woocommerce ul.wc-tabs li a{width:28px;padding:28px 0 0 0!important;overflow:hidden;height:0}#woocommerce-product-data ul.product_data_tabs li.active a,.woocommerce ul.wc-tabs li.active a{width:29px}}#woocommerce-product-data .inside,#woocommerce-product-type-options .inside,#woocommerce-order-data .inside,#woocommerce-order-downloads .inside,#woocommerce-coupon-data .inside{padding:0;margin:0}.woocommerce_options_panel,.panel{padding:9px 9px 9px 9px;color:#555}.woocommerce_page_settings .woocommerce_options_panel,.panel{padding:0}#woocommerce-product-type-options .panel,#woocommerce-product-specs .inside{padding:9px;margin:0}.woocommerce_options_panel p,#woocommerce-product-type-options .panel p{margin:0 0 9px;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel p:after,#woocommerce-product-type-options .panel p:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce_options_panel .checkbox,table.woocommerce_variable_attributes .checkbox{vertical-align:middle;margin:7px 0;width:auto}.woocommerce_variations .downloadable_files table,.woocommerce_options_panel .downloadable_files table{width:100%;padding:0!important}.woocommerce_variations .downloadable_files table th,.woocommerce_options_panel .downloadable_files table th{padding:7px 0 7px 7px}.woocommerce_variations .downloadable_files table td,.woocommerce_options_panel .downloadable_files table td{vertical-align:middle!important;padding:4px 0 4px 7px;position:relative}.woocommerce_variations .downloadable_files table td:last-child,.woocommerce_options_panel .downloadable_files table td:last-child{padding-right:7px}.woocommerce_variations .downloadable_files table td input.input_text,.woocommerce_options_panel .downloadable_files table td input.input_text{width:100%;float:none;margin:1px 0}.woocommerce_variations .downloadable_files table td .upload_file_button,.woocommerce_options_panel .downloadable_files table td .upload_file_button{float:right;width:auto;cursor:pointer}.woocommerce_variations .downloadable_files table td .delete,.woocommerce_options_panel .downloadable_files table td .delete{display:block;text-indent:-999px;position:relative;height:1em;width:1em}.woocommerce_variations .downloadable_files table td .delete:before,.woocommerce_options_panel .downloadable_files table td .delete:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001";content:"\e013";color:#999}.woocommerce_variations .downloadable_files table td .delete:hover:before,.woocommerce_options_panel .downloadable_files table td .delete:hover:before{color:red}.woocommerce_variations .downloadable_files table th.sort,.woocommerce_options_panel .downloadable_files table th.sort{width:17px;padding:0}.woocommerce_variations .downloadable_files table td.sort,.woocommerce_options_panel .downloadable_files table td.sort{padding:0 0 0 1.5em;cursor:move;position:relative;background:#f9f9f9}.woocommerce_variations .downloadable_files table td.sort:before,.woocommerce_options_panel .downloadable_files table td.sort:before{content:"";position:absolute;top:1em;left:.5em;width:1em;height:.125em;border-top:.375em double #999;border-bottom:.125em solid #999}.woocommerce_options_panel .downloadable_files{padding:0 9px 0 162px;position:relative;margin:9px 0 9px}.woocommerce_options_panel .downloadable_files label{position:absolute;left:0;margin:0 0 0 12px;line-height:24px}.woocommerce_options_panel p{margin:9px 0 9px}.woocommerce_options_panel label,.woocommerce_options_panel legend{float:left;width:150px;padding:0}.woocommerce_options_panel label .req,.woocommerce_options_panel legend .req{font-weight:bold;font-style:normal;color:red}.woocommerce_options_panel .description{padding:0;margin:0 0 0 7px}.woocommerce_options_panel .description-block{margin-left:0;display:block}.woocommerce_options_panel textarea,.woocommerce_options_panel input,.woocommerce_options_panel select{margin:0}.woocommerce_options_panel textarea{vertical-align:top;height:3.5em;line-height:1.5em}.woocommerce_options_panel input{width:50%;float:left}.woocommerce_options_panel input.button{width:auto;margin-left:8px}.woocommerce_options_panel select{float:left}.woocommerce_options_panel .short{width:20%}.woocommerce_options_panel .sized{width:auto!important;margin-right:6px}.woocommerce_options_panel .options_group{border-top:1px solid white;border-bottom:1px solid #dfdfdf}.woocommerce_options_panel .options_group:first-child{border-top:0}.woocommerce_options_panel .options_group:last-child{border-bottom:0}.woocommerce_options_panel .options_group fieldset{margin:9px 0;font-size:12px;padding:5px 9px;line-height:24px}.woocommerce_options_panel .options_group fieldset label{width:auto;float:none}.woocommerce_options_panel .options_group fieldset ul{float:left;width:50%;margin:0;padding:0}.woocommerce_options_panel .options_group fieldset ul li{margin:0;width:auto}.woocommerce_options_panel .options_group fieldset ul li input{width:auto;float:none;margin-right:4px}.woocommerce_options_panel .dimensions_field .wrap input{margin-right:.2%;width:6.6%}.woocommerce_options_panel .dimensions_field .wrap .last{margin-right:0}#woocommerce-product-data input.dp-applied{float:left}#grouped_product_options,#virtual_product_options,#simple_product_options{padding:12px;font-style:italic;color:#666}.wc-metaboxes-wrapper .toolbar{margin:0!important;border-top:1px solid white;border-bottom:1px solid #dfdfdf;padding:9px 12px!important}.wc-metaboxes-wrapper .toolbar:first-child{border-top:0}.wc-metaboxes-wrapper .toolbar:last-child{border-bottom:0}.wc-metaboxes-wrapper p.toolbar{overflow:hidden;zoom:1}.wc-metaboxes-wrapper select.attribute_taxonomy,.wc-metaboxes-wrapper button.add_attribute,.wc-metaboxes-wrapper button.add_variable_attribute,.wc-metaboxes-wrapper .fr{float:right;margin:0 0 0 6px}.wc-metaboxes-wrapper .wc-metaboxes{border-bottom:1px solid #dfdfdf;padding:0 12px 0}.wc-metaboxes-wrapper .wc-metabox-sortable-placeholder{border-color:#bbb;background-color:#f5f5f5;margin-bottom:9px;border-width:1px;border-style:dashed}.wc-metaboxes-wrapper .wc-metabox{background:#ececec;border:1px solid #ececec;margin:9px 0!important;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.wc-metaboxes-wrapper .wc-metabox.closed{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.wc-metaboxes-wrapper .wc-metabox h3{margin:0!important;padding:6px!important;font-size:1em!important;overflow:hidden;zoom:1;cursor:move}.wc-metaboxes-wrapper .wc-metabox h3 button{float:right}.wc-metaboxes-wrapper .wc-metabox h3 strong{font-weight:normal;line-height:24px}.wc-metaboxes-wrapper .wc-metabox h3 select{font-family:sans-serif}.wc-metaboxes-wrapper .wc-metabox h3 .handlediv{background-position:6px 5px!important;display:none;height:24px}.wc-metaboxes-wrapper .wc-metabox h3.fixed{cursor:pointer!important}.wc-metaboxes-wrapper .wc-metabox h3:hover .handlediv{display:block}.wc-metaboxes-wrapper .wc-metabox table{width:100%;position:relative;background:#fff;padding:3px}.wc-metaboxes-wrapper .wc-metabox table td{text-align:left;padding:6px 6px;vertical-align:top;border:0}.wc-metaboxes-wrapper .wc-metabox table td label{text-align:left;display:block;line-height:21px}.wc-metaboxes-wrapper .wc-metabox table td input{float:left;min-width:200px}.wc-metaboxes-wrapper .wc-metabox table td input,.wc-metaboxes-wrapper .wc-metabox table td textarea{width:100%;margin:0;display:block;font-size:14px;padding:4px;color:#555}.wc-metaboxes-wrapper .wc-metabox table td select,.wc-metaboxes-wrapper .wc-metabox table td .chosen-container{width:100%!important}.wc-metaboxes-wrapper .wc-metabox table td input.short{width:200px}.wc-metaboxes-wrapper .wc-metabox table td input.checkbox{width:auto;min-width:inherit;vertical-align:middle;display:inline;float:none}.wc-metaboxes-wrapper .wc-metabox table td.attribute_name{width:200px}.wc-metaboxes-wrapper .wc-metabox table .plus,.wc-metaboxes-wrapper .wc-metabox table .minus{margin-top:6px}.wc-metaboxes-wrapper .wc-metabox table .fl{float:left}.wc-metaboxes-wrapper .wc-metabox table .fr{float:right}.wc-metaboxes-wrapper .expand_all,.wc-metaboxes-wrapper .close_all{float:right;margin-left:14px;line-height:22px;text-decoration:none}.wc-metaboxes-wrapper .expand_all:before,.wc-metaboxes-wrapper .close_all:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e036";font-size:.8em;color:#999}.wc-metaboxes-wrapper .expand_all:before{content:"\e035"}#variable_product_options .woocommerce_variation table{background:#f5f5f5;padding:6px}#variable_product_options .woocommerce_variation table td input{min-width:inherit!important}#variable_product_options .woocommerce_variation table td.dimensions_field input{width:32%;margin-right:2%}#variable_product_options .woocommerce_variation table td.dimensions_field .last{margin-right:0}#variable_product_options .woocommerce_variation table td.options{width:150px}#variable_product_options .woocommerce_variation table td.options label{margin-bottom:6px}#variable_product_options .woocommerce_variation table td.data{padding:0 0 0 12px}#variable_product_options .woocommerce_variation table td.data table.data_table{width:100%;padding:0 12px 6px 12px;background:#fff;border:1px solid #dfdfdf;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table.data_table td{width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#variable_product_options .woocommerce_variation table td.data table.data_table:before{content:"";display:block;position:absolute;top:33px;left:0;margin:0 0 0 -1px;border:7px solid #dfdfdf;border-color:transparent transparent transparent #dfdfdf}#variable_product_options .woocommerce_variation table td.data table.data_table:after{content:"";display:block;position:absolute;top:34px;left:0;margin:0 0 0 -1px;border:6px solid #f5f5f5;border-color:transparent transparent transparent #f5f5f5}#variable_product_options .woocommerce_variation table td.upload_image{white-space:nowrap;width:75px}#variable_product_options .woocommerce_variation table td.upload_image img{float:none;width:73px;border:1px solid #dfdfdf}#variable_product_options .woocommerce_variation table td.upload_image .button{margin:0;padding:4px 10px;width:auto;float:none;vertical-align:middle}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button{display:block;position:relative}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button .overlay{display:none;width:75px;height:75px;position:absolute;top:0;left:0;margin:0;padding:0;opacity:.5;background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAXklEQVQYGW2OUQrAMAhDFy8+dnKnwiuh2I+aJulDZebDkfSie1b28Q7EXWrfvSm60RQnkQUC8ja7owpmL6d4GdDZ0cNNHyIhZEj4QYCxze6orsluAh8AnR0xKPR07weXJi8JGd3qqwAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button:hover .overlay{display:block}#variable_product_options .woocommerce_variation table td.upload_image .upload_image_button.remove .overlay{background:#eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAWElEQVQYGY2OUQ6AMAxCZdm9jSev65K3YKNm+6EFBlVEHDxJJ3Pi0C72xlBNyTs3jU7wEUTTIB51GCp2CL8HLpHEdaOLb/N2dfuq9NT0zOo/M9q6EaImsd/uViMLVuD4KAAAAABJRU5ErkJggg==) no-repeat center center}#variable_product_options .woocommerce_variation table .cancel_sale_schedule,#variable_product_options .woocommerce_variation table .sale_schedule{float:right}#variable_product_options .woocommerce_variation table tr.sale_price_dates_fields td{padding-right:24px;position:relative}#variable_product_options .woocommerce_variation table tr.sale_price_dates_fields td img{position:absolute;right:0;bottom:0;padding:5px 0;margin:0 0 6px}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0 0}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip,.wc_error_tip{font-size:11px;color:#fff;padding:.5em .5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.1);box-shadow:1px 1px 3px rgba(0,0,0,0.1);text-align:center}#tiptip_content code,.chart-tooltip code,.wc_error_tip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.wc_error_tip{background:#d82223;max-width:20em;white-space:normal;position:absolute;margin:1.5em 1px 0 -1em;z-index:9999999}.wc_error_tip:after{content:"";display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}img.ui-datepicker-trigger{vertical-align:middle;margin-top:-1px;cursor:pointer}.woocommerce_options_panel img.ui-datepicker-trigger,.wc-metabox-content img.ui-datepicker-trigger{float:left;margin-right:8px;margin-top:4px;margin-left:4px}#ui-datepicker-div{display:none}.woocommerce-reports-wrap.woocommerce-reports-wrap,.woocommerce-reports-wide.woocommerce-reports-wrap{margin-left:300px;padding-top:18px}.woocommerce-reports-wrap.halved,.woocommerce-reports-wide.halved{margin:0;overflow:hidden;zoom:1}.woocommerce-reports-wrap .widefat td,.woocommerce-reports-wide .widefat td{vertical-align:top;padding:7px 7px}.woocommerce-reports-wrap .widefat td .description,.woocommerce-reports-wide .widefat td .description{margin:4px 0 0 0}.woocommerce-reports-wrap .postbox:after,.woocommerce-reports-wide .postbox:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce-reports-wrap .postbox h3,.woocommerce-reports-wide .postbox h3{cursor:default!important}.woocommerce-reports-wrap .postbox .inside,.woocommerce-reports-wide .postbox .inside{padding:10px;margin:0!important}.woocommerce-reports-wrap .postbox h3.stats_range,.woocommerce-reports-wide .postbox h3.stats_range{padding:0!important}.woocommerce-reports-wrap .postbox h3.stats_range .export_csv,.woocommerce-reports-wide .postbox h3.stats_range .export_csv{float:right;line-height:26px;border-left:1px solid #dfdfdf;padding:9px 10px;display:block;text-decoration:none}.woocommerce-reports-wrap .postbox h3.stats_range .export_csv:before,.woocommerce-reports-wide .postbox h3.stats_range .export_csv:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin-right:7px;content:"\e00a";margin-right:4px}.woocommerce-reports-wrap .postbox h3.stats_range ul,.woocommerce-reports-wide .postbox h3.stats_range ul{list-style:none outside;margin:0;padding:0;zoom:1}.woocommerce-reports-wrap .postbox h3.stats_range ul:before,.woocommerce-reports-wide .postbox h3.stats_range ul:before,.woocommerce-reports-wrap .postbox h3.stats_range ul:after,.woocommerce-reports-wide .postbox h3.stats_range ul:after{content:" ";display:table}.woocommerce-reports-wrap .postbox h3.stats_range ul:after,.woocommerce-reports-wide .postbox h3.stats_range ul:after{clear:both}.woocommerce-reports-wrap .postbox h3.stats_range ul li,.woocommerce-reports-wide .postbox h3.stats_range ul li{float:left;margin:0;padding:0;line-height:26px}.woocommerce-reports-wrap .postbox h3.stats_range ul li a,.woocommerce-reports-wide .postbox h3.stats_range ul li a{border-right:1px solid #dfdfdf;padding:9px 10px;display:block;text-decoration:none}.woocommerce-reports-wrap .postbox h3.stats_range ul li.active,.woocommerce-reports-wide .postbox h3.stats_range ul li.active{background:#f9f9f9;-webkit-box-shadow:0 4px 0 0 #f9f9f9;box-shadow:0 4px 0 0 #f9f9f9}.woocommerce-reports-wrap .postbox h3.stats_range ul li.active a,.woocommerce-reports-wide .postbox h3.stats_range ul li.active a{color:#777}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom{padding:9px 10px;vertical-align:middle}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom form,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom form,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom div,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom div{display:inline;margin:0}.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom form input.range_datepicker,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom form input.range_datepicker,.woocommerce-reports-wrap .postbox h3.stats_range ul li.custom div input.range_datepicker,.woocommerce-reports-wide .postbox h3.stats_range ul li.custom div input.range_datepicker{padding:0;margin:0 10px 0 0;background:transparent;border:0;color:#777;text-align:center;-webkit-box-shadow:none;box-shadow:none}.woocommerce-reports-wrap .postbox .chart-with-sidebar,.woocommerce-reports-wide .postbox .chart-with-sidebar{padding:12px 12px 12px 249px;margin:0!important}.woocommerce-reports-wrap .postbox .chart-with-sidebar .chart-sidebar,.woocommerce-reports-wide .postbox .chart-with-sidebar .chart-sidebar{width:225px;margin-left:-237px;float:left}.woocommerce-reports-wrap .postbox .chart-widgets,.woocommerce-reports-wide .postbox .chart-widgets{margin:0;padding:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget{margin:0 0 1em;background:#fafafa;border:1px solid #dfdfdf}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget:after,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget:after{content:".";display:block;height:0;clear:both;visibility:hidden}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget h4,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget h4{background:#fff;border:1px solid #dfdfdf;border-left-width:0;border-right-width:0;padding:10px;margin:0;color:#21759b;border-top-width:0;background-image:-webkit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9)}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget h4.section_title:hover,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget h4.section_title:hover{color:#d54e21}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title{cursor:pointer}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title span,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title span{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAFCAYAAACXU8ZrAAAAMElEQVQIW2OcOXPmfwYgSE9PZwTRyAAmB5bAphBZDK4bWRBdE4oVMEl067G6A919AJAYHtDVRR5EAAAAAElFTkSuQmCC) no-repeat right}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title.open,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title.open{color:#333}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section_title.open span,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section_title.open span{background-image:none}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section{border-bottom:1px solid #dfdfdf}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .section:last-of-type,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .section:last-of-type{border-radius:0 0 3px 3px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table{width:100%}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td{padding:7px 10px;vertical-align:top;border-top:1px solid #e5e5e5;line-height:1.4em}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table tr:first-child td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table tr:first-child td{border-top:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.count,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.count{background:#f5f5f5}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.name,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.name{padding-right:0}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table td.sparkline,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table td.sparkline{vertical-align:middle}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table .wc_sparkline,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table .wc_sparkline{width:32px;height:1em;display:block;float:right}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget table tr.active td,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget table tr.active td{background:#f5f5f5}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget form,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget form,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget p,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget p{margin:0;padding:10px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget form .submit,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget form .submit,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget p .submit,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget p .submit{margin-top:10px}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget #product_ids,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget #product_ids{width:100%}.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .select_all,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .select_all,.woocommerce-reports-wrap .postbox .chart-widgets li.chart-widget .select_none,.woocommerce-reports-wide .postbox .chart-widgets li.chart-widget .select_none{float:right;color:#999;margin-left:4px;margin-top:10px}.woocommerce-reports-wrap .postbox .chart-legend,.woocommerce-reports-wide .postbox .chart-legend{list-style:none outside;margin:0 0 1em;padding:0;border:1px solid #dfdfdf;border-right-width:0;border-bottom-width:0;background:#fff}.woocommerce-reports-wrap .postbox .chart-legend li,.woocommerce-reports-wide .postbox .chart-legend li{border-right:5px solid #aaa;color:#aaa;padding:1em 1.5em;display:block;margin:0;-webkit-transition:all ease .5s;box-shadow:inset 0 -1px 0 0 #dfdfdf}.woocommerce-reports-wrap .postbox .chart-legend li strong,.woocommerce-reports-wide .postbox .chart-legend li strong{font-size:2.618em;line-height:1.2em;color:#464646;font-weight:normal;display:block;font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif}.woocommerce-reports-wrap .postbox .chart-legend li:hover,.woocommerce-reports-wide .postbox .chart-legend li:hover{box-shadow:inset 0 -1px 0 0 #dfdfdf,inset 300px 0 0 rgba(156,93,144,0.1);border-right:5px solid #9c5d90!important;padding-left:2em;color:#9c5d90}.woocommerce-reports-wrap .postbox .pie-chart-legend,.woocommerce-reports-wide .postbox .pie-chart-legend{margin:12px 0 0 0;overflow:hidden}.woocommerce-reports-wrap .postbox .pie-chart-legend li,.woocommerce-reports-wide .postbox .pie-chart-legend li{float:left;margin:0;padding:6px 0 0 0;border-top:4px solid #999;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:50%}.woocommerce-reports-wrap .postbox .stat,.woocommerce-reports-wide .postbox .stat{font-size:1.5em!important;font-weight:bold;text-align:center}.woocommerce-reports-wrap .postbox .chart-placeholder,.woocommerce-reports-wide .postbox .chart-placeholder{width:100%;height:650px;overflow:hidden;position:relative}.woocommerce-reports-wrap .postbox .chart-prompt,.woocommerce-reports-wide .postbox .chart-prompt{line-height:650px;margin:0;color:#999;font-size:1.2em;font-style:italic;text-align:center}.woocommerce-reports-wrap .postbox .chart-container,.woocommerce-reports-wide .postbox .chart-container{background:#fff;padding:12px;position:relative;border:1px solid #dfdfdf;border-radius:3px}.woocommerce-reports-wrap .postbox .main .chart-legend,.woocommerce-reports-wide .postbox .main .chart-legend{margin-top:12px}.woocommerce-reports-wrap .postbox .main .chart-legend li,.woocommerce-reports-wide .postbox .main .chart-legend li{border-right:0;margin:0 8px 0 0;float:left;border-top:4px solid #aaa}.woocommerce-reports-wrap .woocommerce-reports-main,.woocommerce-reports-wide .woocommerce-reports-main{float:left;min-width:100%}.woocommerce-reports-wrap .woocommerce-reports-main table td,.woocommerce-reports-wide .woocommerce-reports-main table td{padding:9px}.woocommerce-reports-wrap .woocommerce-reports-sidebar,.woocommerce-reports-wide .woocommerce-reports-sidebar{display:inline;width:281px;margin-left:-300px;clear:both;float:left}.woocommerce-reports-wrap .woocommerce-reports-left,.woocommerce-reports-wide .woocommerce-reports-left{width:49.5%;float:left}.woocommerce-reports-wrap .woocommerce-reports-right,.woocommerce-reports-wide .woocommerce-reports-right{width:49.5%;float:right}.woocommerce-wide-reports-wrap{padding-bottom:11px}.woocommerce-wide-reports-wrap .widefat .export-data{float:right}.woocommerce-wide-reports-wrap .widefat th,.woocommerce-wide-reports-wrap .widefat td{vertical-align:middle;padding:7px}form.report_filters p{vertical-align:middle}form.report_filters label,form.report_filters input,form.report_filters div{vertical-align:middle}.chart-tooltip{position:absolute;display:none;line-height:1}table.bar_chart{width:100%}table.bar_chart thead th{text-align:left;color:#ccc;padding:6px 0}table.bar_chart tbody th{padding:6px 0;width:25%;text-align:left!important;font-weight:normal!important;border-bottom:1px solid #fee}table.bar_chart tbody td{text-align:right;line-height:24px;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td span{color:#8a4b75;display:block}table.bar_chart tbody td span.alt{color:#47a03e;margin-top:6px}table.bar_chart tbody td.bars{position:relative;text-align:left;padding:6px 6px 6px 0;border-bottom:1px solid #fee}table.bar_chart tbody td.bars span,table.bar_chart tbody td.bars a{text-decoration:none;clear:both;background:#8a4b75;float:left;display:block;line-height:24px;height:24px;-moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;-khtml-border-radius:3px;border-radius:3px}table.bar_chart tbody td.bars span.alt{clear:both;background:#47a03e}table.bar_chart tbody td.bars span.alt span{margin:0;color:#c5dec2!important;text-shadow:0 1px 0 #47a03e;background:transparent}.chosen-container-single .chosen-single{height:24px;line-height:25px}.chosen-container-single .chosen-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 2px!important}.chosen-container-active .chosen-single-with-drop div b{background-position:-18px 2px!important}.chosen-container-single .chosen-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chosen-container .chosen-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chosen-container-multi .chosen-choices .search-field input{height:21px!important}.woocommerce_options_panel .chosen-container-multi{width:50%!important;float:left}.woocommerce_options_panel .chosen-container-multi .search-field{min-width:50%}.woocommerce_options_panel .chosen-container-multi .search-field input{min-width:100%}@media only screen and (max-width:1280px){#order_data .order_data_column{width:48%}#order_data .order_data_column:first-child{width:100%}}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#icon-woocommerce,.woocommerce_icon,.icon32-posts-product,.icon32-posts-shop_order,.icon32-posts-shop_coupon,.icon32-posts-product_variation{background-image:url(../images/icons/woocommerce-icons-x2.png)!important;background-size:986px 91px!important}}.woocommerce-checkout .form-row .chosen-container{width:100%!important}.woocommerce-checkout .form-row .chosen-container-single .chosen-single{height:28px;line-height:29px}.woocommerce-checkout .form-row .chosen-container-single .chosen-single div b{background:url('../images/chosen-sprite.png') no-repeat 0 3px!important}.woocommerce-checkout .form-row .chosen-container-active .chosen-single-with-drop div b{background-position:-18px 4px!important}.woocommerce-checkout .form-row .chosen-container-single .chosen-search input{line-height:13px;width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce-checkout .form-row .chosen-container .chosen-drop{width:100%!important;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.woocommerce-checkout .form-row .chosen-container-single .chosen-single div b{background-image:url('../images/chosen-sprite@2x.png')!important;background-position:0 5px!important;background-repeat:no-repeat!important;background-size:52px 37px!important}.woocommerce-checkout .form-row .chosen-container-active .chosen-single-with-drop div b{background-position:-18px 5px!important}}.chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;zoom:1;*display:inline;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,0.15)}.chosen-container.chosen-with-drop .chosen-drop{left:0}.chosen-container a{cursor:pointer}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:23px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#fff),color-stop(50%,#f6f6f6),color-stop(52%,#eee),color-stop(100%,#f4f4f4));background:-webkit-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-moz-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:-o-linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background:linear-gradient(top,#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,0.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;background:url('../images/chosen-sprite.png') -42px 1px no-repeat;font-size:1px}.chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;background:url('../images/chosen-sprite.png') no-repeat 0 2px}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type="text"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;background:#fff url('../images/chosen-sprite.png') no-repeat 100% -20px;background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat 100% -20px,linear-gradient(#eee 1%,#fff 15%);font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.chosen-container .chosen-results{position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#3875d7),color-stop(90%,#2a62bc));background-image:-webkit-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-moz-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:-o-linear-gradient(#3875d7 20%,#2a62bc 90%);background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;width:100%;height:auto!important;height:1%;border:1px solid #aaa;background-color:#fff;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(#eee 1%,#fff 15%);background-image:-moz-linear-gradient(#eee 1%,#fff 15%);background-image:-o-linear-gradient(#eee 1%,#fff 15%);background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type="text"]{margin:1px 0;padding:5px;height:15px;outline:0;border:0!important;background:transparent!important;box-shadow:none;color:#666;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-multi .chosen-choices li.search-field .default{color:#999}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url('../images/chosen-sprite.png') -42px 1px no-repeat;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(20%,#eee),color-stop(80%,#fff));background-image:-webkit-linear-gradient(#eee 20%,#fff 80%);background-image:-moz-linear-gradient(#eee 20%,#fff 80%);background-image:-o-linear-gradient(#eee 20%,#fff 80%);background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:transparent}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.chosen-container-active .chosen-choices li.search-field input[type="text"]{color:#111!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type="text"]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single-nosearch .chosen-search,.chosen-rtl .chosen-drop{left:9999px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:0}.chosen-rtl .chosen-search input[type="text"]{padding:4px 5px 4px 20px;background:#fff url('../images/chosen-sprite.png') no-repeat -30px -20px;background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-webkit-gradient(linear,50% 0,50% 100%,color-stop(1%,#eee),color-stop(15%,#fff));background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-webkit-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-moz-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,-o-linear-gradient(#eee 1%,#fff 15%);background:url('../images/chosen-sprite.png') no-repeat -30px -20px,linear-gradient(#eee 1%,#fff 15%);direction:rtl}.chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.chosen-rtl .chosen-search input[type="text"],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-container-single .chosen-search input[type="text"],.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span{background-image:url('../images/chosen-sprite@2x.png')!important;background-size:52px 37px!important;background-repeat:no-repeat!important}} \ No newline at end of file diff --git a/assets/css/admin.less b/assets/css/admin.less index 5176105175d..dcaecf2c836 100644 --- a/assets/css/admin.less +++ b/assets/css/admin.less @@ -2096,7 +2096,22 @@ img.help_tip { } /* Tabs and panels */ -#woocommerce-product-data { +#woocommerce-coupon-description { + padding: 3px 8px; + font-size: 1.7em; + line-height: 1.42em; + height: auto; + width: 100%; + outline: 0; + margin: 10px 0 10px; + display: block; + + &::-webkit-input-placeholder { line-height: 1.42em; color: #bbb; } + &::-moz-placeholder { line-height: 1.42em; color: #bbb; } /* firefox 19+ */ + &:-ms-input-placeholder { line-height: 1.42em; color: #bbb; } /* ie */ + &:-moz-placeholder { line-height: 1.42em; color: #bbb; } +} +#woocommerce-product-data, #woocommerce-coupon-data { .panel-wrap { background: #f8f8f8; padding-left: 153px; @@ -2120,89 +2135,101 @@ img.help_tip { border-right: 1px solid #DFDFDF; } } -#woocommerce-product-data ul.product_data_tabs, .woocommerce ul.wc-tabs { - background: #f1f1f1; - line-height: 1em; - float: left; - width: 145px; - margin: 0; - position: relative; - padding: 0 0 10px; - margin-left: -153px; - - li { - display:block; - padding: 0; +#woocommerce-product-data, #woocommerce-coupon-data, .woocommerce { + ul.wc-tabs { + background: #f1f1f1; + line-height: 1em; + float: left; + width: 145px; margin: 0; + position: relative; + padding: 0 0 10px; + margin-left: -153px; - a { - padding: 5px; - line-height: 18px !important; + li { + display:block; + padding: 0; margin: 0; - display: block; - background: #f1f1f1; - text-decoration: none; - border-bottom: 1px solid #f1f1f1; - border-top: 1px solid #f1f1f1; - padding-left:10px; - &:before { - .iconbefore( "\e028" ); - } - } - &:first-child { a { - border-top: 0 !important; + padding: 5px; + line-height: 18px !important; + margin: 0; + display: block; + background: #f1f1f1; + text-decoration: none; + border-bottom: 1px solid #f1f1f1; + border-top: 1px solid #f1f1f1; + padding-left:10px; + &:before { + .iconbefore( "\e028" ); + } } - } - &.general_options { - a:before { - content: "\e006"; - } - } - &.tax_options { - a:before { + &:first-child { + a { + border-top: 0 !important; + } } - } - &.inventory_options { - a:before { - content: "\e02c"; + &.general_options { + a:before { + content: "\e006"; + } } - } - &.shipping_options { - a:before { - content: "\e01a"; - } - } - &.linked_product_options { - a:before { - content: "\e00d"; - } - } - &.attribute_options { - a:before { - content: "\e02b"; - } - } - &.advanced_options { - a:before { - content: "\e01c"; - } - } - &.variation_options { - a:before { - content: "\e003"; - } - } + &.tax_options { + a:before { - &.active { - a { - border-color: #DFDFDF; - position: relative; - background-color: #f8f8f8; - color: #555; - margin: 0 -1px 0 0; + } + } + &.inventory_options { + a:before { + content: "\e02c"; + } + } + &.shipping_options { + a:before { + content: "\e01a"; + } + } + &.linked_product_options { + a:before { + content: "\e00d"; + } + } + &.attribute_options { + a:before { + content: "\e02b"; + } + } + &.advanced_options { + a:before { + content: "\e01c"; + } + } + &.variation_options { + a:before { + content: "\e003"; + } + } + &.usage_restriction_options { + a:before { + content: "\e013"; + } + } + &.usage_limit_options { + a:before { + content: "\e016"; + } + } + + &.active { + a { + border-color: #DFDFDF; + position: relative; + background-color: #f8f8f8; + color: #555; + margin: 0 -1px 0 0; + } } } } @@ -2210,7 +2237,7 @@ img.help_tip { @media only screen and (max-width: 900px) { - #woocommerce-product-data { + #woocommerce-product-data, #woocommerce-coupon-data { .panel-wrap { padding-left: 35px; } diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index 84a18a0def8..80cdc018f33 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -1,194 +1 @@ -.clear { - clear: both; -} -.nobr { - white-space: nowrap; -} -/** - * Objects - */ -@font-face { - font-family: 'WooCommerce'; - src: url('../fonts/WooCommerce.eot'); - src: url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'), url('../fonts/WooCommerce.woff') format('woff'), url('../fonts/WooCommerce.ttf') format('truetype'), url('../fonts/WooCommerce.svg#WooCommerce') format('svg'); - font-weight: normal; - font-style: normal; -} -#woocommerce_dashboard_status .inside { - padding: 0; - margin: 0; -} -#woocommerce_dashboard_status .wc_status_list { - overflow: hidden; - margin: 0; -} -#woocommerce_dashboard_status .wc_status_list li { - width: 50%; - float: left; - padding: 0; - -webkit-box-sizing: border-box; - /* Safari/Chrome, other WebKit */ - - -moz-box-sizing: border-box; - /* Firefox, other Gecko */ - - box-sizing: border-box; - /* Opera/IE 8+ */ - - margin: 0; - border-top: 1px solid #ececec; - color: #aaa; -} -#woocommerce_dashboard_status .wc_status_list li a { - display: block; - color: #aaa; - padding: 9px 12px; - -webkit-transition: all ease .5s; - position: relative; -} -#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline { - width: 4em; - height: 2em; - display: block; - float: right; - position: absolute; - right: 0; - top: 50%; - margin-right: 12px; - margin-top: -1.25em; -} -#woocommerce_dashboard_status .wc_status_list li a strong { - font-size: 18px; - line-height: 1.2em; - font-weight: normal; - display: block; - color: #21759b; - font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; -} -#woocommerce_dashboard_status .wc_status_list li a:hover { - box-shadow: inset 0 -1px 0 0 #dfdfdf, inset 700px 0 0 rgba(156, 93, 144, 0.1); - padding-left: 2em; - color: #9c5d90; -} -#woocommerce_dashboard_status .wc_status_list li a:hover:before, -#woocommerce_dashboard_status .wc_status_list li a:hover strong { - color: #9c5d90 !important; -} -#woocommerce_dashboard_status .wc_status_list li a:before { - font-family: 'WooCommerce'; - speak: none; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - margin: 0; - text-indent: 0; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - text-align: center; - content: "\e001"; - font-size: 2em; - position: relative; - width: auto; - line-height: 1.2em; - color: #464646; - float: left; - margin-right: 12px; - margin-bottom: 12px; -} -#woocommerce_dashboard_status .wc_status_list li:first-child { - border-top: 0; -} -#woocommerce_dashboard_status .wc_status_list li.sales-this-month { - width: 100%; -} -#woocommerce_dashboard_status .wc_status_list li.sales-this-month a:before { - content: "\e01f"; -} -#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month { - width: 100%; -} -#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a:before { - content: "\e006"; -} -#woocommerce_dashboard_status .wc_status_list li.processing-orders { - border-right: 1px solid #ececec; -} -#woocommerce_dashboard_status .wc_status_list li.processing-orders a:before { - content: "\e011"; - color: #73a724; -} -#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a:before { - content: "\e033"; - color: #999; -} -#woocommerce_dashboard_status .wc_status_list li.low-in-stock { - border-right: 1px solid #ececec; -} -#woocommerce_dashboard_status .wc_status_list li.low-in-stock a:before { - content: "\e02c"; - color: #c1692f; -} -#woocommerce_dashboard_status .wc_status_list li.out-of-stock a:before { - content: "\e02c"; - color: #aa4444; -} -#woocommerce_dashboard_recent_reviews li { - line-height: 1.5em; - margin-bottom: 12px; -} -#woocommerce_dashboard_recent_reviews h4.meta { - line-height: 1.4; - margin: -0.2em 0 0 0; - font-weight: normal; - color: #999; -} -#woocommerce_dashboard_recent_reviews blockquote { - padding: 0; - margin: 0; -} -#woocommerce_dashboard_recent_reviews .avatar { - float: left; - margin: 0 10px 5px 0; -} -#woocommerce_dashboard_recent_reviews .star-rating { - float: right; - overflow: hidden; - position: relative; - height: 1.5em; - line-height: 1.5; - margin-left: .5em; - width: 5.4em; - font-family: 'WooCommerce' !important; -} -#woocommerce_dashboard_recent_reviews .star-rating:before { - content: "\e021\e021\e021\e021\e021"; - color: #b3b3b3; - float: left; - top: 0; - left: 0; - position: absolute; - letter-spacing: 0.1em; - letter-spacing: 0\9; -} -#woocommerce_dashboard_recent_reviews .star-rating span { - overflow: hidden; - float: left; - top: 0; - left: 0; - position: absolute; - padding-top: 1.5em; -} -#woocommerce_dashboard_recent_reviews .star-rating span:before { - content: "\e020\e020\e020\e020\e020"; - top: 0; - position: absolute; - left: 0; - letter-spacing: 0.1em; - letter-spacing: 0\9; - color: #9c5d90; -} +.clear{clear:both}.nobr{white-space:nowrap}@font-face{font-family:'WooCommerce';src:url('../fonts/WooCommerce.eot');src:url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'),url('../fonts/WooCommerce.woff') format('woff'),url('../fonts/WooCommerce.ttf') format('truetype'),url('../fonts/WooCommerce.svg#WooCommerce') format('svg');font-weight:normal;font-style:normal}#woocommerce_dashboard_status .inside{padding:0;margin:0}#woocommerce_dashboard_status .wc_status_list{overflow:hidden;margin:0}#woocommerce_dashboard_status .wc_status_list li{width:50%;float:left;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-top:1px solid #ececec;color:#aaa}#woocommerce_dashboard_status .wc_status_list li a{display:block;color:#aaa;padding:9px 12px;-webkit-transition:all ease .5s;position:relative}#woocommerce_dashboard_status .wc_status_list li a .wc_sparkline{width:4em;height:2em;display:block;float:right;position:absolute;right:0;top:50%;margin-right:12px;margin-top:-1.25em}#woocommerce_dashboard_status .wc_status_list li a strong{font-size:18px;line-height:1.2em;font-weight:normal;display:block;color:#21759b;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif}#woocommerce_dashboard_status .wc_status_list li a:hover{box-shadow:inset 0 -1px 0 0 #dfdfdf,inset 700px 0 0 rgba(156,93,144,0.1);padding-left:2em;color:#9c5d90}#woocommerce_dashboard_status .wc_status_list li a:hover:before,#woocommerce_dashboard_status .wc_status_list li a:hover strong{color:#9c5d90!important}#woocommerce_dashboard_status .wc_status_list li a:before{font-family:'WooCommerce';speak:none;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"\e001";font-size:2em;position:relative;width:auto;line-height:1.2em;color:#464646;float:left;margin-right:12px;margin-bottom:12px}#woocommerce_dashboard_status .wc_status_list li:first-child{border-top:0}#woocommerce_dashboard_status .wc_status_list li.sales-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.sales-this-month a:before{content:"\e01f"}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month{width:100%}#woocommerce_dashboard_status .wc_status_list li.best-seller-this-month a:before{content:"\e006"}#woocommerce_dashboard_status .wc_status_list li.processing-orders{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.processing-orders a:before{content:"\e011";color:#73a724}#woocommerce_dashboard_status .wc_status_list li.on-hold-orders a:before{content:"\e033";color:#999}#woocommerce_dashboard_status .wc_status_list li.low-in-stock{border-right:1px solid #ececec}#woocommerce_dashboard_status .wc_status_list li.low-in-stock a:before{content:"\e02c";color:#c1692f}#woocommerce_dashboard_status .wc_status_list li.out-of-stock a:before{content:"\e02c";color:#a44}#woocommerce_dashboard_recent_reviews li{line-height:1.5em;margin-bottom:12px}#woocommerce_dashboard_recent_reviews h4.meta{line-height:1.4;margin:-0.2em 0 0 0;font-weight:normal;color:#999}#woocommerce_dashboard_recent_reviews blockquote{padding:0;margin:0}#woocommerce_dashboard_recent_reviews .avatar{float:left;margin:0 10px 5px 0}#woocommerce_dashboard_recent_reviews .star-rating{float:right;overflow:hidden;position:relative;height:1.5em;line-height:1.5;margin-left:.5em;width:5.4em;font-family:'WooCommerce'!important}#woocommerce_dashboard_recent_reviews .star-rating:before{content:"\e021\e021\e021\e021\e021";color:#b3b3b3;float:left;top:0;left:0;position:absolute;letter-spacing:.1em;letter-spacing:0\9}#woocommerce_dashboard_recent_reviews .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}#woocommerce_dashboard_recent_reviews .star-rating span:before{content:"\e020\e020\e020\e020\e020";top:0;position:absolute;left:0;letter-spacing:.1em;letter-spacing:0\9;color:#9c5d90} \ No newline at end of file diff --git a/assets/css/woocommerce-layout.css b/assets/css/woocommerce-layout.css index 855bda53483..7d16f3bd53e 100644 --- a/assets/css/woocommerce-layout.css +++ b/assets/css/woocommerce-layout.css @@ -1,543 +1 @@ -.clear { - clear: both; -} -.nobr { - white-space: nowrap; -} -/** - * Objects - */ -/* Primary colour for buttons (alt) */ -/* Text on primary colour bg */ -/* Secondary buttons */ -/* Text on secondary colour bg */ -/* Prices, In stock labels, sales flash */ -/* Text on highlight colour bg */ -/* Content BG - Tabs (active state) */ -/* small, breadcrumbs etc *//* Contains base colours like @primary */ -.woocommerce, -.woocommerce-page { - /* =General Layout Styles - -------------------------------------------------------------- */ - - /* =Product Page - -------------------------------------------------------------- */ - - /* =Product Loops - -------------------------------------------------------------- */ - - /* =Cart Page - -------------------------------------------------------------- */ - - /* =Cart Sidebar - -------------------------------------------------------------- */ - - /* =Forms - -------------------------------------------------------------- */ - -} -.woocommerce .col2-set, -.woocommerce-page .col2-set { - *zoom: 1; - width: 100%; -} -.woocommerce .col2-set:before, -.woocommerce-page .col2-set:before, -.woocommerce .col2-set:after, -.woocommerce-page .col2-set:after { - content: " "; - display: table; -} -.woocommerce .col2-set:after, -.woocommerce-page .col2-set:after { - clear: both; -} -.woocommerce .col2-set .col-1, -.woocommerce-page .col2-set .col-1 { - float: left; - width: 48%; -} -.woocommerce .col2-set .col-2, -.woocommerce-page .col2-set .col-2 { - float: right; - width: 48%; -} -.woocommerce img, -.woocommerce-page img { - height: auto; - max-width: 100%; -} -.woocommerce div.product, -.woocommerce-page div.product, -.woocommerce #content div.product, -.woocommerce-page #content div.product { - /* Tabs on the product page */ - -} -.woocommerce div.product div.images, -.woocommerce-page div.product div.images, -.woocommerce #content div.product div.images, -.woocommerce-page #content div.product div.images { - float: left; - width: 48%; -} -.woocommerce div.product div.thumbnails, -.woocommerce-page div.product div.thumbnails, -.woocommerce #content div.product div.thumbnails, -.woocommerce-page #content div.product div.thumbnails { - *zoom: 1; -} -.woocommerce div.product div.thumbnails:before, -.woocommerce-page div.product div.thumbnails:before, -.woocommerce #content div.product div.thumbnails:before, -.woocommerce-page #content div.product div.thumbnails:before, -.woocommerce div.product div.thumbnails:after, -.woocommerce-page div.product div.thumbnails:after, -.woocommerce #content div.product div.thumbnails:after, -.woocommerce-page #content div.product div.thumbnails:after { - content: " "; - display: table; -} -.woocommerce div.product div.thumbnails:after, -.woocommerce-page div.product div.thumbnails:after, -.woocommerce #content div.product div.thumbnails:after, -.woocommerce-page #content div.product div.thumbnails:after { - clear: both; -} -.woocommerce div.product div.thumbnails a, -.woocommerce-page div.product div.thumbnails a, -.woocommerce #content div.product div.thumbnails a, -.woocommerce-page #content div.product div.thumbnails a { - float: left; - width: 30.75%; - margin-right: 3.8%; -} -.woocommerce div.product div.thumbnails a.last, -.woocommerce-page div.product div.thumbnails a.last, -.woocommerce #content div.product div.thumbnails a.last, -.woocommerce-page #content div.product div.thumbnails a.last { - margin-right: 0; -} -.woocommerce div.product div.thumbnails a.first, -.woocommerce-page div.product div.thumbnails a.first, -.woocommerce #content div.product div.thumbnails a.first, -.woocommerce-page #content div.product div.thumbnails a.first { - clear: both; -} -.woocommerce div.product div.summary, -.woocommerce-page div.product div.summary, -.woocommerce #content div.product div.summary, -.woocommerce-page #content div.product div.summary { - float: right; - width: 48%; -} -.woocommerce div.product .woocommerce-tabs, -.woocommerce-page div.product .woocommerce-tabs, -.woocommerce #content div.product .woocommerce-tabs, -.woocommerce-page #content div.product .woocommerce-tabs { - clear: both; -} -.woocommerce div.product .woocommerce-tabs ul.tabs, -.woocommerce-page div.product .woocommerce-tabs ul.tabs, -.woocommerce #content div.product .woocommerce-tabs ul.tabs, -.woocommerce-page #content div.product .woocommerce-tabs ul.tabs { - *zoom: 1; -} -.woocommerce div.product .woocommerce-tabs ul.tabs:before, -.woocommerce-page div.product .woocommerce-tabs ul.tabs:before, -.woocommerce #content div.product .woocommerce-tabs ul.tabs:before, -.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:before, -.woocommerce div.product .woocommerce-tabs ul.tabs:after, -.woocommerce-page div.product .woocommerce-tabs ul.tabs:after, -.woocommerce #content div.product .woocommerce-tabs ul.tabs:after, -.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:after { - content: " "; - display: table; -} -.woocommerce div.product .woocommerce-tabs ul.tabs:after, -.woocommerce-page div.product .woocommerce-tabs ul.tabs:after, -.woocommerce #content div.product .woocommerce-tabs ul.tabs:after, -.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:after { - clear: both; -} -.woocommerce div.product .woocommerce-tabs ul.tabs li, -.woocommerce-page div.product .woocommerce-tabs ul.tabs li, -.woocommerce #content div.product .woocommerce-tabs ul.tabs li, -.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li { - display: inline; -} -.woocommerce div.product #reviews .comment, -.woocommerce-page div.product #reviews .comment, -.woocommerce #content div.product #reviews .comment, -.woocommerce-page #content div.product #reviews .comment { - *zoom: 1; -} -.woocommerce div.product #reviews .comment:before, -.woocommerce-page div.product #reviews .comment:before, -.woocommerce #content div.product #reviews .comment:before, -.woocommerce-page #content div.product #reviews .comment:before, -.woocommerce div.product #reviews .comment:after, -.woocommerce-page div.product #reviews .comment:after, -.woocommerce #content div.product #reviews .comment:after, -.woocommerce-page #content div.product #reviews .comment:after { - content: " "; - display: table; -} -.woocommerce div.product #reviews .comment:after, -.woocommerce-page div.product #reviews .comment:after, -.woocommerce #content div.product #reviews .comment:after, -.woocommerce-page #content div.product #reviews .comment:after { - clear: both; -} -.woocommerce div.product #reviews .comment img, -.woocommerce-page div.product #reviews .comment img, -.woocommerce #content div.product #reviews .comment img, -.woocommerce-page #content div.product #reviews .comment img { - float: right; - height: auto; -} -.woocommerce #quantity, -.woocommerce-page #quantity, -.woocommerce #content .quantity, -.woocommerce-page #content .quantity { - /* Disable input[type=number] buttons until the world is ready */ - -} -.woocommerce #quantity input::-webkit-outer-spin-button, -.woocommerce-page #quantity input::-webkit-outer-spin-button, -.woocommerce #content .quantity input::-webkit-outer-spin-button, -.woocommerce-page #content .quantity input::-webkit-outer-spin-button, -.woocommerce #quantity input::-webkit-inner-spin-button, -.woocommerce-page #quantity input::-webkit-inner-spin-button, -.woocommerce #content .quantity input::-webkit-inner-spin-button, -.woocommerce-page #content .quantity input::-webkit-inner-spin-button { - display: none; -} -.woocommerce .related, -.woocommerce-page .related, -.woocommerce .upsells.products, -.woocommerce-page .upsells.products { - *zoom: 1; -} -.woocommerce .related:before, -.woocommerce-page .related:before, -.woocommerce .upsells.products:before, -.woocommerce-page .upsells.products:before, -.woocommerce .related:after, -.woocommerce-page .related:after, -.woocommerce .upsells.products:after, -.woocommerce-page .upsells.products:after { - content: " "; - display: table; -} -.woocommerce .related:after, -.woocommerce-page .related:after, -.woocommerce .upsells.products:after, -.woocommerce-page .upsells.products:after { - clear: both; -} -.woocommerce .related ul.products, -.woocommerce-page .related ul.products, -.woocommerce .upsells.products ul.products, -.woocommerce-page .upsells.products ul.products, -.woocommerce .related ul, -.woocommerce-page .related ul, -.woocommerce .upsells.products ul, -.woocommerce-page .upsells.products ul { - float: none; -} -.woocommerce .related ul.products li.product, -.woocommerce-page .related ul.products li.product, -.woocommerce .upsells.products ul.products li.product, -.woocommerce-page .upsells.products ul.products li.product, -.woocommerce .related ul li.product, -.woocommerce-page .related ul li.product, -.woocommerce .upsells.products ul li.product, -.woocommerce-page .upsells.products ul li.product { - width: 48%; -} -.woocommerce .related ul.products li.product img, -.woocommerce-page .related ul.products li.product img, -.woocommerce .upsells.products ul.products li.product img, -.woocommerce-page .upsells.products ul.products li.product img, -.woocommerce .related ul li.product img, -.woocommerce-page .related ul li.product img, -.woocommerce .upsells.products ul li.product img, -.woocommerce-page .upsells.products ul li.product img { - width: 100%; - height: auto; -} -.woocommerce ul.products, -.woocommerce-page ul.products { - clear: both; - *zoom: 1; -} -.woocommerce ul.products:before, -.woocommerce-page ul.products:before, -.woocommerce ul.products:after, -.woocommerce-page ul.products:after { - content: " "; - display: table; -} -.woocommerce ul.products:after, -.woocommerce-page ul.products:after { - clear: both; -} -.woocommerce ul.products li.product, -.woocommerce-page ul.products li.product { - float: left; - margin: 0 3.8% 2.992em 0; - padding: 0; - position: relative; - width: 22.05%; - margin-left: 0; -} -.woocommerce ul.products li.first, -.woocommerce-page ul.products li.first { - clear: both; -} -.woocommerce ul.products li.last, -.woocommerce-page ul.products li.last { - margin-right: 0; -} -.woocommerce.columns-1 ul.products li.product, -.woocommerce-page.columns-1 ul.products li.product { - width: 100%; - margin-right: 0; -} -.woocommerce.columns-2 ul.products li.product, -.woocommerce-page.columns-2 ul.products li.product { - width: 48%; -} -.woocommerce.columns-3 ul.products li.product, -.woocommerce-page.columns-3 ul.products li.product { - width: 30.75%; -} -.woocommerce.columns-5 ul.products li.product, -.woocommerce-page.columns-5 ul.products li.product { - width: 16.95%; -} -.woocommerce.columns-6 ul.products li.product, -.woocommerce-page.columns-6 ul.products li.product { - width: 13.5%; -} -.woocommerce .woocommerce-result-count, -.woocommerce-page .woocommerce-result-count { - float: left; -} -.woocommerce .woocommerce-ordering, -.woocommerce-page .woocommerce-ordering { - float: right; -} -.woocommerce .woocommerce-pagination ul.page-numbers, -.woocommerce-page .woocommerce-pagination ul.page-numbers { - *zoom: 1; -} -.woocommerce .woocommerce-pagination ul.page-numbers:before, -.woocommerce-page .woocommerce-pagination ul.page-numbers:before, -.woocommerce .woocommerce-pagination ul.page-numbers:after, -.woocommerce-page .woocommerce-pagination ul.page-numbers:after { - content: " "; - display: table; -} -.woocommerce .woocommerce-pagination ul.page-numbers:after, -.woocommerce-page .woocommerce-pagination ul.page-numbers:after { - clear: both; -} -.woocommerce .woocommerce-pagination ul.page-numbers li, -.woocommerce-page .woocommerce-pagination ul.page-numbers li { - display: inline; -} -.woocommerce table.cart img, -.woocommerce-page table.cart img, -.woocommerce #content table.cart img, -.woocommerce-page #content table.cart img { - height: auto; -} -.woocommerce table.cart td.actions, -.woocommerce-page table.cart td.actions, -.woocommerce #content table.cart td.actions, -.woocommerce-page #content table.cart td.actions { - text-align: right; -} -.woocommerce table.cart td.actions .input-text, -.woocommerce-page table.cart td.actions .input-text, -.woocommerce #content table.cart td.actions .input-text, -.woocommerce-page #content table.cart td.actions .input-text { - width: 80px; -} -.woocommerce table.cart td.actions .coupon, -.woocommerce-page table.cart td.actions .coupon, -.woocommerce #content table.cart td.actions .coupon, -.woocommerce-page #content table.cart td.actions .coupon { - float: left; -} -.woocommerce table.cart td.actions .coupon label, -.woocommerce-page table.cart td.actions .coupon label, -.woocommerce #content table.cart td.actions .coupon label, -.woocommerce-page #content table.cart td.actions .coupon label { - display: none; -} -.woocommerce .cart-collaterals, -.woocommerce-page .cart-collaterals { - *zoom: 1; - width: 100%; -} -.woocommerce .cart-collaterals:before, -.woocommerce-page .cart-collaterals:before, -.woocommerce .cart-collaterals:after, -.woocommerce-page .cart-collaterals:after { - content: " "; - display: table; -} -.woocommerce .cart-collaterals:after, -.woocommerce-page .cart-collaterals:after { - clear: both; -} -.woocommerce .cart-collaterals .related, -.woocommerce-page .cart-collaterals .related { - width: 30.75%; - float: left; -} -.woocommerce .cart-collaterals .cross-sells, -.woocommerce-page .cart-collaterals .cross-sells { - width: 48%; - float: left; -} -.woocommerce .cart-collaterals .cross-sells ul.products, -.woocommerce-page .cart-collaterals .cross-sells ul.products { - float: none; -} -.woocommerce .cart-collaterals .cross-sells ul.products li, -.woocommerce-page .cart-collaterals .cross-sells ul.products li { - width: 48%; -} -.woocommerce .cart-collaterals .shipping_calculator, -.woocommerce-page .cart-collaterals .shipping_calculator { - width: 48%; - *zoom: 1; - clear: right; - float: right; -} -.woocommerce .cart-collaterals .shipping_calculator:before, -.woocommerce-page .cart-collaterals .shipping_calculator:before, -.woocommerce .cart-collaterals .shipping_calculator:after, -.woocommerce-page .cart-collaterals .shipping_calculator:after { - content: " "; - display: table; -} -.woocommerce .cart-collaterals .shipping_calculator:after, -.woocommerce-page .cart-collaterals .shipping_calculator:after { - clear: both; -} -.woocommerce .cart-collaterals .shipping_calculator .col2-set .col-1, -.woocommerce-page .cart-collaterals .shipping_calculator .col2-set .col-1, -.woocommerce .cart-collaterals .shipping_calculator .col2-set .col-2, -.woocommerce-page .cart-collaterals .shipping_calculator .col2-set .col-2 { - width: 47%; -} -.woocommerce .cart-collaterals .cart_totals, -.woocommerce-page .cart-collaterals .cart_totals { - float: right; - width: 48%; - text-align: right; -} -.woocommerce ul.cart_list li, -.woocommerce-page ul.cart_list li, -.woocommerce ul.product_list_widget li, -.woocommerce-page ul.product_list_widget li { - *zoom: 1; -} -.woocommerce ul.cart_list li:before, -.woocommerce-page ul.cart_list li:before, -.woocommerce ul.product_list_widget li:before, -.woocommerce-page ul.product_list_widget li:before, -.woocommerce ul.cart_list li:after, -.woocommerce-page ul.cart_list li:after, -.woocommerce ul.product_list_widget li:after, -.woocommerce-page ul.product_list_widget li:after { - content: " "; - display: table; -} -.woocommerce ul.cart_list li:after, -.woocommerce-page ul.cart_list li:after, -.woocommerce ul.product_list_widget li:after, -.woocommerce-page ul.product_list_widget li:after { - clear: both; -} -.woocommerce ul.cart_list li img, -.woocommerce-page ul.cart_list li img, -.woocommerce ul.product_list_widget li img, -.woocommerce-page ul.product_list_widget li img { - float: right; - height: auto; -} -.woocommerce form .form-row, -.woocommerce-page form .form-row { - *zoom: 1; -} -.woocommerce form .form-row:before, -.woocommerce-page form .form-row:before, -.woocommerce form .form-row:after, -.woocommerce-page form .form-row:after { - content: " "; - display: table; -} -.woocommerce form .form-row:after, -.woocommerce-page form .form-row:after { - clear: both; -} -.woocommerce form .form-row label, -.woocommerce-page form .form-row label { - display: block; -} -.woocommerce form .form-row label.checkbox, -.woocommerce-page form .form-row label.checkbox { - display: inline; -} -.woocommerce form .form-row select, -.woocommerce-page form .form-row select { - width: 100%; -} -.woocommerce form .form-row .input-text, -.woocommerce-page form .form-row .input-text { - -webkit-box-sizing: border-box; - /* Safari/Chrome, other WebKit */ - - -moz-box-sizing: border-box; - /* Firefox, other Gecko */ - - box-sizing: border-box; - /* Opera/IE 8+ */ - - width: 100%; -} -.woocommerce form .form-row-first, -.woocommerce-page form .form-row-first, -.woocommerce form .form-row-last, -.woocommerce-page form .form-row-last { - float: left; - width: 47%; - overflow: visible; -} -.woocommerce form .form-row-last, -.woocommerce-page form .form-row-last { - float: right; -} -.woocommerce form .form-row-wide, -.woocommerce-page form .form-row-wide { - clear: both; -} -.woocommerce #payment .form-row select, -.woocommerce-page #payment .form-row select { - width: auto; -} -.woocommerce #payment .terms, -.woocommerce-page #payment .terms { - text-align: right; - padding: 0 1em 0; -} -.woocommerce #payment #place_order, -.woocommerce-page #payment #place_order { - float: right; -} +.clear{clear:both}.nobr{white-space:nowrap}.woocommerce .col2-set,.woocommerce-page .col2-set{*zoom:1;width:100%}.woocommerce .col2-set:before,.woocommerce-page .col2-set:before,.woocommerce .col2-set:after,.woocommerce-page .col2-set:after{content:" ";display:table}.woocommerce .col2-set:after,.woocommerce-page .col2-set:after{clear:both}.woocommerce .col2-set .col-1,.woocommerce-page .col2-set .col-1{float:left;width:48%}.woocommerce .col2-set .col-2,.woocommerce-page .col2-set .col-2{float:right;width:48%}.woocommerce img,.woocommerce-page img{height:auto;max-width:100%}.woocommerce div.product div.images,.woocommerce-page div.product div.images,.woocommerce #content div.product div.images,.woocommerce-page #content div.product div.images{float:left;width:48%}.woocommerce div.product div.thumbnails,.woocommerce-page div.product div.thumbnails,.woocommerce #content div.product div.thumbnails,.woocommerce-page #content div.product div.thumbnails{*zoom:1}.woocommerce div.product div.thumbnails:before,.woocommerce-page div.product div.thumbnails:before,.woocommerce #content div.product div.thumbnails:before,.woocommerce-page #content div.product div.thumbnails:before,.woocommerce div.product div.thumbnails:after,.woocommerce-page div.product div.thumbnails:after,.woocommerce #content div.product div.thumbnails:after,.woocommerce-page #content div.product div.thumbnails:after{content:" ";display:table}.woocommerce div.product div.thumbnails:after,.woocommerce-page div.product div.thumbnails:after,.woocommerce #content div.product div.thumbnails:after,.woocommerce-page #content div.product div.thumbnails:after{clear:both}.woocommerce div.product div.thumbnails a,.woocommerce-page div.product div.thumbnails a,.woocommerce #content div.product div.thumbnails a,.woocommerce-page #content div.product div.thumbnails a{float:left;width:30.75%;margin-right:3.8%}.woocommerce div.product div.thumbnails a.last,.woocommerce-page div.product div.thumbnails a.last,.woocommerce #content div.product div.thumbnails a.last,.woocommerce-page #content div.product div.thumbnails a.last{margin-right:0}.woocommerce div.product div.thumbnails a.first,.woocommerce-page div.product div.thumbnails a.first,.woocommerce #content div.product div.thumbnails a.first,.woocommerce-page #content div.product div.thumbnails a.first{clear:both}.woocommerce div.product div.summary,.woocommerce-page div.product div.summary,.woocommerce #content div.product div.summary,.woocommerce-page #content div.product div.summary{float:right;width:48%}.woocommerce div.product .woocommerce-tabs,.woocommerce-page div.product .woocommerce-tabs,.woocommerce #content div.product .woocommerce-tabs,.woocommerce-page #content div.product .woocommerce-tabs{clear:both}.woocommerce div.product .woocommerce-tabs ul.tabs,.woocommerce-page div.product .woocommerce-tabs ul.tabs,.woocommerce #content div.product .woocommerce-tabs ul.tabs,.woocommerce-page #content div.product .woocommerce-tabs ul.tabs{*zoom:1}.woocommerce div.product .woocommerce-tabs ul.tabs:before,.woocommerce-page div.product .woocommerce-tabs ul.tabs:before,.woocommerce #content div.product .woocommerce-tabs ul.tabs:before,.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:before,.woocommerce div.product .woocommerce-tabs ul.tabs:after,.woocommerce-page div.product .woocommerce-tabs ul.tabs:after,.woocommerce #content div.product .woocommerce-tabs ul.tabs:after,.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:after{content:" ";display:table}.woocommerce div.product .woocommerce-tabs ul.tabs:after,.woocommerce-page div.product .woocommerce-tabs ul.tabs:after,.woocommerce #content div.product .woocommerce-tabs ul.tabs:after,.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:after{clear:both}.woocommerce div.product .woocommerce-tabs ul.tabs li,.woocommerce-page div.product .woocommerce-tabs ul.tabs li,.woocommerce #content div.product .woocommerce-tabs ul.tabs li,.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li{display:inline}.woocommerce div.product #reviews .comment,.woocommerce-page div.product #reviews .comment,.woocommerce #content div.product #reviews .comment,.woocommerce-page #content div.product #reviews .comment{*zoom:1}.woocommerce div.product #reviews .comment:before,.woocommerce-page div.product #reviews .comment:before,.woocommerce #content div.product #reviews .comment:before,.woocommerce-page #content div.product #reviews .comment:before,.woocommerce div.product #reviews .comment:after,.woocommerce-page div.product #reviews .comment:after,.woocommerce #content div.product #reviews .comment:after,.woocommerce-page #content div.product #reviews .comment:after{content:" ";display:table}.woocommerce div.product #reviews .comment:after,.woocommerce-page div.product #reviews .comment:after,.woocommerce #content div.product #reviews .comment:after,.woocommerce-page #content div.product #reviews .comment:after{clear:both}.woocommerce div.product #reviews .comment img,.woocommerce-page div.product #reviews .comment img,.woocommerce #content div.product #reviews .comment img,.woocommerce-page #content div.product #reviews .comment img{float:right;height:auto}.woocommerce #quantity input::-webkit-outer-spin-button,.woocommerce-page #quantity input::-webkit-outer-spin-button,.woocommerce #content .quantity input::-webkit-outer-spin-button,.woocommerce-page #content .quantity input::-webkit-outer-spin-button,.woocommerce #quantity input::-webkit-inner-spin-button,.woocommerce-page #quantity input::-webkit-inner-spin-button,.woocommerce #content .quantity input::-webkit-inner-spin-button,.woocommerce-page #content .quantity input::-webkit-inner-spin-button{display:none}.woocommerce .related,.woocommerce-page .related,.woocommerce .upsells.products,.woocommerce-page .upsells.products{*zoom:1}.woocommerce .related:before,.woocommerce-page .related:before,.woocommerce .upsells.products:before,.woocommerce-page .upsells.products:before,.woocommerce .related:after,.woocommerce-page .related:after,.woocommerce .upsells.products:after,.woocommerce-page .upsells.products:after{content:" ";display:table}.woocommerce .related:after,.woocommerce-page .related:after,.woocommerce .upsells.products:after,.woocommerce-page .upsells.products:after{clear:both}.woocommerce .related ul.products,.woocommerce-page .related ul.products,.woocommerce .upsells.products ul.products,.woocommerce-page .upsells.products ul.products,.woocommerce .related ul,.woocommerce-page .related ul,.woocommerce .upsells.products ul,.woocommerce-page .upsells.products ul{float:none}.woocommerce .related ul.products li.product,.woocommerce-page .related ul.products li.product,.woocommerce .upsells.products ul.products li.product,.woocommerce-page .upsells.products ul.products li.product,.woocommerce .related ul li.product,.woocommerce-page .related ul li.product,.woocommerce .upsells.products ul li.product,.woocommerce-page .upsells.products ul li.product{width:48%}.woocommerce .related ul.products li.product img,.woocommerce-page .related ul.products li.product img,.woocommerce .upsells.products ul.products li.product img,.woocommerce-page .upsells.products ul.products li.product img,.woocommerce .related ul li.product img,.woocommerce-page .related ul li.product img,.woocommerce .upsells.products ul li.product img,.woocommerce-page .upsells.products ul li.product img{width:100%;height:auto}.woocommerce ul.products,.woocommerce-page ul.products{clear:both;*zoom:1}.woocommerce ul.products:before,.woocommerce-page ul.products:before,.woocommerce ul.products:after,.woocommerce-page ul.products:after{content:" ";display:table}.woocommerce ul.products:after,.woocommerce-page ul.products:after{clear:both}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:left;margin:0 3.8% 2.992em 0;padding:0;position:relative;width:22.05%;margin-left:0}.woocommerce ul.products li.first,.woocommerce-page ul.products li.first{clear:both}.woocommerce ul.products li.last,.woocommerce-page ul.products li.last{margin-right:0}.woocommerce.columns-1 ul.products li.product,.woocommerce-page.columns-1 ul.products li.product{width:100%;margin-right:0}.woocommerce.columns-2 ul.products li.product,.woocommerce-page.columns-2 ul.products li.product{width:48%}.woocommerce.columns-3 ul.products li.product,.woocommerce-page.columns-3 ul.products li.product{width:30.75%}.woocommerce.columns-5 ul.products li.product,.woocommerce-page.columns-5 ul.products li.product{width:16.95%}.woocommerce.columns-6 ul.products li.product,.woocommerce-page.columns-6 ul.products li.product{width:13.5%}.woocommerce .woocommerce-result-count,.woocommerce-page .woocommerce-result-count{float:left}.woocommerce .woocommerce-ordering,.woocommerce-page .woocommerce-ordering{float:right}.woocommerce .woocommerce-pagination ul.page-numbers,.woocommerce-page .woocommerce-pagination ul.page-numbers{*zoom:1}.woocommerce .woocommerce-pagination ul.page-numbers:before,.woocommerce-page .woocommerce-pagination ul.page-numbers:before,.woocommerce .woocommerce-pagination ul.page-numbers:after,.woocommerce-page .woocommerce-pagination ul.page-numbers:after{content:" ";display:table}.woocommerce .woocommerce-pagination ul.page-numbers:after,.woocommerce-page .woocommerce-pagination ul.page-numbers:after{clear:both}.woocommerce .woocommerce-pagination ul.page-numbers li,.woocommerce-page .woocommerce-pagination ul.page-numbers li{display:inline}.woocommerce table.cart img,.woocommerce-page table.cart img,.woocommerce #content table.cart img,.woocommerce-page #content table.cart img{height:auto}.woocommerce table.cart td.actions,.woocommerce-page table.cart td.actions,.woocommerce #content table.cart td.actions,.woocommerce-page #content table.cart td.actions{text-align:right}.woocommerce table.cart td.actions .input-text,.woocommerce-page table.cart td.actions .input-text,.woocommerce #content table.cart td.actions .input-text,.woocommerce-page #content table.cart td.actions .input-text{width:80px}.woocommerce table.cart td.actions .coupon,.woocommerce-page table.cart td.actions .coupon,.woocommerce #content table.cart td.actions .coupon,.woocommerce-page #content table.cart td.actions .coupon{float:left}.woocommerce table.cart td.actions .coupon label,.woocommerce-page table.cart td.actions .coupon label,.woocommerce #content table.cart td.actions .coupon label,.woocommerce-page #content table.cart td.actions .coupon label{display:none}.woocommerce .cart-collaterals,.woocommerce-page .cart-collaterals{*zoom:1;width:100%}.woocommerce .cart-collaterals:before,.woocommerce-page .cart-collaterals:before,.woocommerce .cart-collaterals:after,.woocommerce-page .cart-collaterals:after{content:" ";display:table}.woocommerce .cart-collaterals:after,.woocommerce-page .cart-collaterals:after{clear:both}.woocommerce .cart-collaterals .related,.woocommerce-page .cart-collaterals .related{width:30.75%;float:left}.woocommerce .cart-collaterals .cross-sells,.woocommerce-page .cart-collaterals .cross-sells{width:48%;float:left}.woocommerce .cart-collaterals .cross-sells ul.products,.woocommerce-page .cart-collaterals .cross-sells ul.products{float:none}.woocommerce .cart-collaterals .cross-sells ul.products li,.woocommerce-page .cart-collaterals .cross-sells ul.products li{width:48%}.woocommerce .cart-collaterals .shipping_calculator,.woocommerce-page .cart-collaterals .shipping_calculator{width:48%;*zoom:1;clear:right;float:right}.woocommerce .cart-collaterals .shipping_calculator:before,.woocommerce-page .cart-collaterals .shipping_calculator:before,.woocommerce .cart-collaterals .shipping_calculator:after,.woocommerce-page .cart-collaterals .shipping_calculator:after{content:" ";display:table}.woocommerce .cart-collaterals .shipping_calculator:after,.woocommerce-page .cart-collaterals .shipping_calculator:after{clear:both}.woocommerce .cart-collaterals .shipping_calculator .col2-set .col-1,.woocommerce-page .cart-collaterals .shipping_calculator .col2-set .col-1,.woocommerce .cart-collaterals .shipping_calculator .col2-set .col-2,.woocommerce-page .cart-collaterals .shipping_calculator .col2-set .col-2{width:47%}.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{float:right;width:48%;text-align:right}.woocommerce ul.cart_list li,.woocommerce-page ul.cart_list li,.woocommerce ul.product_list_widget li,.woocommerce-page ul.product_list_widget li{*zoom:1}.woocommerce ul.cart_list li:before,.woocommerce-page ul.cart_list li:before,.woocommerce ul.product_list_widget li:before,.woocommerce-page ul.product_list_widget li:before,.woocommerce ul.cart_list li:after,.woocommerce-page ul.cart_list li:after,.woocommerce ul.product_list_widget li:after,.woocommerce-page ul.product_list_widget li:after{content:" ";display:table}.woocommerce ul.cart_list li:after,.woocommerce-page ul.cart_list li:after,.woocommerce ul.product_list_widget li:after,.woocommerce-page ul.product_list_widget li:after{clear:both}.woocommerce ul.cart_list li img,.woocommerce-page ul.cart_list li img,.woocommerce ul.product_list_widget li img,.woocommerce-page ul.product_list_widget li img{float:right;height:auto}.woocommerce form .form-row,.woocommerce-page form .form-row{*zoom:1}.woocommerce form .form-row:before,.woocommerce-page form .form-row:before,.woocommerce form .form-row:after,.woocommerce-page form .form-row:after{content:" ";display:table}.woocommerce form .form-row:after,.woocommerce-page form .form-row:after{clear:both}.woocommerce form .form-row label,.woocommerce-page form .form-row label{display:block}.woocommerce form .form-row label.checkbox,.woocommerce-page form .form-row label.checkbox{display:inline}.woocommerce form .form-row select,.woocommerce-page form .form-row select{width:100%}.woocommerce form .form-row .input-text,.woocommerce-page form .form-row .input-text{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.woocommerce form .form-row-first,.woocommerce-page form .form-row-first,.woocommerce form .form-row-last,.woocommerce-page form .form-row-last{float:left;width:47%;overflow:visible}.woocommerce form .form-row-last,.woocommerce-page form .form-row-last{float:right}.woocommerce form .form-row-wide,.woocommerce-page form .form-row-wide{clear:both}.woocommerce #payment .form-row select,.woocommerce-page #payment .form-row select{width:auto}.woocommerce #payment .terms,.woocommerce-page #payment .terms{text-align:right;padding:0 1em 0}.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{float:right} \ No newline at end of file diff --git a/assets/css/woocommerce-smallscreen.css b/assets/css/woocommerce-smallscreen.css index 799188275be..7a74d4e4fd0 100644 --- a/assets/css/woocommerce-smallscreen.css +++ b/assets/css/woocommerce-smallscreen.css @@ -1,165 +1 @@ -/** - * This stylesheet optimises the default WooCommerce layout when viewed on smaller screens. - */ -.clear { - clear: both; -} -.nobr { - white-space: nowrap; -} -/** - * Objects - */ -.woocommerce, -.woocommerce-page { - /** - * General layout - */ - - /** - * Products - */ - - /** - * Product Details - */ - - /** - * Cart - */ - - /** - * Checkout - */ - -} -.woocommerce .col2-set .col-1, -.woocommerce-page .col2-set .col-1, -.woocommerce .col2-set .col-2, -.woocommerce-page .col2-set .col-2 { - float: none; - width: 100%; -} -.woocommerce ul.products li.product, -.woocommerce-page ul.products li.product { - width: 48%; - float: left; - clear: both; - margin: 0 0 2.992em; -} -.woocommerce ul.products li.product:nth-child(2n), -.woocommerce-page ul.products li.product:nth-child(2n) { - float: right; - clear: none !important; -} -.woocommerce div.product div.images, -.woocommerce-page div.product div.images, -.woocommerce #content div.product div.images, -.woocommerce-page #content div.product div.images, -.woocommerce div.product div.summary, -.woocommerce-page div.product div.summary, -.woocommerce #content div.product div.summary, -.woocommerce-page #content div.product div.summary { - float: none; - width: 100%; -} -.woocommerce table.cart .product-thumbnail, -.woocommerce-page table.cart .product-thumbnail, -.woocommerce #content table.cart .product-thumbnail, -.woocommerce-page #content table.cart .product-thumbnail { - display: none; -} -.woocommerce table.cart td.actions, -.woocommerce-page table.cart td.actions, -.woocommerce #content table.cart td.actions, -.woocommerce-page #content table.cart td.actions { - text-align: left; -} -.woocommerce table.cart td.actions .coupon, -.woocommerce-page table.cart td.actions .coupon, -.woocommerce #content table.cart td.actions .coupon, -.woocommerce-page #content table.cart td.actions .coupon { - float: none; - *zoom: 1; - padding-bottom: .5em; -} -.woocommerce table.cart td.actions .coupon:before, -.woocommerce-page table.cart td.actions .coupon:before, -.woocommerce #content table.cart td.actions .coupon:before, -.woocommerce-page #content table.cart td.actions .coupon:before, -.woocommerce table.cart td.actions .coupon:after, -.woocommerce-page table.cart td.actions .coupon:after, -.woocommerce #content table.cart td.actions .coupon:after, -.woocommerce-page #content table.cart td.actions .coupon:after { - content: " "; - display: table; -} -.woocommerce table.cart td.actions .coupon:after, -.woocommerce-page table.cart td.actions .coupon:after, -.woocommerce #content table.cart td.actions .coupon:after, -.woocommerce-page #content table.cart td.actions .coupon:after { - clear: both; -} -.woocommerce table.cart td.actions input, -.woocommerce-page table.cart td.actions input, -.woocommerce #content table.cart td.actions input, -.woocommerce-page #content table.cart td.actions input, -.woocommerce table.cart td.actions .button, -.woocommerce-page table.cart td.actions .button, -.woocommerce #content table.cart td.actions .button, -.woocommerce-page #content table.cart td.actions .button, -.woocommerce table.cart td.actions .input-text, -.woocommerce-page table.cart td.actions .input-text, -.woocommerce #content table.cart td.actions .input-text, -.woocommerce-page #content table.cart td.actions .input-text { - width: 48%; - -webkit-box-sizing: border-box; - /* Safari/Chrome, other WebKit */ - - -moz-box-sizing: border-box; - /* Firefox, other Gecko */ - - box-sizing: border-box; - /* Opera/IE 8+ */ - -} -.woocommerce table.cart td.actions .input-text + .button, -.woocommerce-page table.cart td.actions .input-text + .button, -.woocommerce #content table.cart td.actions .input-text + .button, -.woocommerce-page #content table.cart td.actions .input-text + .button, -.woocommerce table.cart td.actions .button.alt, -.woocommerce-page table.cart td.actions .button.alt, -.woocommerce #content table.cart td.actions .button.alt, -.woocommerce-page #content table.cart td.actions .button.alt { - float: right; -} -.woocommerce .cart-collaterals .cart_totals, -.woocommerce-page .cart-collaterals .cart_totals, -.woocommerce .cart-collaterals .shipping_calculator, -.woocommerce-page .cart-collaterals .shipping_calculator, -.woocommerce .cart-collaterals .cross-sells, -.woocommerce-page .cart-collaterals .cross-sells { - width: 100%; - float: none; - text-align: left; -} -.woocommerce #payment .terms, -.woocommerce-page #payment .terms { - text-align: left; - padding: 0; -} -.woocommerce #payment #place_order, -.woocommerce-page #payment #place_order { - float: none; - width: 100%; - -webkit-box-sizing: border-box; - /* Safari/Chrome, other WebKit */ - - -moz-box-sizing: border-box; - /* Firefox, other Gecko */ - - box-sizing: border-box; - /* Opera/IE 8+ */ - - margin-bottom: 1em; -} +.clear{clear:both}.nobr{white-space:nowrap}.woocommerce .col2-set .col-1,.woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2,.woocommerce-page .col2-set .col-2{float:none;width:100%}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:48%;float:left;clear:both;margin:0 0 2.992em}.woocommerce ul.products li.product:nth-child(2n),.woocommerce-page ul.products li.product:nth-child(2n){float:right;clear:none!important}.woocommerce div.product div.images,.woocommerce-page div.product div.images,.woocommerce #content div.product div.images,.woocommerce-page #content div.product div.images,.woocommerce div.product div.summary,.woocommerce-page div.product div.summary,.woocommerce #content div.product div.summary,.woocommerce-page #content div.product div.summary{float:none;width:100%}.woocommerce table.cart .product-thumbnail,.woocommerce-page table.cart .product-thumbnail,.woocommerce #content table.cart .product-thumbnail,.woocommerce-page #content table.cart .product-thumbnail{display:none}.woocommerce table.cart td.actions,.woocommerce-page table.cart td.actions,.woocommerce #content table.cart td.actions,.woocommerce-page #content table.cart td.actions{text-align:left}.woocommerce table.cart td.actions .coupon,.woocommerce-page table.cart td.actions .coupon,.woocommerce #content table.cart td.actions .coupon,.woocommerce-page #content table.cart td.actions .coupon{float:none;*zoom:1;padding-bottom:.5em}.woocommerce table.cart td.actions .coupon:before,.woocommerce-page table.cart td.actions .coupon:before,.woocommerce #content table.cart td.actions .coupon:before,.woocommerce-page #content table.cart td.actions .coupon:before,.woocommerce table.cart td.actions .coupon:after,.woocommerce-page table.cart td.actions .coupon:after,.woocommerce #content table.cart td.actions .coupon:after,.woocommerce-page #content table.cart td.actions .coupon:after{content:" ";display:table}.woocommerce table.cart td.actions .coupon:after,.woocommerce-page table.cart td.actions .coupon:after,.woocommerce #content table.cart td.actions .coupon:after,.woocommerce-page #content table.cart td.actions .coupon:after{clear:both}.woocommerce table.cart td.actions input,.woocommerce-page table.cart td.actions input,.woocommerce #content table.cart td.actions input,.woocommerce-page #content table.cart td.actions input,.woocommerce table.cart td.actions .button,.woocommerce-page table.cart td.actions .button,.woocommerce #content table.cart td.actions .button,.woocommerce-page #content table.cart td.actions .button,.woocommerce table.cart td.actions .input-text,.woocommerce-page table.cart td.actions .input-text,.woocommerce #content table.cart td.actions .input-text,.woocommerce-page #content table.cart td.actions .input-text{width:48%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.woocommerce table.cart td.actions .input-text+.button,.woocommerce-page table.cart td.actions .input-text+.button,.woocommerce #content table.cart td.actions .input-text+.button,.woocommerce-page #content table.cart td.actions .input-text+.button,.woocommerce table.cart td.actions .button.alt,.woocommerce-page table.cart td.actions .button.alt,.woocommerce #content table.cart td.actions .button.alt,.woocommerce-page #content table.cart td.actions .button.alt{float:right}.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals,.woocommerce .cart-collaterals .shipping_calculator,.woocommerce-page .cart-collaterals .shipping_calculator,.woocommerce .cart-collaterals .cross-sells,.woocommerce-page .cart-collaterals .cross-sells{width:100%;float:none;text-align:left}.woocommerce #payment .terms,.woocommerce-page #payment .terms{text-align:left;padding:0}.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{float:none;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em} \ No newline at end of file diff --git a/assets/js/admin/meta-boxes.js b/assets/js/admin/meta-boxes.js index 422673e8f71..a8ff6b3b8c4 100644 --- a/assets/js/admin/meta-boxes.js +++ b/assets/js/admin/meta-boxes.js @@ -1,5 +1,30 @@ jQuery( function($){ + // Allow tabbing + $('#titlediv #title').keyup(function( event ) { + var code = event.keyCode || event.which; + + if ( code == '9' && $('#woocommerce-coupon-description').size() > 0 ) { + event.stopPropagation(); + $('#woocommerce-coupon-description').focus(); + return false; + } + }); + + // Coupon type options + $('select#discount_type').change(function(){ + + // Get value + var select_val = $(this).val(); + + if ( select_val == 'fixed_product' || select_val == 'percent_product' ) { + $('.limit_usage_to_x_items_field').show(); + } else { + $('.limit_usage_to_x_items_field').hide(); + } + + }).change(); + // Scroll to first checked category - https://github.com/scribu/wp-category-checklist-tree/blob/d1c3c1f449e1144542efa17dde84a9f52ade1739/category-checklist-tree.php $(function(){ $('[id$="-all"] > ul.categorychecklist').each(function() { @@ -847,14 +872,16 @@ jQuery( function($){ $('input#_virtual').removeAttr('checked'); } - show_and_hide_panels(); $('ul.wc-tabs li:visible').eq(0).find('a').click(); $('body').trigger('woocommerce-product-type-change', select_val, $(this) ); + }).change(); + $('ul.wc-tabs li:visible').eq(0).find('a').click(); + $('input#_downloadable, input#_virtual').change(function(){ show_and_hide_panels(); }); diff --git a/assets/js/admin/meta-boxes.min.js b/assets/js/admin/meta-boxes.min.js index 715e773a479..8e533d9dd4f 100644 --- a/assets/js/admin/meta-boxes.min.js +++ b/assets/js/admin/meta-boxes.min.js @@ -1 +1 @@ -jQuery(function(e){function t(){var t=e("select#product-type").val(),n=e("input#_virtual:checked").size(),r=e("input#_downloadable:checked").size(),i=".hide_if_downloadable, .hide_if_virtual",s=".show_if_downloadable, .show_if_virtual, .show_if_external";e.each(woocommerce_admin_meta_boxes.product_types,function(e,t){i=i+", .hide_if_"+t;s=s+", .show_if_"+t});e(i).show();e(s).hide();r&&e(".show_if_downloadable").show();n&&e(".show_if_virtual").show();e(".show_if_"+t).show();r&&e(".hide_if_downloadable").hide();n&&e(".hide_if_virtual").hide();e(".hide_if_"+t).hide();e("input#_manage_stock").change()}function i(){e(".woocommerce_attributes .woocommerce_attribute").each(function(t,n){e(".attribute_position",n).val(parseInt(e(n).index(".woocommerce_attributes .woocommerce_attribute")))})}e(function(){e('[id$="-all"] > ul.categorychecklist').each(function(){var t=e(this),n=t.find(":checked").first();if(!n.length)return;var r=t.find("input").position().top,i=n.position().top;t.closest(".tabs-panel").scrollTop(i-r+5)})});e("#upsell_product_data").bind("keypress",function(e){if(e.keyCode==13)return!1});e(".type_box").appendTo("#woocommerce-product-data h3.hndle span");e(function(){e("#woocommerce-product-data h3.hndle").unbind("click.postboxes");jQuery("#woocommerce-product-data").on("click","h3.hndle",function(t){if(e(t.target).filter("input, option, label, select").length)return;e("#woocommerce-product-data").toggleClass("closed")})});e("#order-emails a.show-order-emails").click(function(){if(e("#order-emails-select").is(":hidden")){e("#order-emails-select").slideDown("fast");e(this).hide()}return!1});e("#order-emails a.hide-order-emails").click(function(){e('input[name="order_email[]"]').each(function(){e(this).attr("checked",!1)});if(e("#order-emails-select").is(":visible")){e("#order-emails-select").slideUp("fast");e("#order-emails a.show-order-emails").show()}return!1});e("#catalog-visibility .edit-catalog-visibility").click(function(){if(e("#catalog-visibility-select").is(":hidden")){e("#catalog-visibility-select").slideDown("fast");e(this).hide()}return!1});e("#catalog-visibility .save-post-visibility").click(function(){e("#catalog-visibility-select").slideUp("fast");e("#catalog-visibility .edit-catalog-visibility").show();var t=e("input[name=_visibility]:checked").val(),n=e("input[name=_visibility]:checked").attr("data-label");if(e("input[name=_featured]").is(":checked")){n=n+", "+woocommerce_admin_meta_boxes.featured_label;e("input[name=_featured]").attr("checked","checked")}e("#catalog-visibility-display").text(n);return!1});e("#catalog-visibility .cancel-post-visibility").click(function(){e("#catalog-visibility-select").slideUp("fast");e("#catalog-visibility .edit-catalog-visibility").show();var t=e("#current_visibility").val(),n=e("#current_featured").val();e("input[name=_visibility]").removeAttr("checked");e("input[name=_visibility][value="+t+"]").attr("checked","checked");var r=e("input[name=_visibility]:checked").attr("data-label");if(n=="yes"){r=r+", "+woocommerce_admin_meta_boxes.featured_label;e("input[name=_featured]").attr("checked","checked")}else e("input[name=_featured]").removeAttr("checked");e("#catalog-visibility-display").text(r);return!1});e("ul.wc-tabs").show();e("div.panel-wrap").each(function(){e(this).find("div.panel:not(:first)").hide()});e("ul.wc-tabs a").click(function(){var t=e(this).closest("div.panel-wrap");e("ul.wc-tabs li",t).removeClass("active");e(this).parent().addClass("active");e("div.panel",t).hide();e(e(this).attr("href")).show();return!1});jQuery("select.chosen_select").chosen();jQuery("select.chosen_select_nostd").chosen({allow_single_deselect:"true"});jQuery("select.ajax_chosen_select_products").ajaxChosen({method:"GET",url:woocommerce_admin_meta_boxes.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"woocommerce_json_search_products",security:woocommerce_admin_meta_boxes.search_products_nonce}},function(t){var n={};e.each(t,function(e,t){n[e]=t});return n});jQuery("select.ajax_chosen_select_products_and_variations").ajaxChosen({method:"GET",url:woocommerce_admin_meta_boxes.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"woocommerce_json_search_products_and_variations",security:woocommerce_admin_meta_boxes.search_products_nonce}},function(t){var n={};e.each(t,function(e,t){n[e]=t});return n});jQuery("#woocommerce-order-actions input, #woocommerce-order-actions a").click(function(){window.onbeforeunload=""});e("a.edit_address").click(function(t){e(this).hide();e(this).closest(".order_data_column").find("div.address").hide();e(this).closest(".order_data_column").find("div.edit_address").show();t.preventDefault()});e("#order_items_list").on("init_row","tr.item",function(){var t=e(this),n=t.find("input.quantity"),r=n.val(),i=t.find("input.line_subtotal").val(),s=t.find("input.line_total").val(),o=t.find("input.line_tax").val(),u=t.find("input.line_subtotal_tax").val();if(r){unit_subtotal=accounting.toFixed(i/r,2);unit_subtotal_tax=accounting.toFixed(u/r,2);unit_total=accounting.toFixed(s/r,2);unit_total_tax=accounting.toFixed(o/r,2)}else unit_subtotal=unit_subtotal_tax=unit_total=unit_total_tax=0;n.attr("data-o_qty",r);t.attr("data-unit_subtotal",unit_subtotal);t.attr("data-unit_subtotal_tax",unit_subtotal_tax);t.attr("data-unit_total",unit_total);t.attr("data-unit_total_tax",unit_total_tax)});e("#order_items_list tr.item").each(function(){e(this).trigger("init_row");e(this).find(".edit").hide()});e("#order_items_list").on("click","a.edit_order_item",function(){e(this).closest("tr").find(".view").hide();e(this).closest("tr").find(".edit").show();e(this).hide();return!1});e("#order_items_list").on("change","input.quantity",function(){var t=e(this).closest("tr.item"),n=e(this).val(),r=t.attr("data-unit_subtotal"),i=t.attr("data-unit_subtotal_tax"),s=t.attr("data-unit_total"),o=t.attr("data-unit_total_tax"),u=e(this).attr("data-o_qty"),a=accounting.formatNumber(r*n,2,""),f=accounting.formatNumber(i*n,2,""),l=accounting.formatNumber(s*n,2,""),c=accounting.formatNumber(o*n,2,"");t.find("input.line_subtotal").val(a);t.find("input.line_total").val(l);t.find("input.line_subtotal_tax").val(f);t.find("input.line_tax").val(c);e(this).trigger("quantity_changed")});e("#order_items_list").on("change","input.line_subtotal",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_subtotal",i)});e("#order_items_list").on("change","input.line_total",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_total",i)});e("#order_items_list").on("change","input.line_subtotal_tax",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_subtotal_tax",i)});e("#order_items_list").on("change","input.line_tax",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_total_tax",i)});e("#woocommerce-order-totals").on("change input",".order_taxes_amount, .order_taxes_shipping_amount, .shipping_cost, #_order_discount",function(){var t=e(this),n=t.closest(".totals_group").find("input[type=number]"),r=0;n.each(function(){e(this).val()&&(r+=parseFloat(e(this).val()))});var i=accounting.formatMoney(r,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format});t.closest(".totals_group").find("span.inline_total").text(i)});e("span.inline_total").closest(".totals_group").find("input").change();e("button.calc_line_taxes").click(function(){e(".woocommerce_order_items_wrapper").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=confirm(woocommerce_admin_meta_boxes.calc_line_taxes);if(t){var n=e("#order_items_list").find("tr.item, tr.fee"),r=e("#_shipping_country").val(),i=e("#_billing_country").val();if(r)var s=r,o=e("#_shipping_state").val(),u=e("#_shipping_postcode").val(),a=e("#_shipping_city").val();else if(i)var s=i,o=e("#_billing_state").val(),u=e("#_billing_postcode").val(),a=e("#_billing_city").val();else var s=woocommerce_admin_meta_boxes.base_country,o="",u="",a="";var f={};n.each(function(){var t=e(this),n=t.find("input.order_item_id").val(),r=t.find("input.line_subtotal").val(),i=t.find("input.line_total").val(),s=t.find("select.tax_class").val();f[n]={};f[n].line_subtotal=r;f[n].line_total=i;f[n].tax_class=s});order_shipping=0;e("#shipping_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));order_shipping+=parseFloat(cost)});var l={action:"woocommerce_calc_line_taxes",order_id:woocommerce_admin_meta_boxes.post_id,items:f,shipping:order_shipping,country:s,state:o,postcode:u,city:a,security:woocommerce_admin_meta_boxes.calc_totals_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,l,function(t){if(t){n.each(function(){var n=e(this),r=n.find("input.order_item_id").val();n.find(".edit_order_item").click();if(t.item_taxes[r]){n.find("input.line_tax").val(t.item_taxes[r].line_tax).change();n.find("input.line_subtotal_tax").val(t.item_taxes[r].line_subtotal_tax).change()}t.tax_row_html&&e("#tax_rows").empty().append(t.tax_row_html)});e("#tax_rows").find("input").change()}e(".woocommerce_order_items_wrapper").unblock()})}else e(".woocommerce_order_items_wrapper").unblock();return!1});e("button.calc_totals").click(function(){e("#woocommerce-order-totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=confirm(woocommerce_admin_meta_boxes.calc_totals);if(t){var n=0,r=0,i=0,s=e("#_order_discount").val()||"0";s=accounting.unformat(s.replace(",","."));e("#shipping_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));i+=parseFloat(cost)});e("#tax_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));r+=parseFloat(cost)});e("#order_items_list tr.item, #order_items_list tr.fee").each(function(){line_total=e(this).find("input.line_total").val()||"0";n+=accounting.unformat(line_total.replace(",","."))});woocommerce_admin_meta_boxes.round_at_subtotal=="yes"&&(r=parseFloat(accounting.toFixed(r,2)));e("#_order_total").val(accounting.toFixed(n+r+i-s,2)).change()}e("#woocommerce-order-totals").unblock();return!1});e("#woocommerce-order-items button.add_order_item").click(function(){var t=e("select#add_item_id").val();if(t){count=t.length;e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.each(t,function(t,n){var r={action:"woocommerce_add_order_item",item_to_add:n,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,r,function(t){e("table.woocommerce_order_items tbody#order_items_list").append(t);if(!--count){e("select#add_item_id, #add_item_id_chosen .chosen-choices").css("border-color","").val("");jQuery(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200});e("select#add_item_id").trigger("chosen:updated");e("table.woocommerce_order_items").unblock()}e("#order_items_list tr.new_row").trigger("init_row").removeClass("new_row")})})}else e("select#add_item_id, #add_item_id_chosen .chosen-choices").css("border-color","red");return!1});e("#woocommerce-order-items button.add_order_fee").click(function(){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t={action:"woocommerce_add_order_fee",order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){e("table.woocommerce_order_items tbody#order_items_list").append(t);e("table.woocommerce_order_items").unblock()});return!1});e("#order_items_list").on("click","button.add_order_item_meta",function(){var t=e(this),n=t.closest("tr.item"),r={order_item_id:n.attr("data-order_item_id"),action:"woocommerce_add_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){n.find("tbody.meta_items").append(t);e("table.woocommerce_order_items").unblock()}});return!1});e("#order_items_list").on("click","button.remove_order_item_meta",function(){var t=confirm(woocommerce_admin_meta_boxes.remove_item_meta);if(t){var n=e(this).closest("tr"),r={meta_id:n.attr("data-meta_id"),action:"woocommerce_remove_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){n.hide();e("table.woocommerce_order_items").unblock()}})}return!1});e("#woocommerce-order-items").on("click","input.check-column",function(){e(this).is(":checked")?e("#woocommerce-order-items").find(".check-column input").attr("checked","checked"):e("#woocommerce-order-items").find(".check-column input").removeAttr("checked")});e("#woocommerce-order-items").on("click",".do_bulk_action",function(){var t=e(this).closest(".bulk_actions").find("select").val(),n=e("#woocommerce-order-items").find(".check-column input:checked"),r=[];e(n).each(function(){var t=e(this).closest("tr.item, tr.fee");r.push(t.attr("data-order_item_id"))});if(r.length==0){alert(woocommerce_admin_meta_boxes.i18n_select_items);return}if(t=="delete"){var i=confirm(woocommerce_admin_meta_boxes.remove_item_notice);if(i){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var s={order_item_ids:r,action:"woocommerce_remove_order_item",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){e(n).each(function(){e(this).closest("tr.item, tr.fee").remove()});e("table.woocommerce_order_items").unblock()}})}}else if(t=="reduce_stock"){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var o={};e(n).each(function(){var t=e(this).closest("tr.item, tr.fee"),n=t.find("input.quantity");o[t.attr("data-order_item_id")]=n.val()});var s={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:r,order_item_qty:o,action:"woocommerce_reduce_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){alert(t);e("table.woocommerce_order_items").unblock()}})}else if(t=="increase_stock"){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var o={};e(n).each(function(){var t=e(this).closest("tr.item, tr.fee"),n=t.find("input.quantity");o[t.attr("data-order_item_id")]=n.val()});var s={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:r,order_item_qty:o,action:"woocommerce_increase_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){alert(t);e("table.woocommerce_order_items").unblock()}})}return!1});e("button.load_customer_billing").click(function(){var t=confirm(woocommerce_admin_meta_boxes.load_billing);if(t){var n=e("#customer_user").val();if(!n){alert(woocommerce_admin_meta_boxes.no_customer_selected);return!1}var r={user_id:n,type_to_load:"billing",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};e(this).closest(".edit_address").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){var n=t;if(n){e("input#_billing_first_name").val(n.billing_first_name);e("input#_billing_last_name").val(n.billing_last_name);e("input#_billing_company").val(n.billing_company);e("input#_billing_address_1").val(n.billing_address_1);e("input#_billing_address_2").val(n.billing_address_2);e("input#_billing_city").val(n.billing_city);e("input#_billing_postcode").val(n.billing_postcode);e("#_billing_country").val(n.billing_country);e("input#_billing_state").val(n.billing_state);e("input#_billing_email").val(n.billing_email);e("input#_billing_phone").val(n.billing_phone)}e(".edit_address").unblock()}})}return!1});e("button.load_customer_shipping").click(function(){var t=confirm(woocommerce_admin_meta_boxes.load_shipping);if(t){var n=e("#customer_user").val();if(!n){alert(woocommerce_admin_meta_boxes.no_customer_selected);return!1}var r={user_id:n,type_to_load:"shipping",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};e(this).closest(".edit_address").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){var n=t;if(n){e("input#_shipping_first_name").val(n.shipping_first_name);e("input#_shipping_last_name").val(n.shipping_last_name);e("input#_shipping_company").val(n.shipping_company);e("input#_shipping_address_1").val(n.shipping_address_1);e("input#_shipping_address_2").val(n.shipping_address_2);e("input#_shipping_city").val(n.shipping_city);e("input#_shipping_postcode").val(n.shipping_postcode);e("#_shipping_country").val(n.shipping_country);e("input#_shipping_state").val(n.shipping_state)}e(".edit_address").unblock()}})}return!1});e("button.billing-same-as-shipping").click(function(){var t=confirm(woocommerce_admin_meta_boxes.copy_billing);if(t){e("input#_shipping_first_name").val(e("input#_billing_first_name").val());e("input#_shipping_last_name").val(e("input#_billing_last_name").val());e("input#_shipping_company").val(e("input#_billing_company").val());e("input#_shipping_address_1").val(e("input#_billing_address_1").val());e("input#_shipping_address_2").val(e("input#_billing_address_2").val());e("input#_shipping_city").val(e("input#_billing_city").val());e("input#_shipping_postcode").val(e("input#_billing_postcode").val());e("#_shipping_country").val(e("#_billing_country").val());e("input#_shipping_state").val(e("input#_billing_state").val())}return!1});e(".totals_group").on("click","a.add_total_row",function(){e(this).closest(".totals_group").find(".total_rows").append(e(this).data("row"));return!1});e(".total_rows").on("click","a.delete_total_row",function(){$row=e(this).closest(".total_row");var t=$row.attr("data-order_item_id");t?$row.append('').hide():$row.remove();return!1});e("select#product-type").change(function(){var n=e(this).val();if(n=="variable"){e("input#_manage_stock").change();e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}else if(n=="grouped"){e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}else if(n=="external"){e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}t();e("ul.wc-tabs li:visible").eq(0).find("a").click();e("body").trigger("woocommerce-product-type-change",n,e(this))}).change();e("input#_downloadable, input#_virtual").change(function(){t()});e(".sale_price_dates_fields").each(function(){var t=e(this),n=!1,r=t.closest("div, table");t.find("input").each(function(){e(this).val()!=""&&(n=!0)});if(n){r.find(".sale_schedule").hide();r.find(".sale_price_dates_fields").show()}else{r.find(".sale_schedule").show();r.find(".sale_price_dates_fields").hide()}});e("#woocommerce-product-data").on("click",".sale_schedule",function(){var t=e(this).closest("div, table");e(this).hide();t.find(".cancel_sale_schedule").show();t.find(".sale_price_dates_fields").show();return!1});e("#woocommerce-product-data").on("click",".cancel_sale_schedule",function(){var t=e(this).closest("div, table");e(this).hide();t.find(".sale_schedule").show();t.find(".sale_price_dates_fields").hide();t.find(".sale_price_dates_fields").find("input").val("");return!1});e(".downloadable_files").on("click","a.insert",function(){e(this).closest(".downloadable_files").find("tbody").append(e(this).data("row"));return!1});e(".downloadable_files").on("click","a.delete",function(){e(this).closest("tr").remove();return!1});e("input#_manage_stock").change(function(){e(this).is(":checked")?e("div.stock_fields").show():e("div.stock_fields").hide()}).change();var n=e(".sale_price_dates_fields input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,showOn:"button",buttonImage:woocommerce_admin_meta_boxes.calendar_image,buttonImageOnly:!0,onSelect:function(t){var r=e(this).is("#_sale_price_dates_from, .sale_price_dates_from")?"minDate":"maxDate",i=e(this).data("datepicker"),s=e.datepicker.parseDate(i.settings.dateFormat||e.datepicker._defaults.dateFormat,t,i.settings);n.not(this).datepicker("option",r,s)}});e(".date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,showOn:"button",buttonImage:woocommerce_admin_meta_boxes.calendar_image,buttonImageOnly:!0});e(".date-picker-field").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0});jQuery(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(t){if(e(t.target).filter(":input, option").length)return;jQuery(this).next(".wc-metabox-content").toggle()}).on("click",".expand_all",function(e){jQuery(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > table").show();return!1}).on("click",".close_all",function(e){jQuery(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > table").hide();return!1});jQuery(".wc-metabox.closed").each(function(){jQuery(this).find(".wc-metabox-content").hide()});e(".woocommerce_attributes select.multiselect").chosen();var r=e(".woocommerce_attributes").find(".woocommerce_attribute").get();r.sort(function(t,n){var r=parseInt(e(t).attr("rel")),i=parseInt(e(n).attr("rel"));return ri?1:0});e(r).each(function(t,n){e(".woocommerce_attributes").append(n)});e("button.add_attribute").on("click",function(){var t=e(".woocommerce_attributes .woocommerce_attribute").size(),n=e("select.attribute_taxonomy").val();if(!n){var r=e("select#product-type").val();r!="variable"?enable_variation='style="display:none;"':enable_variation="";e(".woocommerce_attributes").append('

")}else{var s=e(".woocommerce_attributes .woocommerce_attribute."+n);e(".woocommerce_attributes").append(e(s));e(s).show().find(".woocommerce_attribute_data").show();i()}e("select.attribute_taxonomy").val("")});e(".woocommerce_attributes").on("blur","input.attribute_name",function(){e(this).closest(".woocommerce_attribute").find("strong.attribute_name").text(e(this).val())});e(".woocommerce_attributes").on("click","button.select_all_attributes",function(){e(this).closest("td").find("select option").attr("selected","selected");e(this).closest("td").find("select").trigger("chosen:updated");return!1});e(".woocommerce_attributes").on("click","button.select_no_attributes",function(){e(this).closest("td").find("select option").removeAttr("selected");e(this).closest("td").find("select").trigger("chosen:updated");return!1});e(".woocommerce_attributes").on("click","button.remove_row",function(){var t=confirm(woocommerce_admin_meta_boxes.remove_attribute);if(t){var n=e(this).parent().parent();if(n.is(".taxonomy")){n.find("select, input[type=text]").val("");n.hide()}else{n.find("select, input[type=text]").val("");n.hide();i()}}return!1});e(".woocommerce_attributes").sortable({items:".woocommerce_attribute",cursor:"move",axis:"y",handle:"h3",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style");i()}});e(".woocommerce_attributes").on("click","button.add_new_attribute",function(){e(".woocommerce_attributes").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=e(this).attr("data-attribute"),n=e(this).closest(".woocommerce_attribute_data"),r=prompt(woocommerce_admin_meta_boxes.new_attribute_prompt);if(r){var i={action:"woocommerce_add_new_attribute",taxonomy:t,term:r,security:woocommerce_admin_meta_boxes.add_attribute_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,i,function(t){if(t.error)alert(t.error);else if(t.slug){n.find("select.attribute_values").append('");n.find("select.attribute_values").trigger("chosen:updated")}e(".woocommerce_attributes").unblock()})}else e(".woocommerce_attributes").unblock();return!1});e(".save_attributes").on("click",function(){e(".woocommerce_attributes").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t={post_id:woocommerce_admin_meta_boxes.post_id,data:e(".woocommerce_attributes").find("input, select, textarea").serialize(),action:"woocommerce_save_attributes",security:woocommerce_admin_meta_boxes.save_attributes_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){var n=window.location.toString();n=n.replace("post-new.php?","post.php?post="+woocommerce_admin_meta_boxes.post_id+"&action=edit&");e("#variable_product_options").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e("#variable_product_options").load(n+" #variable_product_options_inner",function(){e("#variable_product_options").unblock()});e(".woocommerce_attributes").unblock()})});var s,o;jQuery(document).on("click",".upload_file_button",function(t){var n=e(this);o=n.closest("tr").find("td.file_url input");t.preventDefault();if(s){s.open();return}var r=[new wp.media.controller.Library({library:wp.media.query(),multiple:!0,title:n.data("choose"),priority:20,filterable:"uploaded"})];s=wp.media.frames.downloadable_file=wp.media({title:n.data("choose"),library:{type:""},button:{text:n.data("update")},multiple:!0,states:r});s.on("select",function(){var e="",t=s.state().get("selection");t.map(function(t){t=t.toJSON();t.url&&(e=t.url)});o.val(e)});s.on("ready",function(){s.uploader.options.uploader.params={type:"downloadable_product"}});s.open()});jQuery(".downloadable_files tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65})}); \ No newline at end of file +jQuery(function(e){function t(){var t=e("select#product-type").val(),n=e("input#_virtual:checked").size(),r=e("input#_downloadable:checked").size(),i=".hide_if_downloadable, .hide_if_virtual",s=".show_if_downloadable, .show_if_virtual, .show_if_external";e.each(woocommerce_admin_meta_boxes.product_types,function(e,t){i=i+", .hide_if_"+t;s=s+", .show_if_"+t});e(i).show();e(s).hide();r&&e(".show_if_downloadable").show();n&&e(".show_if_virtual").show();e(".show_if_"+t).show();r&&e(".hide_if_downloadable").hide();n&&e(".hide_if_virtual").hide();e(".hide_if_"+t).hide();e("input#_manage_stock").change()}function i(){e(".woocommerce_attributes .woocommerce_attribute").each(function(t,n){e(".attribute_position",n).val(parseInt(e(n).index(".woocommerce_attributes .woocommerce_attribute")))})}e("#titlediv #title").keyup(function(t){var n=t.keyCode||t.which;if(n=="9"&&e("#woocommerce-coupon-description").size()>0){t.stopPropagation();e("#woocommerce-coupon-description").focus();return!1}});e("select#discount_type").change(function(){var t=e(this).val();t=="fixed_product"||t=="percent_product"?e(".limit_usage_to_x_items_field").show():e(".limit_usage_to_x_items_field").hide()}).change();e(function(){e('[id$="-all"] > ul.categorychecklist').each(function(){var t=e(this),n=t.find(":checked").first();if(!n.length)return;var r=t.find("input").position().top,i=n.position().top;t.closest(".tabs-panel").scrollTop(i-r+5)})});e("#upsell_product_data").bind("keypress",function(e){if(e.keyCode==13)return!1});e(".type_box").appendTo("#woocommerce-product-data h3.hndle span");e(function(){e("#woocommerce-product-data h3.hndle").unbind("click.postboxes");jQuery("#woocommerce-product-data").on("click","h3.hndle",function(t){if(e(t.target).filter("input, option, label, select").length)return;e("#woocommerce-product-data").toggleClass("closed")})});e("#order-emails a.show-order-emails").click(function(){if(e("#order-emails-select").is(":hidden")){e("#order-emails-select").slideDown("fast");e(this).hide()}return!1});e("#order-emails a.hide-order-emails").click(function(){e('input[name="order_email[]"]').each(function(){e(this).attr("checked",!1)});if(e("#order-emails-select").is(":visible")){e("#order-emails-select").slideUp("fast");e("#order-emails a.show-order-emails").show()}return!1});e("#catalog-visibility .edit-catalog-visibility").click(function(){if(e("#catalog-visibility-select").is(":hidden")){e("#catalog-visibility-select").slideDown("fast");e(this).hide()}return!1});e("#catalog-visibility .save-post-visibility").click(function(){e("#catalog-visibility-select").slideUp("fast");e("#catalog-visibility .edit-catalog-visibility").show();var t=e("input[name=_visibility]:checked").val(),n=e("input[name=_visibility]:checked").attr("data-label");if(e("input[name=_featured]").is(":checked")){n=n+", "+woocommerce_admin_meta_boxes.featured_label;e("input[name=_featured]").attr("checked","checked")}e("#catalog-visibility-display").text(n);return!1});e("#catalog-visibility .cancel-post-visibility").click(function(){e("#catalog-visibility-select").slideUp("fast");e("#catalog-visibility .edit-catalog-visibility").show();var t=e("#current_visibility").val(),n=e("#current_featured").val();e("input[name=_visibility]").removeAttr("checked");e("input[name=_visibility][value="+t+"]").attr("checked","checked");var r=e("input[name=_visibility]:checked").attr("data-label");if(n=="yes"){r=r+", "+woocommerce_admin_meta_boxes.featured_label;e("input[name=_featured]").attr("checked","checked")}else e("input[name=_featured]").removeAttr("checked");e("#catalog-visibility-display").text(r);return!1});e("ul.wc-tabs").show();e("div.panel-wrap").each(function(){e(this).find("div.panel:not(:first)").hide()});e("ul.wc-tabs a").click(function(){var t=e(this).closest("div.panel-wrap");e("ul.wc-tabs li",t).removeClass("active");e(this).parent().addClass("active");e("div.panel",t).hide();e(e(this).attr("href")).show();return!1});jQuery("select.chosen_select").chosen();jQuery("select.chosen_select_nostd").chosen({allow_single_deselect:"true"});jQuery("select.ajax_chosen_select_products").ajaxChosen({method:"GET",url:woocommerce_admin_meta_boxes.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"woocommerce_json_search_products",security:woocommerce_admin_meta_boxes.search_products_nonce}},function(t){var n={};e.each(t,function(e,t){n[e]=t});return n});jQuery("select.ajax_chosen_select_products_and_variations").ajaxChosen({method:"GET",url:woocommerce_admin_meta_boxes.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"woocommerce_json_search_products_and_variations",security:woocommerce_admin_meta_boxes.search_products_nonce}},function(t){var n={};e.each(t,function(e,t){n[e]=t});return n});jQuery("#woocommerce-order-actions input, #woocommerce-order-actions a").click(function(){window.onbeforeunload=""});e("a.edit_address").click(function(t){e(this).hide();e(this).closest(".order_data_column").find("div.address").hide();e(this).closest(".order_data_column").find("div.edit_address").show();t.preventDefault()});e("#order_items_list").on("init_row","tr.item",function(){var t=e(this),n=t.find("input.quantity"),r=n.val(),i=t.find("input.line_subtotal").val(),s=t.find("input.line_total").val(),o=t.find("input.line_tax").val(),u=t.find("input.line_subtotal_tax").val();if(r){unit_subtotal=accounting.toFixed(i/r,2);unit_subtotal_tax=accounting.toFixed(u/r,2);unit_total=accounting.toFixed(s/r,2);unit_total_tax=accounting.toFixed(o/r,2)}else unit_subtotal=unit_subtotal_tax=unit_total=unit_total_tax=0;n.attr("data-o_qty",r);t.attr("data-unit_subtotal",unit_subtotal);t.attr("data-unit_subtotal_tax",unit_subtotal_tax);t.attr("data-unit_total",unit_total);t.attr("data-unit_total_tax",unit_total_tax)});e("#order_items_list tr.item").each(function(){e(this).trigger("init_row");e(this).find(".edit").hide()});e("#order_items_list").on("click","a.edit_order_item",function(){e(this).closest("tr").find(".view").hide();e(this).closest("tr").find(".edit").show();e(this).hide();return!1});e("#order_items_list").on("change","input.quantity",function(){var t=e(this).closest("tr.item"),n=e(this).val(),r=t.attr("data-unit_subtotal"),i=t.attr("data-unit_subtotal_tax"),s=t.attr("data-unit_total"),o=t.attr("data-unit_total_tax"),u=e(this).attr("data-o_qty"),a=accounting.formatNumber(r*n,2,""),f=accounting.formatNumber(i*n,2,""),l=accounting.formatNumber(s*n,2,""),c=accounting.formatNumber(o*n,2,"");t.find("input.line_subtotal").val(a);t.find("input.line_total").val(l);t.find("input.line_subtotal_tax").val(f);t.find("input.line_tax").val(c);e(this).trigger("quantity_changed")});e("#order_items_list").on("change","input.line_subtotal",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_subtotal",i)});e("#order_items_list").on("change","input.line_total",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_total",i)});e("#order_items_list").on("change","input.line_subtotal_tax",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_subtotal_tax",i)});e("#order_items_list").on("change","input.line_tax",function(){var t=e(this).closest("tr.item"),n=t.find("input.quantity"),r=n.val(),i=r?accounting.toFixed(e(this).val()/r,2):0;t.attr("data-unit_total_tax",i)});e("#woocommerce-order-totals").on("change input",".order_taxes_amount, .order_taxes_shipping_amount, .shipping_cost, #_order_discount",function(){var t=e(this),n=t.closest(".totals_group").find("input[type=number]"),r=0;n.each(function(){e(this).val()&&(r+=parseFloat(e(this).val()))});var i=accounting.formatMoney(r,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format});t.closest(".totals_group").find("span.inline_total").text(i)});e("span.inline_total").closest(".totals_group").find("input").change();e("button.calc_line_taxes").click(function(){e(".woocommerce_order_items_wrapper").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=confirm(woocommerce_admin_meta_boxes.calc_line_taxes);if(t){var n=e("#order_items_list").find("tr.item, tr.fee"),r=e("#_shipping_country").val(),i=e("#_billing_country").val();if(r)var s=r,o=e("#_shipping_state").val(),u=e("#_shipping_postcode").val(),a=e("#_shipping_city").val();else if(i)var s=i,o=e("#_billing_state").val(),u=e("#_billing_postcode").val(),a=e("#_billing_city").val();else var s=woocommerce_admin_meta_boxes.base_country,o="",u="",a="";var f={};n.each(function(){var t=e(this),n=t.find("input.order_item_id").val(),r=t.find("input.line_subtotal").val(),i=t.find("input.line_total").val(),s=t.find("select.tax_class").val();f[n]={};f[n].line_subtotal=r;f[n].line_total=i;f[n].tax_class=s});order_shipping=0;e("#shipping_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));order_shipping+=parseFloat(cost)});var l={action:"woocommerce_calc_line_taxes",order_id:woocommerce_admin_meta_boxes.post_id,items:f,shipping:order_shipping,country:s,state:o,postcode:u,city:a,security:woocommerce_admin_meta_boxes.calc_totals_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,l,function(t){if(t){n.each(function(){var n=e(this),r=n.find("input.order_item_id").val();n.find(".edit_order_item").click();if(t.item_taxes[r]){n.find("input.line_tax").val(t.item_taxes[r].line_tax).change();n.find("input.line_subtotal_tax").val(t.item_taxes[r].line_subtotal_tax).change()}t.tax_row_html&&e("#tax_rows").empty().append(t.tax_row_html)});e("#tax_rows").find("input").change()}e(".woocommerce_order_items_wrapper").unblock()})}else e(".woocommerce_order_items_wrapper").unblock();return!1});e("button.calc_totals").click(function(){e("#woocommerce-order-totals").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=confirm(woocommerce_admin_meta_boxes.calc_totals);if(t){var n=0,r=0,i=0,s=e("#_order_discount").val()||"0";s=accounting.unformat(s.replace(",","."));e("#shipping_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));i+=parseFloat(cost)});e("#tax_rows").find("input[type=number]").each(function(){cost=e(this).val()||"0";cost=accounting.unformat(cost.replace(",","."));r+=parseFloat(cost)});e("#order_items_list tr.item, #order_items_list tr.fee").each(function(){line_total=e(this).find("input.line_total").val()||"0";n+=accounting.unformat(line_total.replace(",","."))});woocommerce_admin_meta_boxes.round_at_subtotal=="yes"&&(r=parseFloat(accounting.toFixed(r,2)));e("#_order_total").val(accounting.toFixed(n+r+i-s,2)).change()}e("#woocommerce-order-totals").unblock();return!1});e("#woocommerce-order-items button.add_order_item").click(function(){var t=e("select#add_item_id").val();if(t){count=t.length;e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.each(t,function(t,n){var r={action:"woocommerce_add_order_item",item_to_add:n,order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,r,function(t){e("table.woocommerce_order_items tbody#order_items_list").append(t);if(!--count){e("select#add_item_id, #add_item_id_chosen .chosen-choices").css("border-color","").val("");jQuery(".tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200});e("select#add_item_id").trigger("chosen:updated");e("table.woocommerce_order_items").unblock()}e("#order_items_list tr.new_row").trigger("init_row").removeClass("new_row")})})}else e("select#add_item_id, #add_item_id_chosen .chosen-choices").css("border-color","red");return!1});e("#woocommerce-order-items button.add_order_fee").click(function(){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t={action:"woocommerce_add_order_fee",order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){e("table.woocommerce_order_items tbody#order_items_list").append(t);e("table.woocommerce_order_items").unblock()});return!1});e("#order_items_list").on("click","button.add_order_item_meta",function(){var t=e(this),n=t.closest("tr.item"),r={order_item_id:n.attr("data-order_item_id"),action:"woocommerce_add_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){n.find("tbody.meta_items").append(t);e("table.woocommerce_order_items").unblock()}});return!1});e("#order_items_list").on("click","button.remove_order_item_meta",function(){var t=confirm(woocommerce_admin_meta_boxes.remove_item_meta);if(t){var n=e(this).closest("tr"),r={meta_id:n.attr("data-meta_id"),action:"woocommerce_remove_order_item_meta",security:woocommerce_admin_meta_boxes.order_item_nonce};e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){n.hide();e("table.woocommerce_order_items").unblock()}})}return!1});e("#woocommerce-order-items").on("click","input.check-column",function(){e(this).is(":checked")?e("#woocommerce-order-items").find(".check-column input").attr("checked","checked"):e("#woocommerce-order-items").find(".check-column input").removeAttr("checked")});e("#woocommerce-order-items").on("click",".do_bulk_action",function(){var t=e(this).closest(".bulk_actions").find("select").val(),n=e("#woocommerce-order-items").find(".check-column input:checked"),r=[];e(n).each(function(){var t=e(this).closest("tr.item, tr.fee");r.push(t.attr("data-order_item_id"))});if(r.length==0){alert(woocommerce_admin_meta_boxes.i18n_select_items);return}if(t=="delete"){var i=confirm(woocommerce_admin_meta_boxes.remove_item_notice);if(i){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var s={order_item_ids:r,action:"woocommerce_remove_order_item",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){e(n).each(function(){e(this).closest("tr.item, tr.fee").remove()});e("table.woocommerce_order_items").unblock()}})}}else if(t=="reduce_stock"){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var o={};e(n).each(function(){var t=e(this).closest("tr.item, tr.fee"),n=t.find("input.quantity");o[t.attr("data-order_item_id")]=n.val()});var s={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:r,order_item_qty:o,action:"woocommerce_reduce_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){alert(t);e("table.woocommerce_order_items").unblock()}})}else if(t=="increase_stock"){e("table.woocommerce_order_items").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var o={};e(n).each(function(){var t=e(this).closest("tr.item, tr.fee"),n=t.find("input.quantity");o[t.attr("data-order_item_id")]=n.val()});var s={order_id:woocommerce_admin_meta_boxes.post_id,order_item_ids:r,order_item_qty:o,action:"woocommerce_increase_order_item_stock",security:woocommerce_admin_meta_boxes.order_item_nonce};e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:s,type:"POST",success:function(t){alert(t);e("table.woocommerce_order_items").unblock()}})}return!1});e("button.load_customer_billing").click(function(){var t=confirm(woocommerce_admin_meta_boxes.load_billing);if(t){var n=e("#customer_user").val();if(!n){alert(woocommerce_admin_meta_boxes.no_customer_selected);return!1}var r={user_id:n,type_to_load:"billing",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};e(this).closest(".edit_address").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){var n=t;if(n){e("input#_billing_first_name").val(n.billing_first_name);e("input#_billing_last_name").val(n.billing_last_name);e("input#_billing_company").val(n.billing_company);e("input#_billing_address_1").val(n.billing_address_1);e("input#_billing_address_2").val(n.billing_address_2);e("input#_billing_city").val(n.billing_city);e("input#_billing_postcode").val(n.billing_postcode);e("#_billing_country").val(n.billing_country);e("input#_billing_state").val(n.billing_state);e("input#_billing_email").val(n.billing_email);e("input#_billing_phone").val(n.billing_phone)}e(".edit_address").unblock()}})}return!1});e("button.load_customer_shipping").click(function(){var t=confirm(woocommerce_admin_meta_boxes.load_shipping);if(t){var n=e("#customer_user").val();if(!n){alert(woocommerce_admin_meta_boxes.no_customer_selected);return!1}var r={user_id:n,type_to_load:"shipping",action:"woocommerce_get_customer_details",security:woocommerce_admin_meta_boxes.get_customer_details_nonce};e(this).closest(".edit_address").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e.ajax({url:woocommerce_admin_meta_boxes.ajax_url,data:r,type:"POST",success:function(t){var n=t;if(n){e("input#_shipping_first_name").val(n.shipping_first_name);e("input#_shipping_last_name").val(n.shipping_last_name);e("input#_shipping_company").val(n.shipping_company);e("input#_shipping_address_1").val(n.shipping_address_1);e("input#_shipping_address_2").val(n.shipping_address_2);e("input#_shipping_city").val(n.shipping_city);e("input#_shipping_postcode").val(n.shipping_postcode);e("#_shipping_country").val(n.shipping_country);e("input#_shipping_state").val(n.shipping_state)}e(".edit_address").unblock()}})}return!1});e("button.billing-same-as-shipping").click(function(){var t=confirm(woocommerce_admin_meta_boxes.copy_billing);if(t){e("input#_shipping_first_name").val(e("input#_billing_first_name").val());e("input#_shipping_last_name").val(e("input#_billing_last_name").val());e("input#_shipping_company").val(e("input#_billing_company").val());e("input#_shipping_address_1").val(e("input#_billing_address_1").val());e("input#_shipping_address_2").val(e("input#_billing_address_2").val());e("input#_shipping_city").val(e("input#_billing_city").val());e("input#_shipping_postcode").val(e("input#_billing_postcode").val());e("#_shipping_country").val(e("#_billing_country").val());e("input#_shipping_state").val(e("input#_billing_state").val())}return!1});e(".totals_group").on("click","a.add_total_row",function(){e(this).closest(".totals_group").find(".total_rows").append(e(this).data("row"));return!1});e(".total_rows").on("click","a.delete_total_row",function(){$row=e(this).closest(".total_row");var t=$row.attr("data-order_item_id");t?$row.append('').hide():$row.remove();return!1});e("select#product-type").change(function(){var n=e(this).val();if(n=="variable"){e("input#_manage_stock").change();e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}else if(n=="grouped"){e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}else if(n=="external"){e("input#_downloadable").prop("checked",!1);e("input#_virtual").removeAttr("checked")}t();e("ul.wc-tabs li:visible").eq(0).find("a").click();e("body").trigger("woocommerce-product-type-change",n,e(this))}).change();e("ul.wc-tabs li:visible").eq(0).find("a").click();e("input#_downloadable, input#_virtual").change(function(){t()});e(".sale_price_dates_fields").each(function(){var t=e(this),n=!1,r=t.closest("div, table");t.find("input").each(function(){e(this).val()!=""&&(n=!0)});if(n){r.find(".sale_schedule").hide();r.find(".sale_price_dates_fields").show()}else{r.find(".sale_schedule").show();r.find(".sale_price_dates_fields").hide()}});e("#woocommerce-product-data").on("click",".sale_schedule",function(){var t=e(this).closest("div, table");e(this).hide();t.find(".cancel_sale_schedule").show();t.find(".sale_price_dates_fields").show();return!1});e("#woocommerce-product-data").on("click",".cancel_sale_schedule",function(){var t=e(this).closest("div, table");e(this).hide();t.find(".sale_schedule").show();t.find(".sale_price_dates_fields").hide();t.find(".sale_price_dates_fields").find("input").val("");return!1});e(".downloadable_files").on("click","a.insert",function(){e(this).closest(".downloadable_files").find("tbody").append(e(this).data("row"));return!1});e(".downloadable_files").on("click","a.delete",function(){e(this).closest("tr").remove();return!1});e("input#_manage_stock").change(function(){e(this).is(":checked")?e("div.stock_fields").show():e("div.stock_fields").hide()}).change();var n=e(".sale_price_dates_fields input").datepicker({defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,showOn:"button",buttonImage:woocommerce_admin_meta_boxes.calendar_image,buttonImageOnly:!0,onSelect:function(t){var r=e(this).is("#_sale_price_dates_from, .sale_price_dates_from")?"minDate":"maxDate",i=e(this).data("datepicker"),s=e.datepicker.parseDate(i.settings.dateFormat||e.datepicker._defaults.dateFormat,t,i.settings);n.not(this).datepicker("option",r,s)}});e(".date-picker").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0,showOn:"button",buttonImage:woocommerce_admin_meta_boxes.calendar_image,buttonImageOnly:!0});e(".date-picker-field").datepicker({dateFormat:"yy-mm-dd",numberOfMonths:1,showButtonPanel:!0});jQuery(".wc-metaboxes-wrapper").on("click",".wc-metabox h3",function(t){if(e(t.target).filter(":input, option").length)return;jQuery(this).next(".wc-metabox-content").toggle()}).on("click",".expand_all",function(e){jQuery(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > table").show();return!1}).on("click",".close_all",function(e){jQuery(this).closest(".wc-metaboxes-wrapper").find(".wc-metabox > table").hide();return!1});jQuery(".wc-metabox.closed").each(function(){jQuery(this).find(".wc-metabox-content").hide()});e(".woocommerce_attributes select.multiselect").chosen();var r=e(".woocommerce_attributes").find(".woocommerce_attribute").get();r.sort(function(t,n){var r=parseInt(e(t).attr("rel")),i=parseInt(e(n).attr("rel"));return ri?1:0});e(r).each(function(t,n){e(".woocommerce_attributes").append(n)});e("button.add_attribute").on("click",function(){var t=e(".woocommerce_attributes .woocommerce_attribute").size(),n=e("select.attribute_taxonomy").val();if(!n){var r=e("select#product-type").val();r!="variable"?enable_variation='style="display:none;"':enable_variation="";e(".woocommerce_attributes").append('

")}else{var s=e(".woocommerce_attributes .woocommerce_attribute."+n);e(".woocommerce_attributes").append(e(s));e(s).show().find(".woocommerce_attribute_data").show();i()}e("select.attribute_taxonomy").val("")});e(".woocommerce_attributes").on("blur","input.attribute_name",function(){e(this).closest(".woocommerce_attribute").find("strong.attribute_name").text(e(this).val())});e(".woocommerce_attributes").on("click","button.select_all_attributes",function(){e(this).closest("td").find("select option").attr("selected","selected");e(this).closest("td").find("select").trigger("chosen:updated");return!1});e(".woocommerce_attributes").on("click","button.select_no_attributes",function(){e(this).closest("td").find("select option").removeAttr("selected");e(this).closest("td").find("select").trigger("chosen:updated");return!1});e(".woocommerce_attributes").on("click","button.remove_row",function(){var t=confirm(woocommerce_admin_meta_boxes.remove_attribute);if(t){var n=e(this).parent().parent();if(n.is(".taxonomy")){n.find("select, input[type=text]").val("");n.hide()}else{n.find("select, input[type=text]").val("");n.hide();i()}}return!1});e(".woocommerce_attributes").sortable({items:".woocommerce_attribute",cursor:"move",axis:"y",handle:"h3",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,placeholder:"wc-metabox-sortable-placeholder",start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style");i()}});e(".woocommerce_attributes").on("click","button.add_new_attribute",function(){e(".woocommerce_attributes").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t=e(this).attr("data-attribute"),n=e(this).closest(".woocommerce_attribute_data"),r=prompt(woocommerce_admin_meta_boxes.new_attribute_prompt);if(r){var i={action:"woocommerce_add_new_attribute",taxonomy:t,term:r,security:woocommerce_admin_meta_boxes.add_attribute_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,i,function(t){if(t.error)alert(t.error);else if(t.slug){n.find("select.attribute_values").append('");n.find("select.attribute_values").trigger("chosen:updated")}e(".woocommerce_attributes").unblock()})}else e(".woocommerce_attributes").unblock();return!1});e(".save_attributes").on("click",function(){e(".woocommerce_attributes").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});var t={post_id:woocommerce_admin_meta_boxes.post_id,data:e(".woocommerce_attributes").find("input, select, textarea").serialize(),action:"woocommerce_save_attributes",security:woocommerce_admin_meta_boxes.save_attributes_nonce};e.post(woocommerce_admin_meta_boxes.ajax_url,t,function(t){var n=window.location.toString();n=n.replace("post-new.php?","post.php?post="+woocommerce_admin_meta_boxes.post_id+"&action=edit&");e("#variable_product_options").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_admin_meta_boxes.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:.6}});e("#variable_product_options").load(n+" #variable_product_options_inner",function(){e("#variable_product_options").unblock()});e(".woocommerce_attributes").unblock()})});var s,o;jQuery(document).on("click",".upload_file_button",function(t){var n=e(this);o=n.closest("tr").find("td.file_url input");t.preventDefault();if(s){s.open();return}var r=[new wp.media.controller.Library({library:wp.media.query(),multiple:!0,title:n.data("choose"),priority:20,filterable:"uploaded"})];s=wp.media.frames.downloadable_file=wp.media({title:n.data("choose"),library:{type:""},button:{text:n.data("update")},multiple:!0,states:r});s.on("select",function(){var e="",t=s.state().get("selection");t.map(function(t){t=t.toJSON();t.url&&(e=t.url)});o.val(e)});s.on("ready",function(){s.uploader.options.uploader.params={type:"downloadable_product"}});s.open()});jQuery(".downloadable_files tbody").sortable({items:"tr",cursor:"move",axis:"y",handle:"td.sort",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65})}); \ No newline at end of file diff --git a/assets/js/admin/quick-edit.min.js b/assets/js/admin/quick-edit.min.js new file mode 100644 index 00000000000..7b2195ca43d --- /dev/null +++ b/assets/js/admin/quick-edit.min.js @@ -0,0 +1 @@ +jQuery(document).ready(function(){jQuery("#the-list").on("click",".editinline",function(){inlineEditPost.revert();var e=jQuery(this).closest("tr").attr("id");e=e.replace("post-","");var t=jQuery("#woocommerce_inline_"+e),n=t.find(".sku").text(),r=t.find(".regular_price").text(),i=t.find(".sale_price").text(),s=t.find(".weight").text(),o=t.find(".length").text(),u=t.find(".width").text(),a=t.find(".height").text(),f=t.find(".visibility").text(),l=t.find(".stock_status").text(),c=t.find(".stock").text(),h=t.find(".featured").text(),p=t.find(".manage_stock").text(),d=t.find(".menu_order").text(),v=t.find(".tax_status").text(),m=t.find(".tax_class").text(),g=t.find(".backorders").text();jQuery('input[name="_sku"]',".inline-edit-row").val(n);jQuery('input[name="_regular_price"]',".inline-edit-row").val(r);jQuery('input[name="_sale_price"]',".inline-edit-row").val(i);jQuery('input[name="_weight"]',".inline-edit-row").val(s);jQuery('input[name="_length"]',".inline-edit-row").val(o);jQuery('input[name="_width"]',".inline-edit-row").val(u);jQuery('input[name="_height"]',".inline-edit-row").val(a);jQuery('input[name="_stock"]',".inline-edit-row").val(c);jQuery('input[name="menu_order"]',".inline-edit-row").val(d);jQuery('select[name="_tax_status"] option[value="'+v+'"]',".inline-edit-row").attr("selected","selected");jQuery('select[name="_tax_class"] option[value="'+m+'"]',".inline-edit-row").attr("selected","selected");jQuery('select[name="_visibility"] option, select[name="_stock_status"] option, select[name="_backorders"] option').removeAttr("selected");jQuery('select[name="_visibility"] option[value="'+f+'"]',".inline-edit-row").attr("selected","selected");jQuery('select[name="_stock_status"] option[value="'+l+'"]',".inline-edit-row").attr("selected","selected");jQuery('select[name="_backorders"] option[value="'+g+'"]',".inline-edit-row").attr("selected","selected");h=="yes"?jQuery('input[name="_featured"]',".inline-edit-row").attr("checked","checked"):jQuery('input[name="_featured"]',".inline-edit-row").removeAttr("checked");if(p=="yes"){jQuery(".stock_qty_field",".inline-edit-row").show().removeAttr("style");jQuery('input[name="_manage_stock"]',".inline-edit-row").attr("checked","checked")}else{jQuery(".stock_qty_field",".inline-edit-row").hide();jQuery('input[name="_manage_stock"]',".inline-edit-row").removeAttr("checked")}var y=t.find(".product_type").text(),b=t.find(".product_is_virtual").text();y=="simple"||y=="external"?jQuery(".price_fields",".inline-edit-row").show().removeAttr("style"):jQuery(".price_fields",".inline-edit-row").hide();b=="yes"?jQuery(".dimension_fields",".inline-edit-row").hide():jQuery(".dimension_fields",".inline-edit-row").show().removeAttr("style");y=="grouped"?jQuery(".stock_fields",".inline-edit-row").hide():jQuery(".stock_fields",".inline-edit-row").show().removeAttr("style")});jQuery("#the-list").on("change",'.inline-edit-row input[name="_manage_stock"]',function(){jQuery(this).is(":checked")?jQuery(".stock_qty_field",".inline-edit-row").show().removeAttr("style"):jQuery(".stock_qty_field",".inline-edit-row").hide()});jQuery("#wpbody").on("click","#doaction, #doaction2",function(){jQuery("input.text",".inline-edit-row").val("");jQuery("#woocommerce-fields select").prop("selectedIndex",0);jQuery("#woocommerce-fields-bulk .inline-edit-group .alignright").hide()});jQuery("#wpbody").on("change","#woocommerce-fields-bulk .inline-edit-group .change_to",function(){jQuery(this).val()>0?jQuery(this).closest("div").find(".alignright").show():jQuery(this).closest("div").find(".alignright").hide()});jQuery(".product_shipping_class-checklist input").change(function(){jQuery(this).closest("li").siblings().find("input:checked").removeAttr("checked")})}); \ No newline at end of file diff --git a/includes/admin/post-types/class-wc-admin-cpt-shop_coupon.php b/includes/admin/post-types/class-wc-admin-cpt-shop_coupon.php index 4788495b469..ca79066b659 100644 --- a/includes/admin/post-types/class-wc-admin-cpt-shop_coupon.php +++ b/includes/admin/post-types/class-wc-admin-cpt-shop_coupon.php @@ -28,13 +28,14 @@ class WC_Admin_CPT_Shop_Coupon extends WC_Admin_CPT { // Post title fields add_filter( 'enter_title_here', array( $this, 'enter_title_here' ), 1, 2 ); + add_action( 'edit_form_after_title', array( $this, 'coupon_description_field' ) ); // Admin Columns add_filter( 'manage_edit-shop_coupon_columns', array( $this, 'edit_columns' ) ); add_action( 'manage_shop_coupon_posts_custom_column', array( $this, 'custom_columns' ), 2 ); add_filter( 'request', array( $this, 'coupons_by_type_query' ) ); - // Prouct filtering + // Product filtering add_action( 'restrict_manage_posts', array( $this, 'coupon_filters' ) ); // Call WC_Admin_CPT constructor @@ -54,6 +55,14 @@ class WC_Admin_CPT_Shop_Coupon extends WC_Admin_CPT { return $text; } + public function coupon_description_field( $post ) { + if ( $post->post_type != 'shop_coupon' ) + return; + ?> + + -
- - echo '
'; +
- // Description - woocommerce_wp_text_input( array( 'id' => 'coupon_description', 'label' => __( 'Coupon description', 'woocommerce' ), 'description' => __( 'Optionally enter a description for this coupon for your reference.', 'woocommerce' ), 'value' => $post->post_excerpt, 'name' => 'excerpt' ) ); +
'; + foreach ( $coupon_data_tabs as $key => $tab ) { + ?>
  • + +
  • + +
    'discount_type', 'label' => __( 'Discount type', 'woocommerce' ), 'options' => wc_get_coupon_types() ) ); // Amount - woocommerce_wp_text_input( array( 'id' => 'coupon_amount', 'label' => __( 'Coupon amount', 'woocommerce' ), 'placeholder' => '0.00', 'description' => __( 'Value of the coupon.', 'woocommerce' ), 'class' => 'wc_input_decimal' ) ); + woocommerce_wp_text_input( array( 'id' => 'coupon_amount', 'label' => __( 'Coupon amount', 'woocommerce' ), 'placeholder' => '0.00', 'description' => __( 'Value of the coupon.', 'woocommerce' ), 'class' => 'wc_input_decimal', 'desc_tip' => true ) ); // Free Shipping - woocommerce_wp_checkbox( array( 'id' => 'free_shipping', 'label' => __( 'Enable free shipping', 'woocommerce' ), 'description' => sprintf(__( 'Check this box if the coupon grants free shipping. The free shipping method must be enabled with the "must use coupon" setting checked.', 'woocommerce' ), admin_url('admin.php?page=woocommerce_settings&tab=shipping§ion=WC_Shipping_Free_Shipping')) ) ); - - // Individual use - woocommerce_wp_checkbox( array( 'id' => 'individual_use', 'label' => __( 'Individual use', 'woocommerce' ), 'description' => __( 'Check this box if the coupon cannot be used in conjunction with other coupons.', 'woocommerce' ) ) ); + woocommerce_wp_checkbox( array( 'id' => 'free_shipping', 'label' => __( 'Allow free shipping', 'woocommerce' ), 'description' => sprintf(__( 'Check this box if the coupon grants free shipping. The free shipping method must be enabled with the "must use coupon" setting.', 'woocommerce' ), admin_url('admin.php?page=woocommerce_settings&tab=shipping§ion=WC_Shipping_Free_Shipping')) ) ); // Apply before tax woocommerce_wp_checkbox( array( 'id' => 'apply_before_tax', 'label' => __( 'Apply before tax', 'woocommerce' ), 'description' => __( 'Check this box if the coupon should be applied before calculating cart tax.', 'woocommerce' ) ) ); - // Exclude Sale Products - woocommerce_wp_checkbox( array( 'id' => 'exclude_sale_items', 'label' => __( 'Exclude sale items', 'woocommerce' ), 'description' => __( 'Check this box if the coupon should not apply to items on sale. Per-item coupons will only work if the item is not on sale. Per-cart coupons will only work if there are no sale items in the cart.', 'woocommerce' ) ) ); + // Expiry date + woocommerce_wp_text_input( array( 'id' => 'expiry_date', 'label' => __( 'Coupon expiry date', 'woocommerce' ), 'placeholder' => _x( 'YYYY-MM-DD', 'placeholder', 'woocommerce' ), 'description' => '', 'class' => 'date-picker', 'custom_attributes' => array( 'pattern' => "[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" ) ) ); - echo '
    '; + do_action( 'woocommerce_coupon_options' ); + + ?>
    +
    '; // minimum spend - woocommerce_wp_text_input( array( 'id' => 'minimum_amount', 'label' => __( 'Minimum amount', 'woocommerce' ), 'placeholder' => __( 'No minimum', 'woocommerce' ), 'description' => __( 'This field allows you to set the minimum subtotal needed to use the coupon.', 'woocommerce' ), 'class' => 'wc_input_decimal' ) ); + woocommerce_wp_text_input( array( 'id' => 'minimum_amount', 'label' => __( 'Minimum spend', 'woocommerce' ), 'placeholder' => __( 'No minimum', 'woocommerce' ), 'description' => __( 'This field allows you to set the minimum subtotal needed to use the coupon.', 'woocommerce' ), 'class' => 'wc_input_decimal', 'desc_tip' => true ) ); + + // Individual use + woocommerce_wp_checkbox( array( 'id' => 'individual_use', 'label' => __( 'Individual use only', 'woocommerce' ), 'description' => __( 'Check this box if the coupon cannot be used in conjunction with other coupons.', 'woocommerce' ) ) ); + + // Exclude Sale Products + woocommerce_wp_checkbox( array( 'id' => 'exclude_sale_items', 'label' => __( 'Exclude sale items', 'woocommerce' ), 'description' => __( 'Check this box if the coupon should not apply to items on sale. Per-item coupons will only work if the item is not on sale. Per-cart coupons will only work if there are no sale items in the cart.', 'woocommerce' ) ) ); echo '
    '; @@ -133,31 +163,39 @@ class WC_Meta_Box_Coupon_Data { echo '
    '; // Customers - woocommerce_wp_text_input( array( 'id' => 'customer_email', 'label' => __( 'Email restrictions', 'woocommerce' ), 'placeholder' => __( 'No restrictions', 'woocommerce' ), 'description' => __( 'List of emails to check against the customer\'s billing email when an order is placed.', 'woocommerce' ), 'value' => implode(', ', (array) get_post_meta( $post->ID, 'customer_email', true ) ), 'type' => 'email', 'custom_attributes' => array( + woocommerce_wp_text_input( array( 'id' => 'customer_email', 'label' => __( 'Email restrictions', 'woocommerce' ), 'placeholder' => __( 'No restrictions', 'woocommerce' ), 'description' => __( 'List of emails to check against the customer\'s billing email when an order is placed.', 'woocommerce' ), 'value' => implode(', ', (array) get_post_meta( $post->ID, 'customer_email', true ) ), 'desc_tip' => true, 'type' => 'email', 'class' => '', 'custom_attributes' => array( 'multiple' => 'multiple' ) ) ); - echo '
    '; + echo '
    '; - // Usage limit - woocommerce_wp_text_input( array( 'id' => 'usage_limit', 'label' => __( 'Usage limit per coupon', 'woocommerce' ), 'placeholder' => _x('Unlimited usage', 'placeholder', 'woocommerce'), 'description' => __( 'How many times this coupon can be used before it is void.', 'woocommerce' ), 'type' => 'number', 'custom_attributes' => array( + ?>
    +
    '; + + // Usage limit per coupons + woocommerce_wp_text_input( array( 'id' => 'usage_limit', 'label' => __( 'Usage limit per coupon', 'woocommerce' ), 'placeholder' => _x('Unlimited usage', 'placeholder', 'woocommerce'), 'description' => __( 'How many times this coupon can be used before it is void.', 'woocommerce' ), 'type' => 'number', 'desc_tip' => true, 'class' => '', 'custom_attributes' => array( 'step' => '1', 'min' => '0' ) ) ); - // Usage limit - woocommerce_wp_text_input( array( 'id' => 'usage_limit_per_user', 'label' => __( 'Usage limit per user', 'woocommerce' ), 'placeholder' => _x( 'Unlimited usage', 'placeholder', 'woocommerce' ), 'description' => __( 'How many times this coupon can be used by an invidual user. Uses billing email for guests, and user ID for logged in users.', 'woocommerce' ), 'type' => 'number', 'custom_attributes' => array( + // Usage limit per product + woocommerce_wp_text_input( array( 'id' => 'limit_usage_to_x_items', 'label' => __( 'Limit usage to X items', 'woocommerce' ), 'placeholder' => _x( 'Apply to all qualifying items in cart', 'placeholder', 'woocommerce' ), 'description' => __( 'The maximum number of individual items this coupon can apply to when using product discounts. Leave blank to apply to all qualifying items in cart.', 'woocommerce' ), 'desc_tip' => true, 'class' => '', 'type' => 'number', 'custom_attributes' => array( 'step' => '1', 'min' => '0' ) ) ); - // Expiry date - woocommerce_wp_text_input( array( 'id' => 'expiry_date', 'label' => __( 'Expiry date', 'woocommerce' ), 'placeholder' => _x('Never expire', 'placeholder', 'woocommerce'), 'description' => __( 'The date this coupon will expire, YYYY-MM-DD.', 'woocommerce' ), 'class' => 'short date-picker', 'custom_attributes' => array( 'pattern' => "[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" ) ) ); + // Usage limit per users + woocommerce_wp_text_input( array( 'id' => 'usage_limit_per_user', 'label' => __( 'Usage limit per user', 'woocommerce' ), 'placeholder' => _x( 'Unlimited usage', 'placeholder', 'woocommerce' ), 'description' => __( 'How many times this coupon can be used by an invidual user. Uses billing email for guests, and user ID for logged in users.', 'woocommerce' ), 'desc_tip' => true, 'class' => '', 'type' => 'number', 'custom_attributes' => array( + 'step' => '1', + 'min' => '0' + ) ) ); echo '
    '; - do_action( 'woocommerce_coupon_options' ); - ?> + ?>
    +
    applied_coupons', '2.1', 'WC_Cart->get_coupons()' ); + return array_keys( $this->coupons ); + default: + return false; + } + } /** * Loads the cart data from the PHP session during WordPress init and hooks in other methods. @@ -118,16 +139,18 @@ class WC_Cart { * @return void */ public function get_cart_from_session() { - global $woocommerce; - // Load the coupons - $this->applied_coupons = ( empty( $woocommerce->session->coupon_codes ) ) ? array() : array_filter( (array) $woocommerce->session->coupon_codes ); - $this->coupon_discount_amounts = ( empty( $woocommerce->session->coupon_amounts ) ) ? array() : array_filter( (array) $woocommerce->session->coupon_amounts ); + // Load the coupons from the session + $this->coupon_discount_amounts = array_filter( WC()->session->get( 'coupon_amounts', array() ) ); + + if ( $coupons = array_filter( WC()->session->get( 'coupon_codes', array() ) ) ) + foreach ( $coupons as $code ) + $this->coupons[ $code ] = new WC_Coupon( $code ); // Load the cart - if ( isset( $woocommerce->session->cart ) && is_array( $woocommerce->session->cart ) ) { - $cart = $woocommerce->session->cart; + $cart = WC()->session->get( 'cart', array() ); + if ( is_array( $cart ) ) { foreach ( $cart as $key => $values ) { $_product = get_product( $values['variation_id'] ? $values['variation_id'] : $values['product_id'] ); @@ -146,9 +169,6 @@ class WC_Cart { } } - if ( empty( $this->cart_contents ) || ! is_array( $this->cart_contents ) ) - $this->cart_contents = array(); - if ( sizeof( $this->cart_contents ) > 0 ) $this->set_cart_cookies(); else @@ -158,42 +178,35 @@ class WC_Cart { do_action( 'woocommerce_cart_loaded_from_session', $this ); // Load totals - $this->cart_contents_total = isset( $woocommerce->session->cart_contents_total ) ? $woocommerce->session->cart_contents_total : 0; - $this->cart_contents_weight = isset( $woocommerce->session->cart_contents_weight ) ? $woocommerce->session->cart_contents_weight : 0; - $this->cart_contents_count = isset( $woocommerce->session->cart_contents_count ) ? $woocommerce->session->cart_contents_count : 0; - $this->cart_contents_tax = isset( $woocommerce->session->cart_contents_tax ) ? $woocommerce->session->cart_contents_tax : 0; - $this->total = isset( $woocommerce->session->total ) ? $woocommerce->session->total : 0; - $this->subtotal = isset( $woocommerce->session->subtotal ) ? $woocommerce->session->subtotal : 0; - $this->subtotal_ex_tax = isset( $woocommerce->session->subtotal_ex_tax ) ? $woocommerce->session->subtotal_ex_tax : 0; - $this->tax_total = isset( $woocommerce->session->tax_total ) ? $woocommerce->session->tax_total : 0; - $this->taxes = isset( $woocommerce->session->taxes ) ? $woocommerce->session->taxes : array(); - $this->shipping_taxes = isset( $woocommerce->session->shipping_taxes ) ? $woocommerce->session->shipping_taxes : array(); - $this->discount_cart = isset( $woocommerce->session->discount_cart ) ? $woocommerce->session->discount_cart : 0; - $this->discount_total = isset( $woocommerce->session->discount_total ) ? $woocommerce->session->discount_total : 0; - $this->shipping_total = isset( $woocommerce->session->shipping_total ) ? $woocommerce->session->shipping_total : 0; - $this->shipping_tax_total = isset( $woocommerce->session->shipping_tax_total ) ? $woocommerce->session->shipping_tax_total : 0; + $this->cart_contents_total = WC()->session->get( 'cart_contents_total', 0 ); + $this->cart_contents_weight = WC()->session->get( 'cart_contents_weight', 0 ); + $this->cart_contents_count = WC()->session->get( 'cart_contents_count', 0 ); + $this->cart_contents_tax = WC()->session->get( 'cart_contents_tax', 0 ); + $this->total = WC()->session->get( 'total', 0 ); + $this->subtotal = WC()->session->get( 'subtotal', 0 ); + $this->subtotal_ex_tax = WC()->session->get( 'subtotal_ex_tax', 0 ); + $this->tax_total = WC()->session->get( 'tax_total', 0 ); + $this->taxes = WC()->session->get( 'taxes', array() ); + $this->shipping_taxes = WC()->session->get( 'shipping_taxes', array() ); + $this->discount_cart = WC()->session->get( 'discount_cart', 0 ); + $this->discount_total = WC()->session->get( 'discount_total', 0 ); + $this->shipping_total = WC()->session->get( 'shipping_total', 0 ); + $this->shipping_tax_total = WC()->session->get( 'shipping_tax_total', 0 ); // Queue re-calc if subtotal is not set if ( ! $this->subtotal && sizeof( $this->cart_contents ) > 0 ) $this->calculate_totals(); } - /** * Sets the php session data for the cart and coupons. - * - * @access public - * @return void */ public function set_session() { - global $woocommerce; - // Set cart and coupon session data $cart_session = array(); if ( $this->cart_contents ) { foreach ( $this->cart_contents as $key => $values ) { - $cart_session[ $key ] = $values; // Unset product object @@ -201,25 +214,24 @@ class WC_Cart { } } - $woocommerce->session->cart = $cart_session; - $woocommerce->session->coupon_codes = $this->applied_coupons; - $woocommerce->session->coupon_amounts = $this->coupon_discount_amounts; - - // Store totals to avoid re-calc on page load - $woocommerce->session->cart_contents_total = $this->cart_contents_total; - $woocommerce->session->cart_contents_weight = $this->cart_contents_weight; - $woocommerce->session->cart_contents_count = $this->cart_contents_count; - $woocommerce->session->cart_contents_tax = $this->cart_contents_tax; - $woocommerce->session->total = $this->total; - $woocommerce->session->subtotal = $this->subtotal; - $woocommerce->session->subtotal_ex_tax = $this->subtotal_ex_tax; - $woocommerce->session->tax_total = $this->tax_total; - $woocommerce->session->shipping_taxes = $this->shipping_taxes; - $woocommerce->session->taxes = $this->taxes; - $woocommerce->session->discount_cart = $this->discount_cart; - $woocommerce->session->discount_total = $this->discount_total; - $woocommerce->session->shipping_total = $this->shipping_total; - $woocommerce->session->shipping_tax_total = $this->shipping_tax_total; + WC()->session->set( 'cart', $cart_session ); + WC()->session->set( 'coupon_codes', array_keys( $this->coupons ) ); + WC()->session->set( 'coupon_amounts', $this->coupon_discount_amounts ); + WC()->session->set( 'cart_contents_total', $this->cart_contents_total ); + WC()->session->set( 'cart_contents_total', $this->cart_contents_total ); + WC()->session->set( 'cart_contents_weight', $this->cart_contents_weight ); + WC()->session->set( 'cart_contents_count', $this->cart_contents_count ); + WC()->session->set( 'cart_contents_tax', $this->cart_contents_tax ); + WC()->session->set( 'total', $this->total ); + WC()->session->set( 'subtotal', $this->subtotal ); + WC()->session->set( 'subtotal_ex_tax', $this->subtotal_ex_tax ); + WC()->session->set( 'tax_total', $this->tax_total ); + WC()->session->set( 'shipping_taxes', $this->shipping_taxes ); + WC()->session->set( 'taxes', $this->taxes ); + WC()->session->set( 'discount_cart', $this->discount_cart ); + WC()->session->set( 'discount_total', $this->discount_total ); + WC()->session->set( 'shipping_total', $this->shipping_total ); + WC()->session->set( 'shipping_tax_total', $this->shipping_tax_total ); if ( get_current_user_id() ) $this->persistent_cart_update(); @@ -235,12 +247,10 @@ class WC_Cart { * @return void */ public function empty_cart( $clear_persistent_cart = true ) { - global $woocommerce; - $this->cart_contents = array(); $this->reset(); - unset( $woocommerce->session->order_awaiting_payment, $woocommerce->session->coupon_codes, $woocommerce->session->coupon_amounts, $woocommerce->session->cart ); + unset( WC()->session->order_awaiting_payment, WC()->session->coupon_codes, WC()->session->coupon_amounts, WC()->session->cart ); if ( $clear_persistent_cart && get_current_user_id() ) $this->persistent_cart_destroy(); @@ -259,10 +269,8 @@ class WC_Cart { * @return void */ public function persistent_cart_update() { - global $woocommerce; - update_user_meta( get_current_user_id(), '_woocommerce_persistent_cart', array( - 'cart' => $woocommerce->session->cart, + 'cart' => WC()->session->cart, ) ); } @@ -311,8 +319,6 @@ class WC_Cart { * @return void */ public function check_cart_items() { - global $woocommerce; - $result = $this->check_cart_item_validity(); if ( is_wp_error( $result ) ) @@ -333,20 +339,16 @@ class WC_Cart { * @return void */ public function check_cart_coupons() { - if ( ! empty( $this->applied_coupons ) ) { - foreach ( $this->applied_coupons as $key => $code ) { - $coupon = new WC_Coupon( $code ); + foreach ( $this->coupons as $code => $coupon ) { + if ( ! $coupon->is_valid() ) { + // Error message + $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_INVALID_REMOVED ); - if ( ! $coupon->is_valid() ) { + // Remove the coupon + $this->remove_coupon( $code ); - $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_INVALID_REMOVED ); - - // Remove the coupon - unset( $this->applied_coupons[ $key ] ); - - WC()->session->set( 'coupon_codes', $this->applied_coupons ); - WC()->session->set( 'refresh_totals', true ); - } + // Flag totals for refresh + WC()->session->set( 'refresh_totals', true ); } } } @@ -390,76 +392,6 @@ class WC_Cart { return $quantities; } - /** - * Check for user coupons (now that we have billing email). If a coupon is invalid, add an error. - * - * Checks two types of coupons: - * 1. Where a list of customer emails are set (limits coupon usage to those defined) - * 2. Where a usage_limit_per_user is set (limits coupon usage to a number based on user ID and email) - * - * @access public - * @param array $posted - */ - public function check_customer_coupons( $posted ) { - if ( ! empty( $this->applied_coupons ) ) { - foreach ( $this->applied_coupons as $key => $code ) { - $coupon = new WC_Coupon( $code ); - - if ( $coupon->is_valid() ) { - - // Limit to defined email addresses - if ( is_array( $coupon->customer_email ) && sizeof( $coupon->customer_email ) > 0 ) { - $coupon->customer_email = array_map( 'sanitize_email', $coupon->customer_email ); - - if ( is_user_logged_in() ) { - $current_user = wp_get_current_user(); - $check_emails[] = $current_user->user_email; - } - $check_emails[] = $posted['billing_email']; - $check_emails = array_map( 'sanitize_email', array_map( 'strtolower', $check_emails ) ); - - if ( 0 == sizeof( array_intersect( $check_emails, $coupon->customer_email ) ) ) { - $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_NOT_YOURS_REMOVED ); - - // Remove the coupon - unset( $this->applied_coupons[ $key ] ); - - WC()->session->set( 'coupon_codes', $this->applied_coupons ); - WC()->session->set( 'refresh_totals', true ); - } - } - - // Usage limits per user - check against billing and user email and user ID - if ( $coupon->usage_limit_per_user > 0 ) { - $used_by = get_post_meta( $this->id, '_used_by' ); - - if ( is_user_logged_in() ) { - $current_user = wp_get_current_user(); - $check_emails[] = $current_user->user_email; - } - $check_emails[] = $posted['billing_email']; - $check_emails = array_map( 'sanitize_email', array_map( 'strtolower', $check_emails ) ); - - $usage_count = sizeof( array_keys( $used_by, get_current_user_id() ) ); - - foreach ( $check_emails as $check_email ) - $usage_count = $usage_count + sizeof( array_keys( $used_by, $check_email ) ); - - if ( $usage_count >= $coupon->usage_limit_per_user ) { - $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_USAGE_LIMIT_REACHED ); - - // Remove the coupon - unset( $this->applied_coupons[ $key ] ); - - WC()->session->set( 'coupon_codes', $this->applied_coupons ); - WC()->session->set( 'refresh_totals', true ); - } - } - } - } - } - } - /** * Looks through cart items and checks the posts are not trashed or deleted. * @return bool or WP_ERROR @@ -597,8 +529,6 @@ class WC_Cart { * @return string */ public function get_item_data( $cart_item, $flat = false ) { - global $woocommerce; - $item_data = array(); // Variation data @@ -717,7 +647,6 @@ class WC_Cart { * @return string url to page */ public function get_remove_url( $cart_item_key ) { - global $woocommerce; $cart_page_id = woocommerce_get_page_id('cart'); if ($cart_page_id) return apply_filters( 'woocommerce_get_remove_url', wp_nonce_url( add_query_arg( 'remove_item', $cart_item_key, get_permalink( $cart_page_id ) ), 'woocommerce-cart' ) ); @@ -858,7 +787,6 @@ class WC_Cart { * @return bool */ public function add_to_cart( $product_id, $quantity = 1, $variation_id = '', $variation = '', $cart_item_data = array() ) { - global $woocommerce; if ( $quantity <= 0 ) return false; @@ -1017,339 +945,10 @@ class WC_Cart { * @return void */ private function reset() { - global $woocommerce; - $this->total = $this->cart_contents_total = $this->cart_contents_weight = $this->cart_contents_count = $this->cart_contents_tax = $this->tax_total = $this->shipping_tax_total = $this->subtotal = $this->subtotal_ex_tax = $this->discount_total = $this->discount_cart = $this->shipping_total = $this->fee_total = 0; - $this->shipping_taxes = $this->taxes = $this->coupon_discount_amounts = array(); + $this->shipping_taxes = $this->taxes = $this->coupon_discount_amounts = $this->coupon_applied_count = array(); - unset( $woocommerce->session->cart_contents_total, $woocommerce->session->cart_contents_weight, $woocommerce->session->cart_contents_count, $woocommerce->session->cart_contents_tax, $woocommerce->session->total, $woocommerce->session->subtotal, $woocommerce->session->subtotal_ex_tax, $woocommerce->session->tax_total, $woocommerce->session->taxes, $woocommerce->session->shipping_taxes, $woocommerce->session->discount_cart, $woocommerce->session->discount_total, $woocommerce->session->shipping_total, $woocommerce->session->shipping_tax_total ); - } - - /** - * Function to apply discounts to a product and get the discounted price (before tax is applied). - * - * @access public - * @param mixed $values - * @param mixed $price - * @param bool $add_totals (default: false) - * @return float price - */ - public function get_discounted_price( $values, $price, $add_totals = false ) { - - if ( ! $price ) return $price; - - if ( ! empty( $this->applied_coupons ) ) { - foreach ( $this->applied_coupons as $code ) { - $coupon = new WC_Coupon( $code ); - - if ( $coupon->apply_before_tax() && $coupon->is_valid() ) { - - switch ( $coupon->type ) { - - case "fixed_product" : - case "percent_product" : - - $this_item_is_discounted = false; - - $product_cats = wp_get_post_terms( $values['product_id'], 'product_cat', array("fields" => "ids") ); - $product_ids_on_sale = woocommerce_get_product_ids_on_sale(); - - // Specific products get the discount - if ( sizeof( $coupon->product_ids ) > 0 ) { - - if ( in_array( $values['product_id'], $coupon->product_ids ) || in_array( $values['variation_id'], $coupon->product_ids ) || in_array( $values['data']->get_parent(), $coupon->product_ids ) ) - $this_item_is_discounted = true; - - // Category discounts - } elseif ( sizeof($coupon->product_categories ) > 0 ) { - - if ( sizeof( array_intersect( $product_cats, $coupon->product_categories ) ) > 0 ) - $this_item_is_discounted = true; - - } else { - - // No product ids - all items discounted - $this_item_is_discounted = true; - - } - - // Specific product ID's excluded from the discount - if ( sizeof( $coupon->exclude_product_ids ) > 0 ) - if ( in_array( $values['product_id'], $coupon->exclude_product_ids ) || in_array( $values['variation_id'], $coupon->exclude_product_ids ) || in_array( $values['data']->get_parent(), $coupon->exclude_product_ids ) ) - $this_item_is_discounted = false; - - // Specific categories excluded from the discount - if ( sizeof( $coupon->exclude_product_categories ) > 0 ) - if ( sizeof( array_intersect( $product_cats, $coupon->exclude_product_categories ) ) > 0 ) - $this_item_is_discounted = false; - - // Sale Items excluded from discount - if ( $coupon->exclude_sale_items == 'yes' ) - if ( in_array( $values['product_id'], $product_ids_on_sale, true ) || in_array( $values['variation_id'], $product_ids_on_sale, true ) || in_array( $values['data']->get_parent(), $product_ids_on_sale, true ) ) - $this_item_is_discounted = false; - - // Apply filter - $this_item_is_discounted = apply_filters( 'woocommerce_item_is_discounted', $this_item_is_discounted, $values, $before_tax = true, $coupon ); - - // Apply the discount - if ( $this_item_is_discounted ) { - if ( $coupon->type=='fixed_product' ) { - - if ( $price < $coupon->amount ) { - $discount_amount = $price; - } else { - $discount_amount = $coupon->amount; - } - - $price = $price - $coupon->amount; - - if ( $price < 0 ) $price = 0; - - if ( $add_totals ) { - $this->discount_cart = $this->discount_cart + ( $discount_amount * $values['quantity'] ); - $this->increase_coupon_discount_amount( $code, $discount_amount * $values['quantity'] ); - } - - } elseif ( $coupon->type == 'percent_product' ) { - - $percent_discount = ( $values['data']->get_price() / 100 ) * $coupon->amount; - - if ( $add_totals ) { - $this->discount_cart = $this->discount_cart + ( $percent_discount * $values['quantity'] ); - $this->increase_coupon_discount_amount( $code, $percent_discount * $values['quantity'] ); - } - - $price = $price - $percent_discount; - - } - } - - break; - - case "fixed_cart" : - - /** - * This is the most complex discount - we need to divide the discount between rows based on their price in - * proportion to the subtotal. This is so rows with different tax rates get a fair discount, and so rows - * with no price (free) don't get discount too. - */ - - // Get item discount by dividing item cost by subtotal to get a % - if ( $this->subtotal_ex_tax ) - $discount_percent = ( $values['data']->get_price_excluding_tax() * $values['quantity'] ) / $this->subtotal_ex_tax; - else - $discount_percent = 0; - - // Use pence to help prevent rounding errors - $coupon_amount_pence = $coupon->amount * 100; - - // Work out the discount for the row - $item_discount = $coupon_amount_pence * $discount_percent; - - // Work out discount per item - $item_discount = $item_discount / $values['quantity']; - - // Pence - $price = $price * 100; - - // Check if discount is more than price - if ( $price < $item_discount ) - $discount_amount = $price; - else - $discount_amount = $item_discount; - - // Take discount off of price (in pence) - $price = $price - $discount_amount; - - // Back to pounds - $price = $price / 100; - - // Cannot be below 0 - if ( $price < 0 ) - $price = 0; - - // Add coupon to discount total (once, since this is a fixed cart discount and we don't want rounding issues) - if ( $add_totals ) { - $this->discount_cart = $this->discount_cart + ( ( $discount_amount * $values['quantity'] ) / 100 ); - $this->increase_coupon_discount_amount( $code, ( $discount_amount * $values['quantity'] ) / 100 ); - } - - break; - - case "percent" : - - $percent_discount = ( $values['data']->get_price() / 100 ) * $coupon->amount; - - if ( $add_totals ) { - $this->discount_cart = $this->discount_cart + ( $percent_discount * $values['quantity'] ); - $this->increase_coupon_discount_amount( $code, $percent_discount * $values['quantity'] ); - } - - $price = $price - $percent_discount; - - break; - - } - } - } - } - - return apply_filters( 'woocommerce_get_discounted_price', $price, $values, $this ); - } - - /** - * Function to apply product discounts after tax. - * - * @access public - * @param mixed $values - * @param mixed $price - */ - public function apply_product_discounts_after_tax( $values, $price ) { - - if ( ! empty( $this->applied_coupons) ) { - foreach ( $this->applied_coupons as $code ) { - $coupon = new WC_Coupon( $code ); - - do_action( 'woocommerce_product_discount_after_tax_' . $coupon->type, $coupon, $values, $price ); - - if ( ! $coupon->is_valid() ) continue; - - if ( $coupon->type != 'fixed_product' && $coupon->type != 'percent_product' ) continue; - - if ( ! $coupon->apply_before_tax() ) { - - $product_cats = wp_get_post_terms( $values['product_id'], 'product_cat', array("fields" => "ids") ); - $product_ids_on_sale = woocommerce_get_product_ids_on_sale(); - - $this_item_is_discounted = false; - - // Specific products get the discount - if ( sizeof( $coupon->product_ids ) > 0 ) { - - if (in_array($values['product_id'], $coupon->product_ids) || in_array($values['variation_id'], $coupon->product_ids) || in_array($values['data']->get_parent(), $coupon->product_ids)) - $this_item_is_discounted = true; - - // Category discounts - } elseif ( sizeof( $coupon->product_categories ) > 0 ) { - - if ( sizeof( array_intersect( $product_cats, $coupon->product_categories ) ) > 0 ) - $this_item_is_discounted = true; - - } else { - - // No product ids - all items discounted - $this_item_is_discounted = true; - - } - - // Specific product ID's excluded from the discount - if ( sizeof( $coupon->exclude_product_ids ) > 0 ) - if ( in_array( $values['product_id'], $coupon->exclude_product_ids ) || in_array( $values['variation_id'], $coupon->exclude_product_ids ) || in_array( $values['data']->get_parent(), $coupon->exclude_product_ids ) ) - $this_item_is_discounted = false; - - // Specific categories excluded from the discount - if ( sizeof( $coupon->exclude_product_categories ) > 0 ) - if ( sizeof( array_intersect( $product_cats, $coupon->exclude_product_categories ) ) > 0 ) - $this_item_is_discounted = false; - - // Sale Items excluded from discount - if ( $coupon->exclude_sale_items == 'yes' ) - if ( in_array( $values['product_id'], $product_ids_on_sale, true ) || in_array( $values['variation_id'], $product_ids_on_sale, true ) || in_array( $values['data']->get_parent(), $product_ids_on_sale, true ) ) - $this_item_is_discounted = false; - - // Apply filter - $this_item_is_discounted = apply_filters( 'woocommerce_item_is_discounted', $this_item_is_discounted, $values, $before_tax = false, $coupon ); - - // Apply the discount - if ( $this_item_is_discounted ) { - if ( $coupon->type == 'fixed_product' ) { - - if ( $price < $coupon->amount ) - $discount_amount = $price; - else - $discount_amount = $coupon->amount; - - $this->discount_total = $this->discount_total + ( $discount_amount * $values['quantity'] ); - $this->increase_coupon_discount_amount( $code, $discount_amount * $values['quantity'] ); - - } elseif ( $coupon->type == 'percent_product' ) { - $this->discount_total = $this->discount_total + round( ( $price / 100 ) * $coupon->amount, $this->dp ); - $this->increase_coupon_discount_amount( $code, round( ( $price / 100 ) * $coupon->amount, $this->dp ) ); - } - } - } - } - } - - } - - /** - * Function to apply cart discounts after tax. - * - * @access public - */ - public function apply_cart_discounts_after_tax() { - - $pre_discount_total = number_format( $this->cart_contents_total + $this->tax_total + $this->shipping_tax_total + $this->shipping_total + $this->fee_total, $this->dp, '.', '' ); - - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $code ) { - $coupon = new WC_Coupon( $code ); - - do_action( 'woocommerce_cart_discount_after_tax_' . $coupon->type, $coupon ); - - if ( ! $coupon->apply_before_tax() && $coupon->is_valid() ) { - - switch ( $coupon->type ) { - - case "fixed_cart" : - - if ( $coupon->amount > $pre_discount_total ) - $coupon->amount = $pre_discount_total; - - $pre_discount_total = $pre_discount_total - $coupon->amount; - - $this->discount_total = $this->discount_total + $coupon->amount; - - $this->increase_coupon_discount_amount( $code, $coupon->amount ); - - break; - - case "percent" : - - $percent_discount = round( ( round( $this->cart_contents_total + $this->tax_total + $this->fee_total, $this->dp ) / 100 ) * $coupon->amount, $this->dp ); - - if ( $coupon->amount > $percent_discount ) - $coupon->amount = $percent_discount; - - $pre_discount_total = $pre_discount_total - $percent_discount; - - $this->discount_total = $this->discount_total + $percent_discount; - - $this->increase_coupon_discount_amount( $code, $percent_discount ); - - break; - - } - - } - } - } - } - - /** - * Store how much discount each coupon grants. - * - * @access private - * @param mixed $code - * @param mixed $amount - * @return void - */ - private function increase_coupon_discount_amount( $code, $amount ) { - if ( empty( $this->coupon_discount_amounts[ $code ] ) ) - $this->coupon_discount_amounts[ $code ] = 0; - - $this->coupon_discount_amounts[ $code ] += $amount; + unset( WC()->session->cart_contents_total, WC()->session->cart_contents_weight, WC()->session->cart_contents_count, WC()->session->cart_contents_tax, WC()->session->total, WC()->session->subtotal, WC()->session->subtotal_ex_tax, WC()->session->tax_total, WC()->session->taxes, WC()->session->shipping_taxes, WC()->session->discount_cart, WC()->session->discount_total, WC()->session->shipping_total, WC()->session->shipping_tax_total ); } /** @@ -1358,7 +957,6 @@ class WC_Cart { * @access public */ public function calculate_totals() { - global $woocommerce; $this->reset(); @@ -1651,7 +1249,7 @@ class WC_Cart { } // VAT exemption done at this point - so all totals are correct before exemption - if ( $woocommerce->customer->is_vat_exempt() ) + if ( WC()->customer->is_vat_exempt() ) $this->remove_taxes(); // Cart Discounts (after tax) @@ -1669,7 +1267,7 @@ class WC_Cart { $this->tax_total = $this->tax->get_tax_total( $this->taxes ); // VAT exemption done at this point - so all totals are correct before exemption - if ( $woocommerce->customer->is_vat_exempt() ) + if ( WC()->customer->is_vat_exempt() ) $this->remove_taxes(); // Cart Discounts (after tax) @@ -1721,17 +1319,15 @@ class WC_Cart { * @return void */ public function calculate_shipping() { - global $woocommerce; - if ( $this->needs_shipping() && $this->show_shipping() ) { - $woocommerce->shipping->calculate_shipping( $this->get_shipping_packages() ); + WC()->shipping->calculate_shipping( $this->get_shipping_packages() ); } else { - $woocommerce->shipping->reset_shipping(); + WC()->shipping->reset_shipping(); } // Get totals for the chosen shipping method - $this->shipping_total = $woocommerce->shipping->shipping_total; // Shipping Total - $this->shipping_taxes = $woocommerce->shipping->shipping_taxes; // Shipping Taxes + $this->shipping_total = WC()->shipping->shipping_total; // Shipping Total + $this->shipping_taxes = WC()->shipping->shipping_taxes; // Shipping Taxes } /** @@ -1749,20 +1345,18 @@ class WC_Cart { * @return array of cart items */ public function get_shipping_packages() { - global $woocommerce; - // Packages array for storing 'carts' $packages = array(); $packages[0]['contents'] = $this->get_cart(); // Items in the package $packages[0]['contents_cost'] = 0; // Cost of items in the package, set below - $packages[0]['applied_coupons'] = $this->applied_coupons; // Applied coupons - some, like free shipping, affect costs - $packages[0]['destination']['country'] = $woocommerce->customer->get_shipping_country(); - $packages[0]['destination']['state'] = $woocommerce->customer->get_shipping_state(); - $packages[0]['destination']['postcode'] = $woocommerce->customer->get_shipping_postcode(); - $packages[0]['destination']['city'] = $woocommerce->customer->get_shipping_city(); - $packages[0]['destination']['address'] = $woocommerce->customer->get_shipping_address(); - $packages[0]['destination']['address_2'] = $woocommerce->customer->get_shipping_address_2(); + $packages[0]['applied_coupons'] = array_keys( $this->coupons ); // Applied coupons - some, like free shipping, affect costs + $packages[0]['destination']['country'] = WC()->customer->get_shipping_country(); + $packages[0]['destination']['state'] = WC()->customer->get_shipping_state(); + $packages[0]['destination']['postcode'] = WC()->customer->get_shipping_postcode(); + $packages[0]['destination']['city'] = WC()->customer->get_shipping_city(); + $packages[0]['destination']['address'] = WC()->customer->get_shipping_address(); + $packages[0]['destination']['address_2'] = WC()->customer->get_shipping_address_2(); foreach ( $this->get_cart() as $item ) if ( $item['data']->needs_shipping() ) @@ -1801,14 +1395,12 @@ class WC_Cart { * @return bool */ public function show_shipping() { - global $woocommerce; - if ( get_option('woocommerce_calc_shipping') == 'no' || ! is_array( $this->cart_contents ) ) return false; if ( get_option( 'woocommerce_shipping_cost_requires_address' ) == 'yes' ) { - if ( ! $woocommerce->customer->has_calculated_shipping() ) { - if ( ! $woocommerce->customer->get_shipping_country() || ( ! $woocommerce->customer->get_shipping_state() && ! $woocommerce->customer->get_shipping_postcode() ) ) + if ( ! WC()->customer->has_calculated_shipping() ) { + if ( ! WC()->customer->get_shipping_country() || ( ! WC()->customer->get_shipping_state() && ! WC()->customer->get_shipping_postcode() ) ) return false; } } @@ -1834,8 +1426,6 @@ class WC_Cart { * @return mixed price or string for the shipping total */ public function get_cart_shipping_total() { - global $woocommerce; - if ( isset( $this->shipping_total ) ) { if ( $this->shipping_total > 0 ) { @@ -1845,7 +1435,7 @@ class WC_Cart { $return = woocommerce_price( $this->shipping_total ); if ( $this->shipping_tax_total > 0 && $this->prices_include_tax ) { - $return .= ' ' . $woocommerce->countries->ex_tax_or_vat() . ''; + $return .= ' ' . WC()->countries->ex_tax_or_vat() . ''; } return $return; @@ -1855,7 +1445,7 @@ class WC_Cart { $return = woocommerce_price( $this->shipping_total + $this->shipping_tax_total ); if ( $this->shipping_tax_total > 0 && ! $this->prices_include_tax ) { - $return .= ' ' . $woocommerce->countries->inc_tax_or_vat() . ''; + $return .= ' ' . WC()->countries->inc_tax_or_vat() . ''; } return $return; @@ -1872,6 +1462,74 @@ class WC_Cart { /* Coupons/Discount related functions */ /*-----------------------------------------------------------------------------------*/ + /** + * Check for user coupons (now that we have billing email). If a coupon is invalid, add an error. + * + * Checks two types of coupons: + * 1. Where a list of customer emails are set (limits coupon usage to those defined) + * 2. Where a usage_limit_per_user is set (limits coupon usage to a number based on user ID and email) + * + * @access public + * @param array $posted + */ + public function check_customer_coupons( $posted ) { + if ( ! empty( $this->coupons ) ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( $coupon->is_valid() ) { + + // Limit to defined email addresses + if ( is_array( $coupon->customer_email ) && sizeof( $coupon->customer_email ) > 0 ) { + $coupon->customer_email = array_map( 'sanitize_email', $coupon->customer_email ); + + if ( is_user_logged_in() ) { + $current_user = wp_get_current_user(); + $check_emails[] = $current_user->user_email; + } + $check_emails[] = $posted['billing_email']; + $check_emails = array_map( 'sanitize_email', array_map( 'strtolower', $check_emails ) ); + + if ( 0 == sizeof( array_intersect( $check_emails, $coupon->customer_email ) ) ) { + $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_NOT_YOURS_REMOVED ); + + // Remove the coupon + $this->remove_coupon( $code ); + + // Flag totals for refresh + WC()->session->set( 'refresh_totals', true ); + } + } + + // Usage limits per user - check against billing and user email and user ID + if ( $coupon->usage_limit_per_user > 0 ) { + $used_by = get_post_meta( $this->id, '_used_by' ); + + if ( is_user_logged_in() ) { + $current_user = wp_get_current_user(); + $check_emails[] = $current_user->user_email; + } + $check_emails[] = $posted['billing_email']; + $check_emails = array_map( 'sanitize_email', array_map( 'strtolower', $check_emails ) ); + + $usage_count = sizeof( array_keys( $used_by, get_current_user_id() ) ); + + foreach ( $check_emails as $check_email ) + $usage_count = $usage_count + sizeof( array_keys( $used_by, $check_email ) ); + + if ( $usage_count >= $coupon->usage_limit_per_user ) { + $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_USAGE_LIMIT_REACHED ); + + // Remove the coupon + $this->remove_coupon( $code ); + + // Flag totals for refresh + WC()->session->set( 'refresh_totals', true ); + } + } + } + } + } + } + /** * Returns whether or not a discount has been applied. * @@ -1883,7 +1541,7 @@ class WC_Cart { $coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code ); // Check if its set - return in_array( $coupon_code, $this->applied_coupons ); + return in_array( $coupon_code, array_keys( $this->coupons ) ); } /** @@ -1893,8 +1551,6 @@ class WC_Cart { * @return bool True if the coupon is applied, false if it does not exist or cannot be applied */ public function add_discount( $coupon_code ) { - global $woocommerce; - // Coupons are globally disabled if ( ! $this->coupons_enabled() ) return false; @@ -1921,25 +1577,22 @@ class WC_Cart { // If its individual use then remove other coupons if ( $the_coupon->individual_use == 'yes' ) { - $this->applied_coupons = apply_filters( 'woocommerce_apply_individual_use_coupon', array(), $the_coupon, $this->applied_coupons ); + $this->coupons = apply_filters( 'woocommerce_apply_individual_use_coupon', array(), $the_coupon, $this->coupons ); } - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $code ) { - - $existing_coupon = new WC_Coupon( $code ); - - if ( $existing_coupon->individual_use == 'yes' && false === apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $the_coupon, $existing_coupon, $this->applied_coupons ) ) { + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( $coupon->individual_use == 'yes' && false === apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $the_coupon, $coupon, $this->coupons ) ) { // Reject new coupon - $existing_coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_ALREADY_APPLIED_INDIV_USE_ONLY ); + $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_ALREADY_APPLIED_INDIV_USE_ONLY ); return false; } } } - $this->applied_coupons[] = $coupon_code; + $this->coupons[ $coupon_code ] = $the_coupon; // Choose free shipping if ( $the_coupon->enable_free_shipping() ) { @@ -1968,36 +1621,45 @@ class WC_Cart { return false; } + /** + * Get array of applied coupon objects and codes. + * @param Type Type of coupons to get. Can be 'cart' or 'order' which are before and after tax respectively. + * @return array of applied coupons + */ + public function get_coupons( $type ) { + $coupons = array(); + + if ( 'cart' == $type ) { + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( $coupon->apply_before_tax() ) + $coupons[ $code ] = $coupon; + } + } + } elseif ( 'order' == $type ) { + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( ! $coupon->apply_before_tax() ) + $coupons[ $code ] = $coupon; + } + } + } else { + $coupons = $this->coupons; + } + + return $coupons; + } + /** * Gets the array of applied coupon codes. * + * @deprecated In 2.1, use get_coupons() to get an array of coupon objects instead of just the codes. * @param Type Type of coupons to get. Can be 'cart' or 'order' which are before and after tax respectively. * @return array of applied coupons */ public function get_applied_coupons( $type = '' ) { - $coupons = array(); - - if ( 'cart' == $type ) { - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $index => $code ) { - $coupon = new WC_Coupon( $code ); - if ( $coupon->is_valid() && $coupon->apply_before_tax() ) - $coupons[] = $code; - } - } - } elseif ( 'order' == $type ) { - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $index => $code ) { - $coupon = new WC_Coupon( $code ); - if ( $coupon->is_valid() && ! $coupon->apply_before_tax() ) - $coupons[] = $code; - } - } - } else { - $coupons = array_filter( (array) $this->applied_coupons ); - } - - return $coupons; + _deprecated_function( 'WC_Cart->get_applied_coupons', '2.1', 'WC_Cart->get_coupons()' ); + return array_keys( $this->get_coupons( $type ) ); } /** @@ -2006,31 +1668,24 @@ class WC_Cart { * @params int type - 0 for all, 1 for before tax, 2 for after tax */ public function remove_coupons( $type = 0 ) { - global $woocommerce; - if ( 1 == $type ) { - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $index => $code ) { - $coupon = new WC_Coupon( $code ); - if ( $coupon->is_valid() && $coupon->apply_before_tax() ) unset( $this->applied_coupons[ $index ] ); + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( $coupon->apply_before_tax() ) + $this->remove_coupon( $code ); } } - - WC()->session->set( 'coupon_codes', $this->applied_coupons ); - } elseif ( $type == 2 ) { - if ( $this->applied_coupons ) { - foreach ( $this->applied_coupons as $index => $code ) { - $coupon = new WC_Coupon( $code ); - if ( $coupon->is_valid() && ! $coupon->apply_before_tax() ) unset( $this->applied_coupons[ $index ] ); + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( ! $coupon->apply_before_tax() ) + $this->remove_coupon( $code ); } } - - WC()->session->set( 'coupon_codes', $this->applied_coupons ); - } else { - unset( $woocommerce->session->coupon_codes, $woocommerce->session->coupon_amounts ); - $this->applied_coupons = array(); + $this->coupons = $this->coupon_discount_amounts = $this->coupon_applied_count = array(); + WC()->session->set( 'coupon_codes', array() ); + WC()->session->set( 'coupon_amounts', array() ); } } @@ -2038,26 +1693,127 @@ class WC_Cart { * Remove a single coupon by code */ public function remove_coupon( $coupon_code ) { - // Coupons are globally disabled if ( ! $this->coupons_enabled() ) return false; - // Sanitize coupon code - $coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code ); - // Get the coupon - $the_coupon = new WC_Coupon( $coupon_code ); + $coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code ); - $coupon_index = array_search( $coupon_code, $this->applied_coupons ); - - if ( $coupon_index >= 0 ) { - unset( $this->applied_coupons[ $coupon_index ] ); - - $the_coupon->add_coupon_message( WC_Coupon::WC_COUPON_REMOVED ); + if ( isset( $this->coupons[ $coupon_code ] ) ) { + $this->coupons[ $coupon_code ]->add_coupon_message( WC_Coupon::WC_COUPON_REMOVED ); + unset( $this->coupons[ $coupon_code ], $this->coupon_discount_amounts[ $coupon_code ], $this->coupon_applied_count[ $coupon_code ] ); } - WC()->session->set( 'coupon_codes', $this->applied_coupons ); + WC()->session->set( 'coupon_codes', array_keys( $this->coupons ) ); + WC()->session->set( 'coupon_amounts', $this->coupon_discount_amounts ); + } + + /** + * Function to apply discounts to a product and get the discounted price (before tax is applied). + * + * @access public + * @param mixed $values + * @param mixed $price + * @param bool $add_totals (default: false) + * @return float price + */ + public function get_discounted_price( $values, $price, $add_totals = false ) { + if ( ! $price ) + return $price; + + if ( ! empty( $this->coupons ) ) { + foreach ( $this->coupons as $code => $coupon ) { + if ( $coupon->apply_before_tax() && $coupon->is_valid() ) { + if ( $coupon->is_valid_for_product( $values['data'] ) || $coupon->is_valid_for_cart() ) { + + $discount_amount = $coupon->get_discount_amount( $price, $values, $single = true ); + $price = max( $price - $discount_amount, 0 ); + + if ( $add_totals ) { + $this->discount_cart += $discount_amount * $values['quantity']; + $this->increase_coupon_discount_amount( $code, $discount_amount * $values['quantity'] ); + $this->increase_coupon_applied_count( $code, $values['quantity'] ); + } + } + } + } + } + + return apply_filters( 'woocommerce_get_discounted_price', $price, $values, $this ); + } + + /** + * Function to apply cart discounts after tax. + * + * @access public + */ + public function apply_cart_discounts_after_tax() { + $pre_discount_total = number_format( $this->cart_contents_total + $this->tax_total + $this->shipping_tax_total + $this->shipping_total + $this->fee_total, $this->dp, '.', '' ); + + if ( $this->coupons ) { + foreach ( $this->coupons as $code => $coupon ) { + do_action( 'woocommerce_cart_discount_after_tax_' . $coupon->type, $coupon ); + + if ( $coupon->is_valid() && ! $coupon->apply_before_tax() && $coupon->is_valid_for_cart() ) { + $discount_amount = $coupon->get_discount_amount( $pre_discount_total ); + $pre_discount_total = $pre_discount_total - $discount_amount; + $this->discount_total += $discount_amount; + $this->increase_coupon_discount_amount( $code, $discount_amount ); + $this->increase_coupon_applied_count( $code ); + } + } + } + } + + /** + * Function to apply product discounts after tax. + * + * @access public + * @param mixed $values + * @param mixed $price + */ + public function apply_product_discounts_after_tax( $values, $price ) { + if ( ! empty( $this->coupons ) ) { + foreach ( $this->coupons as $code => $coupon ) { + do_action( 'woocommerce_product_discount_after_tax_' . $coupon->type, $coupon, $values, $price ); + + if ( $coupon->is_valid() && ! $coupon->apply_before_tax() && $coupon->is_valid_for_product( $values['data'] ) ) { + $discount_amount = $coupon->get_discount_amount( $price, $values ); + $this->discount_total += $discount_amount; + $this->increase_coupon_discount_amount( $code, $discount_amount ); + $this->increase_coupon_applied_count( $code, $values['quantity'] ); + } + } + } + } + + /** + * Store how much discount each coupon grants. + * + * @access private + * @param mixed $code + * @param mixed $amount + */ + private function increase_coupon_discount_amount( $code, $amount ) { + if ( empty( $this->coupon_discount_amounts[ $code ] ) ) + $this->coupon_discount_amounts[ $code ] = 0; + + $this->coupon_discount_amounts[ $code ] += $amount; + } + + /** + * Store how many times each coupon is applied to cart/items + * + * @access private + * @param mixed $code + * @param mixed $amount + */ + private function increase_coupon_applied_count( $code, $count = 1 ) { + if ( empty( $this->coupon_applied_count[ $code ] ) ) + $this->coupon_applied_count[ $code ] = 0; + + $this->coupon_applied_count[ $code ] += $count; } /*-----------------------------------------------------------------------------------*/ @@ -2191,7 +1947,6 @@ class WC_Cart { * @return string formatted price */ public function get_cart_subtotal( $compound = false ) { - global $woocommerce; // If the cart has compound tax, we want to show the subtotal as // cart + shipping + non-compound taxes (after discount) @@ -2208,7 +1963,7 @@ class WC_Cart { $cart_subtotal = woocommerce_price( $this->subtotal_ex_tax ); if ( $this->tax_total > 0 && $this->prices_include_tax ) { - $cart_subtotal .= ' ' . $woocommerce->countries->ex_tax_or_vat() . ''; + $cart_subtotal .= ' ' . WC()->countries->ex_tax_or_vat() . ''; } } else { @@ -2216,7 +1971,7 @@ class WC_Cart { $cart_subtotal = woocommerce_price( $this->subtotal ); if ( $this->tax_total > 0 && !$this->prices_include_tax ) { - $cart_subtotal .= ' ' . $woocommerce->countries->inc_tax_or_vat() . ''; + $cart_subtotal .= ' ' . WC()->countries->inc_tax_or_vat() . ''; } } @@ -2252,7 +2007,6 @@ class WC_Cart { * @return string formatted price */ public function get_product_subtotal( $_product, $quantity ) { - global $woocommerce; $price = $_product->get_price(); $taxable = $_product->is_taxable(); @@ -2266,7 +2020,7 @@ class WC_Cart { $product_subtotal = woocommerce_price( $row_price ); if ( $this->prices_include_tax && $this->tax_total > 0 ) - $product_subtotal .= ' ' . $woocommerce->countries->ex_tax_or_vat() . ''; + $product_subtotal .= ' ' . WC()->countries->ex_tax_or_vat() . ''; } else { @@ -2274,7 +2028,7 @@ class WC_Cart { $product_subtotal = woocommerce_price( $row_price ); if ( ! $this->prices_include_tax && $this->tax_total > 0 ) - $product_subtotal .= ' ' . $woocommerce->countries->inc_tax_or_vat() . ''; + $product_subtotal .= ' ' . WC()->countries->inc_tax_or_vat() . ''; } diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 9528bf2e5c1..ac5e5b74a16 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -345,8 +345,8 @@ class WC_Checkout { } // Store coupons - if ( $applied_coupons = $woocommerce->cart->get_applied_coupons() ) { - foreach ( $applied_coupons as $code ) { + if ( $applied_coupons = $woocommerce->cart->get_coupons() ) { + foreach ( $applied_coupons as $code => $coupon ) { $item_id = woocommerce_add_order_item( $order_id, array( 'order_item_name' => $code, diff --git a/includes/class-wc-coupon.php b/includes/class-wc-coupon.php index 52acd4e4b04..ee9c0fd807d 100644 --- a/includes/class-wc-coupon.php +++ b/includes/class-wc-coupon.php @@ -54,6 +54,9 @@ class WC_Coupon { /** @public int Coupon usage limit per user. */ public $usage_limit_per_user; + /** @public int Coupon usage limit per item. */ + public $limit_usage_to_x_items; + /** @public int Coupon usage count. */ public $usage_count; @@ -115,6 +118,7 @@ class WC_Coupon { $this->exclude_product_ids = is_array( $coupon_data['exclude_product_ids'] ) ? $coupon_data['exclude_product_ids'] : array(); $this->usage_limit = absint( $coupon_data['usage_limit'] ); $this->usage_limit_per_user = isset( $coupon_data['usage_limit_per_user'] ) ? absint( $coupon_data['usage_limit_per_user'] ) : 0; + $this->limit_usage_to_x_items = isset( $coupon_data['limit_usage_to_x_items'] ) ? absint( $coupon_data['limit_usage_to_x_items'] ) : ''; $this->usage_count = absint( $coupon_data['usage_count'] ); $this->expiry_date = esc_html( $coupon_data['expiry_date'] ); $this->apply_before_tax = esc_html( $coupon_data['apply_before_tax'] ); @@ -133,7 +137,7 @@ class WC_Coupon { return; $coupon = get_post( $coupon_id ); - $coupon->post_title = apply_filters( 'woocommerce_coupon_code', $coupon->post_title ); + $this->post_title = apply_filters( 'woocommerce_coupon_code', $coupon->post_title ); if ( empty( $coupon ) || $this->code !== $coupon->post_title ) return; @@ -149,6 +153,7 @@ class WC_Coupon { 'exclude_product_ids' => '', 'usage_limit' => '', 'usage_limit_per_user' => '', + 'limit_usage_to_x_items' => '', 'usage_count' => '', 'expiry_date' => '', 'apply_before_tax' => 'yes', @@ -420,6 +425,116 @@ class WC_Coupon { return false; } + public function is_valid_for_cart() { + if ( $this->type != 'fixed_cart' && $this->type != 'percent' ) + return false; + else + return true; + } + + /** + * Check if a coupon is valid for a product + * + * @param WC_Product $product + * @return boolean + */ + public function is_valid_for_product( $product ) { + if ( $this->type != 'fixed_product' && $this->type != 'percent_product' ) + return false; + + $valid = false; + $product_cats = wp_get_post_terms( $product->id, 'product_cat', array( "fields" => "ids" ) ); + + // Specific products get the discount + if ( sizeof( $this->product_ids ) > 0 ) { + + if ( in_array( $product->id, $this->product_ids ) || ( isset( $product->variation_id ) && in_array( $product->variation_id, $this->product_ids ) ) || in_array( $product->get_parent(), $this->product_ids ) ) + $valid = true; + + // Category discounts + } elseif ( sizeof( $this->product_categories ) > 0 ) { + + if ( sizeof( array_intersect( $product_cats, $this->product_categories ) ) > 0 ) + $valid = true; + + } else { + // No product ids - all items discounted + $valid = true; + } + + // Specific product ID's excluded from the discount + if ( sizeof( $this->exclude_product_ids ) > 0 ) + if ( in_array( $product->id, $this->exclude_product_ids ) || ( isset( $product->variation_id ) && in_array( $product->variation_id, $this->exclude_product_ids ) ) || in_array( $product->get_parent(), $this->exclude_product_ids ) ) + $valid = false; + + // Specific categories excluded from the discount + if ( sizeof( $this->exclude_product_categories ) > 0 ) + if ( sizeof( array_intersect( $product_cats, $this->exclude_product_categories ) ) > 0 ) + $valid = false; + + // Sale Items excluded from discount + if ( $this->exclude_sale_items == 'yes' ) { + $product_ids_on_sale = woocommerce_get_product_ids_on_sale(); + + if ( in_array( $product->id, $product_ids_on_sale, true ) || ( isset( $product->variation_id ) && in_array( $product->variation_id, $product_ids_on_sale, true ) ) || in_array( $product->get_parent(), $product_ids_on_sale, true ) ) + $valid = false; + } + + return apply_filters( 'woocommerce_coupon_is_valid_for_product', $valid, $product, $this ); + } + + /** + * Get discount amount for a cart item + * + * @param float $discounting_amount Amount the coupon is being applied to + * @param array|null $cart_item Cart item being discounted if applicable + * @param boolean $single True if discounting a single qty item, false if its the line + * @return float Amount this coupon has discounted + */ + public function get_discount_amount( $discounting_amount, $cart_item = null, $single = false ) { + $discount = 0; + + if ( $this->type == 'fixed_product') { + + $discount = $discounting_amount < $this->amount ? $discounting_amount : $this->amount; + + } elseif ( $this->type == 'percent_product' || $this->type == 'percent' ) { + + $discount = ( $discounting_amount / 100 ) * $this->amount; + + } elseif ( $this->type == 'fixed_cart' ) { + if ( ! is_null( $cart_item ) ) { + /** + * This is the most complex discount - we need to divide the discount between rows based on their price in + * proportion to the subtotal. This is so rows with different tax rates get a fair discount, and so rows + * with no price (free) don't get discounted. + * + * Get item discount by dividing item cost by subtotal to get a % + */ + $discount_percent = 0; + + if ( WC()->cart->subtotal_ex_tax ) + $discount_percent = ( $cart_item['data']->get_price_excluding_tax() * $cart_item['quantity'] ) / WC()->cart->subtotal_ex_tax; + + $discount = min( ( $this->amount * $discount_percent ) / $cart_item['quantity'], $discounting_amount ); + } else { + $discount = min( $this->amount, $discounting_amount ); + } + } + + if ( in_array( $this->type, array( 'percent_product', 'fixed_product' ) ) && ! is_null( $cart_item ) ) { + $qty = empty( $this->limit_usage_to_x_items ) ? $cart_item['quantity'] : min( $this->limit_usage_to_x_items, $cart_item['quantity'] ); + + if ( $single ) { + $discount = ( $discount * $qty ) / $cart_item['quantity']; + } else { + $discount = ( $discount / $cart_item['quantity'] ) * $qty; + } + } + + return $discount; + } + /** * Converts one of the WC_Coupon message/error codes to a message string and * displays the message/error. diff --git a/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php b/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php index f64de57e0d7..fdcd5f9ab70 100644 --- a/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php +++ b/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php @@ -173,10 +173,8 @@ class WC_Shipping_Free_Shipping extends WC_Shipping_Method { if ( in_array( $this->requires, array( 'coupon', 'either', 'both' ) ) ) { - if ( $woocommerce->cart->applied_coupons ) { - foreach ($woocommerce->cart->applied_coupons as $code) { - $coupon = new WC_Coupon( $code ); - + if ( $coupons = $woocommerce->cart->get_coupons() ) { + foreach ( $coupons as $code => $coupon ) { if ( $coupon->is_valid() && $coupon->enable_free_shipping() ) $has_coupon = true; } diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 4efb4435b15..c3b44fc0cd1 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1102,17 +1102,19 @@ function wc_cart_totals_subtotal_html() { * Get a coupon value * @param string $code */ -function wc_cart_totals_coupon_html( $code ) { - $coupon = new WC_Coupon( $code ); +function wc_cart_totals_coupon_html( $coupon ) { + if ( is_string( $coupon ) ) + $coupon = new WC_Coupon( $coupon ); + $value = array(); - if ( ! empty( WC()->cart->coupon_discount_amounts[ $code ] ) ) - $value[] = '-' . woocommerce_price( WC()->cart->coupon_discount_amounts[ $code ] ); + if ( ! empty( WC()->cart->coupon_discount_amounts[ $coupon->code ] ) ) + $value[] = '-' . woocommerce_price( WC()->cart->coupon_discount_amounts[ $coupon->code ] ); if ( $coupon->enable_free_shipping() ) $value[] = __( 'Free shipping coupon', 'woocommerce' ); - echo implode( ', ', $value ) . ' ' . __( '[Remove]', 'woocommerce' ) . ''; + echo implode( ', ', $value ) . ' ' . __( '[Remove]', 'woocommerce' ) . ''; } /** diff --git a/templates/cart/cart-totals.php b/templates/cart/cart-totals.php index 29c87035a53..7ec9b03bd1c 100644 --- a/templates/cart/cart-totals.php +++ b/templates/cart/cart-totals.php @@ -22,10 +22,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - cart->get_applied_coupons( 'cart' ) as $code ) : ?> + cart->get_coupons( 'cart' ) as $code => $coupon ) : ?> - + @@ -62,10 +62,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - cart->get_applied_coupons( 'order' ) as $code ) : ?> + cart->get_coupons( 'order' ) as $code => $coupon ) : ?> - + diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index b84544ba90b..f0faa197c28 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -26,10 +26,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - cart->get_applied_coupons( 'cart' ) as $code ) : ?> + cart->get_coupons( 'cart' ) as $code => $coupon ) : ?> - + @@ -66,10 +66,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - cart->get_applied_coupons( 'order' ) as $code ) : ?> + cart->get_coupons( 'order' ) as $code => $coupon ) : ?> - +