.fwb-smart-search {
	display: block;
	max-width: 640px;
	position: relative;
}

.fwb-smart-search__controls {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.fwb-smart-search__input {
	flex: 1;
	padding: 0.7rem 0.85rem;
	border: 1px solid #c8d0da;
	border-radius: 4px;
	color: #1f2937;
	min-width: 0;
}

.fwb-smart-search__input::placeholder {
	color: #6b7280;
	opacity: 1;
}

.fwb-smart-search__hint {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.9);
}

.fwb-smart-search__results {
	margin-top: 8px;
	border: 1px solid #dde3ea;
	border-radius: 12px;
	background: #fff;
	overflow-y: auto;
	overflow-x: hidden;
	max-width: 100%;
	max-height: 60vh;
	box-shadow: 0 12px 40px rgba(3, 13, 33, 0.28);
	position: relative;
	z-index: 1000000;
	display: block;
}

.fwb-smart-search__result-item {
	display: flex;
	gap: 0.85rem;
	padding: 0.8rem;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #edf1f5;
	width: 100%;
	box-sizing: border-box;
}

.fwb-smart-search__result-item:last-of-type {
	border-bottom: 1px solid #edf1f5;
}

.fwb-smart-search__result-image {
	flex: 0 0 68px;
}

.fwb-smart-search__result-image img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: 4px;
}

.fwb-smart-search__result-content {
	min-width: 0;
}

.fwb-smart-search__result-title {
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.35;
	color: #111827;
}

.fwb-smart-search__result-price {
	font-size: 0.9rem;
	margin-top: 0.2rem;
	color: #111827;
}

.fwb-smart-search__error,
.fwb-smart-search__empty {
	font-size: 0.86rem;
	padding: 0.75rem 0.8rem;
}

.fwb-smart-search__results-footer {
	display: block;
	font-size: 0.85rem;
	border-bottom: 1px solid #edf1f5;
}

.fwb-smart-search__results-all {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
	padding: 0.75rem 0.8rem;
	box-sizing: border-box;
	border-bottom: 1px solid #edf1f5;
	color: #1261a6;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.35;
	transition: background-color 150ms ease;
}

.fwb-smart-search__results-all:hover {
	color: #1261a6;
	background: #eef6ff;
}

.fwb-smart-search__results-all:focus-visible {
	outline: 2px solid #1261a6;
	outline-offset: 2px;
}

.fwb-smart-search__results-all-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
}

.fwb-smart-search__results-all-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.fwb-smart-search__results-all-arrow {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 1.15em;
	line-height: 1;
	transition: transform 150ms ease;
}

.fwb-smart-search__results-all:hover .fwb-smart-search__results-all-arrow {
	transform: translateX(3px);
}

.fwb-smart-search__results-tip {
	display: block;
	padding: 0.65rem 0.8rem;
	color: #4b5563;
	text-align: center;
}

.fwb-smart-search__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 72px;
	padding: 18px;
	box-sizing: border-box;
	color: #4b5563;
	font-size: 0.86rem;
}

.fwb-smart-search__spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #d9d9d9;
	border-top-color: #078acb;
	border-radius: 50%;
	box-sizing: border-box;
	animation: fwb-smart-search-spin 0.7s linear infinite;
}

@keyframes fwb-smart-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fwb-smart-search__spinner {
		animation: none;
	}
}

.fwb-smart-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 61, 143, 0.94);
	z-index: 999999;
	display: none;
	opacity: 0;
	pointer-events: none;
	align-items: flex-start;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
}

.fwb-smart-search-overlay.is-open,
body.fwb-smart-search-overlay-open .fwb-smart-search-overlay {
	display: flex;
	opacity: 1;
	pointer-events: auto;
	z-index: 999999;
}

.fwb-smart-search-overlay__inner {
	width: min(900px, calc(100vw - 32px));
	margin: 10vh auto 0;
	padding: 0 1rem;
	position: relative;
	z-index: 1000000;
}

.fwb-smart-search-overlay__inner .fwb-smart-search {
	max-width: 100%;
	position: relative;
	z-index: 2;
}

.fwb-smart-search-overlay__close {
	position: absolute;
	top: -2.75rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
}

@media (max-width: 640px) {
	.fwb-smart-search-overlay__inner {
		width: 100%;
		margin-top: 5vh;
		padding: 0 0.75rem;
	}

	.fwb-smart-search__controls {
		flex-direction: column;
	}

	.fwb-smart-search__controls button {
		width: 100%;
	}

	.fwb-smart-search__results {
		max-height: 65vh;
	}


	.fwb-smart-search__result-item {
		padding: 0.75rem;
	}

	.fwb-smart-search__result-image {
		flex-basis: 56px;
	}

	.fwb-smart-search__result-image img {
		width: 56px;
		height: 56px;
	}
}

.fwb-smart-search-archive-notice {
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid #d9e3f2;
	border-left: 4px solid #2d6cdf;
	border-radius: 6px;
	background: #f5f8ff;
}

.fwb-smart-search-archive-notice__title {
	margin: 0;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.35;
}

.fwb-smart-search-archive-notice__meta {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #2c2f36;
}

.fwb-smart-search-chip {
	display: inline-block;
	margin-top: 0.55rem;
	margin-right: 0.5rem;
	padding: 0.2rem 0.65rem;
	border: 1px solid #bfd1f3;
	border-radius: 999px;
	background: #ffffff;
	font-size: 0.85rem;
	line-height: 1.35;
}

