<?php

  $business_directory_elementor_theme_custom_setting_css = '';

	// Global Color
	$business_directory_elementor_theme_color = get_theme_mod('business_directory_elementor_theme_color', '#54c0ff');
	$business_directory_elementor_theme_second_color = get_theme_mod('business_directory_elementor_theme_second_color', '#ff6041');

	$business_directory_elementor_theme_custom_setting_css .=':root {';
		$business_directory_elementor_theme_custom_setting_css .='--primary-theme-color: '.esc_attr($business_directory_elementor_theme_color ).'!important;';
		$business_directory_elementor_theme_custom_setting_css .='--secondary-theme-color: '.esc_attr($business_directory_elementor_theme_second_color ).'!important;';
	$business_directory_elementor_theme_custom_setting_css .='}';

	// Scroll to top alignment
	$business_directory_elementor_scroll_alignment = get_theme_mod('business_directory_elementor_scroll_alignment', 'right');

	if($business_directory_elementor_scroll_alignment == 'right'){
		$business_directory_elementor_theme_custom_setting_css .='.scroll-up{';
			$business_directory_elementor_theme_custom_setting_css .='right: 30px;!important;';
			$business_directory_elementor_theme_custom_setting_css .='left: auto;!important;';
		$business_directory_elementor_theme_custom_setting_css .='}';
	}else if($business_directory_elementor_scroll_alignment == 'center'){
		$business_directory_elementor_theme_custom_setting_css .='.scroll-up{';
			$business_directory_elementor_theme_custom_setting_css .='left: calc(50% - 10px) !important;';
		$business_directory_elementor_theme_custom_setting_css .='}';
	}else if($business_directory_elementor_scroll_alignment == 'left'){
		$business_directory_elementor_theme_custom_setting_css .='.scroll-up{';
			$business_directory_elementor_theme_custom_setting_css .='left: 30px;!important;';
			$business_directory_elementor_theme_custom_setting_css .='right: auto;!important;';
		$business_directory_elementor_theme_custom_setting_css .='}';
	}

	// Related Product

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

	if($business_directory_elementor_show_related_product != true){
		$business_directory_elementor_theme_custom_setting_css .='.related.products{';
			$business_directory_elementor_theme_custom_setting_css .='display: none;';
		$business_directory_elementor_theme_custom_setting_css .='}';
	}	