.ffwc-finder {
	--ffwc-accent: #2271b1;
	--ffwc-border: #dcdcde;
	--ffwc-muted: #646970;
	width: 100% !important;
	max-width: 1200px !important;
	margin-inline: auto !important;
}

.ffwc-intro {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ffwc-intro h2 {
	margin: 0 0 0.4rem;
}

.ffwc-intro p {
	margin: 0;
}

.ffwc-result-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	justify-content: space-between;
	align-items: end;
	margin: 0 0 1.5rem;
}

.ffwc-search-form {
	display: grid;
	flex: 1 1 20rem;
	gap: 0.4rem;
	width: 100%;
	max-width: 32rem;
	margin: 0;
}

.ffwc-search-form label,
.ffwc-sort-control label {
	font-weight: 700;
}

.ffwc-sort-control {
	display: grid;
	flex: 1 1 13rem;
	gap: 0.4rem;
	max-width: 18rem;
}

.ffwc-search-input,
.ffwc-sort-select {
	width: 100%;
	min-height: 2.75rem;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--ffwc-border);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.ffwc-search-input:focus,
.ffwc-sort-select:focus {
	border-color: var(--ffwc-accent);
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 1px;
}

.ffwc-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 0 0 1.5rem;
}

.ffwc-active-filters[hidden] {
	display: none;
}

.ffwc-active-filters-label {
	font-weight: 700;
}

.ffwc-active-filter-chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ffwc-active-filter-chip {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	min-height: 2rem;
	box-sizing: border-box;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--ffwc-accent);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	cursor: pointer;
}

.ffwc-active-filter-chip:hover {
	background: #f6f7f7;
}

