<?php

$business_assistant_custom_css = '';

	/*---------------------------text-transform-------------------*/

	$business_assistant_text_transform = get_theme_mod( 'menu_text_transform_business_assistant','CAPITALISE');
    if($business_assistant_text_transform == 'CAPITALISE'){

		$business_assistant_custom_css .='#main-menu ul li a{';

			$business_assistant_custom_css .='text-transform: capitalize;';

		$business_assistant_custom_css .='}';

	}else if($business_assistant_text_transform == 'UPPERCASE'){

		$business_assistant_custom_css .='#main-menu ul li a{';

			$business_assistant_custom_css .='text-transform: uppercase;';

		$business_assistant_custom_css .='}';

	}else if($business_assistant_text_transform == 'LOWERCASE'){

		$business_assistant_custom_css .='#main-menu ul li a{';

			$business_assistant_custom_css .='text-transform: lowercase;';

		$business_assistant_custom_css .='}';
	}

	/*---------------------------Container Width-------------------*/

$business_assistant_container_width = get_theme_mod('business_assistant_container_width');

		$business_assistant_custom_css .='body{';

			$business_assistant_custom_css .='width: '.esc_attr($business_assistant_container_width).'%; margin: auto';

		$business_assistant_custom_css .='}';

		/*---------------------------Slider-content-alignment-------------------*/

	$business_assistant_slider_content_alignment = get_theme_mod( 'business_assistant_slider_content_alignment','LEFT-ALIGN');

	 if($business_assistant_slider_content_alignment == 'LEFT-ALIGN'){

			$business_assistant_custom_css .='.blog_box{';

				$business_assistant_custom_css .='text-align:left;';

			$business_assistant_custom_css .='}';


		}else if($business_assistant_slider_content_alignment == 'CENTER-ALIGN'){

			$business_assistant_custom_css .='.blog_box{';

				$business_assistant_custom_css .='text-align:center;';

			$business_assistant_custom_css .='}';


		}else if($business_assistant_slider_content_alignment == 'RIGHT-ALIGN'){

			$business_assistant_custom_css .='.blog_box{';

				$business_assistant_custom_css .='text-align:right;';

			$business_assistant_custom_css .='}';

		}

		/*---------------------------Copyright Text alignment-------------------*/

$business_assistant_copyright_text_alignment = get_theme_mod( 'business_assistant_copyright_text_alignment','LEFT-ALIGN');

 if($business_assistant_copyright_text_alignment == 'LEFT-ALIGN'){

		$business_assistant_custom_css .='.copy-text p{';

			$business_assistant_custom_css .='text-align:left;';

		$business_assistant_custom_css .='}';


	}else if($business_assistant_copyright_text_alignment == 'CENTER-ALIGN'){

		$business_assistant_custom_css .='.copy-text p{';

			$business_assistant_custom_css .='text-align:center;';

		$business_assistant_custom_css .='}';


	}else if($business_assistant_copyright_text_alignment == 'RIGHT-ALIGN'){

		$business_assistant_custom_css .='.copy-text p{';

			$business_assistant_custom_css .='text-align:right;';

		$business_assistant_custom_css .='}';

	}

	/*---------------------------Related Product Settings-------------------*/

		$business_assistant_related_product_setting = get_theme_mod('business_assistant_related_product_setting',true);

		if($business_assistant_related_product_setting == false){

			$business_assistant_custom_css .='.related.products, .related h2{';

				$business_assistant_custom_css .='display: none;';

			$business_assistant_custom_css .='}';
		}

		/*---------------------------Scroll to Top Alignment Settings-------------------*/

		$business_assistant_scroll_top_position = get_theme_mod( 'business_assistant_scroll_top_position','Right');

		if($business_assistant_scroll_top_position == 'Right'){
	
			$business_assistant_custom_css .='.scroll-up{';
	
				$business_assistant_custom_css .='right: 20px;';
	
			$business_assistant_custom_css .='}';
	
		}else if($business_assistant_scroll_top_position == 'Left'){
	
			$business_assistant_custom_css .='.scroll-up{';
	
				$business_assistant_custom_css .='left: 20px;';
	
			$business_assistant_custom_css .='}';
	
		}else if($business_assistant_scroll_top_position == 'Center'){
	
			$business_assistant_custom_css .='.scroll-up{';
	
				$business_assistant_custom_css .='right: 50%;left: 50%;';
	
			$business_assistant_custom_css .='}';
		}
	
			/*---------------------------Pagination Settings-------------------*/
	
	
	$business_assistant_pagination_setting = get_theme_mod('business_assistant_pagination_setting',true);
	
		if($business_assistant_pagination_setting == false){
	
			$business_assistant_custom_css .='.nav-links{';
	
				$business_assistant_custom_css .='display: none;';
	
			$business_assistant_custom_css .='}';
		}

			/*---------------------------Pagination to Top Alignment Settings-------------------*/

	$business_assistant_woocommerce_pagination_position = get_theme_mod( 'business_assistant_woocommerce_pagination_position','Center');

	if($business_assistant_woocommerce_pagination_position == 'Left'){

		$business_assistant_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$business_assistant_custom_css .='text-align: left;';

		$business_assistant_custom_css .='}';

	}else if($business_assistant_woocommerce_pagination_position == 'Center'){

		$business_assistant_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$business_assistant_custom_css .='text-align: center;';

		$business_assistant_custom_css .='}';

	}else if($business_assistant_woocommerce_pagination_position == 'Right'){

		$business_assistant_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$business_assistant_custom_css .='text-align: right;';

		$business_assistant_custom_css .='}';
	}

			/*--------------------------- Slider Opacity -------------------*/

	$business_assistant_slider_opacity_color = get_theme_mod( 'business_assistant_slider_opacity_color','0.5');

	if($business_assistant_slider_opacity_color == '0'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.1'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.1';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.2'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.2';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.3'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.3';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.4'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.4';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.5'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.5';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.6'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.6';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.7'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.7';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.8'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.8';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '0.9'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.9';

		$business_assistant_custom_css .='}';

		}else if($business_assistant_slider_opacity_color == '1.0'){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.9';

		$business_assistant_custom_css .='}';

		}

	/*---------------------- Slider Image Overlay ------------------------*/

	$business_assistant_overlay_option = get_theme_mod('business_assistant_overlay_option', true);

	if($business_assistant_overlay_option == false){

		$business_assistant_custom_css .='.blog_inner_box img{';

			$business_assistant_custom_css .='opacity:0.5;';

		$business_assistant_custom_css .='}';
	}

/*---------------------------Global Color-------------------*/

$business_assistant_first_color = get_theme_mod('business_assistant_first_color');
$business_assistant_second_color = get_theme_mod('business_assistant_second_color');

/*--- First Global Color ---*/

if ($business_assistant_first_color) {
  $business_assistant_custom_css .= ':root {';
  $business_assistant_custom_css .= '--first-color: ' . esc_attr($business_assistant_first_color) . ' !important;';
  $business_assistant_custom_css .= '} ';
}

/*--- Second Global Color ---*/

if ($business_assistant_second_color) {
  $business_assistant_custom_css .= ':root {';
  $business_assistant_custom_css .= '--second-color: ' . esc_attr($business_assistant_second_color) . ' !important;';
  $business_assistant_custom_css .= '} ';
}