/* Theme-Native Ajax Search for WooCommerce */

.tnas-dropdown {
	position: absolute;
	z-index: 999999;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.14 );
	font-size: 14px;
	line-height: 1.3;
	color: #222;
	-webkit-overflow-scrolling: touch;
}

.tnas-message {
	padding: 14px 16px;
	color: #777;
}

.tnas-group {
	padding: 6px 0;
	border-top: 1px solid #f0f0f0;
}

.tnas-group:first-child {
	border-top: 0;
}

.tnas-group__label {
	padding: 6px 16px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
}

.tnas-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.tnas-item:hover,
.tnas-item.is-active {
	background: #f5f7fa;
}

.tnas-item__img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: #f3f3f3;
}

.tnas-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tnas-item__title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tnas-item__meta {
	display: flex;
	gap: 8px;
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

.tnas-item__price {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.tnas-item__price del {
	font-weight: 400;
	opacity: 0.6;
	margin-right: 4px;
}

.tnas-viewall {
	justify-content: center;
	font-weight: 600;
	border-top: 1px solid #f0f0f0;
	color: #2271b1;
}

.tnas-category .tnas-item__count {
	color: #aaa;
}

@media ( max-width: 600px ) {
	.tnas-item__img {
		width: 34px;
		height: 34px;
	}
}
