<?php

  $launch_coming_soon_theme_custom_setting_css = '';

    // Global Color
    $launch_coming_soon_first_theme_color = get_theme_mod('launch_coming_soon_first_theme_color', '#707274');
    $launch_coming_soon_second_theme_color = get_theme_mod('launch_coming_soon_second_theme_color', '#000000');

    $launch_coming_soon_theme_custom_setting_css .=':root {';
        $launch_coming_soon_theme_custom_setting_css .='--primary-theme-color: '.esc_attr($launch_coming_soon_first_theme_color ).'!important;';
        $launch_coming_soon_theme_custom_setting_css .='--secondary-theme-color: '.esc_attr($launch_coming_soon_second_theme_color ).'!important;';
    $launch_coming_soon_theme_custom_setting_css .='}';

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

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

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