/**
  * @todo REQUIRES BRANDING
  */

/* Search box */
#algolia-search-box {
	width: 85%;
	position: relative;
	margin-bottom: 1rem;
}

#algolia-search-box input {
	border: 1px solid black;
	font-size: 14px;
	padding: 5px 10px;
}

.algolia-search-box-wrapper {
	margin-top: 27px;
}

/* Stats */
.ais-Stats {
	position: relative !important;
	top: 0 !important;
}

/* Hits */
.algolia-hits-wrapper .search-post-category .search-cat,
#algolia-hits2 .search-profile-type,
#infinite-hits2 .search-profile-type {
	display: inline-block;
	font-size: 13px;
	font-weight: normal;
	margin-right: 10px;
}
.algolia-hits-wrapper .td-module-meta-info {
	font-size: 13px;
	display: flex;
	align-items: center;
}

#infinite-hits {
	display: none;
}

@media all and (min-width: 1024px){
	#infinite-hits2 {
		display: none;
	}
}

.ais-Hits-item mark {
	padding: 0;
}

/* Facets */
#ais-facets {
	padding: 1rem 1rem 1rem 0;
}
#ais-facets h4 {
	color: black;
	padding: 0;
	margin-bottom: 0;
	font-size: 18px;
}

#ais-facets h4 {
	background-color: transparent;
}

#ais-facets h4.widgettitle:after {
	display: none;
}

/* Panel */
.ais-Panel--collapsible .ais-Panel-body {
	display: block;
}

/* Facets */
.ais-facets {
	margin-bottom: 1.5rem;
}

.ais-RefinementList-list {
	margin-top: 5px;
	margin-bottom: 5px;
}

.ais-RefinementList-item {
	margin-bottom: 7px;
}

.ais-RefinementList-checkbox {
	position: absolute;
	opacity: 0;
}

.ais-RefinementList-checkbox + .ais-RefinementList-labelText {
	position: relative;
	cursor: pointer;
	padding: 0;
}

.ais-RefinementList-checkbox + .ais-RefinementList-labelText:before {
	content: '';
	margin-right: 10px;
	margin-top: -2px;
	display: inline-block;
	vertical-align: text-top;
	width: 22px;
	height: 22px;
	background: white;
	border: 1px solid black;
}

.ais-RefinementList-checkbox:hover + .ais-RefinementList-labelText:before {
	background: white;
}

