.search-header,
#search-filters,
#search-results {
	margin-left: auto !important;
	margin-right: auto !important;
}

#search-filters {
	position: relative;
}

#search-filters:after {
	content: '';
	display: block;
	height: 0;
	background-color: rgba(255,255,255,0.1);
	background-image: url('../svg/loading.svg');
	background-position: top center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0;
	text-align: center;
	transition: height 0.2s, opacity 0.2s;
}

#search-filters.loading:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 80px;
	left: 0;
	background: rgba(255,255,255,0.75);
	z-index: 1;
}

#search-filters.loading:after {
	content: 'Searching our large archive, please be patient...';
	height: 80px;
	padding-top: 80px;
	margin-bottom: 80px;
	opacity: 1;
}

#search-filters .chosen-drop .chosen-results li:nth-child(10):after {
	content: '\2026';
	display: block;
	text-align: center;
	color: #333;
}

#search-results .results-count {
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 1px;
	margin-bottom: 2em;
}


.searchandfilter > ul {
    display: flex !important;
    flex-wrap: wrap;
	padding-left: 0;
	margin-left: 0;
}

.searchandfilter > ul > li {
    width: 100%;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.searchandfilter > ul > li label {
    width: 100%;
}

.searchandfilter > ul > li .chosen-container,
.searchandfilter > ul > li .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.searchandfilter > ul > li .chosen-container .chosen-choices,
.searchandfilter > ul > .sf-field-search .sf-input-text {
    width: 100%;
	padding: 5px 10px;
	background-color: #fff;
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(1%,#eee),color-stop(15%,#fff));
	background-image: linear-gradient(#eee 1%,#fff 15%);
	border: 1px solid #aaa;
}

.searchandfilter > ul > .sf-field-sort_order select {
    width: 100%;
	padding: 5px 10px;
}

#search-filters .saf-submit-outer {
	padding: 1rem;
}

#search-results.hide-results {
	display: none;
}

#search-results .psum-horizontal .post-details {
	float: none;
	width: 100%;
	max-width: 100%;
}

@media screen and (min-width: 540px) {
	.searchandfilter > ul > li {
		width: 50%;
	}
}

@media screen and (min-width: 768px) {
	.searchandfilter > ul > .sf-field-search {
		width: 75%;
	}

	.searchandfilter > ul > .sf-field-sort_order {
		width: 25%;
	}
}
	
/*
Temporary overrides to hide "publisher" filter
*/

.searchandfilter > ul > .sf-field-post-meta-publisher,
.searchandfilter > ul > .sf-field-post-meta-field_publisher {
	display: none !important;
}

.searchandfilter > ul > .sf-field-post-meta-the_author {
	width: 100% !important;
}



.sf-field-search > label:after {
	content: "Use quotation marks for phrases and minus sign to exclude";
	font-size: 0.75em;
	font-weight: normal;
	font-style: italic;
}