<?php

/*--------------------------------------------------------------
Custom Classes
--------------------------------------------------------------*/

if ( !function_exists( 'gp_body_classes' ) ) {
	function gp_body_classes( $classes ) {

		global $gp, $post;
			
		$classes[] = 'gp-theme';
		$classes[] = $gp['theme_layout'];
		$classes[] = $gp['responsive'];
		$classes[] = $gp['retina'];
		$classes[] = $gp['smooth_scrolling'];
		$classes[] = $gp['back_to_top'];
		$classes[] = $gp['fixed_header'];	
		$classes[] = $gp['header_resize'];
		$classes[] = $gp['header_layout'];
		$classes[] = $gp['header_overlay'];
		$classes[] = $gp['top_header'];
		$classes[] = $GLOBALS['gp_title'];
		$classes[] = $GLOBALS['gp_layout'];

		if ( ( is_singular() && get_post_meta( $post->post_parent, '_wp_page_template', true ) == 'hub-template.php' ) && ! is_archive() && ! is_search() ) { 		
			$classes[] = 'gp-hub-child-page';
		}
						
		return $classes;
		
	}
}
add_filter( 'body_class', 'gp_body_classes' );


/*--------------------------------------------------------------
Inline Styling
--------------------------------------------------------------*/

global $gp;
					
$custom_css = '';

if ( $gp['top_header'] == 'gp-top-header' ) {
	$gp_top_header = 40;
} else {
	$gp_top_header = '';
}

if ( get_post_meta( get_the_ID(), 'flexslider_dimensions', true ) ) {
	$gp_flexslider_height = get_post_meta( get_the_ID(), 'flexslider_dimensions', true );
	$gp_flexslider_height = $gp_flexslider_height['height'];
} else {
	$gp_flexslider_height = '450';
}

if ( get_post_meta( get_the_ID(), 'flexslider_mobile_dimensions', true ) ) {	
	$gp_flexslider_mobile_height = get_post_meta( get_the_ID(), 'flexslider_mobile_dimensions', true );
	$gp_flexslider_mobile_height = $gp_flexslider_mobile_height['height'];
} else {
	$gp_flexslider_mobile_height = '200';
}

