<?php 

	$the_pet_clinic_custom_style = '';

	// Logo Size
	$the_pet_clinic_logo_top_padding = get_theme_mod('the_pet_clinic_logo_top_padding');
	$the_pet_clinic_logo_bottom_padding = get_theme_mod('the_pet_clinic_logo_bottom_padding');
	$the_pet_clinic_logo_left_padding = get_theme_mod('the_pet_clinic_logo_left_padding');
	$the_pet_clinic_logo_right_padding = get_theme_mod('the_pet_clinic_logo_right_padding');

	if( $the_pet_clinic_logo_top_padding != '' || $the_pet_clinic_logo_bottom_padding != '' || $the_pet_clinic_logo_left_padding != '' || $the_pet_clinic_logo_right_padding != ''){
		$the_pet_clinic_custom_style .=' .logo {';
			$the_pet_clinic_custom_style .=' padding-top: '.esc_attr($the_pet_clinic_logo_top_padding).'px; padding-bottom: '.esc_attr($the_pet_clinic_logo_bottom_padding).'px; padding-left: '.esc_attr($the_pet_clinic_logo_left_padding).'px; padding-right: '.esc_attr($the_pet_clinic_logo_right_padding).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_logo_size = get_theme_mod('the_pet_clinic_logo_size');
	if( $the_pet_clinic_logo_size != '') {
		if($the_pet_clinic_logo_size == 100) {
			$the_pet_clinic_custom_style .=' .custom-logo-link img {';
				$the_pet_clinic_custom_style .=' width: 350px;';
			$the_pet_clinic_custom_style .=' }';
		} else if($the_pet_clinic_logo_size >= 10 && $the_pet_clinic_logo_size < 100) {
			$the_pet_clinic_custom_style .=' .custom-logo-link img {';
				$the_pet_clinic_custom_style .=' width: '.esc_attr($the_pet_clinic_logo_size).'%;';
			$the_pet_clinic_custom_style .=' }';
		}
	}

	// Facility section padding
	$the_pet_clinic_facility_section_padding = get_theme_mod('the_pet_clinic_facility_section_padding');

	if( $the_pet_clinic_facility_section_padding != ''){
		$the_pet_clinic_custom_style .=' #our_facilities {';
			$the_pet_clinic_custom_style .=' padding-top: '.esc_attr($the_pet_clinic_facility_section_padding).'px; padding-bottom: '.esc_attr($the_pet_clinic_facility_section_padding).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	if (get_theme_mod('the_pet_clinic_hide_show_topbar',false) == false) {
		$the_pet_clinic_custom_style .=' .logo, body.logged-in.admin-bar .logo {';
			$the_pet_clinic_custom_style .=' top: 50%;';
		$the_pet_clinic_custom_style .=' }';
	}

	// Site Title Font Size
	$the_pet_clinic_site_title_font_size = get_theme_mod('the_pet_clinic_site_title_font_size');
	if( $the_pet_clinic_site_title_font_size != ''){
		$the_pet_clinic_custom_style .=' .logo h1.site-title, .logo p.site-title {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_site_title_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_site_title_color = get_theme_mod('the_pet_clinic_site_title_color');

	if ( $the_pet_clinic_site_title_color != '') {
		$the_pet_clinic_custom_style .=' .site-title a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_site_title_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_site_tagline_color = get_theme_mod('the_pet_clinic_site_tagline_color');

	if ( $the_pet_clinic_site_tagline_color != '') {
		$the_pet_clinic_custom_style .=' p.site-description {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_site_tagline_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_site_logobg_color = get_theme_mod('the_pet_clinic_site_logobg_color');	

	if ( $the_pet_clinic_site_logobg_color != '') {
		$the_pet_clinic_custom_style .=' .logo {';
			$the_pet_clinic_custom_style .=' background-color:'.esc_attr($the_pet_clinic_site_logobg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	// Site Tagline Font Size
	$the_pet_clinic_site_tagline_font_size = get_theme_mod('the_pet_clinic_site_tagline_font_size');
	if( $the_pet_clinic_site_tagline_font_size != ''){
		$the_pet_clinic_custom_style .=' .logo p.site-description {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_site_tagline_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_slider_hide_show = get_theme_mod('the_pet_clinic_slider_hide_show',false);
	if( $the_pet_clinic_slider_hide_show == true){
		$the_pet_clinic_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
			$the_pet_clinic_custom_style .=' display:none;';
		$the_pet_clinic_custom_style .=' }';
	}

	//layout width
	$the_pet_clinic_boxfull_width = get_theme_mod('the_pet_clinic_boxfull_width');
	if ($the_pet_clinic_boxfull_width !== '') {
		switch ($the_pet_clinic_boxfull_width) {
			case 'container':
				$the_pet_clinic_custom_style .= ' body {
					max-width: 1140px;
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'container-fluid':
				$the_pet_clinic_custom_style .= ' body { 
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
				 }';
				break;
			case 'none':
				// No specific width specified, so no additional style needed.
				break;
			default:
				// Handle unexpected values.
				break;
		}
	}


	//Menu animation
	$the_pet_clinic_dropdown_anim = get_theme_mod('the_pet_clinic_dropdown_anim');
	if ( $the_pet_clinic_dropdown_anim != '') {
		$the_pet_clinic_custom_style .=' .nav-menu ul ul {';
			$the_pet_clinic_custom_style .=' animation:'.esc_attr($the_pet_clinic_dropdown_anim).' 1s ease;';
		$the_pet_clinic_custom_style .=' }';
	}

	// Copyright css
	$the_pet_clinic_copyright_padding = get_theme_mod('the_pet_clinic_copyright_padding');
	if( $the_pet_clinic_copyright_padding != ''){
		$the_pet_clinic_custom_style .=' .site-info {';
			$the_pet_clinic_custom_style .=' padding-top: '.esc_attr($the_pet_clinic_copyright_padding).'px; padding-bottom: '.esc_attr($the_pet_clinic_copyright_padding).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_footer_copy_font_size = get_theme_mod('the_pet_clinic_footer_copy_font_size');
	if( $the_pet_clinic_footer_copy_font_size != ''){
		$the_pet_clinic_custom_style .=' .site-info a, .site-info p{';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_footer_copy_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_copyright_color = get_theme_mod('the_pet_clinic_copyright_color');
	if ( $the_pet_clinic_copyright_color != '') {
		$the_pet_clinic_custom_style .=' .site-info p, .site-info a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_copyright_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_copyrightbg_color = get_theme_mod('the_pet_clinic_copyrightbg_color');
	if ( $the_pet_clinic_copyrightbg_color != '') {
		$the_pet_clinic_custom_style .=' .copyright {';
			$the_pet_clinic_custom_style .=' background-color:'.esc_attr($the_pet_clinic_copyrightbg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_footer_widgets_color = get_theme_mod('the_pet_clinic_footer_widgets_color');
	if ( $the_pet_clinic_footer_widgets_color != '') {
		$the_pet_clinic_custom_style .=' .site-footer h2.widget-title {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_footer_widgets_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_footer_widgets_menus_color = get_theme_mod('the_pet_clinic_footer_widgets_menus_color');
	if ( $the_pet_clinic_footer_widgets_menus_color != '') {
		$the_pet_clinic_custom_style .=' .widget ul li a, .site-footer .widget-area ul li a, .site-footer .widget-area ul li a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_footer_widgets_menus_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_footerbg_color = get_theme_mod('the_pet_clinic_footerbg_color');
	if ( $the_pet_clinic_footerbg_color != '') {
		$the_pet_clinic_custom_style .=' #colophon {';
			$the_pet_clinic_custom_style .=' background-color:'.esc_attr($the_pet_clinic_footerbg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	//top bar color
	$the_pet_clinic_topicon_color = get_theme_mod('the_pet_clinic_topicon_color');

	if ( $the_pet_clinic_topicon_color != '') {
		$the_pet_clinic_custom_style .=' .contact-details i {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_topicon_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_toptext_color = get_theme_mod('the_pet_clinic_toptext_color');

	if ( $the_pet_clinic_toptext_color != '') {
		$the_pet_clinic_custom_style .=' .contact-details p, .contact-details a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_toptext_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_topbg_color = get_theme_mod('the_pet_clinic_topbg_color');

	if ( $the_pet_clinic_topbg_color != '') {
		$the_pet_clinic_custom_style .=' .topbar {';
			$the_pet_clinic_custom_style .=' background-color:'.esc_attr($the_pet_clinic_topbg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_munu_color = get_theme_mod('the_pet_clinic_munu_color');

	if ( $the_pet_clinic_munu_color != '') {
		$the_pet_clinic_custom_style .=' .nav-menu a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_munu_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_munuhvr_color = get_theme_mod('the_pet_clinic_munuhvr_color');

	if ( $the_pet_clinic_munuhvr_color != '') {
		$the_pet_clinic_custom_style .=' .nav-menu ul li a:hover {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_munuhvr_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_munubg_color = get_theme_mod('the_pet_clinic_munubg_color');

	if ( $the_pet_clinic_munubg_color != '') {
		$the_pet_clinic_custom_style .=' .top-header {';
			$the_pet_clinic_custom_style .=' background-color:'.esc_attr($the_pet_clinic_munubg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_social_color = get_theme_mod('the_pet_clinic_social_color');
	if ( $the_pet_clinic_social_color != '') {
		$the_pet_clinic_custom_style .=' .social-icons i {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_social_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	//slider css
	$the_pet_clinic_slider_title_font_size = get_theme_mod('the_pet_clinic_slider_title_font_size');
	if( $the_pet_clinic_slider_title_font_size != ''){
		$the_pet_clinic_custom_style .=' #slider .inner_carousel h2 {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_slider_title_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_slider_opacity = get_theme_mod('the_pet_clinic_slider_opacity');
	if ( $the_pet_clinic_slider_opacity != '') {
		$the_pet_clinic_custom_style .=' #slider img {';
			$the_pet_clinic_custom_style .=' opacity:'.esc_attr($the_pet_clinic_slider_opacity).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_slider_color = get_theme_mod('the_pet_clinic_slider_color');
	if ( $the_pet_clinic_slider_color != '') {
		$the_pet_clinic_custom_style .=' #slider .inner_carousel h2 {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_slider_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_sliderbtn_color = get_theme_mod('the_pet_clinic_sliderbtn_color');
	$the_pet_clinic_sliderbtnbg_color = get_theme_mod('the_pet_clinic_sliderbtnbg_color');
	if ( $the_pet_clinic_sliderbtn_color != '') {
		$the_pet_clinic_custom_style .=' #slider .read-btn a {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_sliderbtn_color).'; background-color:'.esc_attr($the_pet_clinic_sliderbtnbg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_slidernp_color = get_theme_mod('the_pet_clinic_slidernp_color');
	$the_pet_clinic_slidernpbg_color = get_theme_mod('the_pet_clinic_slidernpbg_color');
	if ( $the_pet_clinic_slidernp_color != '') {
		$the_pet_clinic_custom_style .=' #slider .carousel-control-prev-icon, #slider .carousel-control-next-icon{';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_slidernp_color).'; background-color:'.esc_attr($the_pet_clinic_slidernpbg_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	//Facility css
	$the_pet_clinic_facility_img_size = get_theme_mod('the_pet_clinic_facility_img_size');

	if( $the_pet_clinic_facility_img_size != ''){
		$the_pet_clinic_custom_style .=' .facilities-img img {';
			$the_pet_clinic_custom_style .=' width: '.esc_attr($the_pet_clinic_facility_img_size).'px; height: '.esc_attr($the_pet_clinic_facility_img_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_small_font_size = get_theme_mod('the_pet_clinic_facilities_small_font_size');
	if( $the_pet_clinic_facilities_small_font_size != ''){
		$the_pet_clinic_custom_style .=' .facilities-head h4 {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_facilities_small_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_title_font_size = get_theme_mod('the_pet_clinic_facilities_title_font_size');
	if( $the_pet_clinic_facilities_title_font_size != ''){
		$the_pet_clinic_custom_style .=' #our_facilities .facilities-head h3 {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_facilities_title_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_post_title_font_size = get_theme_mod('the_pet_clinic_facilities_post_title_font_size');
	if( $the_pet_clinic_facilities_post_title_font_size != ''){
		$the_pet_clinic_custom_style .=' .facilities_right h4, .facilities_left h4 {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_facilities_post_title_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_post_text_font_size = get_theme_mod('the_pet_clinic_facilities_post_text_font_size');
	if( $the_pet_clinic_facilities_post_text_font_size != ''){
		$the_pet_clinic_custom_style .=' #our_facilities p {';
			$the_pet_clinic_custom_style .=' font-size: '.esc_attr($the_pet_clinic_facilities_post_text_font_size).'px;';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_smalltitle_color = get_theme_mod('the_pet_clinic_facilities_smalltitle_color');
	if ( $the_pet_clinic_facilities_smalltitle_color != '') {
		$the_pet_clinic_custom_style .=' .facilities-head h4 {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_facilities_smalltitle_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_title_color = get_theme_mod('the_pet_clinic_facilities_title_color');
	if ( $the_pet_clinic_facilities_title_color != '') {
		$the_pet_clinic_custom_style .=' #our_facilities .facilities-head h3 {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_facilities_title_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_post_title_color = get_theme_mod('the_pet_clinic_facilities_post_title_color');
	if ( $the_pet_clinic_facilities_post_title_color != '') {
		$the_pet_clinic_custom_style .=' .facilities_right h4, .facilities_left h4 {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_facilities_post_title_color).';';
		$the_pet_clinic_custom_style .=' }';
	}

	$the_pet_clinic_facilities_post_text_color = get_theme_mod('the_pet_clinic_facilities_post_text_color');
	if ( $the_pet_clinic_facilities_post_text_color != '') {
		$the_pet_clinic_custom_style .=' #our_facilities p {';
			$the_pet_clinic_custom_style .=' color:'.esc_attr($the_pet_clinic_facilities_post_text_color).';';
		$the_pet_clinic_custom_style .=' }';
	}