.search-cont {
	--font-family-body: var(--font-body);
	--search-input-icon-bg: var(--white);
}

.headerbox-search-form {
	display: flex;
}

.headerbox-search-form input[type="search"] {
	width: 100%;
	height: 45px;
	margin: 0;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	font-size: var(--text-base);
	text-indent: 10px;
	font-family: var(--font-family-body);
	color: #bbbbbb;
}

.headerbox-search-form input[type="search"]::placeholder {
	font-size: var(--text-base);
	text-indent: 10px;
	font-family: var(--font-family-body);
	color: #bbbbbb;
}

.headerbox-search-form button {
	position: relative;
	width: 54px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background-color: var(--search-input-icon-bg);
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

@media (hover: hover) {
	.headerbox-search-form button:hover {
		background-color: var(--white);
	}
}

.headerbox-search-form button::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 35px;
	background-color: #dddddd;
	pointer-events: none;
}

.search-cont .search-button {
	display: none;
	background: transparent;
	color: var(--search-icon);
}

@media screen and (min-width: 64em) {
	.search-cont {
		position: relative;
	}

	.search-cont .search-button {
		position: relative;
		z-index: 26;
		width: 51px;
		height: 49px;
		border-top-right-radius: 5px;
		border-bottom-right-radius: 5px;
		padding: 0;
		margin: 0;
		transition: background-color 100ms 300ms ease-in-out;
	}

	.search-cont.active .search-button {
		background-color: var(--white);
		transition: background-color 400ms ease-in-out;
	}

	.search-cont .search-button svg {
		margin: 0 auto;
		pointer-events: none;
	}

	.search-cont .search-button .close,
	.search-cont.active .search-button .open {
		display: none;
	}

	.search-cont.active .search-button .close {
		display: block;
	}

	.search-cont .headerbox-search-form {
		opacity: 0;
		pointer-events: none;
		position: absolute;
		right: 0;
		top: 0;
		width: 0;
		height: 100%;
		z-index: 25;
		transition: width 400ms ease-in-out, right 300ms 100ms ease-in-out, opacity 0ms 400ms ease-in-out;
	}

	.search-cont.active .headerbox-search-form {
		opacity: 1;
		width: 398px;
		right: 100%;
		pointer-events: all;
		transition: width 400ms ease-in-out, right 100ms 300ms ease-in-out, opacity 0ms ease-in-out;
	}

	.headerbox-search-form input[type="search"] {
		height: 49px;
		text-indent: var(--space-5);
		color: var(--gray);
		padding-right:0;
	}
	
	.headerbox-search-form input[type="search"]::placeholder {
		text-indent: var(--space-5);
		color: var(--gray);
	}

	.headerbox-search-form button {
		height: 49px;
		width: 0;
		padding: 0;
		margin: 0;
		transition: border-radius 0ms 200ms ease-in-out, width 0ms 200ms ease-in-out;
	}

	.search-cont.active .headerbox-search-form button {
		width: 58px;
		border-top-right-radius: unset;
		border-bottom-right-radius: unset;
	}

	.headerbox-search-form button::after {
		left: unset;
		right: 0;
		background-color: #d0e6e1;
	}

	.search-cont .search-button {
		display: block;
	}
}

/* Hamburger Header styles */
.dropdown-nav-container .search-cont .headerbox-search-form {
	opacity: 1;
	position: static;
	pointer-events: all;
}

.dropdown-nav-container .search-cont .headerbox-search-form input[type="search"] {
	height: unset;
}

.dropdown-nav-container .nav .search-cont .search-button {
	display: none;
}

@media (min-width: 64em) {
	.dropdown-nav-container .search-cont .headerbox-search-form {
		width: 100%;
	}

	.dropdown-nav-container .nav .search-cont .headerbox-search-form button {
		width: var(--space-12);
	}
}