$custom_css .= '
#fixed-header-padding{padding-top: ' . $gp['main_header_height']['height'] . ';}
#logo img{width: ' . $gp['logo_dimensions']['width'] . 'px; height: ' . $gp['logo_dimensions']['height'] . 'px;}
.large-header .gp-container{padding-top: ' . $gp['title_padding']['padding-top'] . 'px;padding-bottom: ' . $gp['title_padding']['padding-bottom'] . 'px;}
.gp-active{color: ' . $gp['general_link']['hover'] . ';}
.gp-theme #bbpress-forums ul.bbp-lead-topic,.gp-theme #bbpress-forums ul.bbp-topics,.gp-theme #bbpress-forums ul.bbp-forums,.gp-theme #bbpress-forums ul.bbp-replies,.gp-theme #bbpress-forums ul.bbp-search-results,.gp-theme #bbpress-forums li.bbp-header,.gp-theme #bbpress-forums li.bbp-footer,.gp-theme #bbpress-forums li.bbp-ul.forum,.gp-theme #bbpress-forums li.bbp-ul.topic,.gp-theme #bbpress-forums .bbp-forums-list,.gp-theme #bbpress-forums li.bbp-body ul.forum,.gp-theme #bbpress-forums li.bbp-body ul.topic div.bbp-forum-header,.gp-theme div.bbp-topic-header,.gp-theme div.bbp-reply-header{border-color: ' . $gp['general_divider']['border-color'] . ';}
.score-spinner{
background: ' . $gp['high_rating_gradient']['to'] . ';
background: -moz-linear-gradient(' . $gp['low_rating_gradient']['to'] . ' 0%,' . $gp['low_rating_gradient']['from'] . '40%);
background: -webkit-gradient(color-stop(0%,' . $gp['low_rating_gradient']['to'] . ' ), color-stop(40%,' . $gp['low_rating_gradient']['from'] . ' ));
background: -webkit-linear-gradient(' . $gp['low_rating_gradient']['to'] . '  0%,' . $gp['low_rating_gradient']['from'] . '  40%);
background: -o-linear-gradient(' . $gp['low_rating_gradient']['to'] . '  0%,' . $gp['low_rating_gradient']['from'] . '  40%);
background: -ms-linear-gradient(' . $gp['low_rating_gradient']['to'] . '  0%,' . $gp['low_rating_gradient']['from'] . ' 40%);
background: linear-gradient(' . $gp['low_rating_gradient']['to'] . '  0%,' . $gp['low_rating_gradient']['from'] . ' 40%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="' . $gp['low_rating_gradient']['from'] . '", endColorstr="' . $gp['low_rating_gradient']['to'] . '",GradientType=1 );
}
.no-score-clip-1 .score-spinner{
background: ' . $gp['high_rating_gradient']['to'] . ';
background: -moz-linear-gradient(' . $gp['high_rating_gradient']['to'] . ' 0%,' . $gp['high_rating_gradient']['from'] . '40%);
background: -webkit-gradient(color-stop(0%,' . $gp['high_rating_gradient']['to'] . ' ), color-stop(40%,' . $gp['high_rating_gradient']['from'] . ' ));
background: -webkit-linear-gradient(' . $gp['high_rating_gradient']['to'] . '  0%,' . $gp['high_rating_gradient']['from'] . '  40%);
background: -o-linear-gradient(' . $gp['high_rating_gradient']['to'] . '  0%,' . $gp['high_rating_gradient']['from'] . '  40%);
background: -ms-linear-gradient(' . $gp['high_rating_gradient']['to'] . '  0%,' . $gp['high_rating_gradient']['from'] . ' 40%);
background: linear-gradient(' . $gp['high_rating_gradient']['to'] . '  0%,' . $gp['high_rating_gradient']['from'] . ' 40%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="' . $gp['high_rating_gradient']['from'] . '", endColorstr="' . $gp['high_rating_gradient']['to'] . '",GradientType=1 );
}
.no-score-clip-2 .score-filler{
background: ' . $gp['high_rating_gradient']['to'] . ';
background: -moz-linear-gradient(' . $gp['low_rating_gradient']['from'] . ' 0%,' . $gp['low_rating_gradient']['to'] . '40%);
background: -webkit-gradient(color-stop(0%,' . $gp['low_rating_gradient']['from'] . ' ), color-stop(40%,' . $gp['low_rating_gradient']['to'] . ' ));
background: -webkit-linear-gradient(' . $gp['low_rating_gradient']['from'] . '  0%,' . $gp['low_rating_gradient']['to'] . '  40%);
background: -o-linear-gradient(' . $gp['low_rating_gradient']['from'] . '  0%,' . $gp['low_rating_gradient']['to'] . '  40%);
background: -ms-linear-gradient(' . $gp['low_rating_gradient']['from'] . '  0%,' . $gp['low_rating_gradient']['to'] . ' 40%);
background: linear-gradient(' . $gp['low_rating_gradient']['from'] . '  0%,' . $gp['low_rating_gradient']['to'] . ' 40%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="' . $gp['low_rating_gradient']['to'] . '", endColorstr="' . $gp['low_rating_gradient']['from'] . '",GradientType=1 );
}
select{background-color: ' . $gp['input_bg']['background-color'] . ';}
.gp-responsive #sidebar{border-color: ' . $gp['input_border']['border-color'] . ';}
.gp-slider .slide-image {
height: ' . $gp_flexslider_height . 'px;
}';

