/* Kohlia Smart Search — الاقتراحات الفورية */

.kss-suggest-anchor {
	position: relative;
	display: block;
	width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

.kss-suggest {
	position: absolute;
	z-index: 999999;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: none;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .10);
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
	font-size: 14px;
	line-height: 1.5;
	color: #1f2328;
	-webkit-overflow-scrolling: touch;
}

.kss-suggest.is-open {
	display: block;
}

.kss-suggest__state {
	padding: 16px;
	text-align: center;
	color: #6b7280;
}

.kss-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid rgba(0, 0, 0, .05);
	transition: background .12s ease;
}

.kss-suggest__item:last-of-type {
	border-bottom: 0;
}

.kss-suggest__item:hover,
.kss-suggest__item.is-active {
	background: #f5f7fa;
}

.kss-suggest__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kss-suggest__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kss-suggest__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kss-suggest__title {
	display: block;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kss-suggest__title mark {
	background: rgba(255, 214, 0, .45);
	color: inherit;
	padding: 0 1px;
	border-radius: 2px;
}

.kss-suggest__meta {
	display: flex;
	gap: 8px;
	font-size: 12px;
	color: #6b7280;
}

.kss-suggest__oos {
	color: #b42318;
}

.kss-suggest__price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
	font-size: 13px;
}

.kss-suggest__price del {
	opacity: .55;
	font-weight: 400;
	margin-inline-end: 4px;
}

.kss-suggest__all {
	display: block;
	padding: 12px;
	text-align: center;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	background: #fafafa;
	border-top: 1px solid rgba(0, 0, 0, .06);
	position: sticky;
	bottom: 0;
}

.kss-did-you-mean {
	margin: 12px 0;
	font-size: 15px;
}

@media (max-width: 480px) {
	.kss-suggest__price {
		display: none;
	}
}

@media (prefers-color-scheme: dark) {
	.kss-suggest.kss-dark {
		background: #16181d;
		color: #e6e6e6;
		border-color: rgba(255, 255, 255, .12);
	}
}
