.headerbox-search-form {
	--font-family-body: var(--font-display);
	--search-icon: var(--text-black);
	--search-input-icon-bg: var(--yellow);
	--search-input-icon-bg-hover: var(--yellow);

	display: flex;
}

.headerbox-search-form input[type="search"] {
	width: 100%;
	height: 38px;
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-2xl-2);
	font-weight: 500;
	line-height: calc(41/25);
	letter-spacing: 0.03em;
	color: var(--white);
	background-color: var(--text-black);
	padding-bottom: 10px;
	border-bottom: 3px solid rgba(250, 158, 0, 0.4);
	margin-right :var(--space-1);
}

.headerbox-search-form input[type="search"]::placeholder {
	font-family: var(--font-display);
	font-size: var(--text-2xl-2);
	font-weight: 500;
	line-height: calc(41/25);
	letter-spacing: 0.03em;
	color: var(--white);
	padding-bottom: 10px;
}

.headerbox-search-form input[type="search"]::-moz-placeholder { 
	color:var(--white); 
	opacity: 1;
}

.headerbox-search-form button {
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background-color: var(--search-input-icon-bg);
}

@media( hover:hover) {
	.headerbox-search-form button:hover {
		background-color: var(--search-input-icon-bg)
	}
}

.headerbox-search-form button i {
	font-size: 1.1875rem;
	color: var(--text-black);
}

.search-cont .search-button {
	display: none;
	background: var(--text-black);
	color: var(--green);
}

@media screen and (min-width: 64em) {
	.search-cont {
		position: relative;
	}

	.search-cont .search-button {
		width: 50px;
		height: 50px;
		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;
		font-size: 1.375rem;
	}

	.search-cont .headerbox-search-form {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 25;
		justify-content: center;
		align-items: center;
		width: 100vw;
		height: 527px;
		background-color: var(--text-black);
		pointer-events: none;
		opacity: 0;
		transition: opacity 400ms ease;
	}

	.search-cont.active .headerbox-search-form {
		opacity: 1;
		pointer-events: all;
	}

	.headerbox-search-form input[type="search"] {
		width: 565px;
		height: 76px;
		font-size: 3.375rem;
		line-height: calc(54/75);
		padding-bottom: var(--space-4);
		border-bottom: 5px solid rgba(250, 158, 0, 0.4);
		margin-right :var(--space-3);
		transform: translateY(-14px);
	}
	
	.headerbox-search-form input[type="search"]::placeholder {
		font-size: 3.375rem;
		line-height: calc(54/75);
		padding-bottom: var(--space-4);
	}

	.headerbox-search-form button {
		width: 76px;
		height: 76px;
		padding: 0;
		margin: 0;
		transform: translateY(-14px);
	}

	.headerbox-search-form button i {
		font-size: 2.375rem;
	}

	.search-cont .search-button {
		display: block;
		transition: background-color ease 400ms, color ease 400ms;
	}

	.search-cont .search-button i {
		font-size: var(--text-lg);
	}

	/* Required to see close button above search-cont when it's open */
	.search-cont.active .search-button {
		position: relative;
		z-index: 26;
		background-color: var(--green);
		color: var(--text-black);
	}
}

/* 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);
	}
}