if ( function_exists( 'bp_is_active' ) OR function_exists( 'is_bbpress' ) ) {
	$custom_css .= '.gp-theme #bbpress-forums ul.bbp-lead-topic,.gp-theme #bbpress-forums ul.bbp-topics,.gp-theme #bbpress-forums ul.bbp-forums,.gp-theme #bbpress-forums ul.bbp-replies,.gp-theme #bbpress-forums ul.bbp-search-results,.gp-theme #bbpress-forums li.bbp-header,.gp-theme #bbpress-forums li.bbp-footer,.gp-theme #bbpress-forums li.bbp-ul.forum,.gp-theme #bbpress-forums li.bbp-ul.topic,.gp-theme #bbpress-forums .bbp-forums-list,.gp-theme #bbpress-forums li.bbp-body ul.forum,.gp-theme #bbpress-forums li.bbp-body ul.topic div.bbp-forum-header,.gp-theme div.bbp-topic-header,.gp-theme div.bbp-reply-header{border-color: ' . $gp['general_divider']['border-color'] . ';}
	.gp-theme #buddypress button,.gp-theme #buddypress a.button,.gp-theme #buddypress input[type=submit],.gp-theme #buddypress div:not(.quicktags-toolbar) input[type=button],.gp-theme #buddypress input[type=reset],.gp-theme #buddypress ul.button-nav li a,.gp-theme #buddypress div.generic-button a,.gp-theme #buddypress .comment-reply-link,a.bp-title-button,.gp-theme #buddypress a.bp-primary-action:hover span,.gp-theme #buddypress #reply-title small a:hover span,.gp-theme #buddypress .activity-list li.load-more a,.gp-theme #buddypress div.item-list-tabs ul li.selected a,.gp-theme #buddypress div.item-list-tabs ul li.current a,.gp-theme #buddypress div.item-list-tabs ul li a span {background: ' . $gp['button_bg']['background-color'] . ';}
	.gp-theme #buddypress div.activity-meta a,.gp-theme #buddypress .acomment-options a,.gp-theme #buddypress .standard-form div.checkbox label,.gp-theme #buddypress .standard-form div.radio label,.gp-theme .widget.buddypress div.item-title a,.gp-theme .widget.buddypress div.item-options a {color: ' . $gp['general_typography']['color'] . ';}
	.gp-theme #buddypress button:hover,.gp-theme #buddypress a.button:hover,.gp-theme #buddypress a.button:focus,.gp-theme #buddypress input[type=submit]:hover,.gp-theme #buddypress div:not(.quicktags-toolbar) input[type=button]:hover,.gp-theme #buddypress input[type=reset]:hover,.gp-theme #buddypress ul.button-nav li a:hover,.gp-theme #buddypress ul.button-nav li.current a,.gp-theme #buddypress div.generic-button a:hover,.gp-theme #buddypress .comment-reply-link:hover,.gp-theme #buddypress a.bp-primary-action span,.gp-theme #buddypress #reply-title small a span,.gp-theme #buddypress .activity-list li.load-more a:hover,.gp-theme #buddypress div.item-list-tabs ul li:hover a span{
	background: ' . $gp['button_bg_hover']['background-color'] . ';}
	.gp-theme #buddypress button,.gp-theme #buddypress a.button,.gp-theme #buddypress input[type=submit],.gp-theme #buddypress div:not(.quicktags-toolbar) input[type=button],.gp-theme #buddypress input[type=reset],.gp-theme #buddypress ul.button-nav li a,.gp-theme #buddypress div.generic-button a,.gp-theme #buddypress .comment-reply-link,a.bp-title-button,.gp-theme #buddypress button:hover,.gp-theme #buddypress a.button:hover,.gp-theme #buddypress a.button:focus,.gp-theme #buddypress input[type=submit]:hover,.gp-theme #buddypress div:not(.quicktags-toolbar) input[type=button]:hover,.gp-theme #buddypress input[type=reset]:hover,.gp-theme #buddypress ul.button-nav li a:hover,.gp-theme #buddypress ul.button-nav li.current a,.gp-theme #buddypress div.generic-button a:hover,.gp-theme #buddypress .comment-reply-link:hover #buddypress a.bp-primary-action span,.gp-theme #buddypress .activity-list li.load-more a,.gp-theme #buddypress div.item-list-tabs ul li.selected a,.gp-theme #buddypress div.item-list-tabs ul li.current a,.gp-theme #buddypress div.item-list-tabs ul li a span {color: ' . $gp['button_typography']['color'] . ';}
	.gp-theme #buddypress .activity-list .activity-content .activity-header,.gp-theme #buddypress .activity-list .activity-content .comment-header,.gp-theme #buddypress span.activity,.gp-theme #buddypress a.activity-time-since,.gp-theme .widget.buddypress span.activity {color: ' . $gp['post_meta_color'] . ';}
	.gp-theme #buddypress div.item-list-tabs ul li.selected a span,.gp-theme #buddypress div.item-list-tabs ul li.current a span,.gp-theme #buddypress .standard-form textarea,.gp-theme #buddypress .standard-form input[type=text],.gp-theme #buddypress .standard-form input[type=text],.gp-theme #buddypress .standard-form input[type=color],.gp-theme #buddypress .standard-form input[type=date],.gp-theme #buddypress .standard-form input[type=datetime],.gp-theme #buddypress .standard-form input[type=datetime-local],.gp-theme #buddypress .standard-form input[type=email],.gp-theme #buddypress .standard-form input[type=month],.gp-theme #buddypress .standard-form input[type=number],.gp-theme #buddypress .standard-form input[type=range],.gp-theme #buddypress .standard-form input[type=search],.gp-theme #buddypress .standard-form input[type=tel],.gp-theme #buddypress .standard-form input[type=time],.gp-theme #buddypress .standard-form input[type=url],.gp-theme #buddypress .standard-form input[type=week],.gp-theme #buddypress .standard-form input[type=password],.gp-theme #buddypress .standard-form input[type=text]:focus,.gp-theme #buddypress .standard-form textarea:focus,.gp-theme #buddypress .standard-form select:focus,.gp-theme #buddypress .dir-search input[type=search],.gp-theme #buddypress .dir-search input[type=text],.gp-theme #buddypress form#whats-new-form textarea,.gp-theme #buddypress div.activity-comments form .ac-textarea {background: ' . $gp['input_bg']['background-color'] . ';}
	select,.gp-theme #buddypress .standard-form select {background-color: ' . $gp['input_bg']['background-color'] . ';}
	.gp-theme #buddypress .standard-form textarea,.gp-theme #buddypress .standard-form input[type=text],.gp-theme #buddypress .standard-form input[type=text],.gp-theme #buddypress .standard-form input[type=color],.gp-theme #buddypress .standard-form input[type=date],.gp-theme #buddypress .standard-form input[type=datetime],.gp-theme #buddypress .standard-form input[type=datetime-local],.gp-theme #buddypress .standard-form input[type=email],.gp-theme #buddypress .standard-form input[type=month],.gp-theme #buddypress .standard-form input[type=number],.gp-theme #buddypress .standard-form input[type=range],.gp-theme #buddypress .standard-form input[type=search],.gp-theme #buddypress .standard-form input[type=tel],.gp-theme #buddypress .standard-form input[type=time],.gp-theme #buddypress .standard-form input[type=url],.gp-theme #buddypress .standard-form input[type=week],.gp-theme #buddypress .standard-form select,.gp-theme #buddypress .standard-form input[type=password],.gp-theme #buddypress .dir-search input[type=search],.gp-theme #buddypress .dir-search input[type=text],.gp-theme #buddypress div.activity-comments form .ac-textarea, .gp-theme .bbp-the-content.wp-editor-area {border-color: ' . $gp['input_border']['border-color'] . ';}';
}

