/* # Search
 * ---------------------------------------------------------------------------------------------------- */
.nav-secondary {
	position: relative;
}

.nav-secondary .fa-search {
	color: #333;
	color: rgba(0,0,0,0.8);
}

.menu-secondary li ul.slw-nav-search-form-container::before {
	margin-left: 9px;
	margin-top: 0px;
	border-top-color: #646464;
	border-bottom-width: 0;

	display: none;
}

.slw-nav-search-form-container.sub-menu {
	width: 30px;
}
.slw-nav-search-form-container.sub-menu .search-form {
	background: #efefef;
	padding: 10px;
	min-width: 300px;
	position: absolute;
	right: 0;
	top: 0;
}

/* this is a hack, so the search drop-down does not collapse when cursor moves away from sub-menu */
.slw-nav-search-form-container.sub-menu .search-form::before {
	content: '';
	display: block;
	height: 400%;
	width: 100%;
	position: absolute;
	top: -21px;
	top: -12px;
	z-index: -1;
	right: 0;
}
.slw-nav-search-toggle::before {
    content: '';
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    margin-left: -12px;
}
/* end hack */

.slw-nav-search-form-container.sub-menu .search-form input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	padding: 8px;
	border-radius: 4px;
	border: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 300;
}

.slw-nav-search-form-container.sub-menu .search-form input[type="submit"],
.slw-nav-search-form-container.sub-menu .search-form input[type="submit"]:hover,
.slw-nav-search-form-container.sub-menu .search-form input[type="submit"]:active {
	position: absolute;
	border: 0;
	top: 10px;
	box-shadow: 5px 0 0 5px #efefef;
	right: 10px;
	padding: 7px;
	font-size: 14px;
	background: #e3e3e3;
	color: #6B6B6B;
	border-radius: 0 4px 4px 0;
}

/* Header search */
.xx-slw-nav-search-toggle {
	float: right;
	padding: 30px 24px;
	padding: 6px 10px;
	color: #fff;
	text-align: center;
	cursor: pointer;
	line-height: 1;
}

.slw-nav-search-toggle { width: 30px; }

.slw-nav-search-toggle:hover,
.slw-nav-search-toggle.active {
	background: #4d4d4d;
	color: white;
}
.slw-nav-search-toggle:hover .fa-search,
.slw-nav-search-toggle.active .fa-search {
	color: white;
}

@media screen and (max-width: 800px) {
	/* hide the search widget in menu when responsive menu is displayed */
	.slw-nav-search-toggle,
	#slw-nav-search-container {
		display: none;
	}
}

/* Text meant only for screen readers - from UnderScores */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	right: 0;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
