/*
HEADER RIGHTPANE
================================================ */
#pagewrap {
	padding-top: 0 !important; /* prevent inline padding apply from JS */
}
#body {
	padding-right: 340px;
	padding-left: 4%;
}
#footerwrap {
	padding-right: 280px;
}
.row_inner {
	width: auto;
	max-width: 90%;
	margin: 0 auto;
}
.sidebar-none #content {
	padding: 0;
}
.full_width #body {
	padding-right: 280px;
	padding-left: 0;
}
.full_width .row_inner {
	width: auto;
	max-width: 90%;
}
.full_width #footerwrap {
	padding-right: 330px;
}

/* header rightpane headerwrap */
#headerwrap {
	float: left;
	width: 280px;
	height: 100%;
	left: auto;
	right: 0;
	border-bottom: none;
	border-left: 1px solid rgba(0,0,0,.1);
	background-color: #f4f4f4;
}
.header-rightpane #pagewrap #headerwrap {
	position: fixed !important;
}
.transparent-header #headerwrap {
	background-color: rgba(0,0,0,.3);
}
#header {
	text-align: inherit;
	position: absolute;
	height: 100%;
	width: 100%;
	max-width: none;
	padding: 2em 1.5em;
}

.touch #header {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* header rightpane site logo */
#site-logo {
	font-size: 2.2em;
	padding-top: 0;
	letter-spacing: .03em;
	margin: 0 0 .5em;
}

/* header rightpane site description */
#site-description {
	margin: 0 0 1.5em;
}

/* header rightpane social widget */
.social-widget {
	float: none;
	clear: both;
	display: block;
}

/* header rightpane searchform */
#searchform-wrap {
	float: none;
	clear: both;
	display: block;
	margin: .3em 0 1.5em;
	width: auto;
}
#searchform-wrap #searchform {
	width: auto; /* reset searchform width */
}
#headerwrap #searchform #s {
	width: 100%;
	margin: 0;
	padding: .25em 2.1em;
	border-radius: 5em;
	background-color: #fff;
	color: #000;
}
#headerwrap #searchform .icon-search:before {
	background: none;
	font-size: 1em;
	left: 10px;
	line-height: 1em;
	margin-top: -.5em;
	padding: 0;
	position: absolute;
	top: 50%;
	width: 1em;
	color: #000;
}
#headerwrap #searchform #s:focus,
#headerwrap #searchform #s:hover,
#headerwrap #searchform .icon-search:hover + #s {
	width: 100%;
	background-color: #fff;
}

/* header rightpane main nav */
#main-nav {
	float: none;
	clear: both;
	margin: 0 0 2em;
}
#main-nav ul {
	width: auto;	
}
#main-nav ul a {
	width: auto;
	color: inherit;
}
#main-nav li:not(.themify-widget-menu) > ul {
	border: none;
	background: none;
	display: block;
	position: static;
	padding: .2em 0 0 1em;
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
}
#main-nav li {
	display: block;
}
#main-nav a {
	padding: .4em 0;
	width: 100%;
}

#main-nav ul a {
	width: auto;
	color: inherit;
}
#main-nav ul li {
	float: none !important;
	width: auto !important;
}

#main-nav .has-mega-column > .sub-menu,
#main-nav .has-mega-sub-menu .mega-sub-menu {
	display: block;
	position: static;
	box-shadow: none;
	border: none;
	background-color: transparent;
	min-height: inherit;
	max-height: inherit;
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
	color: inherit;
}
#main-nav .has-mega-sub-menu .mega-sub-menu ul,
#main-nav .has-mega-column .sub-menu li {
	display: block;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	padding-left: 1em;
}
#main-nav .has-mega-column .widgettitle,
#main-nav .has-mega-column > .sub-menu > .columns-sub-item > a,
#main-nav .has-mega-column > .sub-menu a {
	font-size: inherit;
	font-weight: normal;
	text-transform: none;
}
#main-nav li.mega-link.loading:before,
#main-nav .mega-sub-menu li:hover a:after,
#main-nav .mega-menu-posts {
	display: none;
}

/* dropdown icon */
#main-nav .menu-item-has-children .child-arrow:before,
#main-nav .page_item_has_children .child-arrow:before {
    content: "\e64b";
	font-family: themify;
	font-size: 0.8em;
	cursor: pointer;
    position: absolute;
    right: 0;
	top: 4px;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