.ffwc-active-filter-chip:focus-visible,
.ffwc-clear-filters:focus-visible {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

.ffwc-active-filter-remove {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1;
}

.ffwc-clear-filters {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ffwc-accent);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.ffwc-layout {
	display: grid;
	grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.ffwc-filter-group {
	min-width: 0;
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.ffwc-filter-group legend {
	width: 100%;
	margin: 0 0 0.65rem;
	padding: 0;
	font-weight: 700;
}

.ffwc-price-inputs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.ffwc-price-inputs label {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
	font-size: 0.9em;
}

.ffwc-price-inputs input {
	width: 100%;
	min-height: 2.5rem;
	box-sizing: border-box;
	padding: 0.5rem 0.55rem;
	border: 1px solid var(--ffwc-border);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.ffwc-price-inputs input:focus {
	border-color: var(--ffwc-accent);
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 1px;
}

.ffwc-price-currency {
	margin: 0.45rem 0 0;
	color: var(--ffwc-muted);
	font-size: 0.85em;
}

.ffwc-price-slider {
	position: relative;
	height: 2rem;
	margin: 0.15rem 0 0;
}

.ffwc-price-slider-track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 0.35rem;
	transform: translateY(-50%);
	border-radius: 999px;
	background: linear-gradient(
		to right,
		var(--ffwc-border) 0 var(--ffwc-price-start),
		var(--ffwc-accent) var(--ffwc-price-start) var(--ffwc-price-end),
		var(--ffwc-border) var(--ffwc-price-end) 100%
	);
}

.ffwc-price-slider input[type="range"] {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 1.5rem;
	margin: 0;
	transform: translateY(-50%);
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.ffwc-price-slider input[type="range"]:focus {
	outline: none;
}

.ffwc-price-slider input[type="range"]::-webkit-slider-runnable-track {
	height: 0.35rem;
	background: transparent;
}

.ffwc-price-slider input[type="range"]::-moz-range-track {
	height: 0.35rem;
	background: transparent;
}

.ffwc-price-slider input[type="range"]::-webkit-slider-thumb {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: -0.4rem;
	appearance: none;
	border: 2px solid var(--ffwc-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	cursor: grab;
	pointer-events: auto;
}

.ffwc-price-slider input[type="range"]::-moz-range-thumb {
	width: 1.15rem;
	height: 1.15rem;
	box-sizing: border-box;
	border: 2px solid var(--ffwc-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	cursor: grab;
	pointer-events: auto;
}

.ffwc-price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

.ffwc-price-slider input[type="range"]:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

.ffwc-price-slider-values {
	display: flex;
	gap: 0.4rem;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

.ffwc-filter-option {
	display: grid;
	grid-template-columns: 1rem minmax(0, 1fr) auto;
	gap: 0.55rem;
	align-items: center;
	margin-bottom: 0.5rem;
	cursor: pointer;
}

.ffwc-filter-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ffwc-filter-option:has(input:disabled) {
	opacity: 0.48;
	cursor: not-allowed;
}

.ffwc-check {
	display: grid;
	width: 1rem;
	height: 1rem;
	place-items: center;
	box-sizing: border-box;
	border: 1px solid var(--ffwc-border);
	border-radius: 2px;
	background: #fff;
}

.ffwc-filter-option input:focus-visible + .ffwc-check {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

.ffwc-filter-option input:checked + .ffwc-check {
	border-color: var(--ffwc-accent);
	background: var(--ffwc-accent);
}

.ffwc-filter-option input:checked + .ffwc-check::after {
	content: "";
	width: 0.28rem;
	height: 0.55rem;
	transform: translateY(-0.05rem) rotate(45deg);
	border: solid #fff;
	border-width: 0 2px 2px 0;
}

.ffwc-filter-option input[type="radio"] + .ffwc-check {
	border-radius: 50%;
}

.ffwc-filter-option input[type="radio"]:checked + .ffwc-check::after {
	width: 0.4rem;
	height: 0.4rem;
	transform: none;
	border: 0;
	border-radius: 50%;
	background: #fff;
}

.ffwc-filter-select {
	width: 100%;
	min-height: 2.65rem;
	box-sizing: border-box;
	padding: 0.55rem 2rem 0.55rem 0.65rem;
	border: 1px solid var(--ffwc-border);
	border-radius: 2px;
	background-color: #fff;
	color: inherit;
	font: inherit;
}

.ffwc-filter-select:focus {
	border-color: var(--ffwc-accent);
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 1px;
}

.ffwc-display-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ffwc-display-chips legend {
	flex-basis: 100%;
}

.ffwc-display-chips .ffwc-filter-option {
	display: inline-flex;
	gap: 0.35rem;
	width: auto;
	margin: 0;
	padding: 0.38rem 0.65rem;
	border: 1px solid var(--ffwc-border);
	border-radius: 999px;
	background: #fff;
	line-height: 1.25;
}

.ffwc-display-chips .ffwc-check {
	display: none;
}

.ffwc-display-chips .ffwc-filter-option:has(input:checked) {
	border-color: var(--ffwc-accent);
	background: var(--ffwc-accent);
	color: #fff;
}

.ffwc-display-chips .ffwc-filter-option:has(input:focus-visible) {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

.ffwc-display-chips .ffwc-count {
	color: inherit;
	opacity: 0.78;
}

.ffwc-display-color,
.ffwc-display-image {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
}

.ffwc-display-color legend,
.ffwc-display-image legend,
.ffwc-display-color .ffwc-filter-all,
.ffwc-display-image .ffwc-filter-all {
	flex-basis: 100%;
}

.ffwc-swatch-option {
	display: inline-grid;
	grid-template-columns: 2.25rem minmax(0, auto) auto;
	gap: 0.45rem;
	width: auto;
	margin: 0;
}

.ffwc-swatch-visual {
	position: relative;
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	box-sizing: border-box;
	overflow: hidden;
	border: 2px solid #fff;
	background: #f0f0f1;
	box-shadow: 0 0 0 1px var(--ffwc-border);
}

.ffwc-swatch-color {
	border-radius: 50%;
	background: var(--ffwc-swatch-color, #dcdcde);
}

.ffwc-swatch-image {
	border-radius: 0.35rem;
	color: var(--ffwc-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.ffwc-swatch-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ffwc-swatch-option input:focus-visible + .ffwc-swatch-visual {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 3px;
}

.ffwc-swatch-option input:checked + .ffwc-swatch-visual {
	box-shadow: 0 0 0 2px var(--ffwc-accent);
}

.ffwc-swatch-option input:checked + .ffwc-swatch-visual::after {
	content: "\2713";
	position: absolute;
	display: grid;
	width: 1.1rem;
	height: 1.1rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1d2327;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
}

.ffwc-label {
	min-width: 0;
}

.ffwc-count,
.ffwc-result-count {
	color: var(--ffwc-muted);
}

.ffwc-result-count {
	margin: 0 0 1.25rem;
}

.ffwc-results {
	transition: opacity 160ms ease;
}

.ffwc-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.ffwc-finder ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ffwc-finder ul.products.columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.ffwc-finder ul.products.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ffwc-finder ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ffwc-finder ul.products.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ffwc-finder ul.products::before,
.ffwc-finder ul.products::after {
	display: none !important;
	content: none !important;
}

.ffwc-finder ul.products li.product {
	position: relative;
	display: flex;
	float: none !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ffwc-finder ul.products li.product > a:first-of-type {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.ffwc-finder ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 250px;
	margin: 0 0 1rem !important;
	object-fit: contain;
	aspect-ratio: 1;
	background: #f6f7f7;
}

.ffwc-finder ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 0.4rem;
	font-size: 1rem !important;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.ffwc-finder ul.products li.product .price {
	display: block;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ffwc-finder ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
}

.ffwc-finder.ffwc-style-product-buttons ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.75rem;
	max-width: 100%;
	padding: 0.7rem 1.1rem;
	border: 2px solid var(--ffwc-accent);
	border-radius: 0.25rem;
	background-color: var(--ffwc-accent);
	color: var(--ffwc-accent-contrast, #fff);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 160ms ease;
}

.ffwc-finder.ffwc-style-product-buttons ul.products li.product .button:hover {
	color: var(--ffwc-accent-contrast, #fff);
	text-decoration: none;
	filter: brightness(0.9);
}

.ffwc-finder.ffwc-style-product-buttons ul.products li.product .button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -5px;
}

.ffwc-finder.ffwc-style-product-buttons ul.products li.product .button:disabled,
.ffwc-finder.ffwc-style-product-buttons ul.products li.product .button.disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.ffwc-finder.ffwc-products-align-center ul.products li.product {
	text-align: center;
}

.ffwc-finder.ffwc-products-align-center ul.products li.product .star-rating {
	float: none;
	margin-right: auto;
	margin-left: auto;
}

.ffwc-finder.ffwc-products-align-center ul.products li.product .button {
	align-self: center;
}

.ffwc-finder.ffwc-products-hide-rating ul.products li.product .star-rating {
	display: none !important;
}

.ffwc-finder.ffwc-products-hide-actions ul.products li.product .add_to_cart_button,
.ffwc-finder.ffwc-products-hide-actions ul.products li.product .product_type_simple,
.ffwc-finder.ffwc-products-hide-actions ul.products li.product .product_type_variable,
.ffwc-finder.ffwc-products-hide-actions ul.products li.product .product_type_grouped,
.ffwc-finder.ffwc-products-hide-actions ul.products li.product .product_type_external {
	display: none !important;
}

.ffwc-finder ul.products li.product .onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.35rem 0.55rem;
	border: 0;
	border-radius: 2px;
	background: var(--ffwc-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.ffwc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	align-items: center;
	margin-top: 2.5rem;
}

.ffwc-page-button {
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--ffwc-border);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	cursor: pointer;
}

.ffwc-page-button:hover,
.ffwc-page-button:focus-visible,
.ffwc-page-button.is-active {
	border-color: var(--ffwc-accent);
	background: var(--ffwc-accent);
	color: #fff;
}

.ffwc-page-previous,
.ffwc-page-next {
	width: auto;
}

.ffwc-notice,
.ffwc-no-products,
.ffwc-error {
	padding: 1rem;
	border-left: 4px solid var(--ffwc-accent, #2271b1);
	background: #f6f7f7;
}

.ffwc-error {
	margin: 0 0 1rem;
	border-left-color: #b32d2e;
}

.ffwc-no-products p {
	margin: 0 0 0.85rem;
}

.ffwc-reset-no-results {
	min-height: 2.5rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--ffwc-accent);
	border-radius: 2px;
	background: var(--ffwc-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ffwc-reset-no-results:hover {
	filter: brightness(0.92);
}

.ffwc-reset-no-results:focus-visible {
	outline: 2px solid var(--ffwc-accent);
	outline-offset: 2px;
}

@media (max-width: 782px) {
	.ffwc-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.ffwc-sidebar {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 0 1.5rem;
	}

	.ffwc-finder ul.products.columns-3,
	.ffwc-finder ul.products.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.ffwc-finder ul.products.columns-2,
	.ffwc-finder ul.products.columns-3,
	.ffwc-finder ul.products.columns-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffwc-results {
		transition: none;
	}
}
