.search-cont {
	--font-family-body: var(--font-body);
	--search-icon: var(--gray-100);
	--search-input-icon-bg: var(--sw-key-color);
	--search-input-icon-bg-hover: var(--sw-key-color-hover);
}

.headerbox-search-form {
	display: flex;
	position: relative;
}

.headerbox-search-form input[type='search'] {
	width: 100%;
	height: 100%;
	min-height: 42px;
	margin: 0;
	border-radius: 0;
	text-indent: var(--space-4);
	font-family: var(--font-family-body);
	padding-right: 44px;
	border-radius: 2em;
	font-size: var(--text-xs);
}

.headerbox-search-form input[type='search']::placeholder {
	color: #b5b5b5;
}

.headerbox-search-form input[type='search']::first-letter {
	text-transform: uppercase;
}

.headerbox-search-form button {
	width: 40px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background-color: var(--blue-green);
	color: #fff;
	position: absolute;
	right: 0;
	top: 0;
	height: 38px;
	margin: 2px;
	border-radius: 2em;
	width: 38px;
}

.search-cont .search-button {
	display: none;
	background: transparent;
	color: var(--search-icon);
	outline: none;
}

.search-cont .search-button:focus-visible {
	outline: var(--sw-focus-color) solid 1px;
	outline-offset: -7px;
}

.search-cont .search-button .open {
	margin: 0 auto;
	filter: brightness(0) invert(1);
	outline: none;
}

@media screen and (min-width: 64em) {
	.search-cont {
		position: relative;
	}

	.search-cont .search-button {
		width: 46px;
		height: 46px;
		padding: 0;
		margin: 0;
		border: 1px solid #fff;
		border-radius: 50%;
	}
	.search-cont .search-button .close {
		display: none;
	}

	.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: 100%;
		top: 0;
		width: 556px;
		height: 100%;
		z-index: 25;
		background: #fff;
		border-radius: 50%;
		translate: 47px 0;
		transition: opacity 200ms ease-in-out;
	}

	.search-cont.active .headerbox-search-form {
		opacity: 1;
		pointer-events: all;
	}

	.headerbox-search-form button {
		width: 40px;
		height: 100%;
		padding: 0;
		margin: 0;
		background-color: transparent;
		margin-right: 45px;
		translate: 0 1px;
	}

	.headerbox-search-form button:after {
		content: '';
		position: absolute;
		left: -16px;
		top: 8px;
		width: 1px;
		background: var(--grey);
		height: 32px;
		opacity: 0.5;
	}

	.search-cont .search-button {
		display: block;
		z-index: 25;
		position: relative;
	}
	.search-cont .search-button.active {
		background-color: #bebebe;
		translate: 0 2px;
	}
	.headerbox-search-form input[type='search'] {
		font-size: var(--text-base);
		min-height: 50px;
	}
}

/* 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);
	}
}

@media (max-width: 1023px) {
	.headerbox-search-form button img {
		filter: brightness(0) invert(1);
		width: 28px;
		margin-inline: auto;
	}
	@media (hover: hover) {
		.headerbox-search-form button:hover {
			background-color: var(--blue-green);
		}
	}
}
