.gspf-finder {
	--gspf-accent: var(--theme-palette-color-1, #ed5e08);
	--gspf-accent-hover: var(--theme-palette-color-2, #d47032);
	--gspf-ink: var(--theme-palette-color-4, #111518);
	--gspf-muted: var(--theme-text-color, #3f4245);
	--gspf-panel: #ffffff;
	--gspf-border: rgba(17, 21, 24, 0.12);
	--gspf-shadow: 0 24px 70px rgba(17, 21, 24, 0.1);
	background: linear-gradient(135deg, #fff 0%, #f7f2ed 100%);
	border: 1px solid var(--gspf-border);
	box-shadow: var(--gspf-shadow);
	color: var(--gspf-muted);
	margin: 2rem auto;
	max-width: 1180px;
	padding: clamp(1.25rem, 4vw, 3rem);
}

.gspf-finder__header {
	max-width: 780px;
}

.gspf-eyebrow {
	color: var(--gspf-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.6rem;
	text-transform: uppercase;
}

.gspf-finder h2,
.gspf-finder h3,
.gspf-finder h4 {
	color: var(--gspf-ink);
	margin-top: 0;
}

.gspf-finder h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.08;
	margin-bottom: 0.7rem;
}

.gspf-finder h3 {
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	margin-bottom: 1.2rem;
}

.gspf-step {
	display: none;
	margin-top: 2rem;
}

.gspf-step.is-active {
	display: block;
}

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

.gspf-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gspf-choice {
	background: var(--gspf-panel);
	border: 1px solid var(--gspf-border);
	color: var(--gspf-muted);
	cursor: pointer;
	min-height: 150px;
	padding: 1.25rem;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	width: 100%;
}

.gspf-choice:hover,
.gspf-choice:focus,
.gspf-choice.is-selected {
	border-color: var(--gspf-accent);
	box-shadow: 0 16px 32px rgba(237, 94, 8, 0.12);
	outline: none;
	transform: translateY(-2px);
}

.gspf-choice strong {
	color: var(--gspf-ink);
	display: block;
	font-size: 1.08rem;
	line-height: 1.25;
	margin-bottom: 0.55rem;
}

.gspf-choice span {
	display: block;
	font-size: 0.95rem;
	line-height: 1.5;
}

.gspf-actions {
	align-items: center;
	display: flex;
	gap: 0.8rem;
	margin-top: 1.5rem;
}

.gspf-back,
.gspf-view-all,
.gspf-dimensions-submit,
.gspf-product__cta {
	align-items: center;
	background: var(--gspf-accent);
	border: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.2rem;
	text-decoration: none;
}

.gspf-back {
	background: #1b2528;
}

.gspf-step-note {
	font-size: 0.98rem;
	line-height: 1.55;
	margin: -0.4rem 0 1.2rem;
	max-width: 760px;
}

.gspf-dimensions {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 1rem;
}

.gspf-dimension-field {
	display: block;
}

.gspf-dimension-field span {
	color: var(--gspf-ink);
	display: block;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.gspf-dimension-field input {
	background: #fff;
	border: 1px solid var(--gspf-border);
	color: var(--gspf-ink);
	font-size: 1rem;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	width: 100%;
}

.gspf-dimension-field input:focus {
	border-color: var(--gspf-accent);
	box-shadow: 0 0 0 3px rgba(237, 94, 8, 0.14);
	outline: none;
}

.gspf-dimensions-submit {
	margin-top: 0.25rem;
}

.gspf-back:hover,
.gspf-view-all:hover,
.gspf-dimensions-submit:hover,
.gspf-product__cta:hover {
	background: var(--gspf-accent-hover);
	color: #fff;
}

.gspf-results {
	border-top: 1px solid var(--gspf-border);
	margin-top: 2rem;
	padding-top: 2rem;
}

.gspf-results__header {
	max-width: 720px;
}

.gspf-results__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1.2rem;
}

.gspf-product {
	background: #fff;
	border: 1px solid var(--gspf-border);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.gspf-product__image {
	aspect-ratio: 4 / 3;
	background: #f3f3f3;
	display: block;
	overflow: hidden;
}

.gspf-product__image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.gspf-product__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem;
}

.gspf-product h4 {
	font-size: 1rem;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.gspf-product h4 a {
	color: var(--gspf-ink);
	text-decoration: none;
}

.gspf-product__price {
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.gspf-product ul {
	font-size: 0.88rem;
	line-height: 1.45;
	margin: 0 0 1rem 1rem;
	padding: 0;
}

.gspf-product__cta {
	margin-top: auto;
}

.gspf-popup[hidden],
.gspf-finder [hidden] {
	display: none !important;
}

.gspf-popup {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.gspf-popup-open {
	overflow: hidden;
}

.gspf-popup__overlay {
	background: rgba(17, 21, 24, 0.62);
	inset: 0;
	position: absolute;
}

.gspf-popup__panel {
	background: #fff;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
	left: 50%;
	max-height: min(92vh, 980px);
	max-width: 980px;
	overflow: auto;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(calc(100% - 2rem), 980px);
}

.gspf-popup__close {
	align-items: center;
	background: #111518;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 1.8rem;
	height: 44px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 44px;
	z-index: 2;
}

.gspf-popup__intro {
	padding: 2rem 2rem 0;
}

.gspf-finder--popup {
	border: 0;
	box-shadow: none;
	margin: 0;
	max-width: none;
}

.gspf-finder--popup .gspf-finder__header {
	display: none;
}

.gspf-loading,
.gspf-empty {
	background: #fff;
	border: 1px dashed var(--gspf-border);
	grid-column: 1 / -1;
	margin: 0;
	padding: 1rem;
}

@media (max-width: 900px) {
	.gspf-grid,
	.gspf-grid--three,
	.gspf-dimensions,
	.gspf-results__grid {
		grid-template-columns: 1fr;
	}

	.gspf-choice {
		min-height: 0;
	}
}

@media (max-width: 689px) {
	.gspf-popup__panel {
		border-radius: 20px 20px 0 0;
		bottom: 0;
		left: 0;
		max-height: 90vh;
		top: auto;
		transform: none;
		width: 100%;
	}

	.gspf-actions {
		align-items: stretch;
		flex-direction: column;
	}
}
