.spx-product-search-shell,
.editor-styles-wrapper .spx-product-search-shell {
	width: 100%;
}

.spx-product-search {
	display: grid;
	gap: 0.9rem;
	width: 100%;
	color: #101820;
	font-family: var(--spx-font-family-base);
}

.spx-product-search__field {
	position: relative;
}

.spx-product-search__input {
	display: block;
	width: 100%;
	min-height: 58px;
	padding: 0 3.5rem 0 1rem;
	border: 1px solid rgba(29, 45, 61, 0.12);
	border-radius: 1rem;
	background: #f7fbf8;
	color: #101820;
	font: inherit;
	font-size: var(--spx-font-size-body);
	line-height: 1.35;
	box-shadow: none;
}

.spx-product-search__input::placeholder {
	color: #6d7a88;
}

.spx-product-search__input:focus {
	outline: none;
	border-color: rgba(5, 117, 50, 0.28);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(5, 117, 50, 0.08);
}

.spx-product-search__field-icon {
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	color: #057532;
	font-size: 1.45rem;
	line-height: 1;
	pointer-events: none;
}

.spx-product-search__hint {
	margin: 0;
	color: #5d6b7a;
	font-size: var(--spx-font-size-body-sm);
	line-height: 1.5;
}

.spx-product-search[data-state="error"] .spx-product-search__hint {
	color: #b42318;
}

.spx-product-search__surface {
	border: 1px solid rgba(29, 45, 61, 0.08);
	border-radius: 1.3rem;
	background: #ffffff;
	box-shadow: 0 20px 44px rgba(16, 24, 32, 0.12);
	overflow: hidden;
}

.spx-product-search__results {
	display: grid;
	grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	min-height: clamp(22rem, 54vh, 36rem);
	max-height: min(68vh, 42rem);
	align-items: stretch;
}

.spx-product-search__results > * {
	min-height: 0;
}

.spx-product-search__list-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
	background: linear-gradient(180deg, #fafdfb 0%, #f3faf6 100%);
	border-right: 1px solid rgba(29, 45, 61, 0.08);
}

.spx-product-search__list {
	flex: 1 1 auto;
	display: grid;
	gap: 0.7rem;
	align-content: start;
	padding: 1rem;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
}

.spx-product-search__list::-webkit-scrollbar,
.spx-product-search__preview::-webkit-scrollbar {
	width: 7px;
}

.spx-product-search__list::-webkit-scrollbar-thumb,
.spx-product-search__preview::-webkit-scrollbar-thumb {
	background: rgba(5, 117, 50, 0.24);
	border-radius: 999px;
}

.spx-product-search__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	width: 100%;
	padding: 0.8rem;
	border: 1px solid transparent;
	border-radius: 1rem;
	background: #ffffff;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.spx-product-search__item:hover,
.spx-product-search__item:focus-visible,
.spx-product-search__item[aria-selected="true"] {
	border-color: rgba(5, 117, 50, 0.32);
	background: #f6fdf8;
	box-shadow: 0 12px 24px rgba(16, 24, 32, 0.08);
	outline: none;
}

.spx-product-search__item:hover {
	transform: translateX(2px);
}

.spx-product-search__thumb {
	width: 64px;
	height: 64px;
	border-radius: 0.85rem;
	background: #eef4f1;
	overflow: hidden;
}

.spx-product-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.spx-product-search__item-copy {
	min-width: 0;
	display: grid;
	gap: 0.25rem;
}

.spx-product-search__item-title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	color: #101820;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.spx-product-search__item-price {
	color: #06a846;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
}

.spx-product-search__item-price :is(bdi, span, ins, del) {
	color: inherit;
	font-weight: inherit;
}

.spx-product-search__item-sku {
	color: #6d7a88;
	font-size: 0.74rem;
	line-height: 1.3;
}

.spx-product-search__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--spx-button-min-height);
	margin: 0 1rem 1rem;
	padding: 0 var(--spx-button-padding-inline);
	border-radius: var(--spx-button-radius);
	background: #e7f8ec;
	color: #057532;
	font-size: var(--spx-font-size-button);
	font-weight: var(--spx-font-weight-button);
	line-height: var(--spx-line-height-button);
	text-decoration: none;
}

.spx-product-search__load-more {
	margin: 0 1rem 0.85rem;
	color: #5d6b7a;
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: center;
}

.spx-product-search__preview {
	display: flex;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
	padding: 1.25rem;
	overflow-y: auto;
	background: #ffffff;
}

.spx-product-search__preview-empty,
.spx-product-search__preview-state {
	height: 100%;
	min-height: 100%;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 1rem;
	text-align: center;
	color: #5d6b7a;
}

.spx-product-search__preview-illustration {
	width: min(18rem, 72%);
	aspect-ratio: 1;
	border-radius: 1.4rem;
	background:
		linear-gradient(135deg, rgba(5, 117, 50, 0.12), rgba(5, 117, 50, 0.02)),
		linear-gradient(180deg, #f7fbf8, #eef4f1);
	position: relative;
}

.spx-product-search__preview-illustration::before,
.spx-product-search__preview-illustration::after {
	content: "";
	position: absolute;
	inset: 16% 18%;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.92);
}

.spx-product-search__preview-illustration::after {
	inset: 28% 24%;
	border: 2px solid rgba(5, 117, 50, 0.12);
	background: transparent;
}

.spx-product-search__preview-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.9rem;
	min-height: 100%;
	text-align: center;
}

