/* Solareco Product Search 1.0.0 — suggestions under the header search field. */
.sps-form {
	--sps-dark: #10271d;
	--sps-green: #66a633;
	--sps-yellow: #f5b71e;
	--sps-text: #13190a;
	--sps-light: #e7f0e9;
	position: relative;
}

.sps-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 100010;
	box-sizing: border-box;
	max-width: 100%;
	max-height: min(70vh, 640px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	color: var(--sps-text);
	border-top: 3px solid var(--sps-green);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 14px 32px rgba(16, 39, 29, 0.18);
	text-align: left;
	font-size: 15px;
	line-height: 1.35;
}

.search_wrap.sps-open {
	overflow: visible !important;
}

.sps-panel[hidden] {
	display: none;
}

.sps-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

.sps-empty {
	margin: 0;
	padding: 14px 16px 6px;
	color: var(--sps-text);
	font-size: 15px;
}

.sps-empty[hidden] {
	display: none;
}

.sps-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	margin: 0;
	padding: 6px 16px;
	box-sizing: border-box;
	border-left: 4px solid transparent;
	cursor: pointer;
	color: var(--sps-text);
}

.sps-option:hover,
.sps-option.is-active {
	background: var(--sps-light);
	border-left-color: var(--sps-green);
}

.sps-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: var(--sps-light);
	overflow: hidden;
}

.sps-thumb img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: #fff;
}

.sps-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.sps-name {
	font-weight: 600;
	color: var(--sps-dark);
	overflow-wrap: anywhere;
}

.sps-meta {
	font-size: 13px;
	color: #3d4a35;
	overflow-wrap: anywhere;
}

.sps-hint {
	align-self: flex-start;
	max-width: 100%;
	margin-top: 2px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fdf3d8;
	border: 1px solid var(--sps-yellow);
	color: var(--sps-text);
	font-size: 12.5px;
	overflow-wrap: anywhere;
}

.sps-option.sps-action {
	min-height: 48px;
	border-top: 1px solid var(--sps-light);
	font-weight: 600;
	color: var(--sps-dark);
}

.sps-option.sps-action .sps-action-label::after {
	content: " \2192";
	color: var(--sps-green);
}

.sps-option.sps-action-secondary {
	font-weight: 500;
}

.sps-sr {
	position: absolute !important;
	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;
}

.sps-form.is-loading .search_field {
	background-image: linear-gradient(90deg, var(--sps-green), var(--sps-yellow));
	background-size: 40% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	animation: sps-loading 0.9s linear infinite;
}

@keyframes sps-loading {
	from { background-position: -40% 100%; }
	to { background-position: 140% 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sps-form.is-loading .search_field {
		animation: none;
	}
}

@media (max-width: 767px) {
	.sps-panel {
		max-height: 60vh;
		font-size: 14px;
	}

	.sps-option {
		min-height: 52px;
		padding: 6px 12px;
	}

	.sps-option.sps-action {
		min-height: 48px;
	}
}
