.headerbox-search-form {
	--font-family-body: var(--font-body);
	--search-icon: var(--white);
	--seach-input-icon-bg: transparent;
	--seach-input-icon-bg-hover: transparent;

	display: flex;
}

.headerbox-search-form input[type="search"] {
	width: 100%;
	height: 38px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	font-family: var(--font-family-body);
	background-color: var(--peach);
	color: var(--gray);
}

/* Removes 'X' from input field when user is typing */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

.headerbox-search-form input[type="search"]::placeholder {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray);
	font-family: var(--font-family-body);
}

.headerbox-search-form button {
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background-color: var(--seach-input-icon-bg);
}

.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: 64px;
		height: 63px;
		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: 100%;
		top: 0;
		width: 336px;
		height: 38px;
		z-index: 25;
		color: var(--white);
		background-color: transparent;
		font-size: 19px;
		transition: opacity 200ms ease-in-out;
	}

	.search-cont.active .headerbox-search-form {
		opacity: 1;
		pointer-events: all;
	}

	.headerbox-search-form input[type="search"] {
		width: 100%;
		height: 38px;
		font-size: 19px;
		background-color: transparent;
		color: var(--white);
		border-bottom: 2px solid var(--white);
		margin-right: var(--space-6);
		padding-bottom: var(--space-2);
		transform: translateY(20px);
	}

	.headerbox-search-form input[type="search"]::placeholder {
		font-size: 19px;
		color: var(--white);
	}

	.headerbox-search-form button {
		display: none;
	}

	.search-cont .search-button {
		display: block;
	}

	/* Styling for search box when there is no hero item */
	.root-panel.no-hero .headerbox-search-form input[type="search"] {
		border-bottom: 2px solid var(--black);
		color: var(--black);
	}

	.root-panel.no-hero .headerbox-search-form input[type="search"]::placeholder {
		color: var(--black);
	}

	.search-cont .headerbox-search-form {
		color: var(--black);
	}
}

@media (min-width: 1440px) {
	.search-cont .search-button {
		width: 76px;
		height: 75px;
	}
}