.headerbox-search-form {
	--font-family-body: var(--font-body);
	--search-icon: var(--gray-100);
	--search-input-icon-bg: var(--primary-color-800);
	--search-input-icon-bg-hover: var(--primary-color-600);

	display: flex;
}

.headerbox-search-form { 
	display: flex;
	align-items: flex-end;
}

.headerbox-search-form input[type="search"] {
	width: 100%;
	height: 100%;
	margin: 0;
	font-size: var(--text-base);
	text-indent: var(--space-1);
	font-family: var(--font-header);
	font-size: var(--text-xl);
	padding: 0 10px;
	background: var(--white);
	color: var(--black);
	height: 45px;
}

.headerbox-search-form input[type="search"]::placeholder {
	font-size: var(--text-xl);
	font-family: var(--font-header);
	color: var(--black);
	padding: 0;
	margin: 0;
}

.headerbox-search-form button {
	width: 60px;
	height: 100%;
	padding: 0;
	margin: 0;
	font-size: var(--text-lg);
	padding: 10px 0;
	color: var(--white);
	background: url('/includes/client_public/assets/shared/icons/magnifyglass.svg') no-repeat center center;
	background-size: 25px;
}

.search-cont button .fa-search::before {
	color: var(--primary-color);
	display: none;
}

.search-cont .search-button {
	display: block;
}

.search-cont {
	z-index: 5;
	display: none;
}

.search-cont .search-button {
	display: none;
	background: transparent;
	color: var(--search-icon);
	background: url('/includes/client_public/assets/shared/icons/magnifyglass.svg') no-repeat center center;
	background-size: 25px;
}

.search-cont .search-button .fa-search:before {
	content: '';
}

@media screen and (min-width: 64em) {
	.search-cont {
		display: block;
		position: relative;
	}
	
	.search-cont-inner {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: var(--primary-color);
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		pointer-events: none;
		opacity: 0;
	}

	.search-cont.active .search-cont-inner {
		opacity: 1;
		pointer-events: all;
	}

	.search-cont .search-button {
		width: 25px;
		height: 25px;
		padding: 0;
		margin: 0;
	}

	.search-cont.active .search-button.active {
		margin: 0 0 var(--space-5);
	}

	.search-cont .search-button .close {
		display: none;
	}

	.search-cont.active .search-button .open {
		display: none;
	}
	.search-cont.active .search-button .close {
		display: block;
		position: relative;
		transition-delay: 0.12s;
		transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
		margin: 10px 0 0;
		height: 28px;
		width: 27px;
	}

	.search-cont.active .search-button .close::before {
		content: '';
		display: inline-block;
		width: 28px;
		height: 2px;
		background-color: var(--white);
		top: 11px;
		position: absolute;
		transform: rotate(135deg);
	}

	.search-cont.active .search-button .close::after {
		content: '';
		display: inline-block;
		width: 28px;
		height: 2px;
		background-color: var(--white);
		bottom: 0;
		transform: rotate(-135deg);
		transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
	}

	.search-cont .headerbox-search-form {
		height: auto;
		width: 780px;
		z-index: 25;
	}

	.headerbox-search-form input[type="search"] {
		font-size: var(--text-4xl);
		padding: 10px var(--space-10);
		height: auto;
	}

	.headerbox-search-form input[type="search"]::placeholder {
		font-size: var(--text-4xl);
	}

	.headerbox-search-form button {
		width: 80px;
		height: 100%;
		padding: 0;
		margin: 0;
		font-size: var(--text-3xl);
		padding: 15px 0;
		background-size: 35px;
	}

	.headerbox-search-form button:hover {
		background: url('/includes/client_public/assets/shared/icons/magnifyglass.svg') no-repeat center center;
		background-size: 35px;
	}

	.search-cont .search-button {
		display: block;
	}

	html:has(.search-cont.active) {
		overflow: hidden;
	}

	.search-cont.active .search-button.active {
		overflow: visible;
	}
}

/* Hamburger Header styles */
.panel-header.hamburger .search-cont .headerbox-search-form {
	opacity: 1;
	position: static;
	pointer-events: all;
}

.panel-header.hamburger .search-cont .headerbox-search-form input[type="search"] {
	height: unset;
}

.panel-header.hamburger .nav .search-cont .search-button {
	display: none;
}

@media (min-width: 64em) {
	.panel-header.hamburger .search-cont .headerbox-search-form {
		width: 100%;
	}

	.panel-header.hamburger .nav .search-cont .headerbox-search-form button {
		width: var(--space-12);
	}
}