.spx-product-search__preview-media {
	width: min(100%, 22rem);
	margin: 0 auto;
	border-radius: 1.4rem;
	background: #f7fbf8;
	padding: 1rem;
	box-shadow: inset 0 0 0 1px rgba(29, 45, 61, 0.06);
}

.spx-product-search__preview-media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 18rem;
	object-fit: contain;
	margin: 0 auto;
}

.spx-product-search__preview-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 0;
}

.spx-product-search__preview-title {
	margin: 0;
	font-family: var(--spx-font-family-heading);
	font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
	font-weight: var(--spx-font-weight-heading);
	line-height: 1.12;
	letter-spacing: var(--spx-letter-spacing-heading);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.spx-product-search__preview-sku {
	color: #6d7a88;
	font-size: 0.86rem;
	line-height: 1.4;
}

.spx-product-search__preview-price {
	color: #06a846;
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem);
	font-weight: 800;
	line-height: 1.05;
}

.spx-product-search__preview-price :is(bdi, span, ins, del) {
	color: inherit;
	font-weight: inherit;
}

.spx-product-search__preview-description {
	margin: 0 auto;
	max-width: 36rem;
	color: #5d6b7a;
	font-size: 0.95rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.spx-product-search__preview-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 0.15rem;
}

.spx-product-search__stock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: #e7f8ec;
	color: #057532;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.spx-product-search__stock[data-state="outofstock"] {
	background: #fff3f2;
	color: #b42318;
}

.spx-product-search__preview-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--spx-button-min-height);
	padding: 0 var(--spx-button-padding-inline);
	border-radius: var(--spx-button-radius);
	background: linear-gradient(135deg, #22d164 0%, #08a848 100%);
	color: #ffffff;
	font-size: var(--spx-font-size-button);
	font-weight: var(--spx-font-weight-button);
	line-height: var(--spx-line-height-button);
	text-decoration: none;
	box-shadow: 0 10px 20px rgba(8, 168, 72, 0.22);
}

.spx-product-search__preview-button:hover,
.spx-product-search__preview-button:focus-visible,
.spx-product-search__view-all:hover,
.spx-product-search__view-all:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.spx-product-search__empty,
.spx-product-search__loading {
	padding: 1.75rem 1rem;
	border-radius: 1rem;
	background: #ffffff;
	color: #5d6b7a;
	text-align: center;
}

.spx-product-search__loading::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 0.55rem;
	border: 2px solid rgba(5, 117, 50, 0.18);
	border-top-color: #06a846;
	border-radius: 999px;
	vertical-align: text-bottom;
	animation: spx-product-search-spin 0.72s linear infinite;
}

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

@media (min-width: 1100px) {
	.spx-product-search {
		gap: 1rem;
	}

	.spx-product-search__results {
		grid-template-columns: minmax(25rem, 29rem) minmax(0, 1fr);
		min-height: clamp(27rem, 62vh, 44rem);
		max-height: min(76vh, 47rem);
	}

	.spx-product-search__list {
		gap: 0.85rem;
		padding: 1.15rem;
	}

	.spx-product-search__item {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 1rem;
		padding: 0.95rem;
	}

	.spx-product-search__thumb {
		width: 72px;
		height: 72px;
	}

	.spx-product-search__item-title {
		font-size: 0.98rem;
	}

	.spx-product-search__item-price {
		font-size: 1.05rem;
	}

	.spx-product-search__preview {
		padding: 1.35rem 1.6rem 1.45rem;
	}

	.spx-product-search__preview-media {
		width: min(100%, 23rem);
	}

	.spx-product-search__preview-media img {
		max-height: 16.75rem;
	}

	.spx-product-search__preview-title {
		max-width: 16ch;
		margin-left: auto;
		margin-right: auto;
	}

	.spx-product-search__preview-description {
		max-width: 34rem;
	}
}

@media (max-width: 899.98px) {
	.spx-product-search__results {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		min-height: auto;
		max-height: min(72vh, 42rem);
	}

	.spx-product-search__list-column {
		border-right: 0;
		border-bottom: 1px solid rgba(29, 45, 61, 0.08);
	}

	.spx-product-search__list {
		max-height: min(34vh, 18rem);
	}

	.spx-product-search__preview {
		padding: 1rem;
	}

	.spx-product-search__preview-media {
		width: min(100%, 16rem);
	}

	.spx-product-search__preview-media img {
		max-height: 14rem;
	}
}

@media (max-width: 639.98px) {
	.spx-product-search {
		gap: 0.8rem;
	}

	.spx-product-search__input {
		min-height: 54px;
		padding-right: 3.2rem;
		font-size: 0.98rem;
	}

	.spx-product-search__field-icon {
		right: 0.9rem;
		font-size: 1.25rem;
	}

	.spx-product-search__surface {
		border-radius: 1.15rem;
	}

	.spx-product-search__list {
		padding: 0.8rem;
		gap: 0.6rem;
		max-height: min(30vh, 15rem);
	}

	.spx-product-search__item {
		grid-template-columns: 56px minmax(0, 1fr);
		padding: 0.7rem;
		gap: 0.75rem;
	}

	.spx-product-search__thumb {
		width: 56px;
		height: 56px;
	}

	.spx-product-search__item-title {
		font-size: 0.87rem;
	}

	.spx-product-search__item-price {
		font-size: 0.95rem;
	}

	.spx-product-search__preview-title {
		font-size: clamp(1.2rem, 6vw, 1.6rem);
	}

	.spx-product-search__preview-description {
		font-size: 0.9rem;
	}

	.spx-product-search__preview-meta {
		gap: 0.65rem;
	}

	.spx-product-search__view-all {
		margin: 0 0.8rem 0.8rem;
	}
}