.ais-RefinementList-checkbox:focus + .ais-RefinementList-labelText:before {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.ais-RefinementList-checkbox:checked + .ais-RefinementList-labelText:before {
	background: white;
}

.ais-RefinementList-checkbox:disabled + .ais-RefinementList-labelText {
	color: #b8b8b8;
	cursor: auto;
}

.ais-RefinementList-checkbox:disabled + .ais-RefinementList-labelText:before {
	box-shadow: none;
	background: #ddd;
}

.ais-RefinementList-checkbox:checked + .ais-RefinementList-labelText:after {
	content: '';
	position: absolute;
	left: 6px;
	top: 8px;
	background: black;
	width: 3px;
	height: 3px;
	box-shadow: 2px 0 0 black,
	4px 0 0 black,
	4px -2px 0 black,
	4px -4px 0 black,
	4px -6px 0 black,
	4px -8px 0 black;
	transform: rotate(45deg);
}

/* Facet collapse button */
.ais-Panel-collapseButton {
	float: right;
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	font-size: 20px;
}

.ais-Panel-collapseButton .td-icon-menu-left {
	transform: rotate(270deg);
}

.ais-Panel-collapseButton .td-icon-menu-right {
	transform: rotate(-90deg);
}

/* Facet show more */
.ais-RefinementList-showMore {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.ais-RefinementList-showMore.ais-RefinementList-showMore--disabled {
	display:none;
}

.ais-Panel--collapsible.ais-Panel--collapsed .ais-Panel-body {
	display: none;
}

.search-tabs-list {
	border-bottom: 1px solid #000;
}

.search-tabs-list {
	list-style: none;
}

.search-tab {
	display: inline-block;
	margin-left: 0;
	padding: 8px 20px;
	position: relative;
}

.search-tab > span {
	font-size: 20px;
	text-transform: uppercase;
}

.search-tab.active:after {
	content: '';
	width: 100%;
	height: 4px;
	background: #000;
	position: absolute;
	bottom: 0;
	left: 0;
}

.search-tab.active > span {
	font-weight: 600;
}

.search-tab {
	transition: all 0.3s ease;
}

.search-tab:hover {
	cursor: pointer;
}

.search-tab:hover:after {
	content: '';
	width: 100%;
	height: 4px;
	background: #000;
	position: absolute;
	bottom: 0;
	left: 0;
}

.search-tab:hover > span {
	font-weight: 600;
}

.hidden {
	display: none;
}

.ais-SortBy-select {
	height: 29px;
	border: none;
	overflow: hidden;
}

.ais-SortBy-select::-moz-focus-inner {
	border: 0;
}

.ais-SortBy-select:focus {
	outline: none;
}

.ais-SortBy-select .ais-SortBy-option {
	font-size: 1em;
	padding: 10px 0;
	text-align: center;
	margin-right: 20px;
	display: inline-block;
	cursor: pointer;
	color: #000;
}

.ais-SortBy-select .ais-SortBy-option {
	text-decoration: underline;
	background-color: transparent;
	position: relative;
}

.ais-SortBy select[multiple]:focus option:checked {
	background: white linear-gradient(0deg, white 0%, white 100%);
}

.ais-SortBy select[multiple] option:checked {
	background: white linear-gradient(0deg, white 0%, white 100%);
}

.ais-SortBy-select {
	font-size: 0;
}
.ais-SortBy-option {
	margin-right: 0!important;
}
#sort-by .ais-SortBy-select .ais-SortBy-option:first-child:before {
	content: "date";
	display: inline-block;
	color:black;
	visibility: visible;
	padding-right: 10px;
	margin-right: 10px;
	border-right: 1px solid #000;
	font-size: 15px;

}
#sort-by .ais-SortBy-select .ais-SortBy-option:nth-child(2):before {
	content: "relevance";
	display: inline-block;
	color:black;
	visibility: visible;
	font-size: 15px;
}
#sort-by-profiles .ais-SortBy-select .ais-SortBy-option:first-child:before {
	content: "alphabetically";
	display: inline-block;
	color:black;
	visibility: visible;
	padding-right: 10px;
	margin-right: 10px;
	border-right: 1px solid #000;
	font-size: 15px;

}
#sort-by-profiles .ais-SortBy-select .ais-SortBy-option:nth-child(2):before {
	content: "relevance";
	display: inline-block;
	color:black;
	visibility: visible;
	font-size: 15px;
}
#sort-by .ais-SortBy-select .ais-SortBy-option:checked:before,
#sort-by-profiles .ais-SortBy-select .ais-SortBy-option:checked:before {
	font-weight: bold;
}

.custom-sortby {
	display: inline-block;
	vertical-align: text-bottom;
	margin-right: 10px;
	font-size: 1em;
}

#sort-by .ais-SortBy-select option:first-child:after,
#sort-by-profiles .ais-SortBy-select option:first-child:after{
	position: absolute;
	right: -10px;
	top: 50%;
	transform: translateY(-50%);
	content: '';
	width: 1px;
	height: 1em;
	background: #000;
}

.ais-SortBy {
	margin-bottom: 20px;
}

.search-cat {
	display: inline-block;
	padding: 5px;
	margin: 0 6px 0 0;
}

