/* Bright Addons Pro: AJAX Live Search */

/* Elementor Container: fill the width the container gives widgets. */
/* Same fix Elementor uses for its own Video and Accordion widgets: without it the */
/* widget shrinks to its content in Row or centred containers and can collapse to 0px. */
.e-con > .elementor-widget-bapro-live-search,
.e-con-inner > .elementor-widget-bapro-live-search {
	width: var(--container-widget-width, 100%);
	--flex-grow: var(--container-widget-flex-grow);
}

.bapro-ls {
	--bapro-ls-accent: #5b3df5;
	--bapro-ls-w: 100%;
	--bapro-ls-h: 50px;
	--bapro-ls-radius: 12px;
	--bapro-ls-max: 440px;
	--bapro-ls-thumb: 48px;
	--bapro-ls-active: #f5f4fe;
	position: relative;
	box-sizing: border-box;
	width: var(--bapro-ls-w);
	max-width: 100%;
}

.bapro-ls.bapro-ls--fullscreen,
.bapro-ls.bapro-ls--popup,
.bapro-ls.bapro-ls--sidebar,
.bapro-ls.bapro-ls--expand,
.bapro-ls.bapro-ls--dropdown {
	width: auto;
}

.bapro-ls *,
.bapro-ls *::before,
.bapro-ls *::after {
	box-sizing: border-box;
}

.bapro-ls .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* ---------- Form ---------- */
.bapro-ls .bapro-ls__form {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: var(--bapro-ls-h);
	margin: 0;
	padding: 4px;
	border: 1px solid #dfe2e8;
	border-style: solid;
	border-radius: var(--bapro-ls-radius);
	background-color: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bapro-ls .bapro-ls__form:focus-within {
	border-color: var(--bapro-ls-accent);
	box-shadow: 0 0 0 3px #e8e4fd;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bapro-ls-accent) 16%, transparent);
}

.bapro-ls__glass {
	align-self: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 2px 0 12px;
	fill: #8a90a0;
}

.bapro-ls:has(.bapro-ls__submit .bapro-btn__icon) .bapro-ls__glass {
	display: none;
}

/* Input: hardened against theme form styles. */
.bapro-ls .bapro-ls__form .bapro-ls__input {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #1d2330;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	outline: 0;
}

.bapro-ls .bapro-ls__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	margin: 0 2px 0 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%238a90a0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	cursor: pointer;
}

.bapro-ls__spinner {
	align-self: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 10px;
	border: 2px solid #e1e3ea;
	border-top-color: var(--bapro-ls-accent);
	border-radius: 50%;
	opacity: 0;
	animation: bapro-ls-spin 0.7s linear infinite;
	transition: opacity 0.2s ease;
}

.bapro-ls.is-loading .bapro-ls__spinner,
.bapro-ls__inner.is-loading .bapro-ls__spinner {
	opacity: 1;
}

@keyframes bapro-ls-spin {
	to {
		rotate: 360deg;
	}
}

/* Submit: hardened against theme and Site Settings button styles. */
.bapro-ls .bapro-ls__form .bapro-ls__submit {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: calc(var(--bapro-ls-h) - 8px);
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: calc(var(--bapro-ls-radius) - 4px);
	background: var(--bapro-ls-accent);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

.bapro-ls .bapro-ls__form .bapro-ls__submit:hover {
	filter: brightness(1.08);
}

.bapro-ls .bapro-ls__form .bapro-ls__submit:focus-visible {
	outline: 2px solid var(--bapro-ls-accent);
	outline-offset: 2px;
}

.bapro-ls__submit svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

.bapro-ls .bapro-btn__icon {
	display: inline-flex;
}

/* ---------- Results ---------- */
.bapro-ls__drop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 999;
	max-height: var(--bapro-ls-max);
	overflow-y: auto;
	border: 1px solid #eceef3;
	border-radius: 14px;
	background-color: #fff;
	box-shadow: 0 18px 50px rgba(20, 24, 40, 0.16);
	overscroll-behavior: contain;
	animation: bapro-ls-in 0.2s ease;
}

