.headerbox-search-form {
	--search-icon: #4D5947;
	--seach-input-icon-bg: #FFF;
	--seach-input-icon-bg-hover: #FFF;

	display: flex;
}

.headerbox-search-form input[type="search"] {
	width: 100%;
	max-width: 228px;
	height: 29px;
	margin: 0;
	font-size: var(--text-base);
	text-indent: 16px;
	font-family: var(--font-display);
	color: #5fa49a;
}

.headerbox-search-form input[type="search"]:focus {
	outline: 1px dashed #FFF;
	color: var(--light-grey);
}

.headerbox-search-form input[type="search"]::placeholder {
	color: var(--light-grey);
	font-size: var(--text-base);
	text-indent: 16px;
}

.headerbox-search-form button {
	width: 40px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background-color: var(--seach-input-icon-bg);
	color: var(--search-icon);
}

.headerbox-search-form button:hover {
	background-color: var(--seach-input-icon-bg-hover);
}

.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 {
		width: 40px;
		height: 40px;
		padding: 0;
		margin: 0;
	}

	.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: 10px;
		top: 48px;
		width: 364px;
		height: 36px;
		z-index: 25;
		transition: opacity 200ms ease-in-out;
		justify-content: end;
	}

	.search-cont.active .headerbox-search-form {
		opacity: 1;
		pointer-events: all;
	}

	.headerbox-search-form input[type="search"] {
		font-size: 18px;
		width: 315px;
		height: 100%;
		max-width: none;
	}

	.headerbox-search-form input[type="search"]::placeholder {
		font-size: 18px;
	}

	.headerbox-search-form button {
		width: 50px;
		height: 100%;
		padding: 0;
		margin: 0;
		padding-bottom: 2px;
	}

	.search-cont .search-button {
		display: block;
		font-size: 22px;
		cursor: pointer;
	}

	.search-cont .search-button.active,
	.search-cont .headerbox-search-form button {
		font-size: 22px;
	}
}
