<?php

$transport_solutions_custom_css = '';


$transport_solutions_is_dark_mode_enabled = get_theme_mod( 'transport_solutions_is_dark_mode_enabled', false );

if ( $transport_solutions_is_dark_mode_enabled ) {

    $transport_solutions_custom_css .= 'body,.fixed-header,tr:nth-child(2n+2) {';
    $transport_solutions_custom_css .= 'background: #000;';
    $transport_solutions_custom_css .= '}';

    $transport_solutions_custom_css .= '.box-content,.box {';
    $transport_solutions_custom_css .= 'background: #000 !important;';
    $transport_solutions_custom_css .= '}';

	$transport_solutions_custom_css .= '.sticky .post-content{';
    $transport_solutions_custom_css .= 'color: #000';
    $transport_solutions_custom_css .= '}';

	$transport_solutions_custom_css .= 'h5.product-text a,#featured-product p.price,.card-header a,.comment-content.card-block p,.post-box.sticky a,#main-menu ul.sub-menu li a,.social-links a{';
    $transport_solutions_custom_css .= 'color: #000 !important';
    $transport_solutions_custom_css .= '}';

    $transport_solutions_custom_css .= '.some{';
    $transport_solutions_custom_css .= 'background: #fff;';
    $transport_solutions_custom_css .= '}';

    $transport_solutions_custom_css .= '.some {';
    $transport_solutions_custom_css .= 'background: #fff !important;';
    $transport_solutions_custom_css .= '}';
	

    $transport_solutions_custom_css .= 'body,h1,h2,h3,h4,h5,p,#main-menu ul li a,.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,a,.logo span{';
    $transport_solutions_custom_css .= 'color: #fff;';
    $transport_solutions_custom_css .= '}';

    $transport_solutions_custom_css .= 'a.wc-block-components-product-name, .wc-block-components-product-name,.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-item__label,.wc-block-components-totals-item__value,
.wc-block-components-product-metadata .wc-block-components-product-metadata__description>p,
.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector,table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
.wc-block-components-product-price__value.is-discounted,del.wc-block-components-product-price__regular,.logo a,.logo span,.header p,h2.woocommerce-loop-product__title,a{';
    $transport_solutions_custom_css .= 'color: #fff !important;';
    $transport_solutions_custom_css .= '}';

	$transport_solutions_custom_css .= '.post-box{';
    $transport_solutions_custom_css .= '    border: 1px solid rgb(229 229 229 / 48%)';
    $transport_solutions_custom_css .= '}';
}


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

	$transport_solutions_text_transform = get_theme_mod( 'menu_text_transform_transport_solutions','UPPERCASE');

    if($transport_solutions_text_transform == 'CAPITALISE'){

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

			$transport_solutions_custom_css .='text-transform: capitalize ; font-size: 15px;';

		$transport_solutions_custom_css .='}';

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

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

			$transport_solutions_custom_css .='text-transform: uppercase ; font-size: 15px;';

		$transport_solutions_custom_css .='}';

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

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

			$transport_solutions_custom_css .='text-transform: lowercase ; font-size: 15px;';

		$transport_solutions_custom_css .='}';
	}

		/*---------------------------menu-zoom-------------------*/

		$transport_solutions_menu_zoom = get_theme_mod( 'transport_solutions_menu_zoom','None');

	if($transport_solutions_menu_zoom == 'None'){

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

			$transport_solutions_custom_css .='';

		$transport_solutions_custom_css .='}';

	}else if($transport_solutions_menu_zoom == 'Zoominn'){

		$transport_solutions_custom_css .='#main-menu ul li a:hover{';

			$transport_solutions_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: #ff3f3a;';

		$transport_solutions_custom_css .='}';
	}


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

$transport_solutions_container_width = get_theme_mod('transport_solutions_container_width');

		$transport_solutions_custom_css .='body{';

			$transport_solutions_custom_css .='width: '.esc_attr($transport_solutions_container_width).'%; margin: auto;';

		$transport_solutions_custom_css .='}';

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

	$transport_solutions_slider_content_alignment = get_theme_mod( 'transport_solutions_slider_content_alignment','CENTER-ALIGN');

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

			$transport_solutions_custom_css .='.blog_inner_box{';

				$transport_solutions_custom_css .='text-align:center; left:15%; right:55%;';

			$transport_solutions_custom_css .='}';


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

			$transport_solutions_custom_css .='.blog_inner_box{';

				$transport_solutions_custom_css .='text-align:center; left:35%; right:35%;';

			$transport_solutions_custom_css .='}';


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

			$transport_solutions_custom_css .='.blog_inner_box{';

				$transport_solutions_custom_css .='text-align:center; left:55%; right:15%;';

			$transport_solutions_custom_css .='}';

		}


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

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

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

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

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

			$transport_solutions_custom_css .='}';


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

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

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

			$transport_solutions_custom_css .='}';


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

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

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

			$transport_solutions_custom_css .='}';

		}

		/*---------------------------related Product Settings-------------------*/


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

	if($transport_solutions_related_product_setting == false){

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

			$transport_solutions_custom_css .='display: none;';

		$transport_solutions_custom_css .='}';
	}

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

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

	if($transport_solutions_scroll_top_position == 'Right'){

		$transport_solutions_custom_css .='.scroll-up{';

			$transport_solutions_custom_css .='right: 20px;';

		$transport_solutions_custom_css .='}';

	}else if($transport_solutions_scroll_top_position == 'Left'){

		$transport_solutions_custom_css .='.scroll-up{';

			$transport_solutions_custom_css .='left: 20px;';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.scroll-up{';

			$transport_solutions_custom_css .='right: 50%;left: 50%;';

		$transport_solutions_custom_css .='}';
	}

		/*---------------------------Pagination Settings-------------------*/


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

	if($transport_solutions_pagination_setting == false){

		$transport_solutions_custom_css .='.nav-links{';

			$transport_solutions_custom_css .='display: none;';

		$transport_solutions_custom_css .='}';
	}

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

	$transport_solutions_slider_opacity_color = get_theme_mod( 'transport_solutions_slider_opacity_color','0.6');

	if($transport_solutions_slider_opacity_color == '0'){

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.1';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.2';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.3';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.4';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.5';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.6';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.7';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.8';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:0.9';

		$transport_solutions_custom_css .='}';

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

		$transport_solutions_custom_css .='.blog_box img{';

			$transport_solutions_custom_css .='opacity:unset';

		$transport_solutions_custom_css .='}';

		}

		/*---------------------------Woocommerce Pagination Alignment Settings-------------------*/

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

	if($transport_solutions_woocommerce_pagination_position == 'Left'){

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

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

		$transport_solutions_custom_css .='}';

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

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

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

		$transport_solutions_custom_css .='}';

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

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

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

		$transport_solutions_custom_css .='}';
	}


