.hmea-search {
	display: inline-flex;
}

button.hmea-search__trigger,
button.hmea-search__close,
button.hmea-search__submit,
button.hmea-search__backdrop {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	font: inherit;
	box-shadow: none;
	cursor: pointer;
}

button.hmea-search__trigger,
button.hmea-search__close,
button.hmea-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--e-global-color-primary, #161616);
}

button.hmea-search__trigger {
	width: 42px;
	height: 42px;
	transition: opacity 160ms ease;
}

button.hmea-search__trigger:hover {
	background: transparent;
	color: var(--e-global-color-primary, #161616);
	opacity: 0.62;
	transform: none;
}

.hmea-search__trigger svg,
.hmea-search__submit svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.hmea-search__popup[hidden] {
	display: none;
}

.hmea-search__popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	animation: hmea-search-fade-in 180ms ease both;
}

button.hmea-search__backdrop {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(22, 22, 22, 0.96);
	cursor: default;
}

button.hmea-search__backdrop:hover,
button.hmea-search__backdrop:focus {
	background: rgba(22, 22, 22, 0.96);
}

.hmea-search__panel {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(72px, 8vw, 120px) clamp(24px, 8vw, 140px);
	pointer-events: none;
	animation: hmea-search-content-in 240ms ease both;
}

button.hmea-search__close {
	position: absolute;
	top: clamp(22px, 4vw, 52px);
	right: clamp(22px, 4vw, 52px);
	width: 48px;
	height: 48px;
	background: transparent;
	color: #ffffff;
	pointer-events: auto;
	transition: opacity 160ms ease, transform 160ms ease;
}

button.hmea-search__close:hover {
	background: transparent;
	color: #ffffff;
	opacity: 0.62;
	transform: rotate(6deg);
}

.hmea-search__close svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.75;
}

.hmea-search__form {
	display: flex;
	align-items: center;
	width: min(100%, 960px);
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, 0.82);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	pointer-events: auto;
}

.hmea-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 16px 0 20px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #ffffff;
	font: inherit;
	font-size: clamp(30px, 4vw, 56px);
	font-weight: 400;
	line-height: 1.1;
}

.hmea-search__input:focus {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.hmea-search__input::placeholder {
	color: #ffffff;
	opacity: 0.52;
}

.hmea-search__input::-webkit-search-cancel-button {
	display: none;
}

button.hmea-search__submit {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	background: transparent;
	color: #ffffff;
	transition: opacity 160ms ease, transform 160ms ease;
}

button.hmea-search__submit:hover {
	background: transparent;
	color: #ffffff;
	opacity: 0.62;
	transform: translateX(2px);
}

body.hmea-search-is-open {
	overflow: hidden;
}

button.hmea-search__trigger:focus-visible,
button.hmea-search__close:focus-visible,
button.hmea-search__submit:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #efcf00);
	outline-offset: 3px;
}

/* Keep Elementor Site Kit button styles from changing the fullscreen controls. */
.elementor-kit-7 button.hmea-search__trigger,
.elementor-kit-7 button.hmea-search__close,
.elementor-kit-7 button.hmea-search__submit,
.elementor-kit-7 button.hmea-search__backdrop {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.elementor-kit-7 button.hmea-search__trigger,
.elementor-kit-7 button.hmea-search__trigger:hover,
.elementor-kit-7 button.hmea-search__trigger:focus {
	background: transparent;
	color: var(--e-global-color-primary, #161616);
	transform: none;
}

.elementor-kit-7 button.hmea-search__backdrop,
.elementor-kit-7 button.hmea-search__backdrop:hover,
.elementor-kit-7 button.hmea-search__backdrop:focus {
	background: rgba(22, 22, 22, 0.96);
}

.elementor-kit-7 button.hmea-search__close,
.elementor-kit-7 button.hmea-search__close:hover,
.elementor-kit-7 button.hmea-search__close:focus,
.elementor-kit-7 button.hmea-search__submit,
.elementor-kit-7 button.hmea-search__submit:hover,
.elementor-kit-7 button.hmea-search__submit:focus {
	background: transparent;
	color: #ffffff;
}

@keyframes hmea-search-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes hmea-search-content-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	.hmea-search__panel {
		padding: 72px 24px;
	}

	button.hmea-search__close {
		top: 14px;
		right: 14px;
	}

	.hmea-search__input {
		padding-bottom: 15px;
		font-size: 28px;
	}

	button.hmea-search__submit {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmea-search__popup,
	.hmea-search__panel {
		animation: none;
	}
}
