"use strict";function hideControls(o){for(var t=0;t .row").css("display","flex"),s(".top-bar-inner .col").css("justify-content","flex-start"),s(".top-bar-inner .col:last-of-type").css("justify-content","flex-end")):(s(".top-bar-inner > .row").css("display","block"),s(".top-bar-inner .col").css("justify-content","center"),s(".top-bar-inner .col").css("text-align","center"))})}),wp.customize("topbar_padding",function(o){o.bind(function(o){s(".top-bar-inner").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("topbar_divider_size",function(o){o.bind(function(o){s(".top-bar,.top-bar-inner").css("border-width",o)})}),wp.customize("topbar_divider_color",function(o){o.bind(function(o){s(".top-bar,.top-bar-inner").css("border-color",o)})}),wp.customize("main_header_padding",function(o){o.bind(function(o){s(".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){s(".bottom-header-inner").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("main_header_divider_color",function(o){o.bind(function(o){s(".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){s(".botiga-offcanvas-menu .botiga-dropdown ul li").css("text-align",o)})}),wp.customize("mobile_menu_link_spacing",function(o){o.bind(function(o){s(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-top",o/2),s(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-bottom",o/2)})}),wp.customize("mobile_menu_elements_spacing",function(o){o.bind(function(o){s(".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){s(".mobile-header").css({paddingTop:o+"px",paddingBottom:o+"px"})})}),wp.customize("mobile_header_separator_width",function(o){o.bind(function(o){s(".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){s(".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){s(".header_layout_6 .header-item").css({"margin-bottom":o+"px"}),s(".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){s(".header_layout_6 .botiga-desktop-offcanvas").css({padding:o+"px"})})}),wp.customize("desktop_offcanvas_padding",function(o){o.bind(function(o){s(".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){s(".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()&&s(".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){s(".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){s(".header_layout_7 .botiga-desktop-offcanvas .header-item, .header_layout_8 .botiga-desktop-offcanvas .header-item").css({"margin-bottom":o+"px"}),s(".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){s(".posts-archive .list-image").css("width",o+"%"),s(".posts-archive .list-content").css("width",100-o+"%")})}),wp.customize("archive_featured_image_size_desktop",function(o){o.bind(function(o){s(".posts-archive .list-image").css("width",o+"%"),s(".posts-archive .list-content").css("width",100-o+"%")})}),wp.customize("archive_meta_spacing",function(o){o.bind(function(o){s(".posts-archive .entry-meta").css("margin",o+"px 0")})}),wp.customize("archive_title_spacing",function(o){o.bind(function(o){s(".posts-archive .entry-header").css("margin-bottom",o+"px")})}),wp.customize("single_post_header_spacing",function(o){o.bind(function(o){s(".single .entry-header").css("margin-bottom",o+"px")})}),wp.customize("single_post_image_spacing",function(o){o.bind(function(o){s(".single .post-thumbnail").css("margin-bottom",o+"px")})}),wp.customize("single_post_meta_spacing",function(o){o.bind(function(o){s(".entry-meta-above").css("margin-bottom",o+"px"),s(".entry-meta-below").css("margin-top",o+"px")})}),wp.customize("footer_widgets_column_spacing_desktop",function(o){o.bind(function(o){s(".footer-widgets-grid").css("gap",o+"px")})}),wp.customize("footer_widgets_divider_size",function(o){o.bind(function(o){s(".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();s("contained"===t?".site-info":".site-footer").css("border-width",o)})}),wp.customize("footer_credits_padding_desktop",function(o){o.bind(function(o){s(".site-info").css("padding-top",o+"px")})}),wp.customize("footer_credits_padding_bottom_desktop",function(o){o.bind(function(o){s(".site-info").css("padding-bottom",o+"px")})}),wp.customize("color_heading_4",function(o){o.bind(function(o){var t=hexToRGB(o,.1);s("table, table th, table td, table tr, .woocommerce-tabs ul.tabs,.product-gallery-summary .product_meta").css("border-color",t),s(".site-header-cart .product_list_widget li a.remove").css("background-color",o),s(".woocommerce-tabs ul.tabs li.active a").css("border-color",o)})}),wp.customize("footer_copyright_elements_spacing_desktop",function(o){o.bind(function(o){s(".footer-copyright-elements>div+div").css("margin-top",o+"px")})}),wp.customize("scrolltop_radius",function(o){o.bind(function(o){s(".back-to-top.display").css("border-radius",o+"px")})}),s.each(o,function(i,e){wp.customize("scrolltop_side_offset_"+i,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-scrolltop_side_offset_"+i).remove();var t="@media "+e+" { .back-to-top.position-right { right:"+o+"px; } }";t+="@media "+e+" { .back-to-top.position-left { left:"+o+"px; } }",s("head").append('")})}),wp.customize("scrolltop_bottom_offset_"+i,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-scrolltop_bottom_offset_"+i).remove();o="@media "+e+" { .back-to-top.display { bottom:"+o+"px; } }";s("head").append('")})})}),wp.customize("scrolltop_icon_size",function(o){o.bind(function(o){s(".back-to-top .ws-svg-icon").css("width",o+"px"),s(".back-to-top .ws-svg-icon").css("height",o+"px")})}),wp.customize("scrolltop_padding",function(o){o.bind(function(o){s(".back-to-top").css("padding",o+"px")})}),wp.customize("shop_product_element_spacing",function(o){o.bind(function(o){s("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"),s("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){s(".wc-block-grid__product-onsale, span.onsale").css("border-radius",o+"px")})}),wp.customize("shop_product_card_radius",function(o){o.bind(function(o){s("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){s("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){s("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();s("ul.products li.product-category > a, ul.products li.product-category > a > img").css("border-radius",o+"px"),"layout4"===t&&s(".product-category-item-layout4 ul.products li.product-category > a h2").css("border-radius","0 0 "+o+"px "+o+"px")})}),s(window.parent.document).on("click",".control-section",function(o){var t=s(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){s("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+"; }")&&s("head").append('")})}),wp.customize("single_product_gallery_styles_padding_top_bottom",function(o){o.bind(function(o){s(".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();s("head").find("#botiga-customizer-styles-single_product_tabs_border_color_active").remove();var i="";switch(t){case"style1":case"style4":i+=".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":i+=".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:i=""}i&&s("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();s("head").find("#botiga-customizer-styles-single_product_tabs_background_color").remove();var i="";switch(t){case"style3":i+=".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":i+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+o+" !important; }";break;case"style5":i+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+hexToRGB(o,.4)+" !important; }";break;default:i=""}i&&s("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();s("head").find("#botiga-customizer-styles-single_product_tabs_background_color_active").remove();var i="";switch(t){case"style3":i+=".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":i+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li.active a { background-color: "+o+" !important; }";break;case"style5":i+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style5 .woocommerce-tabs .panel { background-color: "+hexToRGB(o,1)+" !important; }";break;default:i=""}i&&s("head").append('")})}),wp.customize("single_product_tabs_text_color",function(o){o.bind(function(o){s("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&&s("head").append('")})}),wp.customize("single_product_tabs_text_color_active",function(o){o.bind(function(o){s("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&&s("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();s("head").find("#botiga-customizer-styles-single_product_tabs_remaining_borders").remove();var i="";switch(t){case"style2":i+=".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":i+=".botiga-tabs-style1 .woocommerce-tabs ul.tabs, .botiga-tabs-style3 .woocommerce-tabs ul.tabs { border-bottom-color: "+hexToRGB(o,.3)+" !important; }";break;case"style4":i+=".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":i+=".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:i=""}i&&s("head").append('")})}),wp.customize("single_product_tabs_layout",function(o){o.bind(function(o){switch(s(".site-main").removeClass("botiga-tabs-style1 botiga-tabs-style2 botiga-tabs-style3 botiga-tabs-style4 botiga-tabs-style5"),s(".site-main").addClass("botiga-tabs-"+o),s(window.parent.document).find(".control-section.open .alpha-color-control").each(function(){var o=s(this).closest("li").attr("id"),t=s(this).data("customize-setting-link"),i=s(this).val();void 0!==window.parent.window.wp.customize(t)&&(window.parent.window.wp.customize(t).set(""),window.parent.window.wp.customize(t).set(i),s("#"+o).find(".wp-color-result").css("background-color",i))}),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){s(".site-main").removeClass("botiga-tabs-align-left botiga-tabs-align-center botiga-tabs-align-right"),s(".site-main").addClass("botiga-tabs-align-"+o),s(".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";s('html[dir="rtl"]').length&&(t="left"),s(".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?s(".woocommerce-cart .coupon").css("display","block"):s(".woocommerce-cart .coupon").css("display","none")})}),wp.customize("side_mini_cart_floating_icon_size",function(o){o.bind(function(o){s(".botiga-floating-mini-cart-icon").css("font-size",o+"px")})}),wp.customize("side_mini_cart_floating_icon_position",function(o){o.bind(function(o){var t=wp.customize("side_mini_cart_floating_icon_corner_offset").get();"left"===o?(s(".botiga-floating-mini-cart-icon").css("bottom",t+"px"),s(".botiga-floating-mini-cart-icon").css("left",t+"px"),s(".botiga-floating-mini-cart-icon").css("right","auto")):(s(".botiga-floating-mini-cart-icon").css("bottom",t+"px"),s(".botiga-floating-mini-cart-icon").css("right",t+"px"),s(".botiga-floating-mini-cart-icon").css("left","auto"))})}),s.each(o,function(i,e){wp.customize("side_mini_cart_floating_icon_corner_offset_"+i,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-side_mini_cart_floating_icon_corner_offset_"+i).remove();var t="@media "+e+" { .botiga-floating-mini-cart-icon { bottom:"+o+"px; } }";void 0!==wp.customize("side_mini_cart_floating_icon_position")&&("left"===wp.customize("side_mini_cart_floating_icon_position").get()?(s(".botiga-floating-mini-cart-icon").css("left",o+"px"),t+="@media "+e+" { .botiga-floating-mini-cart-icon { left:"+o+"px; } }"):t+="@media "+e+" { .botiga-floating-mini-cart-icon { right:"+o+"px; } }"),s("head").append('")})})}),wp.customize("side_mini_cart_floating_icon_border_radius",function(o){o.bind(function(o){s(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("border-radius",o+"px")})}),wp.customize("side_mini_cart_floating_icon_shadow",function(o){o.bind(function(o){o?s(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("box-shadow","inset 0 0 2px rgb(0 0 0 / 3%), 0 4px 10px rgb(0 0 0 / 17%)"):s(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("box-shadow","none")})});s.each({breadcrumbs_padding:".botiga-breadcrumb-trail",footer_widgets_padding:".footer-widgets-grid"},function(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { padding-top:"+o+"px;padding-bottom:"+o+"px; } }";s("head").append('")})})})});s.each({breadcrumbs_margin_bottom:".botiga-breadcrumb-trail"},function(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { margin-bottom:"+o+"px; } }";s("head").append('")})})})});s.each({site_logo_size:".custom-logo-link img",modal_popup_max_width:"#modalPopup .botiga-popup-wrapper"},function(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { max-width:"+o+"px; } }";s("head").append('")})})})});s.each({modal_popup_side_image_max_width:"#modalPopup .botiga-popup-wrapper__content-side-image"},function(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { max-width:"+o+"%; } }";s("head").append('")})})})});s.each({body_font_size:"body",header_menu_font_size:".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation",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(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { font-size:"+o+"px; } }";s("head").append('")})})})});s.each({shop_archive_columns_gap:"ul.wc-block-grid__products, ul.products"},function(e,n){s.each(o,function(t,i){wp.customize(e+"_"+t,function(o){o.bind(function(o){s("head").find("#botiga-customizer-styles-"+e+"_"+t).remove();o="@media "+i+" {"+n+" { gap:"+o+"px; } }";s("head").append('")})})})}),wp.customize("color_forms_placeholder",function(o){o.bind(function(o){s("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+";}";s("head").append('")})}),wp.customize("botiga_body_font",function(o){o.bind(function(o){s("head").find("#botiga-preview-google-fonts-body-css").remove(),s("head").append(''),s("#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"),s("body").css("font-family",jQuery.parseJSON(o).font),s("body").css("font-weight",jQuery.parseJSON(o).regularweight)})}),wp.customize("botiga_headings_font",function(o){o.bind(function(o){s("head").find("#botiga-preview-google-fonts-headings-css").remove(),s("head").append(''),s("#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"),s("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",jQuery.parseJSON(o).font),s("h1,h2,h3,h4,h5,h6,.site-title").css("font-weight",jQuery.parseJSON(o).regularweight)})}),wp.customize("botiga_header_menu_font",function(o){o.bind(function(o){s("head").find("#botiga-preview-google-fonts-header-menu-css").remove(),s("head").append(''),s("#botiga-preview-google-fonts-header-menu-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(o).font.replace(/ /g,"+")+":"+jQuery.parseJSON(o).regularweight+"&display=swap"),s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-family",jQuery.parseJSON(o).font),s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").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];s("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",t),s("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];s("body").css("font-family",t),s("body").css("font-weight",o)})}),wp.customize("botiga_header_menu_adobe_font",function(o){o.bind(function(o){var t=o.split("|")[0],o=o.split("|")[1];s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-family",t),s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-weight",o)})}),wp.customize("headings_font_style",function(o){o.bind(function(o){s("h1,h2,h3,h4,h5,h6,.site-title").css("font-style",o)})}),wp.customize("headings_line_height",function(o){o.bind(function(o){s("h1,h2,h3,h4,h5,h6,.site-title").css("line-height",o)})}),wp.customize("headings_letter_spacing",function(o){o.bind(function(o){s("h1,h2,h3,h4,h5,h6,.site-title").css("letter-spacing",o+"px")})}),wp.customize("headings_text_transform",function(o){o.bind(function(o){s("h1,h2,h3,h4,h5,h6,.site-title").css("text-transform",o)})}),wp.customize("headings_text_decoration",function(o){o.bind(function(o){s("h1,h2,h3,h4,h5,h6,.site-title").css("text-decoration",o)})}),wp.customize("body_font_style",function(o){o.bind(function(o){s("body").css("font-style",o)})}),wp.customize("body_line_height",function(o){o.bind(function(o){s("body").css("line-height",o)})}),wp.customize("body_letter_spacing",function(o){o.bind(function(o){s("body").css("letter-spacing",o+"px")})}),wp.customize("body_text_transform",function(o){o.bind(function(o){s("body").css("text-transform",o)})}),wp.customize("body_text_decoration",function(o){o.bind(function(o){s("body").css("text-decoration",o)})}),wp.customize("header_menu_font_style",function(o){o.bind(function(o){s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-style",o)})}),wp.customize("header_menu_line_height",function(o){o.bind(function(o){s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("line-height",o)})}),wp.customize("header_menu_letter_spacing",function(o){o.bind(function(o){s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("letter-spacing",o+"px")})}),wp.customize("header_menu_text_transform",function(o){o.bind(function(o){s(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("text-transform",o)})}),wp.customize("shop_archive_header_padding_top",function(o){o.bind(function(o){s(".woocommerce-page-header").css("padding-top",o+"px")})}),wp.customize("shop_archive_header_padding_bottom",function(o){o.bind(function(o){s(".woocommerce-page-header").css("padding-bottom",o+"px")})}),wp.customize("shop_archive_header_button_border_radius",function(o){o.bind(function(o){s(".woocommerce-page-header .category-button").css("border-radius",o+"px")})}),wp.customize("breadcrumbs_align",function(o){o.bind(function(o){s(".botiga-breadcrumb-trail").css("text-align",o)})}),wp.customize("color_palettes",function(o){o.bind(function(o){for(var t=s("#customize-control-color_palettes",window.parent.document).find(".radio-buttons").data("palettes"),i=0;i<8;i++)s(".has-color-"+i+"-color").css("color",t[o][i]),s(".has-color-"+i+"-background-color").css("background-color",t[o][i])})}),s.each([0,1,2,3,4,5,6,7,8],function(t){wp.customize("custom_color"+(t+1),function(o){o.bind(function(o){s(".has-color-"+t+"-color").css("color",o),s(".has-color-"+t+"-background-color").css("background-color",o)})})});var i=botiga_theme_options;s.each(i,function(o,t){wp.customize(t.option,function(o){o.bind(function(n,o){var a="";s.each(i,function(o,i){var e;t.option===i.option&&(e=void 0!==i.unit?i.unit:"",void 0!==i.condition&&void 0!==window.parent.window.wp.customize(i.condition)&&window.parent.window.wp.customize.control(i.condition).setting._value!==i.cond_value||(n=n||"transparent",e||(n=void 0!==i.rgba?hexToRGB(n,i.rgba):n),void 0===i.pseudo?"string"==typeof i.prop?s(i.selector).css(i.prop,n+e):s.each(i.prop,function(o,t){s(i.selector).css(t,n+e)}):"string"==typeof i.prop?a+=i.selector+"{ "+i.prop+": "+n+"!important; }":s.each(i.prop,function(o,t){a+=i.selector+"{ "+t+": "+n+"!important; }"})))}),a&&(s("#botiga-customizer-styles-misc-"+t.option).get(0)?s("#botiga-customizer-styles-misc-"+t.option).text(a):s("head").append('"))})})}),wp.customize("background_color",function(o){o.bind(function(o){s(":root").css("--botiga_background_color",o)})})}(jQuery);