<?php
// Output option-based style
if( !function_exists( 'ozy_wpcloud_style') ) :
	function ozy_wpcloud_style() {
		global $ozyHelper, $ozy_data;
	
		// is page based styling enabled?
		$body_style = $content_background_color = $footer_background_color = $transparent_content_background = '';
		$page_id = get_the_ID();
		
		$shop_page_id = ozy_get_woocommerce_page_id();
		if ($shop_page_id > 0) { $page_id = $shop_page_id; }
		
		if(vp_metabox('ozy_wpcloud_meta_page.ozy_wpcloud_meta_page_use_custom_style', null, $page_id) == '1') {
			$_var = 'ozy_wpcloud_meta_page.ozy_wpcloud_meta_page_layout_group.0.ozy_wpcloud_meta_page_layout_';
			$content_background_color 		= vp_metabox($_var . 'ascend_background', null, $page_id);
			$transparent_content_background = vp_metabox($_var . 'transparent_background', null, $page_id);
		}else{
			$content_background_color 		= ozy_get_option('content_background_color', null, $page_id);
		}
		$footer_background_color 			= ozy_get_option('footer_background_color', null, $page_id);
		
		if(vp_metabox('ozy_wpcloud_meta_page.ozy_wpcloud_meta_page_use_custom_background', null, $page_id) == '1' && !is_search()) {
			$_var = 'background_group.0.ozy_wpcloud_meta_page_background_';
			$body_style = $ozyHelper->background_style_render(
				ozy_get_metabox($_var . 'color', null, $page_id),
				ozy_get_metabox($_var . 'image', null, $page_id),
				ozy_get_metabox($_var . 'size', null, $page_id),
				ozy_get_metabox($_var . 'repeat', null, $page_id),
				ozy_get_metabox($_var . 'attachment', null, $page_id)
			);
		}else{
			$_var = 'body_background_';
			$body_style = $ozyHelper->background_style_render(
				ozy_get_option($_var . 'color', null, $page_id), 
				ozy_get_option($_var . 'image', null, $page_id), 
				ozy_get_option($_var . 'image_size', null, $page_id), 
				ozy_get_option($_var . 'image_repeat', null, $page_id), 
				ozy_get_option($_var . 'image_attachment', null, $page_id)
			);
		}
	
	?>
		<style type="text/css">
			@media only screen and (min-width: 1212px) {
				.container{padding:0;width:<?php echo $ozy_data->container_width; ?>px;}
				#content{width:<?php echo $ozy_data->content_width; ?>px;}
				#sidebar{width:<?php echo $ozy_data->sidebar_width; ?>px;}
			}
	
			<?php
				if(ozy_get_option('primary_menu_side_menu') === '-1') {
			?>
				@media only screen and (min-width: 980px){#nav-primary>nav>div>ul>li.menu-item-side-menu{display:none !important;}}			
			<?php					
				}
			?>	
	
			/* Body Background Styling
			/*-----------------------------------------------------------------------------------*/
			body{<?php echo $body_style; ?>}
		
			/* Layout and Layout Styling
			/*-----------------------------------------------------------------------------------*/
			#main,
			.main-bg-color{
				background-color:<?php echo $content_background_color ?>;
			}
			#main.header-slider-active>.container,
			#main.footer-slider-active>.container{
				margin-top:0px;
			}
			#revo-offset-container{
				height:<?php echo ((int)ozy_get_option('header_height')+(int)ozy_get_option('footer_height')) ?>px;
			}
			.ozy-header-slider{
				margin-top:<?php echo ozy_get_option('header_height')?>px;
			}

			#footer .container>div,
			#footer .container,
			#footer{
				height:<?php echo ozy_get_option('footer_height')?>px;min-height:<?php echo ozy_get_option('footer_height')?>px;
			}
			#footer,#footer>footer .container{
				line-height:<?php echo ozy_get_option('footer_height')?>px;
			}
			#footer{
				background-color:<?php echo ozy_get_option('footer_color_2', 'rgba(40,54,69,1)');?>
			}
			#footer-widget-bar{
				background-color:<?php echo ozy_get_option('footer_color_6', 'rgba(47,64,82,1)');?>
			}	
			#footer-widget-bar .separator,
			#footer-widget-bar li,
			#footer-widget-bar .widget li,
			#wp-calendar tbody td,
			div#social-icons>a{
				border-color:<?php echo ozy_get_option('footer_color_3', 'rgba(92,108,125,1)');?> !important
			}
			#footer-widget-bar>.container>section div,
			#footer-widget-bar>.container>section p,
			#footer-widget-bar>.container>section h4,
			#footer-widget-bar>.container>section{
				color:<?php echo ozy_get_option('footer_color_1', 'rgba(255,255,255,1)') ?>; !important
			}
			#footer *{
				color:<?php echo ozy_get_option('footer_color_3', 'rgba(92,108,125,1)') ?>; !important
			}
			#footer-widget-bar>.container>section a,
			#footer-widget-bar>.container>section a>span>*,
			#footer a{
				color:<?php echo ozy_get_option('footer_color_1', 'rgba(255,255,255,1)') ?> !important;
			}
			#footer-widget-bar .tagcloud>a{
				background-color:<?php echo  ozy_get_option('footer_color_4', 'rgba(65,86,109,1)') ?> !important;
				border-color:<?php echo  ozy_get_option('footer_color_4', 'rgba(65,86,109,1)') ?> !important;
			}
			#footer-widget-bar input[type=text]{
				border-color:<?php echo ozy_get_option('footer_color_2', 'rgba(40,54,69,1)') ?> !important;
				color:<?php echo ozy_get_option('footer_color_4', 'rgba(65,86,109,1)') ?>; !important;
				background-color:<?php echo ozy_get_option('footer_color_2', 'rgba(40,54,69,1)') ?> !important;
			}
			#footer-widget-bar input[type=submit]{
				border-color:<?php echo ozy_get_option('footer_color_5', 'rgba(37,50,65,1)') ?>; !important;
				color:<?php echo ozy_get_option('footer_color_1', 'rgba(255,255,255,1)') ?>; !important;
				background-color:<?php echo ozy_get_option('footer_color_5', 'rgba(37,50,65,1)') ?>; !important;
			}			
			
		<?php echo $transparent_content_background == '1' ? '	#main>.container{background-color:transparent !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important;}' . PHP_EOL : '' ?>
			@media only screen and (max-width: 479px) {
				#footer{height:<?php echo (int)ozy_get_option('footer_height')*2;?>px;}			
				#main>.container{margin-top:<?php echo ozy_get_option('header_height');?>px;}
			}
			@media only screen and (max-width: 1024px) and (min-width: 480px) {
				#header #title{padding-right:<?php echo (int)(ozy_get_option('header_height')+20);?>px;}
				#header #title>a{line-height:<?php echo ozy_get_option('header_height');?>px;}
				#main>.container{margin-top:<?php echo ozy_get_option('header_height');?>px;}
				#footer{height:<?php echo ozy_get_option('footer_height');?>px;}
			}	
			
		<?php 
		//if(ozy_check_is_woocommerce_page()) { 
		if(is_woocommerce_activated()) {
		?>
			/* WooCommerce
			/*-----------------------------------------------------------------------------------*/
			.ozy-product-overlay .button:hover{
				background-color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('primary_menu_background_color'))?> !important;
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('primary_menu_font_color_hover'))?> !important;
				border:1px solid <?php echo ozy_get_option('primary_menu_background_color')?> !important;
			}
			.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
			.woocommerce-page div.product .woocommerce-tabs ul.tabs li.active,
			.woocommerce #content div.product .woocommerce-tabs ul.tabs li.active,
			.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li.active{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
				border-color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('content_color_alternate')) ?> !important;
				border-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
			}
			.woocommerce div.product .woocommerce-tabs ul.tabs li,
			.woocommerce-page div.product .woocommerce-tabs ul.tabs li,
			.woocommerce #content div.product .woocommerce-tabs ul.tabs li,
			.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li{
				border-color:<?php echo ozy_get_option('primary_menu_separator_color') ?>;
			}
			.woocommerce div.product span.price, 
			.woocommerce-page div.product span.price, 
			.woocommerce #content div.product span.price, 
			.woocommerce-page #content div.product span.price, 
			.woocommerce div.product p.price, 
			.woocommerce-page div.product p.price, 
			.woocommerce #content div.product p.price,
			.woocommerce-page #content div.product p.price,
			.woocommerce div.product .woocommerce-tabs ul.tabs li a,
			.woocommerce-page div.product .woocommerce-tabs ul.tabs li a,
			.woocommerce #content div.product .woocommerce-tabs ul.tabs li a,
			.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li a{
				color:<?php echo ozy_get_option('content_color');?> !important;
			}
			.woocommerce-pagination>ul>li>a,
			.woocommerce-pagination>ul>li>span{
				color:<?php echo ozy_get_option('content_color');?> !important;
			}
			.menu-item-wc .widget_shopping_cart_content>ul.cart_list>li{
				border-color:<?php echo  $ozyHelper->change_opacity(ozy_get_option('primary_menu_font_color'),.2) ?>;
			}
			
			.woocommerce-page .button,
			body.woocommerce-page input[type=button],
			body.woocommerce-page input[type=submit],
			body.woocommerce-page button[type=submit]{
				background:<?php echo ozy_get_option('form_button_background_color')?> !important;
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_font_color'))?> !important;
				border:1px solid <?php echo ozy_get_option('form_button_background_color')?> !important;
			}
			.woocommerce-page .button:hover,
			body.woocommerce-page input[type=button]:hover,
			body.woocommerce-page input[type=submit]:hover,
			body.woocommerce-page button[type=submit]:hover{
				background:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_background_color_hover'))?> !important;
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_font_color_hover'))?> !important;
				border:1px solid <?php echo ozy_get_option('form_button_background_color_hover')?> !important;
			}
			
		<?php } ?>
		
			/* Primary Menu Styling
			/*-----------------------------------------------------------------------------------*/
		<?php
			$menu_logo_height = ozy_get_option('primary_menu_height', '60') . 'px';
		?>
			.sf-menu>li>a,#nav-primary,
			#nav-primary>nav>div>ul>li,
			#nav-primary>nav>div>ul>li>a,
			#nav-primary>nav>div>ul>li:before,
			#header .container #header-logo .header-logo{
				line-height:<?php echo $menu_logo_height ?>;
				height:<?php echo $menu_logo_height ?>;
			}
			#header .container #header-logo .header-logo,
			#nav-primary>nav>div>ul>li:first-child,
			#nav-primary>nav>div>ul>li:last-child,
			#nav-primary>nav>div>ul>li.menu-item-search,
			#nav-primary>nav>div>ul>li.menu-item-side-menu,
			#nav-primary>nav>div>ul>li.menu-item-wpml,
			#nav-primary>nav>div>ul>li.menu-item-wc,
			#header header {
				border-color:<?php echo ozy_get_option('primary_menu_font_color')?>;
			}
			#overlay-menu>button .lines,
			#overlay-menu>button .lines:before,
			#overlay-menu>button .lines:after{
				background:<?php echo ozy_get_option('primary_menu_font_color')?>;
			}
	    	#overlay-menu>button:hover .lines,
			#overlay-menu>button:hover .lines:before,
			#overlay-menu>button:hover .lines:after{
				background:<?php echo ozy_get_option('primary_menu_font_color_hover')?>;
			}
			#slide-menu,
			#slide-menu>a>span{
				line-height:<?php echo ozy_get_option('header_height') ?>px;
				height:<?php echo ozy_get_option('header_height') ?>px;
				width:<?php echo ozy_get_option('header_height') ?>px;
			}
			#slide-menu>a>span{
				color:<?php echo ozy_get_option('primary_menu_font_color_hover') ?>;
			}

			.mega-menu .sub-container {
				background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
			}
			<?php
				if(ozy_get_option('primary_menu_section_colors_transparent_header') !== '1') {
			?>
				#header {
					background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
				}
			<?php
				}
			?>	
			.sf-menu ul li:hover,
			.sf-menu ul li.sfHover,
			#header #slide-menu:hover{
				background-color:<?php echo ozy_get_option('primary_menu_background_color_hover') ?>;
			}
			.sf-menu .sf-mega,
			.sf-menu ul li,
			.sf-menu ul ul li,
			.sf-menu .sub-menu li:hover,
			.sf-menu .sub-menu li.sfHover,
			#header #slide-menu,
			.sf-menu .sub-menu .current-menu-parent{
				background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
			}
			#nav-primary .sf-menu>li::after{
				background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
			}
			#header-information-bar,
			.sf-menu a,.sf-menu>li:before,
			.menu-item-wc .sub-container *{
				<?php echo $ozyHelper->font_style_render(ozy_get_option('primary_menu_typography_font_face'), ozy_get_option('primary_menu_typography_font_weight'), ozy_get_option('primary_menu_typography_font_style'), ozy_get_option('primary_menu_typography_font_size') . 'px', ozy_get_option('primary_menu_typography_line_height') . 'em', ozy_get_option('primary_menu_font_color'));?>
			}
			
			#header-information-bar a,
			.sf-menu ul li:hover>a, 
			nav>div>ul>li.current-menu-item:before, 
			.sf-menu>li.current-menu-ancestor:before, 
			.sf-menu>li:hover:before,
			.sub-menu .current-menu-parent>a {
				color:<?php echo ozy_get_option('primary_menu_font_color_hover') ?>;
			}
			
			.sf-arrows .sf-with-ul:after,
			.sf-arrows>li:hover>.sf-with-ul:after{
				border-top-color: <?php echo ozy_get_option('primary_menu_font_color') ?>;
			}
			.header-logo>h1>a{
				color:<?php echo ozy_get_option('primary_menu_logo_color')?> !important;
			}			
			#header-information-bar{
				text-align:<?php echo ozy_get_option('primary_menu_infobar_align')?>;
			}			
			#header{
				border-color:<?php echo $ozyHelper->change_opacity(ozy_get_option('primary_menu_font_color'), '0.3')?>;
			}
		<?php
			if(ozy_get_option('primary_menu_align') === 'right') {
				echo '#nav-primary>nav>div>ul{text-align:right;}';
			}else if(ozy_get_option('primary_menu_align') === 'left') {
				echo '#nav-primary>nav>div>ul{text-align:left;}';
				echo '#header-logo{right:36px;}';
			}if(ozy_get_option('primary_menu_align') === 'center') {
				echo '#nav-primary>nav>div>ul{text-align:center;float:none;}';
			}

			if('mega' === $ozy_data->menu_type) {
		?>
			/*mega*/
			#nav-primary>nav>div>ul h4{
				<?php echo $ozyHelper->font_style_render(ozy_get_option('typography_heading_font_face'), '', '', '', '', ''); ?>;
			}
			#nav-primary>nav>div>ul>li:before,
			.sub-menu li>h4{
				color:<?php echo ozy_get_option('primary_menu_font_color') ?>;
			}
			.mega-menu li>a,
			.mega-menu-html-shortcode *:not(input){
				<?php echo $ozyHelper->font_style_render(ozy_get_option('primary_menu_typography_font_face'), 
				ozy_get_option('primary_menu_typography_font_weight'), 
				ozy_get_option('primary_menu_typography_font_style'), 
				ozy_get_option('primary_menu_typography_font_size') . 'px', 
				ozy_get_option('primary_menu_typography_line_height') . 'em', 
				ozy_get_option('primary_menu_font_color'));?>
			}
			.mega-menu li:hover>a,
			.mega-menu li:hover:before,
			.mega-menu li.current-menu-item>a,
			.mega-menu li.current-menu-item:before,
			.mega-menu li.current-menu-ancestor>a,
			.mega-menu li.current-menu-ancestor:before,
			#nav-primary>nav>div>ul ul>li.current_page_item>a,
			.mega-menu-html-shortcode *:not(input){
				color:<?php echo ozy_get_option('primary_menu_font_color_hover')?> !important;
			}
			#nav-primary>nav>div>ul .row>li{
				border-color:<?php echo $ozyHelper->change_opacity(ozy_get_option('primary_menu_font_color'), '.25') ?>;
			}
			<?php
			} else if('classic' === $ozy_data->menu_type) {
			?>
			/*classic*/
			.sf-menu ul li:hover, 
			.sf-menu ul li.sfHover, 
			#header #slide-menu:hover,
			#nav-primary>nav>div>ul ul>li.current_page_item>a {
				background-color:<?php echo ozy_get_option('primary_menu_background_color_hover') ?>;
			}
			.sf-menu .sf-mega,
			.sf-menu ul li, 
			.sf-menu ul ul li, 
			.sub-menu li:hover,
			.sub-menu li.sfHover, 
			#header #slide-menu, 
			.sub-menu .current-menu-parent{
				background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
			}
			#nav-primary .sf-menu>li::after{
				background-color:<?php echo ozy_get_option('primary_menu_background_color') ?>;
			}
			.sf-menu a{
				<?php echo $ozyHelper->font_style_render(ozy_get_option('primary_menu_typography_font_face'), 
				ozy_get_option('primary_menu_typography_font_weight'), 
				ozy_get_option('primary_menu_typography_font_style'), 
				ozy_get_option('primary_menu_typography_font_size') . 'px', 
				ozy_get_option('primary_menu_typography_line_height') . 'em', 
				ozy_get_option('primary_menu_font_color'));?>
			}
			.sf-menu>li:hover>a,
			.sf-menu ul li:hover>a,
			.current-menu-parent>a,
			.current-menu-ancestor>a,
			.current_page_item>a {
				color:<?php echo ozy_get_option('primary_menu_font_color_hover') ?>;
			}
			.sf-menu ul li:hover>a,
			.sf-menu ul .current-menu-parent>a,
			.sf-menu ul .current-menu-ancestor>a,
			.sf-menu ul .current_page_item>a {
				background-color:<?php echo ozy_get_option('primary_menu_background_color_hover') ?>;
			}
			.sf-arrows .sf-with-ul:after,
			.sf-arrows>li:hover>.sf-with-ul:after{
				border-top-color: <?php echo ozy_get_option('primary_menu_font_color') ?>;
			}
			<?php
			}
			
			if(ozy_get_option('primary_menu_section_colors_enable_alternate') === '1') { include('extended-primary-menu-css.php'); }
			?>

			/* Widgets
			/*-----------------------------------------------------------------------------------*/
			.widget li>a{
				color:<?php echo ozy_get_option('content_color'); ?> !important;
			}
			.widget li>a:hover{
				color:<?php echo ozy_get_option('content_color_alternate'); ?> !important;
			}
			.ozy-latest-posts>a>span{
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'),'.8') ?>;color:<?php echo ozy_get_option('content_background_color') ?>;
			}
			
			/* Page Styling and Typography
			/*-----------------------------------------------------------------------------------*/
			.content-color-alternate{
				color:<?php echo ozy_get_option('content_color_alternate'); ?> !important;
			}
			.content-color{
				color:<?php echo ozy_get_option('content_color'); ?> !important;
			}
			.ozy-footer-slider,
			.content-font,
			.ozy-header-slider,
			#content,
			#footer-widget-bar,
			#sidebar,
			#footer,
			input,
			select,
			textarea,
			.tooltipsy{
				<?php echo $ozyHelper->font_style_render(ozy_get_option('typography_font_face'), 
				ozy_get_option('typography_font_weight'), 
				ozy_get_option('typography_font_style'), 
				ozy_get_option('typography_font_size') . 'px', 
				ozy_get_option('typography_font_line_height') . 'em', 
				ozy_get_option('content_color'));?>
			}
			#content a:not(.ms-btn),
			#sidebar a,#footer a,
			.alternate-text-color,
			#footer-widget-bar>.container>.widget-area a:hover{
				color:<?php echo ozy_get_option('content_color_alternate');?>;
			}
			#footer #social-icons a,
			#ozy-share-div>a>span,
			.a-page-title,
			.page-pagination>a{
				color:<?php echo ozy_get_option('content_color');?> !important;
			}
			.page-pagination>.current{
				background-color:<?php echo ozy_get_option('primary_menu_separator_color') ?>;
			}
			.a-page-title:hover{
				border-color:<?php echo ozy_get_option('content_color');?> !important;
			}
			#page-title-wrapper h1,
			#page-title-wrapper h3,
			#header-logo h1,
			.nav-box a,
			#side-nav-bar a,
			#side-nav-bar h3,
			#content h1,
			#footer-widget-bar h1,
			#footer-widget-bar h2,
			#footer-widget-bar h3,
			#footer-widget-bar h4,
			#footer-widget-bar h5,
			#footer-widget-bar h6,
			#sidebar h1,
			#footer h1,
			#content h2,
			#sidebar h2,
			#footer h2,
			#content h3,
			#sidebar h3,
			#footer h3,
			#content h4,
			#sidebar h4,
			#footer h4,
			#content h5,
			#sidebar h5,
			#footer h5,
			#content h6,
			#sidebar h6,
			#footer h6,
			.heading-font,
			#logo,
			#tagline,
			div.overlay nav li a,
			div.overlay h3,
			.ozy-ajax-shoping-cart{
				<?php echo $ozyHelper->font_style_render(ozy_get_option('typography_heading_font_face'), '', '', '', '', ozy_get_option('content_color'));?>
			}
			#page-title-wrapper h1 {
					<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_title_font_weight_h1'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_title_h1_font_size') . 'px', 
				'1.5em', '', '', 
				ozy_get_option('typography_heading_font_ls_h1'));?>
			}
			#page-title-wrapper h3 {
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_subtitle_font_weight_h3'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_subtitle_h3_font_size') . 'px', 
				'1.5em', '', '',
				ozy_get_option('typography_heading_font_ls_h3'));?>;
			}			
			#content h1,
			#footer-widget-bar h1,
			#sidebar h1,
			#footer h1,
			#header-logo h1{
					<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h1'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h1_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h1', '1.5') . 'em', '', '', 
				ozy_get_option('typography_heading_font_ls_h1'));?>
			}
			#footer-widget-bar .widget-area h4,
			#sidebar .widget>h4 {
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h4'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h4_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h4', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h4'));?>
			}
			#content h2,
			#footer-widget-bar h2,
			#sidebar h2,
			#footer h2{
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h2'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h2_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h2', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h2'));?>;
			}
			#content h3,
			#footer-widget-bar h3,
			#sidebar h3,
			#footer h3{
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h3'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h3_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h3', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h3'));?>;
			}
			#content h4,
			#footer-widget-bar h4,
			#sidebar h4,
			#footer h4{
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h4'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h4_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h4', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h4'));?>;
			}
			#content h5,
			#footer-widget-bar h5,
			#sidebar h5,
			#footer h5{
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h5'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h5_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h5', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h5'));?>;
			}
			#content h6,
			#footer-widget-bar h6,
			#sidebar h6,
			#footer h6{
				<?php echo $ozyHelper->font_style_render('', 
				ozy_get_option('typography_heading_font_weight_h6'), 
				ozy_get_option('typography_heading_font_style'), 
				ozy_get_option('typography_heading_h6_font_size') . 'px', 
				ozy_get_option('typography_heading_line_height_h6', '1.5') . 'em', '', '',
				ozy_get_option('typography_heading_font_ls_h6'));?>;
			}
			#footer-widget-bar .widget a:hover,
			#sidebar .widget a:hover{
				color:<?php echo ozy_get_option('content_color')?>;
			}
			span.plus-icon>span{
				background-color:<?php echo ozy_get_option('content_color')?>;
			}
			<?php
			if(ozy_get_metabox('show_loader') == '1' && $ozy_data->device_type === 'computer') {
			?>
			/* Loader
			/*-----------------------------------------------------------------------------------*/
			#loaderMask{
				text-align:center;padding-top:20%;font-weight:300 !important;z-index:1001;
			}
			#loaderMask>div>span{
				font-size: 2em;color:#fff !important;position:absolute;top:50%;margin-top:-1em;right:20px;
			}
			#loaderMask>div{
				height:100%;position:absolute;top:0;left:0;background-color:<?php echo ozy_get_option('content_color_alternate'); ?> !important;
			}
			<?php
			}
			?>			

			/* Overlay
			/*-----------------------------------------------------------------------------------*/
			div.overlay{
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'), '.9'); ?> !important;
			}
			div.overlay div#social-icons>a,
			div.overlay #searchform,
			div.overlay h3 {
				border-color:<?php echo ozy_get_option('content_color_alternate3'); ?> !important;
			}
			div.overlay nav li a,
			div.overlay h3,
			div.overlay div#social-icons>a{
				color:<?php echo ozy_get_option('content_color_alternate3'); ?> !important;
			}		
			
			/* Forms
			/*-----------------------------------------------------------------------------------*/
			input:not([type=submit]):not([type=file]),
			textarea{
				background-color:<?php echo ozy_get_option('form_background_color')?>;
			}
			input:not([type=submit]):not([type=file]):hover,
			textarea:hover,
			input:not([type=submit]):not([type=file]):focus,
			textarea:focus{
				border-color:<?php echo ozy_get_option('content_color_alternate')?>;
			}
			.rsMinW .rsBullet span{
				background-color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_font_color'))?>;
			}
			.generic-button,
			.woocommerce-page .button,
			.rsMinW .rsArrowIcn,
			#to-top-button,
			.load_more_blog,
			input[type=button],
			input[type=submit],
			button[type=submit],
			.comment-body .reply>a,
			.tagcloud>a{
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_font_color'))?> !important;
				background-color:<?php echo ozy_get_option('form_button_background_color')?>;
				border:1px solid <?php echo ozy_get_option('form_button_background_color')?>;
			}
			.post-submeta>a.button:hover,
			.woocommerce-page .button:hover,
			.rsMinW .rsArrowIcn:hover,
			#to-top-button:hover,
			.load_more_blog:hover,
			input[type=button]:hover,
			input[type=submit]:hover,
			button[type=submit]:hover,
			.comment-body .reply>a:hover,
			.tagcloud>a:hover{
				background-color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_background_color_hover'))?>;
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_font_color_hover'))?> !important;
				border:1px solid <?php echo ozy_get_option('form_button_background_color_hover')?>;
			}			
			
			/* Blog Comments & Blog Stuff
			/*-----------------------------------------------------------------------------------*/
			.comment-body,
			#ozy-share-div>a{
				background-color:<?php echo ozy_get_option('content_background_color_alternate') ?>;
			}
			.post-submeta>div>div.button{
				background-color:<?php echo ozy_get_option('content_color') ?>;
			}
			.post-submeta>div>div.arrow{
				border-color: transparent <?php echo ozy_get_option('content_color') ?> transparent transparent;
			}
			.mega-entry-innerwrap .post-format,
			.post-title>span,
			.post-submeta>a>span,
			.simple-post-format>div>span{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
			}
			.featured-thumbnail-header p,
			.featured-thumbnail-header a,
			.featured-thumbnail-header h1{
				color:<?php echo ozy_get_option('content_color_alternate3') ?> !important;
			}
			.featured-thumbnail-header>div{
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'),'.4') ?>;
			}
			.featured-thumbnail>a,
			.ozy-related-posts .related-post-item>a{
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'),'.8') ?>;
			}
			.post-submeta>div>div.button>a>span{
				color:<?php echo ozy_get_option('content_background_color_alternate') ?>;
			}
			.post-meta p.g{
				color:<?php echo ozy_get_option('content_color_alternate2')?>;
			}	
			
			#single-blog-tags>a,
			.ozy-related-posts .caption,
			.ozy-related-posts .caption>h4>a{
				color:<?php echo ozy_get_option('content_background_color') ?> !important;
				background-color:<?php echo ozy_get_option('content_color') ?>;
			}
			#single-blog-tags>a:hover{
				color:<?php echo ozy_get_option('content_background_color') ?>;
				background-color:<?php echo ozy_get_option('content_color_alternate') ?>;
			}
	
			/*post formats*/
			.simple-post-format.post-excerpt-aside>div{
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color'),'.8')?>;
			}
			.simple-post-format>div{
				background-color:<?php echo ozy_get_option('content_color')?>;
			}
			.simple-post-format>div>span,
			.simple-post-format>div>h2,
			.simple-post-format>div>p,
			.simple-post-format>div>p>a,
			.simple-post-format>div>blockquote,
			.post-excerpt-audio>div>div{
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('content_background_color'))?> !important;
			}
			
			/* Shortcodes
			/*-----------------------------------------------------------------------------------*/
			.ozy-postlistwithtitle-feed>a:hover{
				background-color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_background_color_hover'))?>;
			}
			.ozy-postlistwithtitle-feed>a:hover *{
				color:<?php echo $ozyHelper->rgba2rgb(ozy_get_option('form_button_font_color_hover'))?> !important;
			}
			
			.ozy-accordion>h6.ui-accordion-header>span,
			.ozy-tabs .ozy-nav .ui-tabs-selected a,
			.ozy-tabs .ozy-nav .ui-tabs-active a,
			.ozy-toggle span.ui-icon{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?>;
			}
			.ozy-tabs .ozy-nav .ui-tabs-selected a,
			.ozy-tabs .ozy-nav .ui-tabs-active a{
				border-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
			}
			.ozy-tabs .ozy-nav li a{
				color:<?php echo ozy_get_option('content_color');?> !important;
			}
			
			/*owl carousel*/
			.ozy-owlcarousel .item.item-extended>a .overlay-one *,
			.ozy-owlcarousel .item.item-extended>a .overlay-two *{
				color:<?php echo ozy_get_option('content_color_alternate3') ?> !important;
			}
			.ozy-owlcarousel .item.item-extended>a .overlay-one-bg{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?>;
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'),.50) ?>;
			}
			.ozy-owlcarousel .item.item-extended>a .overlay-two{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?>;
				background-color:<?php echo $ozyHelper->hex2rgba(ozy_get_option('content_color_alternate'),.85) ?>;
			}
			.owl-theme .owl-controls .owl-page.active span{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?>;
			}
			
			.ozy-button.auto,.wpb_button.wpb_ozy_auto{
				background-color:<?php echo ozy_get_option('form_button_background_color') ?>;
				color:<?php echo ozy_get_option('form_button_font_color')?>;
			}
			.ozy-button.auto:hover,
			.wpb_button.wpb_ozy_auto:hover{
				border-color:<?php echo ozy_get_option('form_button_background_color_hover') ?>;
				color:<?php echo ozy_get_option('form_button_font_color_hover') ?> !important;
				background-color:<?php echo ozy_get_option('form_button_background_color_hover')?>;
			}
			
			.ozy-icon.circle{
				background-color:<?php echo ozy_get_option('content_color') ?>;
			}
			.ozy-icon.circle2{
				color:<?php echo ozy_get_option('content_color') ?>;
				border-color:<?php echo ozy_get_option('content_color') ?>;
			}
			a:hover>.ozy-icon.square,
			a:hover>.ozy-icon.circle{
				background-color:transparent !important;color:<?php echo ozy_get_option('content_color') ?>;
			}
			a:hover>.ozy-icon.circle2{
				color:<?php echo ozy_get_option('content_color') ?>;
				border-color:transparent !important;
			}
	
			.wpb_content_element .wpb_tabs_nav li.ui-tabs-active{
				background-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
				border-color:<?php echo ozy_get_option('content_color_alternate') ?> !important;
			}
			.wpb_content_element .wpb_tabs_nav li,
			.wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header{
				border-color:<?php echo ozy_get_option('primary_menu_separator_color') ?> !important;
			}
			.wpb_content_element .wpb_tabs_nav li.ui-tabs-active>a{
				color:<?php echo ozy_get_option('content_background_color');?> !important;
			}
			.wpb_content_element .wpb_tour_tabs_wrapper .wpb_tabs_nav a,
			.wpb_content_element .wpb_accordion_header a{
				color:<?php echo ozy_get_option('content_color');?> !important;
			}
			.wpb_content_element .wpb_accordion_wrapper .wpb_accordion_header{
				font-size:<?php echo ozy_get_option('typography_font_size') ?>px !important;
				line-height:<?php echo ozy_get_option('typography_font_line_height') ?>em !important
			}			
			.pricing-table .pricing-table-column+.pricetable-featured .pricing-price{
				color:<?php echo ozy_get_option('content_color_alternate')?> !important;
			}
			.pricing-table li,
			.pricing-table .pricing-table-column:first-child,
			.pricing-table .pricing-table-column{
				border-color:<?php echo ozy_get_option('primary_menu_separator_color') ?> !important;
			}
			.pricing-table .pricing-table-column+.pricetable-featured,
			.pricing-table .pricing-table-column.pricetable-featured:first-child{
				border:4px solid <?php echo ozy_get_option('content_color_alternate') ?> !important;
			}
			
			/* Shared Border Color
			/*-----------------------------------------------------------------------------------*/
			.ozy-border-color,
			#ozy-share-div.ozy-share-div-blog,
			.portfolio-details-part-two,
			.page-content table td,
			#content table tr,
			.post-content table td,
			.ozy-toggle .ozy-toggle-title,
			.ozy-toggle-inner,
			.ozy-tabs .ozy-nav li a,
			.ozy-accordion>h6.ui-accordion-header,
			.ozy-accordion>div.ui-accordion-content,
			input:not([type=submit]):not([type=file]),
			textarea,.chat-row .chat-text,
			#sidebar .widget>h4,
			#sidebar .widget li,
			.ozy-content-divider,
			#post-author,
			.single-post .post-submeta,
			.widget ul ul,blockquote,
			.page-pagination>a,
			.page-pagination>span,
			.woocommerce-pagination>ul>li>*,
			select,
			body.search article.result,
			div.rssSummary{
				border-color:<?php echo ozy_get_option('primary_menu_separator_color') ?>;
			}
		
			/* Specific heading styling
			/*-----------------------------------------------------------------------------------*/	
		<?php
			$use_no_page_title_margin = $custom_header = false;
			if(!is_search()) {
				$post_id = ozy_get_woocommerce_page_id();		
				if($post_id > 0) {
					echo '.woocommerce-page article .page-title{
						display:none !important
					}';
				}			
				if(ozy_get_metabox('use_custom_title', 0, $post_id) == '1') {
					$_var = 'use_custom_title_group.0.ozy_wpcloud_meta_page_custom_title_';
					$h_height 	= ozy_get_metabox($_var . 'height', '240', $post_id);
					$h_bgcolor 	= ozy_get_metabox($_var . 'bgcolor', '', $post_id);
					$h_bgimage 	= ozy_get_metabox($_var . 'bg', '', $post_id);
					$h_bg_xpos	= ozy_get_metabox($_var . 'bg_x_position', '', $post_id);
					$h_bg_ypos	= ozy_get_metabox($_var . 'bg_y_position', '', $post_id);
					
					$h_css = (int)$h_height > 0 ? 'height:'. $h_height .'px;' : '';
					$h_css.= (int)$h_height > 0 ? $ozyHelper->background_style_render($h_bgcolor, $h_bgimage, 'cover', 'repeat', 'inherit', true, $h_bg_xpos, $h_bg_ypos) : '';
					echo '#page-title-wrapper{'. $h_css .'}';					
					$h_title_color = ozy_get_metabox($_var . 'color', 0, $post_id);
					if($h_title_color) {
						echo '#page-title-wrapper>div>h1{
							color:'. $h_title_color .';
						}';
					}
					$h_sub_title_color = ozy_get_metabox('use_custom_title_group.0.ozy_wpcloud_meta_page_custom_sub_title_color', 0, $post_id);
					if($h_sub_title_color) {
						echo '#page-title-wrapper>div>h3{
							color:'. $h_sub_title_color .';
						}';
					}
					
					$h_title_position = ozy_get_metabox($_var . 'position', 0, $post_id);
					if($h_title_position) {
						echo '#page-title-wrapper>div>h1,
						#page-title-wrapper>div>h3{
							text-align:'. $h_title_position .';
						}';
					}
					echo 'body.has-page-title #main>.container {
						padding-top: 35px;
					}';
					$custom_header = true;
				}else{
					echo '#page-title-wrapper{
						height:100px
					}';
				}
			}else{
				echo '#page-title-wrapper{
					height:100px
				}';
			}

			if(is_home() || is_search() || is_archive() || is_category() || is_tag() || is_author()) {
				echo '#main{
					margin-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px;
				}';
			}
			if((is_page())
			&& (!ozy_get_metabox('no_menu_space', 0, $post_id))
			&& (!ozy_check_is_woocommerce_shop_page())
			) {
				echo '#main{
					margin-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px;
				}';
				$use_no_page_title_margin = true;
			}
			
			if(ozy_get_metabox('use_alternate_menu', 0, $post_id) !== '1' && !$use_no_page_title_margin) {
				echo 'body:not(.ozy-alternate-menu) #page-title-wrapper>div{
						margin-top:'. (((int)ozy_get_option('primary_menu_height')>0?((int)ozy_get_option('primary_menu_height') / 2):0)) .'px
					}';
			}
			if(ozy_get_metabox('hide_title', 0, $post_id) === '1' && ozy_get_metabox('no_menu_space', 0, $post_id) === '1') {
				echo 'body.ozy-page-locked #main{
					margin-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px
				}';
			}else if(ozy_get_metabox('no_menu_space', 0, $post_id) !== '1' && is_page()){
				echo 'body.ozy-page-locked #main,
				body.no-page-title #main{
					margin-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px
				}';
			}
			if(is_single() && get_post_type() === 'post') {
				echo 'body.single #main>.container:not(.has-super-header){
					padding-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px
				}';				
			}else if(is_single() && get_post_type() !== 'post') {
				echo 'body.single #main{
					margin-top:'. ((int)ozy_get_option('primary_menu_height')+70) .'px
				}';				
			}
			
			if(ozy_get_metabox('use_no_content_padding') === '1') {
				echo '#main>.container{
					padding-top:0!important;
				}';
			}
		?>		
			
			/* Conditional Page Template Styles
			/*-----------------------------------------------------------------------------------*/
			<?php
			if(is_page_template('page-metro-blog.php') || 
			is_page_template('page-classic-gallery.php') || 
			is_page_template('page-thumbnail-gallery.php') || 
			is_page_template('page-nearby-gallery.php') || 
			is_page_template('page-revo-full.php')) {
			?>
			#main>.container.no-vc,
			#content,
			#content.no-vc{
				max-width:100% !important;
				width:100% !important;
				padding-left:0 !important;
				padding-right:0 !important;
				padding-top:0 !important;
				padding-bottom:0 !important;
			}				
			<?php
			}
			$ozyHelper->render_custom_fonts();
			?>		
		</style>
		<?php
		$ozyHelper->render_google_fonts();
	}
	
	add_action( 'wp_head', 'ozy_wpcloud_style', 99 );
endif;
?>