<?php

$wedding_planner_lite_custom_css = '';

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

	$wedding_planner_lite_text_transform = get_theme_mod( 'menu_text_transform_wedding_planner_lite','CAPITALISE');
    if($wedding_planner_lite_text_transform == 'CAPITALISE'){

		$wedding_planner_lite_custom_css .='.main-navigation ul li a{';

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

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.main-navigation ul li a{';

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

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.main-navigation ul li a{';

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

		$wedding_planner_lite_custom_css .='}';
	}

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

$wedding_planner_lite_container_width = get_theme_mod('wedding_planner_lite_container_width');

		$wedding_planner_lite_custom_css .='body{';

			$wedding_planner_lite_custom_css .='width: '.esc_attr($wedding_planner_lite_container_width).'%; margin: auto';

		$wedding_planner_lite_custom_css .='}';

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

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

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

			$wedding_planner_lite_custom_css .='.blog_box{';

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

			$wedding_planner_lite_custom_css .='}';


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

			$wedding_planner_lite_custom_css .='.blog_box{';

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

			$wedding_planner_lite_custom_css .='}';


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

			$wedding_planner_lite_custom_css .='.blog_box{';

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

			$wedding_planner_lite_custom_css .='}';

		}

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

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

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

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

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

		$wedding_planner_lite_custom_css .='}';


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

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

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

		$wedding_planner_lite_custom_css .='}';


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

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

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

		$wedding_planner_lite_custom_css .='}';

	}

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

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

		if($wedding_planner_lite_related_product_setting == false){

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

				$wedding_planner_lite_custom_css .='display: none;';

			$wedding_planner_lite_custom_css .='}';
		}

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

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

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

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

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

	if($wedding_planner_lite_woocommerce_pagination_position == 'Left'){

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

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

		$wedding_planner_lite_custom_css .='}';

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

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

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

		$wedding_planner_lite_custom_css .='}';

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

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

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

		$wedding_planner_lite_custom_css .='}';
	}

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

	$wedding_planner_lite_slider_opacity_color = get_theme_mod( 'wedding_planner_lite_slider_opacity_color','1.0');

	if($wedding_planner_lite_slider_opacity_color == '0'){

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.1';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.2';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.3';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.4';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.5';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.6';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.7';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.8';

		$wedding_planner_lite_custom_css .='}';

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

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:0.9';

		$wedding_planner_lite_custom_css .='}';

		}else if($wedding_planner_lite_slider_opacity_color == 'unset'){

		$wedding_planner_lite_custom_css .='.blog_inner_box img{';

			$wedding_planner_lite_custom_css .='opacity:unset';

		$wedding_planner_lite_custom_css .='}';

		}

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

$wedding_planner_lite_first_color = get_theme_mod('wedding_planner_lite_first_color');
$wedding_planner_lite_second_color = get_theme_mod('wedding_planner_lite_second_color');
$wedding_planner_lite_third_color = get_theme_mod('wedding_planner_lite_third_color');


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

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

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

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

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

if ($wedding_planner_lite_third_color) {
  $wedding_planner_lite_custom_css .= ':root {';
  $wedding_planner_lite_custom_css .= '--third-color: ' . esc_attr($wedding_planner_lite_third_color) . ' !important;';
  $wedding_planner_lite_custom_css .= '} ';
}