<?php

  $lms_education_elementor_theme_custom_setting_css = '';

	// Global Color
	$lms_education_elementor_theme_color = get_theme_mod('lms_education_elementor_theme_color', '#1d62b1');

	$lms_education_elementor_theme_custom_setting_css .=':root {';
		$lms_education_elementor_theme_custom_setting_css .='--primary-theme-color: '.esc_attr($lms_education_elementor_theme_color ).'!important;';
	$lms_education_elementor_theme_custom_setting_css .='}';

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

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

    // Related Product

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

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