/* Autocomplete */
.algolia-autocomplete .aa-dropdown-menu {
	padding: 20px;
	background: #f3f3f3;
	border: 1px solid black;
	border-radius: 0;
	box-shadow: none;
}
.algolia-autocomplete .aa-suggestions .aa-suggestion:nth-child(4) {
	display: none;
}
.algolia-autocomplete .aa-dropdown-menu .autocomplete-header {
	margin-top: 0;
	border-bottom: none;
}
.algolia-autocomplete .aa-dropdown-menu .autocomplete-header h4 {
	text-transform: initial;
	font-weight: bold;
	margin-top: 0;
}
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion {
	background-color: transparent;
}
.algolia-autocomplete .aa-dropdown-menu .aa-suggestion em {
	color:black;
	background: #ff0;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-link {
	color: black;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-link:hover {
	color: rgba(0, 0, 0, 0.80);
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-post-thumbnail {
	width: 64px;
	height: 64px;
	margin-right: 14px;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-image-wrap .suggestion-post-thumbnail {
	/*width: 100%;*/
	/*height: auto;*/
	overflow: hidden;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-image-wrap .suggestion-post-thumbnail {
	border-radius: 0;
}
.algolia-autocomplete .aa-dropdown-menu .aa-dataset-4 .suggestion-post-attributes {
	/*width: 78%;*/
	text-align: left;
}
.algolia-autocomplete .aa-dropdown-menu .aa-dataset-5 .aa-suggestion {
	flex: 1;
}
.algolia-autocomplete .aa-dropdown-menu .aa-dataset-5 .suggestion-post-attributes {
	text-align: left;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-post-attributes .suggestion-post-title {
	font-size: 15px;
	line-height: 18px;
	margin: 0 0 5px 0;
	white-space: unset;
	text-align: left;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-post-attributes .suggestion-post-title {
	font-size: 14px;
	line-height: 18px;
	margin: 0 0 5px 0;
	white-space: unset;
	text-align: left;
}
.algolia-autocomplete .aa-dropdown-menu .suggestion-post-attributes .suggestion-post-content {
	display: none;
}
.algolia-autocomplete .aa-dropdown-menu .autocomplete-footer-title {
	text-transform: uppercase;
	text-decoration: underline;
	font-weight: bold;
	float: left;
	margin-top: 14px;
	margin-bottom: 20px;
	padding: 0 14px;
}
.algolia-autocomplete .aa-dropdown-menu .autocomplete-footer-title a {
	font-weight: bold;
	font-size: 14px;
}

.algolia-autocomplete .aa-dropdown-menu .autocomplete-empty {
	text-align: left;
}

@media all and (min-width: 768px){
	.algolia-autocomplete {
		left: unset !important;
		right: 0 !important;
		width: auto !important;
	}
	.algolia-autocomplete .aa-dropdown-menu {
		display: flex !important;
		flex-direction: row;
	}
	/* News AND Profiles found */
	.algolia-autocomplete .aa-dropdown-menu.aa-with-4.aa-with-5 {
		width: 600px;
	}
	.algolia-autocomplete .aa-dropdown-menu [class*='aa-dataset-'] {
		width: 50%;
		display: flex;
		flex-direction: column;
	}
	.algolia-autocomplete .aa-dropdown-menu .aa-dataset-3 {
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.algolia-autocomplete .aa-dropdown-menu.aa-without-3 {
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.algolia-autocomplete .aa-dropdown-menu.aa-without-4.aa-without-5 [class*='aa-dataset-'] {
		display: none;
	}
	/* ONLY News OR Profiles found */
	.algolia-autocomplete .aa-dropdown-menu.aa-with-3,
	.algolia-autocomplete .aa-dropdown-menu.aa-without-3,
	.algolia-autocomplete .aa-dropdown-menu.aa-with-4.aa-without-5,
	.algolia-autocomplete .aa-dropdown-menu.aa-without-4.aa-with-5,
	.algolia-autocomplete .aa-dropdown-menu.aa-without-4.aa-without-5 {
		width: 300px;
	}
	.algolia-autocomplete .aa-dropdown-menu.aa-with-4.aa-without-5 [class*='aa-dataset-'],
	.algolia-autocomplete .aa-dropdown-menu.aa-without-4.aa-with-5 [class*='aa-dataset-'] {
		width: unset;
	}
	.algolia-autocomplete .aa-dropdown-menu .aa-suggestions {
		display: flex !important;
		flex-direction: column;
		flex-grow: 1;
	}
	.algolia-autocomplete .aa-dropdown-menu .autocomplete-footer-title {
		margin-bottom: 0px;
	}
}

.algolia-clear-filters {
	display: none;
}

#date-filter {
	margin-bottom: 1.5rem;
}

.date-filter-active {
	font-weight: 600;
}
.filter-by-date span {
	cursor: pointer;
	margin-right: 7px;
	position: relative;
}
.filter-by-date span:last-child {
	margin-right: 0;
}
.filter-by-date span:after {
	content: '';
    width: 1px;
    height: 12px;
    background: #000;
    position: absolute;
    top: 3px;
    right: -6px;
}
.filter-by-date span:last-child:after {
	display: none;
}
.date-range-label {
	display: inline-block;
	width: 38%;
}
.date-range {
	width: 100%;
	display: block;
	height: 31px;
	-webkit-appearance: none;
	border: 1px solid #000;
}
.apply-date-range {
	display: inline-block;
	width: 21%;
	background: #000;
	color: #fff;
	text-align: center;
	padding: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid black;
}
.apply-date-range:hover {
	background:rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(0, 0, 0, 0.5);
}
.date-range::-webkit-inner-spin-button, .date-range::-webkit-calendar-picker-indicator {
	display: none;
}
.date-range-err {
	color: rgb(255, 0, 0);
}
.filter-by-date {
	border-bottom: 1px solid #000;
}

.filter-by-date > section {
	margin-bottom: .5rem;
}
.filter-by-date-range {
	margin-top: .7rem;
	margin-bottom: 1.2rem;
}

.filter-by-date-range input {
	color: black !important;
	border: 1px solid black !important;
}

.ais-Pagination-item {
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid black;
	margin-right: 8px;
	margin-left: 0;
}

.ais-Pagination-item:hover {
	background: black;
}

.ais-Pagination-item--selected {
	background: black;
}

.ais-Pagination-item--disabled {
	display: none;
}

.ais-Pagination-item:hover .ais-Pagination-link {
	color: white;
}

.ais-Pagination-item--selected .ais-Pagination-link {
	font-weight: normal;
	color: white;
}

.ais-Pagination-link {
	color: black;
	font-weight: normal;
	line-height: 30px;
}

.clear-refinements {
	margin-bottom: 1rem;
}

.clear-refinements a {
	display: block;
	background: #000;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
	border: none;
}

.clear-refinements a:hover {
	background: rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 1023px) {
	#mobile-ais-facets {
		display: none;
	}
}
@media screen and (min-width: 1024px) {
	#mobile-ais-facets {
		display: none !important;
	}
}
#ais-collapse-filters {
	display: none;
}
#pagination-details {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}
.ais-Pagination-link {
	display: block;
	width: 100%;
	text-align: center;
}

.ais-Hits--empty {
	margin-bottom: 20px;
}

.search-news .ais-hits--content h2[itemprop="name headline"] {
	margin-bottom: 10px;
}

.search-news .ais-hits--content .td-excerpt {
	margin-top: 20px;
}

.search-news .ais-hits--content .search-post-author {
	margin: 0 5px;
}

.search-news .ais-Hits-item .ais-hits--thumbnail {
	margin-top: 0.5em;
}

.search-news .ais-hits--content .item-header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
}

.search-news .ais-hits--content .item-header .entry-title {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	font-size: 21px;
	line-height: 25px;
	margin: 0 10px 20px 0;
}
h3.profile-title{
	margin-bottom: 10px;
}
#hits-per-page, #hits-per-page2{
	margin-bottom: 15px;
}
.algolia-img-mobile{
	display:none;
}

.td-post-back-to-results {
	display: block;
	margin-bottom: 0.5rem;
}
#sort-by .ais-SortBy-select option:checked, #sort-by-profiles .ais-SortBy-select option:checked {
	background: #fff -webkit-linear-gradient(bottom, #fff 0%, #fff 100%);
}
#sort-by .ais-SortBy-select option:hover, #sort-by-profiles .ais-SortBy-select option:checked {
	background: #fff -webkit-linear-gradient(bottom, #fff 0%, #fff 100%);
}
#sort-by .ais-SortBy-select option:focus, #sort-by-profiles .ais-SortBy-select option:checked {
	background: #fff -webkit-linear-gradient(bottom, #fff 0%, #fff 100%);
}
#ais-wrapper article[data-tag*="sponsored"], #ais-wrapper article[data-tag*="Sponsored"] {
	background-color: #f2f2f2;
	padding: 10px;
}
