/** Styles for the companies search box section (/company page).
* used only for section-companies-search-box.php, loaded in enqueues.php
*/

.companies-search-box {
	flex-shrink: 0;
	width: 50%;
}

.companies-search-box .inner {
	max-width: 800px;
	padding: 30px 44px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 0 50px #0000001A;
}

.companies-search-box .inner .component-title {
	font-size: 25px;
	font-weight: 500;
}

.companies-search-box .inner .search-terms-wrap {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
	margin-top: 30px;
}

.companies-search-box .inner .search-terms-wrap .terms-row {
	display: flex;
	column-gap: 20px;
}

.companies-search-box .search-terms-wrap .search-term {
	padding: 14px 10px 12px;
	width: 100%;
	font-weight: 400;
	background-color: #E8EBF8;
	color: #2B3FD1;
}

.companies-search-box .search-wrap {
	margin-top: 35px;
}

.companies-search-box .search-wrap .search {
	position: relative;
	width: 100%;
	transition: all 0.4s ease-in-out;
	z-index: 5;
}

.companies-search-box .search-wrap .search.wide {
	width: 120%;
}

.companies-search-box .search-wrap .search::after {
	content: url( '../../../images/icon-search-blue.svg' );
	position: absolute;
	right: 0;
	bottom: 5px;
	padding: 13px 16px 0;
	z-index: 3;
}

.companies-search-box .search-wrap .search label {
	font-size: 16px;
	font-weight: 400;
}

.companies-search-box .search-wrap .search .search-input {
	position: relative;
	width: 100%;
	height: 50px;
	padding: 15px;
	border: none;
	background-color: #EBEBEB;
	border-radius: 5px;
	margin-top: 5px;
	font-size: 18px;
	transition: all 0.2s ease-in-out;
	z-index: 2;
}

.companies-search-box .search-wrap .search .search-input:focus {
	outline: none;
	/*box-shadow: 0 3px 50px #00000029;*/
}

.companies-search-box .search-wrap .search .search-input.active {
	outline: none;
	background-color: var(--color-white);
}

.companies-search-box .search-wrap .search .search-submit {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
	height: 100%;
	width: 50px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-indent: -9999px;
}

.autosuggestions-container {
	position: absolute;
	z-index: 1;
	top: calc(100% - 50px);
	left: 0;
	width: 100%;
	padding: 50px 5px 5px;
	height: min-content;
	background-color: #fff;
	border: none;
	border-radius: 5px;
	box-shadow: 0 3px 50px #00000029;
	overflow: hidden;
}

.fresh-suggestions::before {
	content: '';
	display: block;
	width: 90%;
	margin-left: 5%;
	height: 1px;
	background-color: #EBEBEB;
}

.autosuggestions-container .suggestion {
	display: block;
	padding: 10px 15px;
	font-size: 16px;
	font-weight: 300;
	color: #868686;
	transition: all 0.2s ease-in-out;
}

.autosuggestions-container .suggestion.selected,
.autosuggestions-container .suggestion:hover,
.autosuggestions-container .suggestion.selected .found-part,
.autosuggestions-container .suggestion:hover .found-part {
	color: var(--color-primary);
}

.autosuggestions-container .found-part {
	color: #000;
	transition: all 0.2s ease-in-out;
}

/* Medium & down */
@media screen and (max-width: 1200px) {
	.companies-search-box {
		width: 70%;
	}

	.companies-search-box .inner {
		margin: 0 auto;
	}
}

/* Small */
@media screen and (max-width: 950px) {
	.companies-search-box {
		margin: 0;
		width: 100%;
	}

	.companies-search-box .inner {
		max-width: 100%;
		padding: 18px;
	}

	.companies-search-box .inner .component-title {
		font-size: 16px;
	}

	.companies-search-box .inner .search-terms-wrap {
		row-gap: 10px;
		margin-top: 10px;
	}

	.companies-search-box .inner .search-terms-wrap .terms-row {
		column-gap: 10px;
	}

	.companies-search-box .search-terms-wrap .search-term {
		font-size: 11px;
		padding: 10px 10px 8px;
		column-gap: 5px;
	}

	.companies-search-box .search-terms-wrap .search-term img {
		max-width: 10px;
		max-height: 10px;
	}

	.companies-search-box .search-wrap {
		position: relative;
		margin-top: 15px;
	}

	.companies-search-box .search-wrap .search {
		padding-top: 20px;
		z-index: 2;
	}

	.companies-search-box .search-wrap .search.wide {
		width: 107%;
	}

}