<?php

  $personal_tutor_theme_custom_setting_css = '';

    // Global Color
    $personal_tutor_first_theme_color = get_theme_mod('personal_tutor_first_theme_color', '#FE8B3B');
    $personal_tutor_second_theme_color = get_theme_mod('personal_tutor_second_theme_color', '#F3C563');

    $personal_tutor_theme_custom_setting_css .=':root {';
        $personal_tutor_theme_custom_setting_css .='--primary-theme-color: '.esc_attr($personal_tutor_first_theme_color ).'!important;';
        $personal_tutor_theme_custom_setting_css .='--secondary-theme-color: '.esc_attr($personal_tutor_second_theme_color ).'!important;';
    $personal_tutor_theme_custom_setting_css .='}';

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

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

    // Woocommerce Sale Position
    $personal_tutor_sale_badge_position = get_theme_mod( 'personal_tutor_sale_badge_position','right');
    if($personal_tutor_sale_badge_position == 'left'){
        $personal_tutor_theme_custom_setting_css .='.woocommerce ul.products li.product .onsale{';
            $personal_tutor_theme_custom_setting_css .='left: 10px; right: auto;';
        $personal_tutor_theme_custom_setting_css .='}';
    }else if($personal_tutor_sale_badge_position == 'right'){
        $personal_tutor_theme_custom_setting_css .='.woocommerce ul.products li.product .onsale{';
            $personal_tutor_theme_custom_setting_css .='left: auto; right: 10px;';
        $personal_tutor_theme_custom_setting_css .='}';
    }