.fwb-smart-search-archive-notice__clear {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.fwb-smart-search__answer{border-bottom:1px solid #edf1f5;padding:.9rem;background:#f8fbff}.fwb-smart-search__answer-title{font-weight:700;margin-bottom:.35rem}.fwb-smart-search__answer-text{margin-bottom:.55rem;color:#1f2937}.fwb-smart-search__answer-button{display:inline-block;background:#0f3d8f;color:#fff;text-decoration:none;padding:.45rem .7rem;border-radius:4px}

.fwb-smart-search .fwb-smart-search__intent {
	box-sizing: border-box;
	padding: 0.9rem;
	border-bottom: 1px solid #edf1f5;
	background: #f8fbff;
	overflow-wrap: anywhere;
}

.fwb-smart-search .fwb-smart-search__intent-title {
	margin-bottom: 0.55rem;
	font-weight: 700;
}

.fwb-smart-search .fwb-smart-search__intent-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	min-width: 0;
}

.fwb-smart-search .fwb-smart-search__intent-choice {
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.35rem 0.7rem;
	border: 1px solid #bfd1f3;
	border-radius: 999px;
	background: #fff;
	color: #0f3d8f;
	font-size: 0.9rem;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}


.fwb-husky-filter-results {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	line-height: 1.4;
}


.fwb-husky-loading-layer {
	position: fixed;
	z-index: 999;
	background: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.fwb-husky-loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translate(-50%, -50%);
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(27, 124, 173, 0.16);
	color: #4b5563;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

.fwb-husky-loading-indicator__spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #d9d9d9;
	border-top-color: #1b7cad;
	border-radius: 50%;
	box-sizing: border-box;
	animation: fwb-husky-loading-spin 0.7s linear infinite;
}

@keyframes fwb-husky-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fwb-husky-loading-indicator__spinner {
		animation: none;
	}
}


/* The FWB loader replaces HUSKY's default popup during product redraws only. */
body.tax-product_cat #woof_html_buffer.woof_info_popup,
body.post-type-archive-product #woof_html_buffer.woof_info_popup,
body.woocommerce-shop #woof_html_buffer.woof_info_popup,
html.fwb-husky-native-loading-suppressed #woof_html_buffer.woof_info_popup {
	display: none !important;
}

.fwb-husky-loading-layer--mobile-filter {
	z-index: 9002;
	background: rgba(248, 246, 242, 0.78);
}

@media (max-width: 991px) {
	html.sidebar-opened .porto-woo-category-sidebar.mobile-sidebar:not(.fwb-husky-mobile-filter),
	html.filter-sidebar-opened .porto-product-filters:not(.fwb-husky-mobile-filter),
	html.sidebar-opened .fwb-husky-mobile-filter:not(:has(.fwb-husky-mobile-header)),
	html.filter-sidebar-opened .fwb-husky-mobile-filter:not(:has(.fwb-husky-mobile-header)) {
		visibility: hidden !important;
	}

	html.fwb-husky-mobile-filter-open,
	html.fwb-husky-mobile-filter-open body {
		height: 100%;
		overflow: hidden !important;
	}

	html.fwb-husky-mobile-filter-open .fwb-husky-mobile-filter {
		position: fixed !important;
		inset: 0 !important;
		z-index: 9001;
		display: flex !important;
		flex-direction: column;
		width: 100vw !important;
		min-width: 100vw !important;
		max-width: none !important;
		height: 100vh;
		min-height: 100vh;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		box-sizing: border-box;
		background: #fff;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	@supports (height: 100dvh) {
		html.fwb-husky-mobile-filter-open .fwb-husky-mobile-filter {
			height: 100dvh;
			min-height: 100dvh;
		}
	}

	.fwb-husky-mobile-header {
		display: none;
		flex: 0 0 auto;
		align-items: center;
		justify-content: space-between;
		min-height: calc(62px + env(safe-area-inset-top));
		padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
		border-bottom: 1px solid #e5e7eb;
		background: #f8f6f2;
		color: #1b7cad;
	}

	html.fwb-husky-mobile-filter-open .fwb-husky-mobile-header {
		display: flex;
	}

	.fwb-husky-mobile-header__title {
		margin: 0;
		color: inherit;
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.2;
	}

	.fwb-husky-mobile-header__close {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		font: inherit;
		font-size: 2rem;
		font-weight: 300;
		line-height: 1;
		cursor: pointer;
	}

	html.fwb-husky-mobile-filter-open .fwb-husky-mobile-filter__scroll {
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.fwb-husky-mobile-actions {
		display: none;
		flex: 0 0 auto;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
		gap: 0.75rem;
		min-height: calc(80px + env(safe-area-inset-bottom));
		padding: 0.75rem max(1rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
		border-top: 1px solid #e5e7eb;
		background: #fff;
		box-shadow: 0 -4px 14px rgba(27, 124, 173, 0.1);
		box-sizing: border-box;
	}

	html.fwb-husky-mobile-filter-open .fwb-husky-mobile-actions {
		display: grid;
	}

	.fwb-husky-mobile-actions button {
		width: 100%;
		min-width: 0;
		min-height: 48px;
		padding: 0.65rem 0.9rem;
		border: 1px solid #1b7cad;
		border-radius: 4px;
		font: inherit;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		cursor: pointer;
	}

	.fwb-husky-mobile-actions__show {
		background: #1b7cad;
		color: #fff;
	}

	.fwb-husky-mobile-actions__reset {
		background: #fff;
		color: #1b7cad;
	}

	.fwb-husky-mobile-actions button:disabled {
		cursor: wait;
		opacity: 0.65;
	}
}
