/**
 * Fuzzy Search Results Dropdown Styles
 *
 * @package MyBestClinicShop
 */

.mbcs-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
}

.mbcs-search-results-list {
	padding: 8px 0;
}

.mbcs-search-result-item {
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #f5f5f5;
}

.mbcs-search-result-item:last-child {
	border-bottom: none;
}

.mbcs-search-result-item:hover {
	background: #f9f9f9;
}

.mbcs-search-result-name {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.mbcs-search-result-name mark {
	background: #fff3cd;
	color: #856404;
	padding: 2px 4px;
	border-radius: 3px;
	font-weight: 700;
}

.mbcs-search-result-sku {
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.mbcs-search-result-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #999;
}

.mbcs-search-result-category {
	display: inline-block;
	padding: 2px 8px;
	background: #e3f2fd;
	color: #1976d2;
	border-radius: 12px;
	font-weight: 500;
}

.mbcs-search-result-score {
	color: #4caf50;
	font-weight: 600;
}

.mbcs-search-no-results {
	padding: 24px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.mbcs-search-results-footer {
	padding: 12px 16px;
	background: #f9f9f9;
	border-top: 1px solid #e0e0e0;
	font-size: 12px;
	color: #666;
	text-align: center;
}

.mbcs-search-results-footer kbd {
	display: inline-block;
	padding: 2px 6px;
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-family: monospace;
	font-size: 11px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.mbcs-search-results::-webkit-scrollbar {
	width: 8px;
}

.mbcs-search-results::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 0 8px 8px 0;
}

.mbcs-search-results::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.mbcs-search-results::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Loading state */
.mbcs-search-loading {
	padding: 24px;
	text-align: center;
	color: #999;
}

.mbcs-search-loading::after {
	content: '...';
	animation: dots 1.5s infinite;
}

@keyframes dots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.mbcs-search-results {
		max-height: 300px;
	}
	
	.mbcs-search-result-item {
		padding: 10px 12px;
	}
	
	.mbcs-search-result-name {
		font-size: 13px;
	}
}

