.headerbox-search-form {
	display: flex;
	background: var(--white);
	border-bottom: 4px solid var(--blue);
}

.headerbox-search-form input[type="search"] {
	display: block;
	flex-grow: 1;
	height: 40px;
	padding: 12px 14px;
	margin: 0;
	font-family: var(--trade-gothic);
	font-weight: normal;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--navy-dark);
}

.headerbox-search-form input[type="search"]::placeholder {
	font: inherit;
}

.headerbox-search-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	aspect-ratio: 1;
	flex-shrink: 0;
	padding: 0;
	border: none;
	background-color: var(--blue);
	color: var(--white);
	font-size: 20px;
}

.search-cont .search-button {
	display: none;
	justify-content: center;
	align-items: center;
	width: 42px;
	height: 44px;
	padding: 0;
	background-color: transparent;
	border: none;
	border-bottom: 4px solid transparent;
	font-size: 24px;
	color: inherit;
	transition:
		background-color var(--transition),
		border-color var(--transition),
		color var(--transition);
}

.search-cont .search-button.active {
	background: var(--blue);
	border-color: var(--blue);
	color: var(--white);
}

@media (hover: hover) {
	.headerbox-search-form button:hover {
		background-color: var(--blue);
	}
}

@media (min-width: 64em) {
	.search-cont {
		position: relative;
	}

	.search-cont .search-button {
		display: flex;
	}

	.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 {
		position: absolute;
		right: 100%;
		top: 0;
		z-index: 25;
		display: none;
		pointer-events: none;
		transition: opacity 200ms ease-in-out;
	}

	.search-cont.active .headerbox-search-form {
		display: flex;
		pointer-events: all;
	}

	.headerbox-search-form input[type="search"] {
		width: 400px;
	}

	.desktop-nav-container .headerbox-search-form input[type="search"] {
		width: 271px;
	}

	.headerbox-search-form button {
		width: 40px;
		height: 100%;
		padding: 0;
		margin: 0;
		background-color: transparent;
		color: var(--blue);
	}
	
	@media (hover: hover) {
		.headerbox-search-form button:hover {
			background-color: transparent;
			color: var(--blue);
		}
	}
}

/* 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);
	}
}