<?php 
	$local_business_directory_custom_css ='';

    /*----------------Related Product show/hide -------------------*/

    $local_business_directory_enable_related_product = get_theme_mod('local_business_directory_enable_related_product',1);

    if($local_business_directory_enable_related_product == 0){
        $local_business_directory_custom_css .='.related.products{';
            $local_business_directory_custom_css .='display: none;';
        $local_business_directory_custom_css .='}';
    }

    /*----------------blog post content alignment -------------------*/

    $local_business_directory_blog_Post_content_layout = get_theme_mod( 'local_business_directory_blog_Post_content_layout','Left');
    if($local_business_directory_blog_Post_content_layout == 'Left'){
        $local_business_directory_custom_css .='.ct-post-wrapper .card-item {';
            $local_business_directory_custom_css .='text-align:start;';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_blog_Post_content_layout == 'Center'){
        $local_business_directory_custom_css .='.ct-post-wrapper .card-item {';
            $local_business_directory_custom_css .='text-align:center;';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_blog_Post_content_layout == 'Right'){
        $local_business_directory_custom_css .='.ct-post-wrapper .card-item {';
            $local_business_directory_custom_css .='text-align:end;';
        $local_business_directory_custom_css .='}';
    }

    /*--------------------------- Footer background image -------------------*/

    $local_business_directory_footer_bg_image = get_theme_mod('local_business_directory_footer_bg_image');
    if($local_business_directory_footer_bg_image != false){
        $local_business_directory_custom_css .='.footer-top{';
            $local_business_directory_custom_css .='background: url('.esc_attr($local_business_directory_footer_bg_image).');';
        $local_business_directory_custom_css .='}';
    }

    /*--------------------------- Go to top positions -------------------*/

    $local_business_directory_go_to_top_position = get_theme_mod( 'local_business_directory_go_to_top_position','Right');
    if($local_business_directory_go_to_top_position == 'Right'){
        $local_business_directory_custom_css .='.footer-go-to-top{';
            $local_business_directory_custom_css .='right: 20px;';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_go_to_top_position == 'Left'){
        $local_business_directory_custom_css .='.footer-go-to-top{';
            $local_business_directory_custom_css .='left: 20px;';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_go_to_top_position == 'Center'){
        $local_business_directory_custom_css .='.footer-go-to-top{';
            $local_business_directory_custom_css .='right: 50%;left: 50%;';
        $local_business_directory_custom_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $local_business_directory_product_sale = get_theme_mod( 'local_business_directory_woocommerce_product_sale','Right');
    if($local_business_directory_product_sale == 'Right'){
        $local_business_directory_custom_css .='.woocommerce ul.products li.product .onsale{';
            $local_business_directory_custom_css .='left: auto; ';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_product_sale == 'Left'){
        $local_business_directory_custom_css .='.woocommerce ul.products li.product .onsale{';
            $local_business_directory_custom_css .='right: auto;left:0;';
        $local_business_directory_custom_css .='}';
    }else if($local_business_directory_product_sale == 'Center'){
        $local_business_directory_custom_css .='.woocommerce ul.products li.product .onsale{';
            $local_business_directory_custom_css .='right: 50%; left: 50%; ';
        $local_business_directory_custom_css .='}';
    }


    /*-------------------- Primary Color -------------------*/

	$local_business_directory_primary_color = get_theme_mod('local_business_directory_primary_color', '#F84C4C'); // Add a fallback if the color isn't set
	if ($local_business_directory_primary_color) {
		$local_business_directory_custom_css .= ':root {';
		$local_business_directory_custom_css .= '--primary-color: ' . esc_attr($local_business_directory_primary_color) . ';';
		$local_business_directory_custom_css .= '}';
	}

    $local_business_directory_secondary_color = get_theme_mod('local_business_directory_secondary_color', '#081839'); // Add a fallback if the color isn't set
    if ($local_business_directory_secondary_color) {
        $local_business_directory_custom_css .= ':root {';
        $local_business_directory_custom_css .= '--secondary-color: ' . esc_attr($local_business_directory_secondary_color) . ';';
        $local_business_directory_custom_css .= '}';
    }

    /*----------------Enable/Disable Breadcrumbs -------------------*/

    $local_business_directory_enable_breadcrumbs = get_theme_mod('local_business_directory_enable_breadcrumbs',1);

    if($local_business_directory_enable_breadcrumbs == 0){
        $local_business_directory_custom_css .='.local-business-directory-breadcrumbs, nav.woocommerce-breadcrumb{';
            $local_business_directory_custom_css .='display: none;';
        $local_business_directory_custom_css .='}';
    }

    
    /*--------------------------- slider-------------------*/

    $local_business_directory_enable_slider = get_theme_mod('local_business_directory_slider_show_hide', 1);
    if($local_business_directory_enable_slider != 1){
        $local_business_directory_custom_css .='.page-template-revolution-home .top-head{';
            $local_business_directory_custom_css .='position:static;background-color:#000;';
        $local_business_directory_custom_css .='}';
    }