/**
 * EBP Algolia search popup styles.
 */

.ebp-algolia-search-popup {
	--ebp-algolia-accent: #21a4d7;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 1.5rem;
}

.ebp-algolia-search-popup[hidden] {
	display: none;
}

.ebp-algolia-search-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.22s ease;
}

.ebp-algolia-search-popup__dialog {
	position: relative;
	width: min(100%, 34rem);
	padding: 2rem 1.5rem 1.5rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
	transform: translateY(1rem) scale(0.96);
	opacity: 0;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.ebp-algolia-search-popup.is-open .ebp-algolia-search-popup__overlay {
	opacity: 1;
}

.ebp-algolia-search-popup.is-open .ebp-algolia-search-popup__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ebp-algolia-search-popup__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.ebp-algolia-search-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ebp-algolia-search-popup__field {
	position: relative;
	margin-bottom: 1rem;
}

.ebp-algolia-search-popup__icon {
	position: absolute;
	top: 50%;
	left: 0.25rem;
	width: 1.25rem;
	height: 1.25rem;
	transform: translateY(-50%);
	fill: var(--ebp-algolia-accent);
	pointer-events: none;
}

.ebp-algolia-search-popup__input {
	width: 100%;
	padding: 0.85rem 0.5rem 0.85rem 2rem;
	border: 0;
	border-bottom: 2px solid var(--ebp-algolia-accent);
	background: transparent;
	font-size: 1.125rem;
	line-height: 1.4;
	outline: none;
	box-sizing: border-box;
}

.ebp-algolia-search-popup__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--ebp-algolia-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.ebp-algolia-search-popup__help {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	opacity: 0.7;
}

.ebp-algolia-search-popup__launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ebp-algolia-search-popup__launcher-icon {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.ebp-algolia-search-popup__launcher--floating {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 99990;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	background: var(--ebp-algolia-accent, #21a4d7);
	color: #fff;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
}

.ebp-algolia-search-popup__launcher--floating .ebp-algolia-search-popup__launcher-icon {
	fill: #fff;
}

body.ebp-algolia-search-popup-open {
	overflow: hidden;
}