#main-nav .menu-item-has-children .child-arrow.toggle-on:before,
#main-nav .page_item_has_children .child-arrow.toggle-on:before {
    content: "\e646";
	-webkit-transform: rotate(-90deg);
	-moz-transform: rotate(-90deg);
	transform: rotate(-90deg);
}
#main-nav .menu-item-has-children > a .sub-arrow,
#main-nav .page_item_has_children > a .sub-arrow {
	display: none;
}
#headerwrap #main-nav .has-mega-column > .sub-menu,
#headerwrap #main-nav .has-mega-sub-menu .mega-sub-menu,
#headerwrap #main-nav .has-mega-column > .sub-menu > li > ul,
#headerwrap #main-nav .has-mega-sub-menu:hover .mega-sub-menu {
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
	padding: 0;
}
.header-rightpane #headerwrap #main-nav .has-mega-column > .sub-menu > li > ul.sub-menu,
.header-rightpane #headerwrap #main-nav > li > div.sub-menu,
.header-rightpane #headerwrap #main-nav > li > ul.sub-menu {
	height: 100%;
	overflow: hidden;
	max-height: 0;
	-webkit-transition: max-height 0.5s ease-in-out;
	-moztransition: max-height 0.5s ease-in-out;
	transition: max-height 0.5s ease-in-out;
}
.header-rightpane #headerwrap #main-nav .has-mega-column > .sub-menu > li > .toggle-on + ul.sub-menu,
.header-rightpane #headerwrap #main-nav > li > .toggle-on + div.sub-menu,
.header-rightpane #headerwrap #main-nav > li > .toggle-on + ul.sub-menu {
	max-height: 1000px;
	min-height: initial;
}
#headerwrap #main-nav > li {
	position: relative;
}
#headerwrap #main-nav > li:last-child a,
#headerwrap #main-nav > li a {
	border-bottom: 1px solid rgba(0,0,0,.1)
}
#headerwrap #main-nav > li li a {
	font-size: 0.95em;
	margin-bottom: 0;
	padding: 0.5em 1.5em .5em 0;
}
#headerwrap #main-nav > li li li a {
	padding: 0.5em .5em .5em 0;
}

/* header rightpane column */
#headerwrap .col3-1 {
	float: none;
	width: auto;
	margin: auto;
}
.header-widget .widget {
	margin: 0 0 3em;
}
#sidebar {
	margin-right: 2%;
}

/* footer rightpane */
#footer {
	max-width: 96%;
}

@media screen and (max-width: 1000px) {
	.header-rightpane.mobile-menu-visible {
		overflow-x: hidden;
	}

	/* header rightpane #body */
	.header-rightpane #footerwrap,
	.header-rightpane.full_width #footerwrap,
	.header-rightpane #body,
	.header-rightpane.full_width #body {
		padding-left: 0;
		padding-right: 0;
	}
	.header-rightpane.full_width.mobile-menu-visible {
		left: -280px;
	}
	.header-rightpane #sidebar {
		margin: auto;
	}

	/* header rightpane sidemenu */
	.header-rightpane #mobile-menu.sidemenu {
		position: static;
		width: auto;
		background: none;
		height: auto;
		overflow: inherit;
		padding: 0;
	}

	/* header rightpane headerwrap */
	.header-rightpane.sidemenu-right #headerwrap {
		right: 0;
	}
	.header-rightpane #headerwrap {
		overflow: inherit;
		right: -280px;
		left: auto;
	}

	/* header rightpane header */
	.header-rightpane #headerwrap #header {
		width: auto;
		height: 100%;
		padding: 35px 25px 50px;
	}

	/* header rightpane menu icon */
	.header-rightpane #headerwrap #menu-icon {
		position: fixed;
		right: 0;
		background-color: #EC1E24;
		color: #fff;
		font-size: 1.2em;
		width: 32px;
		height: 45px;
		line-height: 45px;
		text-align: center;
		z-index: 10000;
		-webkit-transition: all .2s ease-in-out;
		-moz-transition: all .2s ease-in-out;
		transition: all .2s ease-in-out;
	}
	.header-rightpane.mobile-menu-visible #headerwrap #menu-icon {
		right: 280px;
	}
	.header-rightpane #headerwrap #menu-icon-close {
		display: none;
	}
	.header-rightpane #headerwrap #menu-icon:before {
		content: "\e661";
		font-family: themify;
		font-size: 100%;
	}
	.header-rightpane.mobile-menu-visible #headerwrap #menu-icon:before {
		content: "\e662";
	}

	/* header rightpane site logo */
	.header-rightpane #headerwrap #site-logo {
		font-size: 2.2em;
		padding-top: 0;
		letter-spacing: .03em;
		margin: 0 0 .5em;
	}
	.header-rightpane #headerwrap .social-widget {
		margin: 1em 0 2em;
	}
}