.uray-sm-search-host {
	position: relative !important;
}

.uray-sm-search-dropdown {
	position: absolute;
	z-index: 100005;
	top: calc(100% + 6px);
	left: 0;
	width: min(520px, 92vw);
	max-height: min(70vh, 590px);
	overflow: auto;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	box-shadow: 0 12px 28px rgba(20, 24, 31, .16);
	color: #24272c;
	text-align: left;
}

.uray-sm-search-list {
	display: grid;
}

.uray-sm-search-result {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	min-height: 82px;
	padding: 9px 12px;
	border-bottom: 1px solid #ececec;
	color: #24272c !important;
	text-decoration: none !important;
	transition: background-color .12s ease;
}

.uray-sm-search-result:hover,
.uray-sm-search-result:focus,
.uray-sm-search-result.is-active {
	background: #f5f7f8;
	outline: none;
}

.uray-sm-search-image {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: #f7f7f7;
	border: 1px solid #ededed;
	border-radius: 4px;
	overflow: hidden;
}

.uray-sm-search-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.uray-sm-search-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}

.uray-sm-search-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.uray-sm-search-dealer {
	margin: 8px;
	padding: 10px;
	background: rgba(165, 36, 152, .08);
	border: 1px solid rgba(165, 36, 152, .22);
	border-radius: 6px;
}

.uray-sm-search-dealer p {
	margin: 0 0 8px;
	color: #25282d;
	font-size: 13px;
	line-height: 1.4;
}

.uray-sm-search-dealer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 12px;
	background: var(--wd-primary-color, #a52498);
	border-radius: 4px;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
}

.uray-sm-search-dealer__button:hover,
.uray-sm-search-dealer__button:focus {
	background: #8d1d82;
	color: #fff !important;
}

.uray-sm-search-host .autocomplete-suggestions:not(.uray-sm-search-dropdown),
.uray-sm-search-host .woodmart-search-results,
.uray-sm-search-host .wd-search-results,
.uray-sm-search-host .wd-dropdown-results,
.uray-sm-search-host .wd-search-results-wrapper,
.uray-sm-search-host .wd-search-cat-results {
	display: none !important;
}

.uray-sm-search-price {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wd-primary-color, #a52498);
}

.uray-sm-search-price del {
	margin-right: 5px;
	font-size: 12px;
	font-weight: 400;
	color: #85898f;
}

.uray-sm-search-price ins {
	text-decoration: none;
}

.uray-sm-search-meta {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 12px;
	line-height: 1.35;
	color: #6a7077;
}

.uray-sm-search-category {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uray-sm-search-stock {
	color: #247342;
}

.uray-sm-search-empty,
.uray-sm-search-loading {
	min-height: 58px;
	padding: 19px 16px;
	font-size: 13px;
	text-align: center;
	color: #656b72;
}

.uray-sm-search-loading::before {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid #d6d9dc;
	border-top-color: var(--wd-primary-color, #a52498);
	border-radius: 50%;
	vertical-align: -3px;
	content: '';
	animation: uray-search-spin .7s linear infinite;
}

.uray-sm-search-all {
	display: block;
	padding: 12px 14px;
	background: #f0f3f4;
	color: #20252a !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
}

.uray-sm-search-all:hover,
.uray-sm-search-all:focus {
	background: #e6ebed;
}

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

@media (max-width: 767px) {
	.uray-sm-search-dropdown {
		position: fixed;
		top: auto;
		right: 8px;
		bottom: 8px;
		left: 8px;
		width: auto;
		max-height: 64vh;
	}

	.uray-sm-search-result {
		grid-template-columns: 56px minmax(0, 1fr);
		min-height: 74px;
		padding: 8px 10px;
	}

	.uray-sm-search-image {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uray-sm-search-result { transition: none; }
}
