<?php

  $roofing_specialist_theme_custom_setting_css = '';

    // Global Color
    $roofing_specialist_first_theme_color = get_theme_mod('roofing_specialist_first_theme_color', '#D1160C');
    $roofing_specialist_second_theme_color = get_theme_mod('roofing_specialist_second_theme_color', '#141414');

    $roofing_specialist_theme_custom_setting_css .=':root {';
        $roofing_specialist_theme_custom_setting_css .='--primary-theme-color: '.esc_attr($roofing_specialist_first_theme_color ).'!important;';
        $roofing_specialist_theme_custom_setting_css .='--secondary-theme-color: '.esc_attr($roofing_specialist_second_theme_color ).'!important;';
    $roofing_specialist_theme_custom_setting_css .='}';

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

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

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