<?php

$shopping_cart_woocommerce_tp_theme_css = '';

//theme color
$shopping_cart_woocommerce_tp_color_option = get_theme_mod('shopping_cart_woocommerce_tp_color_option');

// 1st color
$shopping_cart_woocommerce_tp_color_option = get_theme_mod('shopping_cart_woocommerce_tp_color_option', '#e40046');
if ($shopping_cart_woocommerce_tp_color_option) {
	$shopping_cart_woocommerce_tp_theme_css .= ':root {';
	$shopping_cart_woocommerce_tp_theme_css .= '--color-primary1: ' . esc_attr($shopping_cart_woocommerce_tp_color_option) . ';';
	$shopping_cart_woocommerce_tp_theme_css .= '}';
}

//preloader

$shopping_cart_woocommerce_tp_preloader_color1_option = get_theme_mod('shopping_cart_woocommerce_tp_preloader_color1_option');
$shopping_cart_woocommerce_tp_preloader_color2_option = get_theme_mod('shopping_cart_woocommerce_tp_preloader_color2_option');
$shopping_cart_woocommerce_tp_preloader_bg_color_option = get_theme_mod('shopping_cart_woocommerce_tp_preloader_bg_color_option');

if($shopping_cart_woocommerce_tp_preloader_color1_option != false){
$shopping_cart_woocommerce_tp_theme_css .='.center1{';
	$shopping_cart_woocommerce_tp_theme_css .='border-color: '.esc_attr($shopping_cart_woocommerce_tp_preloader_color1_option).' !important;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}
if($shopping_cart_woocommerce_tp_preloader_color1_option != false){
$shopping_cart_woocommerce_tp_theme_css .='.center1 .ring::before{';
	$shopping_cart_woocommerce_tp_theme_css .='background: '.esc_attr($shopping_cart_woocommerce_tp_preloader_color1_option).' !important;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}
if($shopping_cart_woocommerce_tp_preloader_color2_option != false){
$shopping_cart_woocommerce_tp_theme_css .='.center2{';
	$shopping_cart_woocommerce_tp_theme_css .='border-color: '.esc_attr($shopping_cart_woocommerce_tp_preloader_color2_option).' !important;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}
if($shopping_cart_woocommerce_tp_preloader_color2_option != false){
$shopping_cart_woocommerce_tp_theme_css .='.center2 .ring::before{';
	$shopping_cart_woocommerce_tp_theme_css .='background: '.esc_attr($shopping_cart_woocommerce_tp_preloader_color2_option).' !important;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}
if($shopping_cart_woocommerce_tp_preloader_bg_color_option != false){
$shopping_cart_woocommerce_tp_theme_css .='.loader{';
	$shopping_cart_woocommerce_tp_theme_css .='background: '.esc_attr($shopping_cart_woocommerce_tp_preloader_bg_color_option).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// footer-bg-color
$shopping_cart_woocommerce_tp_footer_bg_color_option = get_theme_mod('shopping_cart_woocommerce_tp_footer_bg_color_option');

if($shopping_cart_woocommerce_tp_footer_bg_color_option != false){
$shopping_cart_woocommerce_tp_theme_css .='#footer{';
	$shopping_cart_woocommerce_tp_theme_css .='background: '.esc_attr($shopping_cart_woocommerce_tp_footer_bg_color_option).' !important;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// logo tagline color
$shopping_cart_woocommerce_site_tagline_color = get_theme_mod('shopping_cart_woocommerce_site_tagline_color');

if($shopping_cart_woocommerce_site_tagline_color != false){
$shopping_cart_woocommerce_tp_theme_css .='.logo h1 a, .logo p, .logo p.site-title a{';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_site_tagline_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

$shopping_cart_woocommerce_logo_tagline_color = get_theme_mod('shopping_cart_woocommerce_logo_tagline_color');
if($shopping_cart_woocommerce_logo_tagline_color != false){
$shopping_cart_woocommerce_tp_theme_css .='p.site-description{';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_logo_tagline_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// footer widget title color
$shopping_cart_woocommerce_footer_widget_title_color = get_theme_mod('shopping_cart_woocommerce_footer_widget_title_color');
if($shopping_cart_woocommerce_footer_widget_title_color != false){
$shopping_cart_woocommerce_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_footer_widget_title_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// copyright text color
$shopping_cart_woocommerce_footer_copyright_text_color = get_theme_mod('shopping_cart_woocommerce_footer_copyright_text_color');
if($shopping_cart_woocommerce_footer_copyright_text_color != false){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_footer_copyright_text_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// header image title color
$shopping_cart_woocommerce_header_image_title_text_color = get_theme_mod('shopping_cart_woocommerce_header_image_title_text_color');
if($shopping_cart_woocommerce_header_image_title_text_color != false){
$shopping_cart_woocommerce_tp_theme_css .='.box-text h2{';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_header_image_title_text_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

// menu color
$shopping_cart_woocommerce_menu_color = get_theme_mod('shopping_cart_woocommerce_menu_color');
if($shopping_cart_woocommerce_menu_color != false){
$shopping_cart_woocommerce_tp_theme_css .='.main-navigation a{';
$shopping_cart_woocommerce_tp_theme_css .='color: '.esc_attr($shopping_cart_woocommerce_menu_color).';';
$shopping_cart_woocommerce_tp_theme_css .='}';
}

//Footer Font Weight
$shopping_cart_woocommerce_footer_copyright_title_font_weight = get_theme_mod( 'shopping_cart_woocommerce_footer_copyright_title_font_weight','');
if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '100'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 100;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '200'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 200;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '300'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 300;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '400'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 400;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '500'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 500;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '600'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 600;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '700'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 700;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '800'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 800;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}else if($shopping_cart_woocommerce_footer_copyright_title_font_weight == '900'){
$shopping_cart_woocommerce_tp_theme_css .='#footer .site-info p {';
    $shopping_cart_woocommerce_tp_theme_css .='font-weight: 900;';
$shopping_cart_woocommerce_tp_theme_css .='}';
}
