/** .header-container **/
/* basically here to provide a footprint for the header if we fix and unfix it from the page (which we usually want to do... but not always if doubling mounting a header for example) */

.header-container {
	height: 60px;
	position: relative;
	z-index: 6; /* should be above any other normal content on the page */

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container.header-container-large {
	height: 80px;
}

.header-container.header-container-noFootprint {
	height: 0px; /* means that the container itself does not have a footprint on the page - only the header inside it does */
}

/** Main Header Styling **/

.header-container .header {
	height: 60px;
	position: relative;

	/*box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);*/
	border-bottom: 1px solid rgba(0,0,0,0.1);
	background-color: rgba(255,255,255,0.95);
	color: rgba(0,0,0,0.65);

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container .header-large {
	/* we apply all effects of having a .header-large on the .header-large selector rather than .header-container-large selector so that we can have a container which is sized differently from the actual header */
	/* allows us to have a different footprint from what is actually being displayed as the header (allows us to change size on fixing to window, for example) */

	height: 80px;
}

.header-container .header .inline-block {
	vertical-align: middle;
}

.header-container .header-fixed {
	position: fixed;
	width: 100%;
	z-index: 3;
	top: 0px;
}

.header-container .header .inner-container {
	/*background: #fff;*/
	/*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);*/

	/*-webkit-transition: background-color 0.2s linear, box-shadow 0.2s linear;
	-moz-transition: background-color 0.2s linear, box-shadow 0.2s linear;
	-o-transition: background-color 0.2s linear, box-shadow 0.2s linear;
	transition: background-color 0.2s linear, box-shadow 0.2s linear;*/
}

/** Sitenav (logo etc) **/

.header-container .header .sitenav {
	height: 60px;
	line-height: 60px;
	vertical-align: top;
	/*background: #51aaef;*/

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;

	/*border-right: 3px solid #237ec5;
	border-left: 3px solid #237ec5;*/
}
.header-container .header-large .sitenav {
	height: 80px;
	line-height: 80px;
}

.header-container .header .sitenav a {
	padding-left: 5px;
	padding-right: 5px;
	height: 60px !important; /* override the sitelogo height here */
	color: rgba(0, 0, 0, 0.75);
	font-size: 20px;
	vertical-align: top;
	display: inline-block;

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container .header-large .sitenav a {
	height: 80px !important;
}
.header-container .header .sitenav a:first-child {
	padding-left: 15px;
}
.header-container .header .sitenav a:last-child {
	padding-right: 15px;
}

.header-container .header .sitenav .sitelogo {
	width: 138px;
	height: 40px;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(https://img.ofcourse.co.uk/logo.png);
	display: inline-block;
	background-size: 138px 40px;

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}

.header-container .header-large .sitenav .sitelogo {
	width: 193px;
	height: 56px;

	background-size: 193px 56px;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
	.header-container .header .sitenav .sitelogo {
		background-image: url(https://img.ofcourse.co.uk/logo-2x.png) !important;
	}
}

.header-container .header .sitenav .sep {
	font-weight: bold;
	color: rgba(255, 255, 255, 0.50);
	padding-top: 10px;
	font-size: 20px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 13px;
}

/** Input (ie search) **/

.header-container .header .textinput {
	font-size: 14px;
	min-height: 0px;
	line-height: 95%;
}

/****************************************************************************************************************/
/** Header Animate **/

.header-animate-appear .header-fixed {
	top: -72px;

}
.header-animate-appear.header-animate-appear-active .header-fixed {
	top: 0px;
	transition: top .2s linear;
}

/****************************************************************************************************************/
/** Header Layouts **/

/* .layout-logo-left */
/* this is for a left/right display where we want to fill remaining space etc, we hack it using display: table-cell; */
/* this is another cascading shit show so that we can guarantee that blocks are 100% in width ie to auto expand search to full width */

.header-container .header .inner-container > div.header-layout-logo-left {
	display: table;
	border-collapse: collapse;
	width: 100%;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left {
	float: none;
	display: table-cell;
	width: 100%;
	vertical-align: top;
}

.header-container .header .inner-container > div.header-layout-logo-left > .right {
	float: none;
	display: table-cell;
	width: 0%;
	white-space: nowrap;
	vertical-align: top;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div {
	display: table;
	border-collapse: collapse;
	width: 100%;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div > .left {
	float: none;
	display: table-cell;
	width: 0%;
	white-space: nowrap;
	vertical-align: top;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div > .right {
	float: none;
	display: table-cell;
	width: 100%;

	vertical-align: middle; /* this is the one children are contained within - so we midalign those, and also set some padding */
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div > .right > div {
	display: table;
	border-collapse: collapse;
	width: 100%;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div > .right > div > .left {
	float: none;
	display: table-cell;
	width: 0%;
	white-space: nowrap;
	vertical-align: top;
}

.header-container .header .inner-container > div.header-layout-logo-left > .left > div > .right > div > .right {
	float: none;
	display: table-cell;
	width: 100%;

	vertical-align: middle;
}

.header-content-pad {
	padding: 0;
	padding-left: 10px;
	padding-right: 10px;
}

/****************************************************************************************************************/
/** Header Theming **/

/* Transparent */

.header-transparent .header {
	border: 0px;
}

.header-transparent .header,
.header-transparent .header .inner-container {
	background: transparent;
	box-shadow: none;
}

.header-transparent .header ul.nav > li {
	border: 0;
	background: transparent;
}
.header-transparent .header ul.nav > li:hover,
.header-transparent .header ul.nav > li.toggled {
	background: -webkit-linear-gradient(bottom, rgba(255,255,255,0.1), rgba(255,255,255,0) 75%);
}

.header-transparent .header .sitenav {
	background: transparent;
}

.header-transparent .header ul.nav > li > a,
.header-transparent .header ul.nav > li > .nav-content,
.header-transparent .header .userinfo .userdata > a {
	color: rgba(255,255,255,0.75) !important;
}

.header-transparent .header .dropdown a {
	color: #1d76ba;
}

.header-transparent .header ul.nav > li > div.dropdown {
	/*border-top: 3px solid #98cff9;*/ /* TEMP UNTIL WE WORK OUT HOW TO JUST MAKE IT SEMITRANSPARENT */
}

.header-transparent .header .userinfo .userdata,
.header-transparent .header .userinfo .userdata .name,
.header-transparent .header .userinfo-notifications > a > .fa:first-child {
	color: #fff !important;
}

.header-transparent .header .sitenav .sitelogo {
	background-image: url(https://img.ofcourse.co.uk/logo-white.png);
}

.header-transparent .header .sitenav a {
	color: rgba(255,255,255,0.75) !important;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
	.header-transparent .header .sitenav .sitelogo {
		background-image: url(https://img.ofcourse.co.uk/logo-white-2x.png) !important;
	}
}

.header-transparent .header .textinput-contain {
	background: transparent;
}

.header-transparent .header .textinput {
	color: rgba(255,255,255,0.75) !important;

	border: 0;
	border-bottom: 1px solid rgba(255,255,255,0.0); /* ie don't show a border */
}
.header-transparent .header .textinput-focused {
	color: #fff !important;
} 

.header-transparent .header .textinput-input-container {
	border: 0;
	border-bottom: 1px solid rgba(255,255,255,0.25);
}

/****************************************************************************************************************/
/** Header nav (on bar navigation, that is) **/

.header-container ul.nav {
	padding: 0px;
	margin: 0px;
	list-style: none;
	display: inline-block;
}

.header-container ul.nav > li {
	display: inline-block;
	padding: 0;
	margin: 0;
	position: relative;
	height: 60px; 
	vertical-align: top;
	/*border-right: 1px solid #cecece;*/

	-webkit-transition: height 0.2s linear;
	-moz-transition: height 0.2s linear;
	-o-transition: height 0.2s linear;
	transition: height 0.2s linear;
}
.header-container .header-large ul.nav > li {
	height: 80px;
}
/*.header-container ul.nav > li:last-child {
	border-right: 0px;
}*/
/*.header-container .header .right ul.nav > li:first-child {
	border-left: 1px solid #cecece;
}*/

.header-container ul.nav > li > div {
	vertical-align: middle;
	display: inline-block;
	height: 60px;
}
.header-container .header-large ul.nav > li > div {
	height: 80px;
}

.header-container ul.nav > li:hover, .header ul.nav li.hover {
	/*height: 39px;
	border-bottom: 3px solid #51aaef;*/
	background: rgba(0, 0, 0, 0.05);
}

.header-container ul.nav > li.noHover { /* assumed to be an li which contains a div/span rather than standard a */
	/*height: 60px !important;*/ /* ie stops adjustment of height for border hover */
	border-bottom: none !important; /* ie removes hover effect */
	background: transparent !important; /* ie removes hover effect */
	/*padding-left: 10px !important;
	padding-right: 10px !important;*/
	display: inline-block;
	vertical-align: top;
}

.header-container ul.nav > li.has-dropdown:hover::after,
.header-container .header ul.nav > li.toggled.has-dropdown::after {
	content: " ";
	display: block;

	position:absolute; 
	bottom: 0px;
	left: 50%;
	margin-left: -2.5px;

	width: 0; 
	height: 0; 
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #fff;
}

.header-container ul.nav > li > a,
.header-container ul.nav > li > .nav-content {
	padding-left: 25px;
	padding-right: 25px;
	display: block;
	font-size: 15px;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	line-height: 60px;

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container .header-large ul.nav > li > a,
.header-container .header-large ul.nav > li > .nav-content {
	line-height: 80px;
}

.header-container ul.nav > li a {
	/*color: rgba(255,255,255,0.75);*/
	color: rgba(0,0,0,0.75);
	text-decoration: none;
}

.header-container ul.nav > li > a > .fa,
.header-container ul.nav > li > .nav-content > .fa {
	vertical-align: middle;
	margin-top: -3px;
}

.header-container ul.nav > li > a > .fa:first-child,
.header-container ul.nav > li > .nav-content > .fa:first-child {
	margin-right: 8px;
}

.header-container ul.nav > li > a > .fa:last-child,
.header-container ul.nav > li > .nav-content > .fa:last-child {
	margin-left: 8px;
}

/** Dropdowns **/

.header-container ul.nav > li > div.dropdown {
	position: absolute;
	right: auto;
	left: 0;
	top: 60px;
	height: auto;
	color: #2c2c2c;

	min-width: 100%;
	background: none repeat scroll 0 0 #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
	padding: 10px;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;

	display: none;

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container .header-large ul.nav > li > div.dropdown {
	top: 80px;
}

/* can no longer rely on children of .right actually being on the right due to way we now structure the html in the header... */
.header-container .header ul.nav div.dropdown-right {
	left: auto;
	right: 0;
}

.header-container ul.nav > li > div.dropdown h2 {
	margin-bottom: 10px;
	margin-top: 0px;
	font-size: 14px;
	font-weight: bold;
}
.header-container ul.nav > li > div.dropdown p {
	margin-top: 5px;
	margin-bottom: 5px;
}
.header-container ul.nav > li > div.dropdown p:first-child {
	margin-top: 0px;
}
.header-container ul.nav > li > div.dropdown p:last-child {
	margin-bottom: 0px;
}

.header-container ul.nav > li:hover > div.dropdown, 
.header-container ul.nav > li > div.dropdown.show, 
.header-container ul.nav > li.hover > div.dropdown {
	display: block;
}
/*.header-container ul.nav > li > div {
	color: #2c2c2c !important;
}*/

.header-container ul.nav > li > div.dropdown label {
	padding-right: 10px;
}
.header-container ul.nav > li > div.dropdown label:last-child {
	padding-right: 0px;
}
.header-container ul.nav > li > div.dropdown input[type="checkbox"], 
.header-container ul.nav > li > div.dropdown input[type="radio"] { /* todo: possibly just make this styling global */
	margin-right: 5px;
}

.header-container .dropdown a {
	color: rgba(0, 0, 0, 0.75) !important;
}

/** Dropdown Nav **/

.header-container .dropdown > ul {
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 250px;
}
.header-container .dropdown > ul > li {
	margin: 0;
	padding: 0;
	text-align: left;
}
.header-container .dropdown > ul > li > a {
	display: block;
	padding: 10px;
	padding-right: 20px; /* assuming a font-awesome icon is showing on the right */
	font-weight: bold;
	color: rgba(255,255,255,0.65);
	position: relative;
}
.header-container .dropdown > ul > li > a > .strap {
	font-weight: normal;
	font-size: 11px;
	margin-top: 5px;
	display: block;
}
.header-container .dropdown > ul > li > a:hover {
	color: rgba(0,0,0,0.65);
	background: rgba(0,0,0,0.05);
}
.header-container .dropdown > ul > li > a > .fa {
	position: absolute;
	top: 50%;
	right: 10px;
	margin-top: -5px;
}

/****************************************************************************************************************/
/** User info **/

.header-container .right.userinfo li:last-child > .nav-content {
	padding-right: 2px;
}

.header-container .right.userinfo .userdata {
	text-align: right;
}

.header-container .userinfo,
.header-container .userinfo .nav-content {
	color: #666;
}
.header-container .userinfo a {
	color: #666;
}

.header-container .signupForm {
	/*width: 360px;*/
}

/*.header-container .loginForm span, .header-container .signupForm span {
	font-size: 11px;
	font-weight: bold;
	padding-bottom: 3px;
	display: block;
}

.header-container .loginForm .button, .header-container .signupForm .button {
	width: 100%;
}*/

.header-container .userinfo ul.nav > li {
	border-right: 0px;
	border-left: 0px !important;
}

.header-container .userinfo ul.nav > li.thisuser {
	background: transparent !important;
}
.header-container .userinfo ul.nav > li.thisuser > a,
.header-container .userinfo ul.nav > li.thisuser > .nav-content {
	padding-top: 0px;
	height: 60px;
	
	line-height: 125%;

	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.header-container .header-large .userinfo ul.nav > li.thisuser > a,
.header-container .header-large .userinfo ul.nav > li.thisuser > .nav-content {
	height: 80px;
}

.header-container .userinfo ul.nav > li .midaligner {
	height: 60px;
	display: inline-block;
	vertical-align: middle;
}
.header-container .header-large .userinfo ul.nav > li .midaligner {
	height: 80px;
}

.header-container .thisuser .ownerAvatar-container {
	margin-right: 10px;
	display: inline-block;
	vertical-align: middle;
}
.header-container .thisuser .ownerAvatar-container .ownerAvatar {
	/*border: 1px solid #fff;*/
}

.header-container .userinfo .userdata {
	display: inline-block;
	vertical-align: middle;
	font-size: 12px;
	margin-right: 10px;
	font-family: Helvetica, Arial, 'lucida grande',tahoma,verdana,arial,sans-serif;
}
.header-container .userinfo .userdata .logoutLink {
	cursor: pointer;
	opacity: 0.75;
}
.header-container .userinfo > *:last-child {
	margin-right: 0px;
}

.header-container .userinfo-loggedout {
	padding-right: 0px !important;
}

.header-container .userinfo .prefsDropdown {

}

.header-container .userinfo .prefsDropdown > div {
	white-space: nowrap;
}

.header-container .userinfo > span {
	padding-right: 5px;
}

.header-container .right.userinfo li > a,
.header-container .right.userinfo li > .nav-content { /* smaller padding gap for right hand side nav links */
	padding-left: 12px;
	padding-right: 12px;
}

.header .userinfo .login {
	border: 1px solid #15749f;
	color: #15749f;
	padding: 0.55em;
	margin: 0 0.25em;
}

.header .userinfo .login.register {
	background: #15749f;
	color: #fff;
}

.header .header-search-icon {
	background: #15749f;
	color: #fff;
	padding: 0.5em;
}

.header .header-search-wrapper .textinput-contain {
	flex: 1;
}

.header-transparent .header .textinput-input-container {
	border: 1px solid rgba(255,255,255,0.25);
}


/****************************************************************************************************************/
/** Categories Dropdown **/

.header-container .dropdown-categories {
	white-space: nowrap;
}

.header-container .dropdown-categories > ul {
	display: inline-block;
	min-width: 200px;
}

/*.header-container .dropdown-categories > ul >li > a {
	font-size: 12px;
	font-weight: normal;
}*/

/****************************************************************************************************************/
/** Mobile Menu **/
/* is rendered/visible when we want to show a menu and we are in mobile mode */

/*.header-container*/ .mobile-menu {
	position: absolute;
	top: 72px;
	left: 0px;

	z-index: 5; /* just needs to be above everything on the page but below the header and any modals */

	background: #182027;
}