<?php 
	$consultant_appointment_custom_css ='';

    /*--------------------------- Menu Text Transform -------------------*/

    $consultant_appointment_footer_attachment = get_theme_mod( 'consultant_appointment_menu_text_transform','capitalize');
    if($consultant_appointment_footer_attachment == 'uppercase'){
        $consultant_appointment_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultant_appointment_custom_css .='text-transform: uppercase;';
        $consultant_appointment_custom_css .='}';
    }elseif ($consultant_appointment_footer_attachment == 'capitalize'){
        $consultant_appointment_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultant_appointment_custom_css .='text-transform: capitalize;';
        $consultant_appointment_custom_css .='}';
    }elseif ($consultant_appointment_footer_attachment == 'lowercase'){
        $consultant_appointment_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultant_appointment_custom_css .='text-transform: lowercase;';
        $consultant_appointment_custom_css .='}';
    }

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

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

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

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

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

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

    $consultant_appointment_footer_bg_image = get_theme_mod('consultant_appointment_footer_bg_image');
    if($consultant_appointment_footer_bg_image != false){
        $consultant_appointment_custom_css .= '.footer-top{';
        $consultant_appointment_custom_css .= 'background-image:url(' . esc_url($consultant_appointment_footer_bg_image) . ');';
        $consultant_appointment_custom_css .= 'background-size: cover;';
        $consultant_appointment_custom_css .= 'background-repeat:no-repeat;';
        $consultant_appointment_custom_css .= '}';
    }

    /*--------------------------- Footer Background Image Attachment -------------------*/

    $consultant_appointment_footer_attachment = get_theme_mod( 'consultant_appointment_background_attachment','scroll');
    if($consultant_appointment_footer_attachment == 'fixed'){
        $consultant_appointment_custom_css .='.footer-top{';
            $consultant_appointment_custom_css .='background-attachment: fixed;';
        $consultant_appointment_custom_css .='}';
    }elseif ($consultant_appointment_footer_attachment == 'scroll'){
        $consultant_appointment_custom_css .='.footer-top{';
            $consultant_appointment_custom_css .='background-attachment: scroll;';
        $consultant_appointment_custom_css .='}';
    }

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

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

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

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


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

	$consultant_appointment_primary_color = get_theme_mod('consultant_appointment_primary_color', '#01c0b5'); // Add a fallback if the color isn't set

	if ($consultant_appointment_primary_color) {
		$consultant_appointment_custom_css .= ':root {';
		$consultant_appointment_custom_css .= '--primary-color: ' . esc_attr($consultant_appointment_primary_color) . ';';
		$consultant_appointment_custom_css .= '}';
	}

    /*-------------------- Secondary Color -------------------*/

	$consultant_appointment_secondary_color = get_theme_mod('consultant_appointment_secondary_color', '#121111'); // Add a fallback if the color isn't set

	if ($consultant_appointment_secondary_color) {
		$consultant_appointment_custom_css .= ':root {';
		$consultant_appointment_custom_css .= '--secondary-color: ' . esc_attr($consultant_appointment_secondary_color) . ';';
		$consultant_appointment_custom_css .= '}';
	}

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

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

    if($consultant_appointment_enable_breadcrumbs == 0){
        $consultant_appointment_custom_css .='.consultant-appointment-breadcrumbs, nav.woocommerce-breadcrumb{';
            $consultant_appointment_custom_css .='display: none;';
        $consultant_appointment_custom_css .='}';
    }