.bf-finder {
	--bf-red: #ed0007;
	--bf-red-soft: color-mix(in srgb, var(--bf-red) 8%, white);
	--bf-text: #151515;
	--bf-muted: #6b6b6b;
	--bf-border: #e5e5e5;
	--bf-bg: #fff;
	--bf-radius: var(--box-radius, 25px);
	--shadow: 0 10px 10px rgb(from #000000 r g b / 0.05);
	--box-radius: 25px;

	box-sizing: border-box;
	max-width: 75rem;
	margin: 2rem auto;
	padding: 2rem 1.5rem 2.25rem;
	background: var(--bf-bg);
	border-radius: var(--box-radius);
	box-shadow: var(--shadow);
	color: var(--bf-text);
	font-family: inherit;
}

.bf-finder *,
.bf-finder *::before,
.bf-finder *::after {
	box-sizing: border-box;
}

.bf-finder[x-cloak] {
	display: none !important;
}

.bf-finder__header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.bf-finder__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
	font-weight: 700;
	line-height: 1.2;
	position: relative;
	display: inline-block;
}

.bf-finder__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin: 0.55rem auto 0;
	background: var(--bf-red);
	border-radius: 2px;
}

.bf-finder__subtitle {
	margin: 0 auto;
	max-width: 36rem;
	color: var(--bf-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.bf-finder__body {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.bf-finder__divider {
	width: 1px;
	align-self: stretch;
	background: var(--bf-border);
	min-height: 12rem;
}

.bf-finder__step-title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.bf-finder__use-cases {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.bf-finder__use-case {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 8.75rem;
	padding: 0.75rem 0.45rem 0.7rem;
	background: #fff;
	border: 1.5px solid var(--bf-border);
	border-radius: var(--bf-radius);
	cursor: pointer;
	color: inherit;
	font: inherit;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.bf-finder__use-case:hover {
	border-color: color-mix(in srgb, var(--bf-red) 45%, var(--bf-border));
}

.bf-finder__use-case.is-selected {
	border-color: var(--bf-red);
	background: var(--bf-red-soft);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--bf-red) 20%, transparent);
}

.bf-finder__check {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	display: grid;
	place-items: center;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 999px;
	background: var(--bf-red);
	color: #fff;
	opacity: 0;
	transform: scale(0.85);
	transition:
		opacity 0.15s ease,
		transform 0.15s ease;
}

.bf-finder__use-case.is-selected .bf-finder__check {
	opacity: 1;
	transform: scale(1);
}

.bf-finder__use-case-icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	color: var(--bf-text);
	background: transparent;
}

.bf-finder__use-case-icon img {
	display: block;
	width: 4.25rem;
	height: 4.25rem;
	object-fit: contain;
	background: transparent;
}

.bf-finder__use-case-fallback {
	display: grid;
	place-items: center;
	color: var(--bf-text);
}

.bf-finder__use-case-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
}

.bf-finder__results {
	min-height: 12rem;
}

.bf-finder__placeholder,
.bf-finder__empty {
	margin: 0;
	padding: 1.5rem 0.5rem;
	color: var(--bf-muted);
	text-align: center;
	font-size: 0.95rem;
}

.bf-finder__empty p {
	margin: 0 0 0.75rem;
}

.bf-finder__shop-link {
	color: var(--bf-red);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.bf-finder__products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.bf-finder__see-more {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.35rem;
	padding: 0.3rem 0.65rem;
	border-radius: var(--button-radius, 5px);
	background: transparent;
	outline: 1.5px solid var(--clr-accent, var(--bf-red));
	color: var(--clr-accent, var(--bf-red));
	font-family: var(--ff-heading, inherit);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none !important;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		outline-color 0.15s ease;
}

.bf-finder__see-more:hover,
.bf-finder__see-more:focus-visible {
	background: var(--clr-accent, var(--bf-red));
	outline-color: var(--clr-accent, var(--bf-red));
	color: var(--clr-quinary, #fff);
}

.bf-finder__product {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"media body"
		"media actions";
	column-gap: 0.85rem;
	row-gap: 0.5rem;
	align-items: start;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--bf-border);
	border-radius: var(--bf-radius);
}

.bf-finder__product-media {
	grid-area: media;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 5.5rem;
	min-height: 0;
	text-decoration: none;
}

.bf-finder__product-image {
	display: block;
	max-width: 5.5rem;
	max-height: 5.5rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bf-finder__product-body {
	grid-area: body;
	min-width: 0;
}

.bf-finder__product-title {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
}

.bf-finder__product-title a {
	color: inherit;
	text-decoration: none;
}

.bf-finder__product-title a:hover {
	color: var(--bf-red);
}

.bf-finder__product-specs {
	margin: 0.35rem 0 0;
	color: var(--bf-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.bf-finder__product-price {
	margin-top: 0.45rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.bf-finder__product-price del {
	opacity: 0.55;
	font-weight: 500;
	margin-right: 0.25rem;
}

.bf-finder__product-price .wcsatt-sub-options {
	display: block;
	margin-top: 0.25em;
	color: var(--clr-tertiary, var(--bf-muted));
	font-size: var(--fs-300, 0.85rem);
	font-weight: 500;
	line-height: 1.35;
}

.bf-finder__product-price .wcsatt-sub-options .amount,
.bf-finder__product-price .wcsatt-sub-options .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.bf-finder__product-actions {
	grid-area: actions;
	min-width: 0;
}

.bf-finder__product-actions-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.bf-finder__qty {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs, 0.25rem);
	width: max-content;
	margin: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.bf-finder__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--clr-tertiary, #999);
	border-radius: var(--button-radius);
	background: transparent;
	color: var(--clr-secondary, var(--bf-text));
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	transition:
		border-color 150ms ease,
		color 150ms ease;
}

.bf-finder__qty-btn:hover,
.bf-finder__qty-btn:focus-visible {
	border-color: var(--clr-accent);
	color: var(--clr-accent);
	outline: none;
	background: transparent;
}

.bf-finder__qty-value {
	min-width: 1.5rem;
	padding-inline: 0;
	background: transparent;
	color: var(--clr-secondary, var(--bf-text));
	text-align: center;
	font-weight: 600;
	font-size: var(--fs-300, 0.9rem);
}

/* Layout only — colors/hover come from theme .btn-primary + woocommerce.css */
.bf-finder__cta {
	width: max-content;
	max-width: none;
	min-height: 2.5rem;
	padding: 0.55rem 0.85rem;
	justify-content: center;
	font-size: 0.85rem;
	text-align: center;
	text-decoration: none !important;
}

@media (max-width: 900px) {
	.bf-finder__body {
		grid-template-columns: 1fr;
	}

	.bf-finder__divider {
		width: 100%;
		height: 1px;
		min-height: 0;
	}

	.bf-finder__use-cases {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bf-finder {
		padding: 1.35rem 1rem 1.5rem;
	}

	.bf-finder__use-cases {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 400px) {
	.bf-finder__product {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"body"
			"actions";
		justify-items: start;
	}

	.bf-finder__product-media {
		width: auto;
	}
}
