/**
 * Vendo predictive search dropdown (deliverable 2.2).
 * Mobile-first; inherits brand tokens from the vendo-child theme where present.
 */
.vendo-ac {
	position: relative;
}

.vendo-ac__panel {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--vendo-bg, #fff);
	border: 1px solid var(--vendo-border, #e5e7eb);
	border-radius: var(--vendo-radius, 8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 70vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.vendo-ac__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 6px;
	cursor: pointer;
	min-height: 48px; /* touch target */
}

.vendo-ac__item.is-active,
.vendo-ac__item:hover {
	background: color-mix(in srgb, var(--vendo-primary, #1f3a5f) 8%, transparent);
}

.vendo-ac__thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: #f3f4f6;
}

.vendo-ac__thumb--ph {
	display: inline-block;
	background: repeating-linear-gradient(45deg, #eef0f2, #eef0f2 6px, #e5e7eb 6px, #e5e7eb 12px);
}

.vendo-ac__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.vendo-ac__title {
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--vendo-text, #1a1a1a);
}

.vendo-ac__school {
	font-size: 0.8rem;
	color: var(--vendo-muted, #6b7280);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vendo-ac__price {
	margin-left: auto;
	font-weight: 600;
	white-space: nowrap;
	color: var(--vendo-primary, #1f3a5f);
}

.vendo-ac__empty {
	padding: 12px;
	color: var(--vendo-muted, #6b7280);
	text-align: center;
}

/* Standalone search box via [vendo_search] shortcode */
.vendo-search {
	max-width: 520px;
	margin: 0 auto;
}
.vendo-search input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--vendo-border, #e5e7eb);
	border-radius: var(--vendo-radius, 8px);
	font-size: 1rem;
}