if ( function_exists( 'is_woocommerce' ) ) {
	$custom_css .= '.gp-theme .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,.gp-theme .woocommerce #content div.product .woocommerce-tabs ul.tabs li.active a,.gp-theme.woocommerce-page div.product .woocommerce-tabs ul.tabs li.active a,.gp-theme.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li.active a{border-bottom-color: ' . $gp['page_content_bg']['background-color'] . ';}
	.gp-theme .woocommerce a.button,.gp-theme .woocommerce button.button,.gp-theme .woocommerce input.button,.gp-theme .woocommerce #respond input#submit,.gp-theme .woocommerce #content input.button,.gp-theme.woocommerce-page a.button,.gp-theme.woocommerce-page button.button,.gp-theme.woocommerce-page input.button,.gp-theme.woocommerce-page #respond input#submit,.gp-theme.woocommerce-page #content input.button,.woocommerce #respond input#submit.alt.disabled,.woocommerce #respond input#submit.alt.disabled:hover,.woocommerce #respond input#submit.alt:disabled,.woocommerce #respond input#submit.alt:disabled:hover,.woocommerce #respond input#submit.alt:disabled[disabled],.woocommerce #respond input#submit.alt:disabled[disabled]:hover,.woocommerce a.button.alt.disabled,.woocommerce a.button.alt.disabled:hover,.woocommerce a.button.alt:disabled,.woocommerce a.button.alt:disabled:hover,.woocommerce a.button.alt:disabled[disabled],.woocommerce a.button.alt:disabled[disabled]:hover,.woocommerce button.button.alt.disabled,.woocommerce button.button.alt.disabled:hover,.woocommerce button.button.alt:disabled,.woocommerce button.button.alt:disabled:hover,.woocommerce button.button.alt:disabled[disabled],.woocommerce button.button.alt:disabled[disabled]:hover,.woocommerce input.button.alt.disabled,.woocommerce input.button.alt.disabled:hover,.woocommerce input.button.alt:disabled,.woocommerce input.button.alt:disabled:hover,.woocommerce input.button.alt:disabled[disabled],.woocommerce input.button.alt:disabled[disabled]:hover,.gp-theme .woocommerce .widget_price_filter .ui-slider .ui-slider-handle,.gp-theme.woocommerce-page .widget_price_filter .ui-slider .ui-slider-handle{background: ' . $gp['button_bg']['background-color'] . ';}
	.gp-theme .woocommerce ul.products li.product h3,.gp-theme #content .woocommerce ul.products li.product h3,.gp-theme.woocommerce-page ul.products li.product h3,.gp-theme.woocommerce-page #content ul.products li.product h3,.gp-theme .woocommerce table.cart a.remove:hover,.gp-theme .woocommerce #content table.cart a.remove:hover,.gp-theme.woocommerce-page table.cart a.remove:hover,.gp-theme.woocommerce-page #content table.cart a.remove:hover{color: ' . $gp['general_typography']['color'] . ';}
	.gp-theme .woocommerce a.button:hover,.gp-theme .woocommerce button.button:hover,.gp-theme .woocommerce input.button:hover,.gp-theme .woocommerce #respond input#submit:hover,.gp-theme .woocommerce #content input.button:hover,.gp-theme.woocommerce-page a.button:hover,.gp-theme.woocommerce-page button.button:hover,.gp-theme.woocommerce-page input.button:hover,.gp-theme.woocommerce-page #respond input#submit:hover,.gp-theme.woocommerce-page #content input.button:hover,.gp-theme .woocommerce .widget_layered_nav_filters ul li a[type=button]:hover{
	background: ' . $gp['button_bg_hover']['background-color'] . ';}
	.gp-theme .woocommerce .widget_layered_nav ul li.chosen a,.gp-theme.woocommerce-page .widget_layered_nav ul li.chosen a{background-color: ' . $gp['button_bg_hover']['background-color'] . ';}
	.gp-theme .woocommerce .quantity .plus,.gp-theme .woocommerce .quantity .minus,.gp-theme .woocommerce #content .quantity .plus,.gp-theme .woocommerce #content .quantity .minus,.gp-theme.woocommerce-page .quantity .plus,.gp-theme.woocommerce-page .quantity .minus,.gp-theme.woocommerce-page #content .quantity .plus,.gp-theme.woocommerce-page #content .quantity .minus,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container-single .chzn-single,.gp-theme.woocommerce-page .chosen-container-single .chosen-single,.gp-theme .woocommerce .widget_layered_nav ul small.count,.gp-theme.woocommerce-page .widget_layered_nav ul small.count {color: ' . $gp['general_typography']['color'] . ';}
	.gp-theme .woocommerce a.button,.gp-theme .woocommerce button.button,.gp-theme .woocommerce input.button,.gp-theme .woocommerce #respond input#submit,.gp-theme .woocommerce #content input.button,.gp-theme.woocommerce-page a.button,.gp-theme.woocommerce-page button.button,.gp-theme.woocommerce-page input.button,.gp-theme.woocommerce-page #respond input#submit,.gp-theme.woocommerce-page #content input.button,.gp-theme .woocommerce .widget_layered_nav ul li.chosen a,.gp-theme.woocommerce-page .widget_layered_nav ul li.chosen a{color: ' . $gp['button_typography']['color'] . ';}
	.gp-theme.woocommerce-page .product_meta{color: ' . $gp['post_meta_color'] . ';}
	.gp-theme .woocommerce .quantity .plus,.gp-theme .woocommerce .quantity .minus,.gp-theme .woocommerce #content .quantity .plus,.gp-theme .woocommerce #content .quantity .minus,.gp-theme.woocommerce-page .quantity .plus,.gp-theme.woocommerce-page .quantity .minus,.gp-theme.woocommerce-page #content .quantity .plus,.gp-theme.woocommerce-page #content .quantity .minus,.gp-theme .woocommerce div.product .woocommerce-tabs ul.tabs li a,.gp-theme .woocommerce #content div.product .woocommerce-tabs ul.tabs li a,.gp-theme.woocommerce-page div.product .woocommerce-tabs ul.tabs li a,.gp-theme.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li a,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container-single .chzn-single,.gp-theme.woocommerce-page .chosen-container-single .chosen-single,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container .chzn-drop,.gp-theme.woocommerce-page .chosen-container .chosen-drop,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container-single .chzn-search input,.gp-theme.woocommerce-page .chosen-container-single .chosen-search input{background: ' . $gp['input_bg']['background-color'] . ';}
	.gp-theme .woocommerce .quantity .plus,.gp-theme .woocommerce .quantity .minus,.gp-theme .woocommerce #content .quantity .plus,.gp-theme .woocommerce #content .quantity .minus,.gp-theme.woocommerce-page .quantity .plus,.gp-theme.woocommerce-page .quantity .minus,.gp-theme.woocommerce-page #content .quantity .plus,.gp-theme.woocommerce-page #content .quantity .minus,.gp-theme .woocommerce .quantity input.qty,.gp-theme .woocommerce #content .quantity input.qty,.gp-theme.woocommerce-page .quantity input.qty,.gp-theme.woocommerce-page #content .quantity input.qty,.gp-theme .woocommerce div.product .woocommerce-tabs ul.tabs:before,.gp-theme .woocommerce #content div.product .woocommerce-tabs ul.tabs:before,.gp-theme.woocommerce-page div.product .woocommerce-tabs ul.tabs:before,.gp-theme.woocommerce-page #content div.product .woocommerce-tabs ul.tabs:before,.gp-theme .woocommerce div.product .woocommerce-tabs ul.tabs li a,.gp-theme .woocommerce #content div.product .woocommerce-tabs ul.tabs li a,.gp-theme.woocommerce-page div.product .woocommerce-tabs ul.tabs li a,.gp-theme.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li a,#main-nav .dropdowncart li .total,#main-nav .dropdowncart li .dropdowncart-buttons,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container-single .chzn-single,.gp-theme.woocommerce-page .chosen-container-single .chosen-single,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container .chzn-drop,.gp-theme.woocommerce-page .chosen-container .chosen-drop,.gp-theme.woocommerce-page.woocommerce-checkout .chzn-container-single .chzn-search input,.gp-theme.woocommerce-page .chosen-container-single .chosen-search input,.gp-theme .woocommerce form .form-row textarea,.gp-theme.woocommerce-page form .form-row textarea{border-color: ' . $gp['input_border']['border-color'] . ';}';
}

