.aehs-search-widget {
	display: inline-flex;
	align-items: center;
}

.aehs-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	min-width: auto;
	appearance: none;
	cursor: pointer;
	color: #111111;
	line-height: 0;
}

.aehs-trigger-icon {
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

.aehs-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	--aehs-overlay-color: #0f0f0f;
	--aehs-overlay-bg-opacity: 94;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.aehs-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--aehs-overlay-color);
	opacity: calc(var(--aehs-overlay-bg-opacity) / 100);
	pointer-events: none;
}

.aehs-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.aehs-overlay-inner {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
}

.aehs-form {
	display: flex;
	gap: 14px;
}

.aehs-input {
	flex: 1;
	min-height: 62px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: clamp(18px, 2.4vw, 28px);
	line-height: 1;
}

.aehs-input:focus {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

.aehs-input::placeholder {
	color: rgba(255, 255, 255, 0.75);
}

.aehs-submit {
	min-height: 62px;
	padding: 0 22px;
	border: 1px solid #ffffff;
	background: #ffffff;
	color: #111111;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aehs-close {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 1;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

body.aehs-search-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.aehs-form {
		flex-direction: column;
	}

	.aehs-input,
	.aehs-submit {
		width: 100%;
		min-height: 56px;
	}
}