@keyframes bapro-ls-in {
	from {
		opacity: 0;
		translate: 0 -6px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

.bapro-ls .bapro-ls__list {
	margin: 0;
	padding: 6px;
	list-style: none;
}

.bapro-ls .bapro-ls__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bapro-ls .bapro-ls__item::before,
.bapro-ls .bapro-ls__item::marker {
	content: none;
}

.bapro-ls .bapro-ls__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
}

.bapro-ls .bapro-ls__item.is-active .bapro-ls__link,
.bapro-ls .bapro-ls__link:hover {
	background-color: var(--bapro-ls-active);
}

.bapro-ls__thumb {
	flex: 0 0 auto;
	width: var(--bapro-ls-thumb);
	height: var(--bapro-ls-thumb);
	overflow: hidden;
	border-radius: 8px;
	background: #f2f3f7;
}

.bapro-ls .bapro-ls__thumb img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.bapro-ls__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bapro-ls__title {
	color: #1d2330;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bapro-ls__title mark {
	padding: 0 1px;
	border-radius: 3px;
	background: #fff1a8;
	color: inherit;
}

.bapro-ls__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.bapro-ls__type {
	padding: 1px 7px;
	border-radius: 20px;
	background: #f2f3f7;
	color: #6b7180;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1.6;
	text-transform: uppercase;
}

.bapro-ls__price {
	color: var(--bapro-ls-accent);
	font-size: 13px;
	font-weight: 700;
}

.bapro-ls__price del {
	color: #9aa0ad;
	font-weight: 400;
}

.bapro-ls__text {
	color: #6b7180;
	font-size: 13px;
	line-height: 1.45;
}

.bapro-ls .bapro-ls__empty {
	margin: 0;
	padding: 18px;
	color: #6b7180;
	font-size: 14px;
	text-align: center;
}

.bapro-ls .bapro-ls__all {
	display: block;
	padding: 12px 16px;
	border-top: 1px solid #eceef3;
	color: var(--bapro-ls-accent);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.bapro-ls .bapro-ls__all:hover,
.bapro-ls .bapro-ls__all.is-active {
	background-color: var(--bapro-ls-active);
}

/* ---------- Full screen ---------- */
.bapro-ov-trigger-wrap .bapro-ov-trigger.bapro-ls__open {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	font-size: 18px;
}

.bapro-ls__layer {
	--bapro-ov-shade: rgba(255, 255, 255, 0.97);
	display: flex;
	justify-content: center;
	padding: 14vh 20px 20px;
}

.bapro-ls__dialog {
	width: 760px;
	max-width: 100%;
	opacity: 0;
	translate: 0 -20px;
	transition: opacity var(--bapro-ov-duration) ease, translate var(--bapro-ov-duration) ease;
}

.bapro-ov.is-open .bapro-ls__dialog {
	opacity: 1;
	translate: 0 0;
}

/* Above the search box (a fixed position would follow the dialog's own
   slide-in transform, not the screen). */
.bapro-ls__layer .bapro-ov__dialog .bapro-ov__close {
	top: -58px;
	right: 0;
}

.bapro-ls__inner {
	--bapro-ls-h: 64px;
	width: 100%;
}

.bapro-ls__inner .bapro-ls__form .bapro-ls__input {
	font-size: 20px;
}

.bapro-ls__inner .bapro-ls__drop {
	position: static;
	max-height: calc(80vh - 140px);
	margin-top: 12px;
}

@media (max-width: 767px) {
	.bapro-ls__layer {
		padding-top: 80px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bapro-ls__drop,
	.bapro-ls__spinner {
		animation: none;
	}

	.bapro-ls__dialog {
		transition: none;
	}
}

/* ---------- Category dropdown in the box ---------- */
.bapro-ls .bapro-ls__form .bapro-ls__cat-wrap {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin: 0 4px 0 0;
	border-right: 1px solid #e6e8ee;
}

.bapro-ls .bapro-ls__form .bapro-ls__cat-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 7px;
	height: 7px;
	margin-top: -5px;
	border-right: 2px solid #8a90a0;
	border-bottom: 2px solid #8a90a0;
	transform: rotate(45deg);
	pointer-events: none;
}

/* Hardened against theme form styles. */
.bapro-ls .bapro-ls__form .bapro-ls__cat {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	max-width: 170px;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 32px 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #3a4152;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-overflow: ellipsis;
	cursor: pointer;
	outline: 0;
}

.bapro-ls .bapro-ls__form .bapro-ls__cat:focus-visible {
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px var(--bapro-ls-accent);
}

.bapro-ls__form:has(.bapro-ls__cat) .bapro-ls__glass {
	display: none;
}

@media (max-width: 767px) {
	.bapro-ls .bapro-ls__form .bapro-ls__cat {
		max-width: 110px;
	}
}

/* ---------- Grouped results and SKU ---------- */
.bapro-ls .bapro-ls__list .bapro-ls__group {
	margin: 0;
	padding: 10px 10px 4px;
	color: var(--bapro-ls-group, #8a90a0);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	list-style: none;
	text-transform: uppercase;
}

.bapro-ls .bapro-ls__list .bapro-ls__group::before,
.bapro-ls .bapro-ls__list .bapro-ls__group::marker {
	content: none;
}

.bapro-ls .bapro-ls__list .bapro-ls__group:not(:first-child) {
	margin-top: 4px;
	border-top: 1px solid #eceef3;
	padding-top: 12px;
}

.bapro-ls__sku {
	color: #8a90a0;
	font-size: 12px;
}

/* ---------- Recent and popular searches ---------- */
.bapro-ls .bapro-ls__extra {
	padding: 14px 16px 6px;
}

.bapro-ls .bapro-ls__section {
	margin: 0 0 12px;
}

.bapro-ls .bapro-ls__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
}

.bapro-ls .bapro-ls__section-title {
	color: #6b7180;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Small buttons: hardened against theme and Site Settings button styles. */
.bapro-ls .bapro-ls__extra .bapro-ls__clear,
.bapro-ls .bapro-ls__extra .bapro-ls__chip-pick,
.bapro-ls .bapro-ls__extra .bapro-ls__chip-x {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.bapro-ls .bapro-ls__extra .bapro-ls__clear {
	padding: 2px 4px;
	color: var(--bapro-ls-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.bapro-ls .bapro-ls__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bapro-ls .bapro-ls__chip {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	background-color: var(--bapro-ls-chip-bg, #f2f3f7);
	list-style: none;
	transition: background-color 0.18s ease;
}

.bapro-ls .bapro-ls__chip::before,
.bapro-ls .bapro-ls__chip::marker {
	content: none;
}

.bapro-ls .bapro-ls__chip:hover,
.bapro-ls .bapro-ls__chip:has(.is-active) {
	background-color: var(--bapro-ls-active);
}

.bapro-ls .bapro-ls__extra .bapro-ls__chip-pick {
	padding: 7px 12px;
	color: var(--bapro-ls-chip, #1d2330);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.bapro-ls .bapro-ls__extra .bapro-ls__chip-pick.is-active {
	outline: 2px solid var(--bapro-ls-accent);
	outline-offset: -2px;
	border-radius: 999px;
}

.bapro-ls .bapro-ls__extra .bapro-ls__chip-x {
	padding: 4px 10px 4px 0;
	color: #8a90a0;
	font-size: 16px;
	line-height: 1;
}

.bapro-ls .bapro-ls__extra .bapro-ls__chip-x:hover {
	color: #1d2330;
}

/* ---------- Icon that opens into a box ---------- */
.bapro-ls.bapro-ls--expand,
.bapro-ls.bapro-ls--dropdown {
	--bapro-ls-w: 320px;
	display: inline-flex;
	align-items: center;
}

.bapro-ls--expand .bapro-ls__box {
	position: absolute;
	top: 50%;
	right: calc(100% + 8px);
	z-index: 9990;
	width: 0;
	max-width: calc(100vw - 80px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%);
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0s linear 0.35s;
}

.bapro-ls--expand.bapro-ls--to-right .bapro-ls__box {
	right: auto;
	left: calc(100% + 8px);
}

.bapro-ls--expand:not(.is-open) .bapro-ls__box {
	overflow: hidden;
}

.bapro-ls--expand.is-open .bapro-ls__box {
	width: var(--bapro-ls-w);
	opacity: 1;
	visibility: visible;
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0s linear 0s;
}

.bapro-ls--expand.is-flipped .bapro-ls__box {
	right: auto;
	left: calc(100% + 8px);
}

.bapro-ls--expand.bapro-ls--to-right.is-flipped .bapro-ls__box {
	right: calc(100% + 8px);
	left: auto;
}

/* ---------- Icon with a box sliding down ---------- */
.bapro-ls--dropdown .bapro-ls__box {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 9990;
	width: var(--bapro-ls-panel-w, 380px);
	max-width: calc(100vw - 32px);
	padding: 12px;
	border-radius: 16px;
	background-color: var(--bapro-ls-panel-bg, #fff);
	box-shadow: 0 18px 50px rgba(20, 24, 40, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.bapro-ls--dropdown.bapro-ls--to-right .bapro-ls__box {
	right: auto;
	left: 0;
}

.bapro-ls--dropdown.is-flipped .bapro-ls__box {
	right: auto;
	left: 0;
}

.bapro-ls--dropdown.bapro-ls--to-right.is-flipped .bapro-ls__box {
	right: 0;
	left: auto;
}

.bapro-ls--dropdown.is-open .bapro-ls__box {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.bapro-ls--dropdown .bapro-ls__box .bapro-ls__drop {
	position: static;
	margin-top: 10px;
	border: 0;
	border-top: 1px solid #eceef3;
	border-radius: 0;
	box-shadow: none;
	animation: none;
}

/* ---------- Search window (popup) ---------- */
.bapro-ls__layer.bapro-ls__layer--popup,
.bapro-ls__layer.bapro-ls__layer--sidebar {
	--bapro-ov-shade: rgba(14, 16, 32, 0.55);
}

.bapro-ls__layer--popup .bapro-ls__dialog {
	width: var(--bapro-ls-panel-w, 640px);
	max-width: 100%;
	max-height: calc(100vh - 14vh - 20px);
	padding: 22px 24px 24px;
	overflow-y: auto;
	border-radius: 18px;
	background-color: var(--bapro-ls-panel-bg, #fff);
	box-shadow: 0 30px 80px rgba(14, 16, 32, 0.3);
}

.bapro-ls__layer--popup .bapro-ov__dialog .bapro-ov__close,
.bapro-ls__layer--sidebar .bapro-ov__dialog .bapro-ov__close {
	top: 14px;
	right: 14px;
}

.bapro-ls__head {
	display: flex;
	align-items: center;
	min-height: 36px;
	margin: 0 0 14px;
	padding-right: 44px;
}

.bapro-ls__heading {
	color: #1d2330;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.bapro-ls__layer--popup .bapro-ls__inner,
.bapro-ls__layer--sidebar .bapro-ls__inner {
	--bapro-ls-h: 54px;
}

.bapro-ls__layer--popup .bapro-ls__inner .bapro-ls__form .bapro-ls__input,
.bapro-ls__layer--sidebar .bapro-ls__inner .bapro-ls__form .bapro-ls__input {
	font-size: 17px;
}

.bapro-ls__layer--popup .bapro-ls__inner .bapro-ls__drop,
.bapro-ls__layer--sidebar .bapro-ls__inner .bapro-ls__drop {
	max-height: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	animation: none;
}

/* ---------- Side panel ---------- */
.bapro-ls__layer.bapro-ls__layer--sidebar {
	padding: 0;
}

.bapro-ls__layer--sidebar .bapro-ls__dialog {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--bapro-ls-panel-w, 440px);
	max-width: 100vw;
	padding: 22px 22px 28px;
	overflow-y: auto;
	background-color: var(--bapro-ls-panel-bg, #fff);
	box-shadow: -18px 0 50px rgba(14, 16, 32, 0.18);
	opacity: 1;
	translate: 100% 0;
}

.bapro-ls__layer--sidebar.bapro-ls__layer--from-left .bapro-ls__dialog {
	right: auto;
	left: 0;
	box-shadow: 18px 0 50px rgba(14, 16, 32, 0.18);
	translate: -100% 0;
}

.bapro-ov.is-open.bapro-ls__layer--sidebar .bapro-ls__dialog {
	translate: 0 0;
}

/* Anything the script hides with the hidden attribute stays hidden, even
   when a display value above (or from the theme) would show it. */
.bapro-ls [hidden],
.bapro-ls__layer[hidden] {
	display: none !important;
}