$custom_css .= '@media only screen and (max-width: 1023px) {
	.gp-responsive #main-header {height: ' . round( $gp['main_header_height']['height'] / $gp['header_size_reduction'] ) . 'px!important;}
	.gp-responsive #fixed-header-padding {padding-top: ' . round( $gp['main_header_height']['height'] / $gp['header_size_reduction'] ) . 'px!important;}
	.gp-responsive #logo {margin: ' . round( $gp['logo_spacing']['margin-top'] / $gp['header_size_reduction'] ) . 'px ' . round( $gp['logo_spacing']['margin-right'] / $gp['header_size_reduction'] ) . 'px ' . round( $gp['logo_spacing']['margin-bottom'] / $gp['header_size_reduction'] ) . 'px ' . round( $gp['logo_spacing']['margin-left'] / $gp['header_size_reduction'] ) . 'px; width: ' . round( $gp['logo_dimensions']['width'] / $gp['header_size_reduction'] ) . 'px; height: ' . round( $gp['logo_dimensions']['height'] / $gp['header_size_reduction'] ) . 'px;}
	.gp-responsive #logo img {width: ' . round( $gp['logo_dimensions']['width'] / $gp['header_size_reduction'] ) . 'px; height: ' . ( $gp['logo_dimensions']['height'] / $gp['header_size_reduction'] ) . 'px;}
	.gp-responsive:not(.gp-no-large-title).gp-header-overlay #mobile-nav {padding-top: ' . round( ( $gp['main_header_height']['height'] / $gp['header_size_reduction'] ) + $gp_top_header ) . 'px;}
	.gp-responsive .large-header .gp-container {
	padding-top: ' .  round( $gp['title_padding']['padding-top'] / $gp['header_size_reduction'] ) . 'px;
	padding-bottom: ' .  round( $gp['title_padding']['padding-bottom'] / $gp['header_size_reduction'] ) . 'px;
	}
}
@media only screen and (max-width: 767px) {
	.gp-responsive .gp-slider .slide-image {
	height: ' . $gp_flexslider_mobile_height . 'px !important;
	}	
}	
@media only screen and (max-width: 320px) {
	.gp-responsive.gp-theme .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,.gp-responsive.gp-theme .woocommerce #content div.product .woocommerce-tabs ul.tabs li.active a,.gp-responsive.gp-theme.woocommerce-page div.product .woocommerce-tabs ul.tabs li.active a,.gp-responsive.gp-theme.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li.active a {border-color: ' . $gp['input_border']['border-color'] . ';}}
	hr,.gp-theme .woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,.gp-theme.woocommerce-page .widget_price_filter .price_slider_wrapper .ui-widget-content {background: ' . $gp['input_border']['border-color'] . ';
}';
	
	
/*--------------------------------------------------------------
Theme Widths
--------------------------------------------------------------*/

// Larger Desktop - Wide
if ( $gp['theme_layout'] == 'gp-wide-layout' && ( $gp['desktop_wide_container']['width'] != '1170' OR $gp['desktop_wide_content']['width'] != '810' OR $gp['desktop_wide_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (min-width: 1201px) {';
		if ( $gp['desktop_wide_container']['width'] != '1170') {
			$custom_css .= '.gp-container,.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,.slide-caption{width: ' . $gp['desktop_wide_container']['width'] . 'px;}
			.slide-caption{margin-left: -' . round( $gp['desktop_wide_container']['width'] / 2 ) . 'px;}
			.hub-header-info{width:' . round( $gp['desktop_wide_container']['width'] / 2 ) . 'px;}';
		}	
		if ( $gp['desktop_wide_content']['width'] != '810') {
			$custom_css .= '#content{width: ' . $gp['desktop_wide_content']['width'] . 'px;}';
		}	
		if ( $gp['desktop_wide_sidebar']['width'] != '330') {
			$custom_css .= '#sidebar{width: ' . $gp['desktop_wide_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}

// Larger Desktop - Boxed
if ( $gp['theme_layout'] == 'gp-boxed-layout' && ( $gp['desktop_boxed_page']['width'] != '1170' OR $gp['desktop_boxed_container']['width'] != '1090' OR $gp['desktop_boxed_content']['width'] != '730' OR $gp['desktop_boxed_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (min-width: 1201px) {';
		if ( $gp['desktop_boxed_page']['width'] != '1170' ) {
			$custom_css .= '.gp-boxed-layout #page-wrapper,.gp-boxed-layout #main-header,.gp-boxed-layout #top-header{width: ' . $gp['desktop_boxed_page']['width'] . 'px;}';
		}	
		if ( $gp['desktop_boxed_container']['width'] != '1090') {
			$custom_css .= '.gp-boxed-layout .gp-container,.gp-boxed-layout .side-bg-gradient-overlay,.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,.gp-boxed-layout .slide-caption{width: ' . $gp['desktop_boxed_container']['width'] . 'px;}
			.gp-boxed-layout .slide-caption{margin-left: -' . round( $gp['desktop_boxed_container']['width'] / 2 ) . 'px;}
			.gp-boxed-layout .hub-header-info{width:' . round( $gp['desktop_boxed_container']['width'] / 2 ) . 'px;}';
		}	
		if ( $gp['desktop_boxed_content']['width'] != '730' ) {
			$custom_css .= '.gp-boxed-layout #content{width: ' . $gp['desktop_boxed_content']['width'] . 'px;}';
		}	
		if ( $gp['desktop_boxed_sidebar']['width'] != '330' ) {
			$custom_css .= '.gp-boxed-layout #sidebar{width: ' . $gp['desktop_boxed_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}	

// Smaller Desktop - Wide
if ( $gp['theme_layout'] == 'gp-wide-layout' && ( $gp['sm_desktop_wide_container']['width'] != '1040' OR $gp['sm_desktop_wide_content']['width'] != '680' OR $gp['sm_desktop_wide_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (max-width: 1200px) and (min-width: 1083px) {';
		if ( $gp['sm_desktop_wide_container']['width'] != '1040' ) {
			$custom_css .= '.gp-responsive .gp-container,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,.gp-responsive .slide-caption{width: ' . $gp['sm_desktop_wide_container']['width'] . 'px;}
			.gp-responsive .slide-caption{margin-left: -' . round( $gp['sm_desktop_wide_container']['width'] / 2 ) . 'px;}
			.gp-responsive .hub-header-info{width:' . round( $gp['sm_desktop_wide_container']['width'] / 2 ) . 'px;}';
		}	
		if ( $gp['sm_desktop_wide_content']['width'] != '680' ) {
			$custom_css .= '.gp-responsive #content{width: ' . $gp['sm_desktop_wide_content']['width'] . 'px;}';
		}	
		if ( $gp['sm_desktop_wide_sidebar']['width'] != '330' ) {
			$custom_css .= '.gp-responsive #sidebar,.gp-responsive.gp-no-sidebar #user-rating-wrapper,.gp-responsive.gp-fullwidth #user-rating-wrapper{width: ' . $gp['sm_desktop_wide_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}

// Smaller Desktop - Boxed
if ( $gp['theme_layout'] == 'gp-boxed-layout' && ( $gp['sm_desktop_boxed_page']['width'] != '1040' OR $gp['sm_desktop_boxed_container']['width'] != '960' OR $gp['sm_desktop_boxed_content']['width'] != '600' OR $gp['sm_desktop_boxed_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (max-width: 1200px) and (min-width: 1083px) {';
		if ( $gp['sm_desktop_boxed_page']['width'] != '1040') {
			$custom_css .= '.gp-responsive.gp-boxed-layout #page-wrapper,.gp-responsive.gp-boxed-layout #main-header,.gp-responsive.gp-boxed-layout #top-header{width: ' . $gp['sm_desktop_boxed_page']['width'] . 'px;}';
		}	
		if ( $gp['sm_desktop_boxed_container']['width'] != '960' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout .gp-container,.gp-responsive.gp-boxed-layout .side-bg-gradient-overlay,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,.gp-responsive.gp-boxed-layout .slide-caption{width: ' . $gp['sm_desktop_boxed_container']['width'] . 'px;}
			.gp-responsive.gp-boxed-layout .slide-caption{margin-left: -' . round( $gp['sm_desktop_boxed_container']['width'] / 2 ) . 'px;}
			.gp-responsive.gp-boxed-layout .hub-header-info{width:' . round( $gp['sm_desktop_boxed_container']['width'] / 2 ) . 'px;}';
		}	
		if ( $gp['sm_desktop_boxed_content']['width'] != '600' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout #content{width: ' . $gp['sm_desktop_boxed_content']['width'] . 'px;}';
		}	
		if ( $gp['sm_desktop_boxed_sidebar']['width'] != '330' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout #sidebar{width: ' . $gp['sm_desktop_boxed_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}	

// Tablet (Landscape) - Wide
if ( $gp['theme_layout'] == 'gp-wide-layout' && ( $gp['tablet_wide_container']['width'] != '980' OR $gp['tablet_wide_content']['width'] != '630' OR $gp['tablet_wide_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (max-width: 1082px) and (min-width: 1024px) {';
		if ( $gp['tablet_wide_container']['width'] != '980' ) {
			$custom_css .= '.gp-responsive .gp-container,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-responsive.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,.gp-responsive .slide-caption{width: ' . $gp['tablet_wide_container']['width'] . 'px;}
			.gp-responsive .slide-caption{margin-left: -' . round( $gp['tablet_wide_container']['width'] / 2 ) . 'px;}
			.gp-responsive .hub-header-info{width:' . round( $gp['tablet_wide_container']['width'] / 2 ) . 'px;}';
		}
		if ( $gp['tablet_wide_content']['width'] != '630' ) {
			$custom_css .= '.gp-responsive #content,.gp-responsive.gp-no-sidebar #hub-details,.gp-responsive.gp-fullwidth #hub-details {width: ' . $gp['tablet_wide_content']['width'] . 'px;}';
		}	
		if ( $gp['tablet_wide_sidebar']['width'] != '330' ) {
			$custom_css .= '.gp-responsive #sidebar {width: ' . $gp['tablet_wide_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}	

// Tablet (Landscape) - Boxed
if ( $gp['theme_layout'] == 'gp-boxed-layout' && ( $gp['tablet_boxed_page']['width'] != '980' OR $gp['tablet_boxed_container']['width'] != '900' OR $gp['tablet_boxed_content']['width'] != '630' OR $gp['tablet_boxed_sidebar']['width'] != '330' ) ) {
	$custom_css .= '@media only screen and (max-width: 1082px) and (min-width: 1024px) {';
		if ( $gp['tablet_boxed_page']['width'] != '980' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout #page-wrapper,.gp-responsive.gp-boxed-layout #main-header,.gp-responsive.gp-boxed-layout #top-header{width: ' . $gp['tablet_boxed_page']['width'] . 'px;}';
		}
		if ( $gp['tablet_boxed_container']['width'] != '900' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout .gp-container,.gp-responsive.gp-boxed-layout .side-bg-gradient-overlay,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_row,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_accordion,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tabs,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_tour,.gp-responsive.gp-boxed-layout.gp-fullwidth .vc_col-sm-12.wpb_column > .wpb_wrapper > .wpb_teaser_grid,	.gp-responsive.gp-boxed-layout .slide-caption{width: ' . $gp['tablet_boxed_container']['width'] . 'px;}
			.gp-responsive.gp-boxed-layout .slide-caption{margin-left: -' . round( $gp['tablet_boxed_container']['width'] / 2 ) . 'px;}
			.gp-responsive.gp-boxed-layout .hub-header-info{width:' . round( $gp['tablet_boxed_container']['width'] / 2 ) . 'px;}';
		}		
		if ( $gp['tablet_boxed_content']['width'] != '630' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout #content,.gp-responsive.gp-no-sidebar.gp-boxed-layout #hub-details,.gp-responsive.gp-fullwidth.gp-boxed-layout #hub-details {width: ' . $gp['tablet_boxed_content']['width'] . 'px;}';
		}	
		if ( $gp['tablet_boxed_sidebar']['width'] != '330' ) {
			$custom_css .= '.gp-responsive.gp-boxed-layout #sidebar {width: ' . $gp['tablet_boxed_sidebar']['width'] . 'px;}';
		}	
	$custom_css .= '}';
}	


/*--------------------------------------------------------------
Custom CSS
--------------------------------------------------------------*/

if ( isset( $gp['custom_css'] ) && ! empty( $gp['custom_css'] ) ) {
	$custom_css .= $gp['custom_css'];
}

if ( ! empty( $custom_css ) ) {
	echo '<style>' . $custom_css . '</style>';
}

?>