#header-search {
	width:100%;
	max-height: 0;
	padding:0;
	z-index:2;
	opacity:0;
	visibility:hidden;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	background-color:#fff;
	position:absolute;
}
body.search-field-active #header-search {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
}
#search-form {
	position:relative;
	width: 100%;
	flex-grow: 1;
}
.search-input-wrapper {
	position: relative;
	display:flex;
	align-items:center;
}
.search-input-wrapper input#search-input {
    padding: 30px;
    font-size: 36px;
    font-weight: 300;
	color: #000;
    outline: none;
    border: none;
	border-radius:none;
	background-color:transparent;
}
.search-input-wrapper input#search-input::placeholder {
    color: #ccc;
}
.search-input-wrapper input#search-input:focus::placeholder,
.search-input-wrapper input#search-input:not(:placeholder-shown)::placeholder {
    border:none;
}
.search-input-wrapper button#searchToggle {
	display:none;
}
#search-button {
  border: none;
  cursor: pointer;
  border-radius:50%;
  padding:0px;
  height:25px;
  width:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background:transparent;
  display:none;
}
#search-button:hover {
	color:var(--secondary-colour, #666)
}
.preloader-container {
	display: flex;
	justify-content: end;
	align-items: center;
	position: relative;
	margin-right:15px;
}
.preloader {
	width: 40px;
	height: 40px;
	border: 2px solid rgba(0, 0, 0, 0.3);
	border-top: 2px solid #000;
	border-radius: 50%;
	animation: spin 0.5s linear infinite;
	display: none;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
ul#suggestions-list {
	width:100%;
	box-sizing:border-box;
	background-color:#eee;
	list-style-type:none;
	margin:0;
	display:flex;
	padding:0 5px;
	overflow-x: auto;z-index:11;
}
ul#suggestions-list li {
	padding:15px 30px;
	display:flex;
	align-items:center;
	background-color:#fff;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	margin:20px 10px;
	min-width:300px;
}
ul#suggestions-list li img {
	width:70px;
	height:70px;
	margin-right:20px;
	border-radius:5px;
	overflow:hidden;
}
#no-results-message {
	background-color: #eee;
	z-index: 11;
	padding: 20px;
	width: calc(100%);
}
.search-overlay {
	width:100%;
	height:100%;
	background-color:rgba(0,0,0,0.5);
	position:fixed;
	top:0;
	left:0;
	z-index:2;
	opacity:0;
	visibility:hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    -webkit-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    -ms-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    -o-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
body.search-field-active .search-overlay {
	visibility:visible;
	opacity:1;
}
body.search-field-active main#content,
body.search-field-active #primary,
body.search-field-active #sub-header-wrapper,
body.search-field-active footer#site-footer,
body.search-field-active footer {
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	filter: blur(4px);
	transition: filter 0.3s ease;
}
.popular-searches {
	width:100%;
	background-color:#fff;
	padding:30px;
	overflow-x: auto;
}
.popular-searches span {
	font-size:16px;
	font-weight:bold;
}
.popular-searches ul {
	display:flex;
	margin:0;
	padding:0;
	gap:20px;
}
.popular-searches ul li {
	list-style-type:none;
	margin-top:20px;
}
.popular-searches ul li a {
	padding:5px 20px;
	border:2px solid var(--primary-colour, #000);
	border-radius:50px;
	color:var(--primary-colour, #000);
	font-size:14px;
	font-weight:bold;
}
.popular-searches ul li a:hover {
	background-color:var(--primary-colour, #000);
	color:#fff;
}
/*******************************************
WooCommerce Styles
*******************************************/
body.search-field-active.woocommerce div.product {
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	filter: blur(4px);
	transition: filter 0.3s ease;
}
/*******************************************
Responsive Breakpoints
*******************************************/
@media screen and (max-width:768px) {
	#header-search { position:inherit; opacity: 1; visibility: visible; max-height:inherit; margin:0 20px 10px 20px; width:calc(100% - 40px); }
	.search-input-wrapper input#search-input { padding:11px 10px 10px 60px; font-size:16px; font-weight:400;}
	.search-input-wrapper {background-color:#EEF2F5; border-radius:15px;}
	.search-input-wrapper button#searchToggle { display:block; width:35px; height:35px; position:absolute; top:6px; left:6px; background-color:#fff; color:#4C5961; display:flex; align-items:center; justify-content:center; border-radius:10px; padding:0; pointer-events: none;  cursor: not-allowed;}
	.search-input-wrapper button#searchToggle.active {pointer-events:inherit; cursor:pointer;}
	.search-input-wrapper button#searchToggle i { line-height:0;}
	.search-input-wrapper button#searchToggle.active i:before { content:"\0027";}
	.search-input-wrapper input#search-input::placeholder { color: #999;}
	.preloader { width:25px; height:25px;}
	ul#suggestions-list { flex-wrap:wrap; margin:8px 0 0 0; border-radius:10px;background-color:#EEF2F5;}
	ul#suggestions-list li { margin:5px 10px}
	ul#suggestions-list li:first-child { margin:10px 10px 5px 10px;}
	ul#suggestions-list li:last-child { margin:5px 10px 10px 10px;}
}