/* The JS-owned body class keeps search working without CSS :has() support. */
body.vyloha-search-open {
	overflow-x: hidden;
}

body.vyloha-search-open .header {
	z-index: 2147483000 !important;
}

body.vyloha-search-open .header__controls-search-wrap.is-opened {
	display: flex !important;
	align-items: center;
	position: fixed !important;
	top: var(--vyloha-search-top, 88px) !important;
	left: 50% !important;
	right: auto !important;
	z-index: 60010 !important;
	height: 56px !important;
	padding: 5px !important;
	transform: translateX(-50%) !important;
	border: 1px solid #e6ded1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(20, 17, 13, .18);
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
}

body.vyloha-search-open .header__controls-search-wrap.is-opened form {
	display: flex !important;
	align-items: center;
	width: 100% !important;
	height: 44px !important;
}

body.vyloha-search-open .header__controls-search-wrap.is-opened input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 44px !important;
	font-size: 16px !important;
}

body.vyloha-search-open .autocomplete {
	position: fixed !important;
	top: var(--vyloha-search-results-top, 148px) !important;
	right: 0;
	left: 0;
	z-index: 2147483001 !important;
	display: block;
	max-height: calc(100vh - var(--vyloha-search-results-top, 148px)) !important;
	overflow: auto;
}

@supports (height: 100dvh) {
	body.vyloha-search-open .autocomplete {
		max-height: calc(100dvh - var(--vyloha-search-results-top, 148px)) !important;
	}
}

@media (max-width: 649px) {
	body.vyloha-search-open .header__controls-search-wrap.is-opened {
		width: calc(100vw - 24px) !important;
		height: 52px !important;
	}

	body.vyloha-search-open .header__controls-search-wrap.is-opened form,
	body.vyloha-search-open .header__controls-search-wrap.is-opened input {
		height: 42px !important;
	}
}

@media (min-width: 650px) and (max-width: 999px) {
	body.vyloha-search-open .header__controls-search-wrap.is-opened {
		width: min(780px, calc(100vw - 24px)) !important;
	}
}

@media (min-width: 1000px) {
	body.vyloha-search-open .header__controls-search-wrap.is-opened {
		width: min(760px, calc(100vw - 40px)) !important;
	}
}
