/**
 * Shared search autosuggest dropdown styles.
 * Attach on both the List and Calendar widgets.
 */

 .ecom-search-wrap {
	position: relative;
}

/* Dropdown container */
.ecom-search-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 260px;
	max-height: 360px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
	padding: 6px;
	display: none;
	z-index: 30;
}
.ecom-search-suggest.is-open { display: block; }

/* List */
.ecom-suggest-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Individual suggestion row */
.ecom-suggest-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .12s;
}
.ecom-suggest-item.is-active,
.ecom-suggest-item:hover {
	background: #f1f5f9;
}

/* Thumbnail (small circle) */
.ecom-suggest-thumb {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #eef2ff;
}
.ecom-suggest-thumb--placeholder {
	display: inline-block;
	background: #eef2ff;
}

/* Text block */
.ecom-suggest-body {
	flex: 1;
	min-width: 0;
}
.ecom-suggest-title {
	font-size: 14px;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}
.ecom-suggest-title strong {
	font-weight: 600;
	color: #0f172a;
}
.ecom-suggest-date {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

/* Trailing chevron */
.ecom-suggest-chev {
	font-size: 14px !important;
	width: 14px !important;
	height: 14px !important;
	color: #94a3b8;
	flex-shrink: 0;
}

/* Empty state */
.ecom-suggest-empty {
	padding: 16px 12px;
	text-align: center;
	color: #64748b;
	font-size: 13px;
}