"use strict";function hideControls(o){for(var t=0;t .row").css("display","flex"),c(".top-bar-inner .col").css("justify-content","flex-start"),c(".top-bar-inner .col:last-of-type").css("justify-content","flex-end")):(c(".top-bar-inner > .row").css("display","block"),c(".top-bar-inner .col").css("justify-content","center"),c(".top-bar-inner .col").css("text-align","center"))})}),wp.customize("topbar_padding",function(o){o.bind(function(o){c(".top-bar-inner").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("topbar_divider_size",function(o){o.bind(function(o){c(".top-bar,.top-bar-inner").css("border-width",o)})}),wp.customize("topbar_divider_color",function(o){o.bind(function(o){c(".top-bar,.top-bar-inner").css("border-color",o)})}),wp.customize("main_header_padding",function(o){o.bind(function(o){c(".site-header-inner, .top-header-row").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("main_header_bottom_padding",function(o){o.bind(function(o){c(".bottom-header-inner").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("main_header_divider_color",function(o){o.bind(function(o){c(".site-header, .bottom-header-row,.top-header-row,.site-header-inner, .bottom-header-inner").css("border-color",o)})}),wp.customize("mobile_menu_alignment",function(o){o.bind(function(o){c(".botiga-offcanvas-menu .botiga-dropdown ul li").css("text-align",o)})}),wp.customize("mobile_menu_link_spacing",function(o){o.bind(function(o){c(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-top",o/2),c(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-bottom",o/2)})}),wp.customize("mobile_menu_elements_spacing",function(o){o.bind(function(o){c(".botiga-offcanvas-menu .header-item + .header-item:not(.separator)").css("margin-top",o+"px")})}),wp.customize("mobile_header_padding",function(o){o.bind(function(o){c(".mobile-header").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("mobile_header_separator_width",function(o){o.bind(function(o){c(".botiga-offcanvas-menu .botiga-dropdown ul li").css("border-bottom-width",o+"px")})}),wp.customize("main_header_areas_spacing_l6",function(o){o.bind(function(o){c(".header_layout_6 .botiga-desktop-offcanvas > .row > div").css({"margin-top":o+"px"})})}),wp.customize("main_header_elements_spacing_l6",function(o){o.bind(function(o){c(".header_layout_6 .header-item").css({"margin-bottom":o+"px"}),c(".header_layout_6 .header-item.header-contact a + a").css({"margin-top":o+"px"})})}),wp.customize("main_header_padding",function(o){o.bind(function(o){c(".header_layout_6 .botiga-desktop-offcanvas").css({padding:o+"px"})})}),wp.customize("desktop_offcanvas_padding",function(o){o.bind(function(o){c(".header_layout_7 .botiga-desktop-offcanvas, .header_layout_8 .botiga-desktop-offcanvas").css({padding:o+"px"})})}),wp.customize("desktop_offcanvas_menu_link_spacing",function(o){o.bind(function(o){c(".header_layout_7 .botiga-desktop-offcanvas .botiga-dropdown .menu > li > a, .header_layout_8 .botiga-desktop-offcanvas .botiga-dropdown .menu > li > a").css({"padding-top":o+"px","padding-bottom":o+"px"})})}),wp.customize("desktop_offcanvas_link_separator_color",function(o){o.bind(function(o){window.parent.window.wp.customize.control("desktop_offcanvas_menu_link_separator").setting.get()&&c(".header_layout_7 .botiga-desktop-offcanvas .botiga-dropdown .menu > li + li, .header_layout_8 .botiga-desktop-offcanvas .botiga-dropdown .menu > li + li").css({"border-top":"1px solid "+hexToRGB(o,.1)})})}),wp.customize("desktop_offcanvas_content_areas_spacing",function(o){o.bind(function(o){c(".header_layout_7 .botiga-desktop-offcanvas > .row > div ,.header_layout_8 .botiga-desktop-offcanvas > .row > div").css({"margin-top":o+"px"})})}),wp.customize("header_components_desktop_offcanvas_elements_spacing",function(o){o.bind(function(o){c(".header_layout_7 .botiga-desktop-offcanvas .header-item, .header_layout_8 .botiga-desktop-offcanvas .header-item").css({"margin-bottom":o+"px"}),c(".header_layout_7 .botiga-desktop-offcanvas .header-item.header-contact a + a, .header_layout_8 .botiga-desktop-offcanvas .header-item.header-contact a + a").css({"margin-top":o+"px"})})}),wp.customize("archive_featured_image_size_desktop",function(o){o.bind(function(o){c(".posts-archive .list-image").css("width",o+"%"),c(".posts-archive .list-content").css("width",100-o+"%")})}),wp.customize("archive_featured_image_size_desktop",function(o){o.bind(function(o){c(".posts-archive .list-image").css("width",o+"%"),c(".posts-archive .list-content").css("width",100-o+"%")})}),wp.customize("archive_meta_spacing",function(o){o.bind(function(o){c(".posts-archive .entry-meta").css("margin",o+"px 0")})}),wp.customize("archive_title_spacing",function(o){o.bind(function(o){c(".posts-archive .entry-header").css("margin-bottom",o+"px")})}),wp.customize("single_post_header_spacing",function(o){o.bind(function(o){c(".single .entry-header").css("margin-bottom",o+"px")})}),wp.customize("single_post_image_spacing",function(o){o.bind(function(o){c(".single .post-thumbnail").css("margin-bottom",o+"px")})}),wp.customize("single_post_meta_spacing",function(o){o.bind(function(o){c(".entry-meta-above").css("margin-bottom",o+"px"),c(".entry-meta-below").css("margin-top",o+"px")})}),wp.customize("footer_widgets_column_spacing_desktop",function(o){o.bind(function(o){c(".footer-widgets-grid").css("gap",o+"px")})}),wp.customize("footer_widgets_divider_size",function(o){o.bind(function(o){c(".footer-widgets,.footer-widgets-grid").css("border-width",o)})}),wp.customize("footer_credits_divider_size",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("footer_credits_divider_width").setting.get();c("contained"===t?".site-info":".site-footer").css("border-width",o)})}),wp.customize("footer_credits_padding_desktop",function(o){o.bind(function(o){c(".site-info").css("padding-top",o+"px")})}),wp.customize("footer_credits_padding_bottom_desktop",function(o){o.bind(function(o){c(".site-info").css("padding-bottom",o+"px")})}),wp.customize("color_heading_4",function(o){o.bind(function(o){var t=hexToRGB(o,.1);c("table, table th, table td, table tr, .woocommerce-tabs ul.tabs,.product-gallery-summary .product_meta").css("border-color",t),c(".site-header-cart .product_list_widget li a.remove").css("background-color",o),c(".woocommerce-tabs ul.tabs li.active a").css("border-color",o)})}),wp.customize("footer_copyright_elements_spacing_desktop",function(o){o.bind(function(o){c(".footer-copyright-elements>div+div").css("margin-top",o+"px")})}),wp.customize("scrolltop_radius",function(o){o.bind(function(o){c(".back-to-top.display").css("border-radius",o+"px")})}),wp.customize("scrolltop_side_offset",function(o){o.bind(function(o){c(".back-to-top.position-right").css("right",o+"px"),c(".back-to-top.position-left").css("left",o+"px")})}),wp.customize("scrolltop_bottom_offset",function(o){o.bind(function(o){c(".back-to-top").css("bottom",o+"px")})}),wp.customize("scrolltop_icon_size",function(o){o.bind(function(o){c(".back-to-top .ws-svg-icon").css("width",o+"px"),c(".back-to-top .ws-svg-icon").css("height",o+"px")})}),wp.customize("scrolltop_padding",function(o){o.bind(function(o){c(".back-to-top").css("padding",o+"px")})}),wp.customize("shop_product_element_spacing",function(o){o.bind(function(o){c("ul.wc-block-grid__products li.wc-block-grid__product .col-md-7>*, ul.wc-block-grid__products li.wc-block-grid__product .col-md-8>*, ul.wc-block-grid__products li.wc-block-grid__product>*, ul.wc-block-grid__products li.product .col-md-7>*, ul.wc-block-grid__products li.product .col-md-8>*, ul.wc-block-grid__products li.product>*, ul.products li.wc-block-grid__product .col-md-7>*, ul.products li.wc-block-grid__product .col-md-8>*, ul.products li.wc-block-grid__product>*, ul.products li.product .col-md-7>*, ul.products li.product .col-md-8>*, ul.products li.product>*").css("margin-bottom",o+"px"),c("ul.products li.product .product-description-column:not(:empty), ul.products li.wc-block-grid__product .product-description-column:not(:empty), ul.wc-block-grid__products li.wc-block-grid__product .product-description-column:not(:empty)").css("margin-top",o+"px")})}),wp.customize("shop_sale_tag_radius",function(o){o.bind(function(o){c(".wc-block-grid__product-onsale, span.onsale").css("border-radius",o+"px")})}),wp.customize("shop_product_card_radius",function(o){o.bind(function(o){c("ul.wc-block-grid__products li.wc-block-grid__product, ul.wc-block-grid__products li.product, ul.products li.wc-block-grid__product, ul.products li.product").css("border-radius",o+"px")})}),wp.customize("shop_product_card_thumb_radius",function(o){o.bind(function(o){c("ul.wc-block-grid__products li.wc-block-grid__product .loop-image-wrap, ul.wc-block-grid__products li.product .loop-image-wrap, ul.products li.wc-block-grid__product .loop-image-wrap, ul.products li.product .loop-image-wrap").css("border-radius",o+"px")})}),wp.customize("shop_product_card_border_size",function(o){o.bind(function(o){c("ul.wc-block-grid__products li.wc-block-grid__product, ul.wc-block-grid__products li.product, ul.products li.wc-block-grid__product, ul.products li.product").css("border-width",o+"px")})}),wp.customize("shop_categories_radius",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("shop_categories_layout").setting.get();c("ul.products li.product-category > a, ul.products li.product-category > a > img").css("border-radius",o+"px"),"layout4"===t&&c(".product-category-item-layout4 ul.products li.product-category > a h2").css("border-radius","0 0 "+o+"px "+o+"px")})}),c(window.parent.document).on("click",".control-section",function(o){var t=c(window.parent.document).find(".control-section.open");t.find("#customize-control-single_product_elements_order").length&&wp.customize("shop_product_wishlist_layout",function(o){"layout1"===o.get()?t.find('#customize-control-single_product_elements_order .kirki-sortable-item[data-value="botiga_single_wishlist_button"]').css("display","none"):t.find('#customize-control-single_product_elements_order .kirki-sortable-item[data-value="botiga_single_wishlist_button"]').css("display","block")})}),wp.customize("single_product_gallery_styles_background_color",function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-single_product_gallery_styles_background_color").remove();var t="";(t+=".product-gallery-summary.gallery-showcase:before, .product-gallery-summary.gallery-full-width:before { background-color: "+o+"; }")&&c("head").append('")})}),wp.customize("single_product_gallery_styles_padding_top_bottom",function(o){o.bind(function(o){c(".product-gallery-summary.gallery-showcase, .product-gallery-summary.gallery-full-width").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("single_product_tabs_border_color_active",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_border_color_active").remove();var e="";switch(t){case"style1":case"style4":e+=".botiga-tabs-style1 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style1 .woocommerce-tabs ul.tabs li:hover a, .botiga-tabs-style4 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style4 .woocommerce-tabs ul.tabs li:hover a { border-color: "+o+" !important; }";break;case"style2":e+=".botiga-tabs-style2 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style2 .woocommerce-tabs ul.tabs li:hover a { border-top-color: "+o+" !important; }";break;default:e=""}e&&c("head").append('")})}),wp.customize("single_product_tabs_background_color",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_background_color").remove();var e="";switch(t){case"style3":e+=".botiga-tabs-style3 .woocommerce-tabs ul.tabs li:not(.active) a, .botiga-tabs-style3 .woocommerce-tabs ul.tabs li:not(.active):hover a { background-color: "+hexToRGB(o,.5)+" !important; }";break;case"style4":e+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+o+" !important; }";break;case"style5":e+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+hexToRGB(o,.4)+" !important; }";break;default:e=""}e&&c("head").append('")})}),wp.customize("single_product_tabs_background_color_active",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_background_color_active").remove();var e="";switch(t){case"style3":e+=".botiga-tabs-style3 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style3 .woocommerce-tabs ul.tabs li:hover a { background-color: "+o+" !important; }";break;case"style4":e+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li.active a { background-color: "+o+" !important; }";break;case"style5":e+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style5 .woocommerce-tabs .panel { background-color: "+hexToRGB(o,1)+" !important; }";break;default:e=""}e&&c("head").append('")})}),wp.customize("single_product_tabs_text_color",function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-single_product_tabs_text_color").remove();o=".woocommerce-tabs ul.tabs li:not(.active) a ,.woocommerce-tabs ul.tabs li:not(.active) a:hover { color: "+o+" !important; }";o&&c("head").append('")})}),wp.customize("single_product_tabs_text_color_active",function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-single_product_tabs_text_color_active").remove();o=".woocommerce-tabs ul.tabs li.active a,.woocommerce-tabs ul.tabs li.active a:hover { color: "+o+" !important; }";o&&c("head").append('")})}),wp.customize("single_product_tabs_remaining_borders",function(o){o.bind(function(o){var t=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_remaining_borders").remove();var e="";switch(t){case"style2":e+=".botiga-tabs-style2 .woocommerce-tabs ul.tabs li a, .botiga-tabs-style2 .woocommerce-tabs ul.tabs, .botiga-tabs-style2 .woocommerce-tabs ul.tabs li:not(.active):not(:hover) a { border-color: "+hexToRGB(o,.3)+" !important; }";break;case"style1":case"style3":e+=".botiga-tabs-style1 .woocommerce-tabs ul.tabs, .botiga-tabs-style3 .woocommerce-tabs ul.tabs { border-bottom-color: "+hexToRGB(o,.3)+" !important; }";break;case"style4":e+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs:before { border-color: "+hexToRGB(o,.3)+" !important; } .botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(.active) a { border-color: "+hexToRGB(o,.3)+" !important; }";break;case"style5":e+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li a, .botiga-tabs-style5 .woocommerce-tabs .panel { border-color: "+hexToRGB(o,.3)+" !important; } .botiga-tabs-style5 .woocommerce-tabs ul.tabs li:not(.active) a { border-right: 1px solid "+o+" }";break;default:e=""}e&&c("head").append('")})}),wp.customize("single_product_tabs_layout",function(o){o.bind(function(o){switch(c(".site-main").removeClass("botiga-tabs-style1 botiga-tabs-style2 botiga-tabs-style3 botiga-tabs-style4 botiga-tabs-style5"),c(".site-main").addClass("botiga-tabs-"+o),c(window.parent.document).find(".control-section.open .alpha-color-control").each(function(){var o=c(this).closest("li").attr("id"),t=c(this).data("customize-setting-link"),e=c(this).val();void 0!==window.parent.window.wp.customize(t)&&(window.parent.window.wp.customize(t).set(""),window.parent.window.wp.customize(t).set(e),c("#"+o).find(".wp-color-result").css("background-color",e))}),o){case"style1":case"style2":hideControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"]),showControls(["single_product_tabs_border_color_active"]);break;case"style3":hideControls(["single_product_tabs_border_color_active"]),showControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"]);break;case"style4":showControls(["single_product_tabs_border_color_active","single_product_tabs_background_color","single_product_tabs_background_color_active"]);break;case"style5":hideControls(["single_product_tabs_border_color_active"]),showControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"])}})}),wp.customize("single_product_tabs_alignment",function(o){o.bind(function(o){c(".site-main").removeClass("botiga-tabs-align-left botiga-tabs-align-center botiga-tabs-align-right"),c(".site-main").addClass("botiga-tabs-align-"+o),c(".woocommerce-tabs ul.tabs").css("text-align",o)})}),wp.customize("single_sticky_add_to_cart_elements_spacing",function(o){o.bind(function(o){var t="right";c('html[dir="rtl"]').length&&(t="left"),c(".botiga-single-sticky-add-to-cart-wrapper .botiga-single-sticky-add-to-cart-wrapper-content .botiga-single-sticky-add-to-cart-item").css("margin-".concat(t),o+"px")})}),wp.customize("shop_cart_show_coupon_form",function(o){o.bind(function(o){o?c(".woocommerce-cart .coupon").css("display","block"):c(".woocommerce-cart .coupon").css("display","none")})});var o={desktop:"(min-width: 992px)",tablet:"(min-width: 576px) and (max-width: 991px)",mobile:"(max-width: 575px)"};c.each({breadcrumbs_padding:".botiga-breadcrumb-trail",footer_widgets_padding:".footer-widgets-grid"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { padding-top:"+o+"px;padding-bottom:"+o+"px; } }";c("head").append('")})})})});c.each({breadcrumbs_margin_bottom:".botiga-breadcrumb-trail"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { margin-bottom:"+o+"px; } }";c("head").append('")})})})});c.each({site_logo_size:".custom-logo-link img",modal_popup_max_width:"#modalPopup .botiga-popup-wrapper"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { max-width:"+o+"px; } }";c("head").append('")})})})});c.each({modal_popup_side_image_max_width:"#modalPopup .botiga-popup-wrapper__content-side-image"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { max-width:"+o+"%; } }";c("head").append('")})})})});c.each({body_font_size:"body",h1_font_size:"h1:not(.site-title)",h2_font_size:"h2",h3_font_size:"h3",h4_font_size:"h4",h5_font_size:"h5",h6_font_size:"h6",single_product_title_size:".product-gallery-summary .entry-title",single_product_price_size:".product-gallery-summary .price",loop_post_text_size:".posts-archive .entry-content",loop_post_meta_size:".posts-archive .entry-meta",loop_post_title_size:".posts-archive .entry-title",single_post_title_size:".single .entry-header .entry-title",single_post_meta_size:".single .entry-meta",footer_widgets_title_size:".widget-column .widget .widget-title"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { font-size:"+o+"px; } }";c("head").append('")})})})});c.each({shop_archive_columns_gap:"ul.wc-block-grid__products, ul.products"},function(i,s){c.each(o,function(t,e){wp.customize(i+"_"+t,function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-"+i+"_"+t).remove();o="@media "+e+" {"+s+" { gap:"+o+"px; } }";c("head").append('")})})})}),wp.customize("color_forms_placeholder",function(o){o.bind(function(o){c("head").find("#botiga-customizer-styles-color_forms_placeholder").remove();o="::placeholder {color:"+o+";opacity:1;} :-ms-input-placeholder {color:"+o+";} ::-ms-input-placeholder {color:"+o+";}";c("head").append('")})}),wp.customize("botiga_body_font",function(o){o.bind(function(o){c("head").find("#botiga-preview-google-fonts-body-css").remove(),c("head").append(''),c("#botiga-preview-google-fonts-body-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(o).font.replace(/ /g,"+")+":"+jQuery.parseJSON(o).regularweight+"&display=swap"),c("body").css("font-family",jQuery.parseJSON(o).font),c("body").css("font-weight",jQuery.parseJSON(o).regularweight)})}),wp.customize("botiga_headings_font",function(o){o.bind(function(o){c("head").find("#botiga-preview-google-fonts-headings-css").remove(),c("head").append(''),c("#botiga-preview-google-fonts-headings-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(o).font.replace(/ /g,"+")+":"+jQuery.parseJSON(o).regularweight+"&display=swap"),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",jQuery.parseJSON(o).font),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-weight",jQuery.parseJSON(o).regularweight)})}),wp.customize("botiga_headings_adobe_font",function(o){o.bind(function(o){var t=o.split("|")[0],o=o.split("|")[1];c("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",t),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-weight",o)})}),wp.customize("botiga_body_adobe_font",function(o){o.bind(function(o){var t=o.split("|")[0],o=o.split("|")[1];c("body").css("font-family",t),c("body").css("font-weight",o)})}),wp.customize("headings_font_style",function(o){o.bind(function(o){c("h1,h2,h3,h4,h5,h6,.site-title").css("font-style",o)})}),wp.customize("headings_line_height",function(o){o.bind(function(o){c("h1,h2,h3,h4,h5,h6,.site-title").css("line-height",o)})}),wp.customize("headings_letter_spacing",function(o){o.bind(function(o){c("h1,h2,h3,h4,h5,h6,.site-title").css("letter-spacing",o+"px")})}),wp.customize("headings_text_transform",function(o){o.bind(function(o){c("h1,h2,h3,h4,h5,h6,.site-title").css("text-transform",o)})}),wp.customize("headings_text_decoration",function(o){o.bind(function(o){c("h1,h2,h3,h4,h5,h6,.site-title").css("text-decoration",o)})}),wp.customize("body_font_style",function(o){o.bind(function(o){c("body").css("font-style",o)})}),wp.customize("body_line_height",function(o){o.bind(function(o){c("body").css("line-height",o)})}),wp.customize("body_letter_spacing",function(o){o.bind(function(o){c("body").css("letter-spacing",o+"px")})}),wp.customize("body_text_transform",function(o){o.bind(function(o){c("body").css("text-transform",o)})}),wp.customize("body_text_decoration",function(o){o.bind(function(o){c("body").css("text-decoration",o)})}),wp.customize("shop_archive_header_padding_top",function(o){o.bind(function(o){c(".woocommerce-page-header").css("padding-top",o+"px")})}),wp.customize("shop_archive_header_padding_bottom",function(o){o.bind(function(o){c(".woocommerce-page-header").css("padding-bottom",o+"px")})}),wp.customize("shop_archive_header_button_border_radius",function(o){o.bind(function(o){c(".woocommerce-page-header .category-button").css("border-radius",o+"px")})}),wp.customize("breadcrumbs_align",function(o){o.bind(function(o){c(".botiga-breadcrumb-trail").css("text-align",o)})}),wp.customize("color_palettes",function(o){o.bind(function(o){for(var t=c("#customize-control-color_palettes",window.parent.document).find(".radio-buttons").data("palettes"),e=0;e<8;e++)c(".has-color-"+e+"-color").css("color",t[o][e]),c(".has-color-"+e+"-background-color").css("background-color",t[o][e])})}),c.each([0,1,2,3,4,5,6,7,8],function(t){wp.customize("custom_color"+(t+1),function(o){o.bind(function(o){c(".has-color-"+t+"-color").css("color",o),c(".has-color-"+t+"-background-color").css("background-color",o)})})});var e=botiga_theme_options;c.each(e,function(o,t){wp.customize(t.option,function(o){o.bind(function(s,o){var n="";c.each(e,function(o,e){var i;t.option===e.option&&(i=void 0!==e.unit?e.unit:"",void 0!==e.condition&&void 0!==window.parent.window.wp.customize(e.condition)&&window.parent.window.wp.customize.control(e.condition).setting._value!==e.cond_value||(s=s||"transparent",i||(s=void 0!==e.rgba?hexToRGB(s,e.rgba):s),void 0===e.pseudo?"string"==typeof e.prop?c(e.selector).css(e.prop,s+i):c.each(e.prop,function(o,t){c(e.selector).css(t,s+i)}):"string"==typeof e.prop?n+=e.selector+"{ "+e.prop+": "+s+"!important; }":c.each(e.prop,function(o,t){n+=e.selector+"{ "+t+": "+s+"!important; }"})))}),n&&(c("#botiga-customizer-styles-misc-"+t.option).get(0)?c("#botiga-customizer-styles-misc-"+t.option).text(n):c("head").append('"))})})})}(jQuery);