/* Brightline live search (4.6.0; FiboSearch-style layout 4.6.2) */
.bl-ls-form { position: relative; }

/* Box: magnifier on the left, clear (x) on the right */
.bl-search-form--live .bl-search-form__input { padding-left: 2.6em; padding-right: 2.4em; }
.bl-search-form--live .bl-search-form__icon {
	position: absolute; top: 0; left: 0; bottom: 0; width: 2.6em; display: flex; align-items: center; justify-content: center;
	pointer-events: none; opacity: .55;
}
.bl-search-form--live .bl-search-form__icon svg { width: 1.05em; height: 1.05em; }
.bl-search-form__clear {
	position: absolute; top: 0; right: 0; bottom: 0; width: 2.4em; padding: 0; border: 0; background: none;
	color: #999; font-size: 1.4em; line-height: 1; cursor: pointer;
}
.bl-search-form__clear:hover { color: #333; }
.bl-search-form--live input[type=search]::-webkit-search-cancel-button, .bl-search-form--live input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.bl-search-form__clear[hidden] { display: none; }

/* Drop-down */
.bl-ls {
	position: absolute; z-index: 1000; top: 100%; left: 0; margin-top: -1px;
	display: flex; max-height: min(78vh, 720px);
	background: #fff; color: #444; text-align: left; font-size: 15px; line-height: 1.35;
	border: 1px solid #ddd; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.bl-ls[hidden] { display: none; }
.bl-ls__list { flex: 1 1 auto; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 6px; }
.bl-ls__details { display: none; }
.bl-ls--wide .bl-ls__details {
	display: block; flex: 0 0 380px; width: 380px; overflow-y: auto; overscroll-behavior: contain;
	padding: 18px 20px; border-left: 1px solid #eee; background: #fff;
}
.bl-ls--wide .bl-ls__list > .bl-ls__all { display: none; } /* In the details panel instead */

.bl-ls__heading {
	margin: 6px 0 4px; padding: 6px 0; border-bottom: 1px solid #ddd;
	font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #333;
}
.bl-ls__group + .bl-ls__group { margin-top: 14px; }
.bl-ls__item {
	display: flex; align-items: center; gap: 14px; padding: 8px 6px; border-radius: 2px;
	color: inherit !important; text-decoration: none !important;
}
.bl-ls__item:hover, .bl-ls__item.is-active { background: #f3f3f3; }
.bl-ls__item--cat { padding-top: 6px; padding-bottom: 6px; }
.bl-ls__item--cat .bl-ls__title { text-decoration: underline; text-underline-offset: 2px; }
.bl-ls__media { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #e5e5e5; background: #fff; overflow: hidden; }
.bl-ls__item--post .bl-ls__media:empty { display: none; }
.bl-ls__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bl-ls__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bl-ls__title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bl-ls__title strong { font-weight: 700; color: #333; }
.bl-ls__parent { font-size: 12.5px; color: #888; }
.bl-ls__stock { font-size: 12.5px; color: #b32d2e; }
.bl-ls__none { padding: 12px 6px; color: #777; }
.bl-ls__all, .bl-ls__dmore {
	justify-content: center; display: block; margin-top: 8px; padding: 12px 6px; border-top: 1px solid #eee;
	text-align: center; font-size: 13px; text-transform: uppercase; color: #666 !important; text-decoration: none !important;
}
.bl-ls__all:hover, .bl-ls__dmore:hover { color: #222 !important; }

/* Details panel: a category's products */
.bl-ls__dhead { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px dashed #e5e5e5; font-size: 16px; color: #333; }
.bl-ls__dhead strong { font-weight: 800; text-transform: uppercase; }
.bl-ls__dprod { display: flex; align-items: center; gap: 16px; padding: 12px 0; color: inherit !important; text-decoration: none !important; }
.bl-ls__dthumb { flex: 0 0 70px; width: 70px; height: 70px; object-fit: contain; border: 1px solid #e5e5e5; background: #fff; }
.bl-ls__dbody { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl-ls__dtitle { color: #222; line-height: 1.3; }
.bl-ls__dprod:hover .bl-ls__dtitle { text-decoration: underline; }
.bl-ls__dprice { font-size: 13.5px; font-weight: 700; color: #222; }
.bl-ls__dprice del { font-weight: 400; opacity: .6; margin-right: 4px; }
.bl-ls__dprice ins { text-decoration: none; }
.bl-ls__dprice small, .bl-ls__dprice .woocommerce-price-suffix { font-weight: 400; color: #999; margin-left: 4px; }

/* Details panel: one product */
.bl-ls__dcard { display: flex; flex-direction: column; gap: 8px; color: inherit !important; text-decoration: none !important; }
.bl-ls__dimg { width: 100%; height: 220px; object-fit: contain; border: 1px solid #eee; background: #fff; }
.bl-ls__dname { font-size: 16px; font-weight: 600; color: #222; }
.bl-ls__dsku { font-size: 12.5px; color: #888; }
.bl-ls__dprice--big { font-size: 16px; }
.bl-ls__ddesc { font-size: 13.5px; color: #666; }
.bl-ls__dbtn {
	align-self: flex-start; margin-top: 4px; padding: 8px 16px; border-radius: 3px;
	background: var(--wp--preset--color--primary, #333); color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase;
}

/* Spinner in place of the magnifier while results load */
.bl-ls-form.is-ls-loading .bl-search-form__icon svg, .bl-ls-form.is-ls-loading .bl-search-form__submit svg { opacity: 0; }
.bl-ls-form.is-ls-loading .bl-search-form__icon::after, .bl-ls-form.is-ls-loading .bl-search-form__submit::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
	border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
	animation: bl-ls-spin .6s linear infinite;
}
@keyframes bl-ls-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bl-ls-form.is-ls-loading .bl-search-form__icon::after { animation-duration: 1.5s; } }

/* Mobile menu and full-screen search: list only, full width */
.bl-drawer__body .bl-ls { width: 100% !important; left: 0 !important; }
