/* lens.co.il - search autocomplete (Buchacho) */
.ac_results { display: none !important; } /* old autocomplete */

.lsx-box {
	position: absolute;
	z-index: 100000;
	box-sizing: border-box;
	max-height: min(70vh, 540px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid #b9cfd6;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
	direction: rtl;
	text-align: right;
	font-size: 14px;
	line-height: 1.35;
}
.lsx-box *, .lsx-box *:before, .lsx-box *:after { box-sizing: border-box; }

.lsx-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: #222 !important;
	text-decoration: none !important;
	border-bottom: 1px solid #f1f3f5;
	cursor: pointer;
}
.lsx-item:last-of-type { border-bottom: 0; }
.lsx-item.lsx-active, .lsx-item:hover { background: #eef8fb; }

.lsx-thumb {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f6f8f9;
	border: 1px solid #eceff1;
	border-radius: 8px;
	overflow: hidden;
}
.lsx-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.lsx-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lsx-name {
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lsx-name mark { background: transparent; color: inherit; font-weight: 700; padding: 0; }
.lsx-price { font-weight: 700; color: #1a8fb3; font-size: 13px; }

.lsx-all {
	display: block;
	padding: 11px 12px;
	text-align: center;
	font-weight: 600;
	color: #1a8fb3 !important;
	text-decoration: none !important;
	border-top: 1px solid #e3e8eb;
	background: #fafcfd;
	position: sticky;
	bottom: 0;
}
.lsx-all:hover { background: #eef8fb; }

.lsx-empty, .lsx-loading { padding: 16px 12px; color: #777; text-align: center; }
.lsx-spinner {
	display: inline-block;
	width: 14px; height: 14px;
	margin-left: 8px;
	vertical-align: -2px;
	border: 2px solid #cfe7ef;
	border-top-color: #1a8fb3;
	border-radius: 50%;
	animation: lsx-spin .7s linear infinite;
}
@keyframes lsx-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.lsx-box { max-height: 65vh; border-radius: 8px; }
	.lsx-item { padding: 10px 12px; }
	.lsx-name { font-size: 15px; }
	/* prevents iPhone zoom when tapping the search box */
	input[name="search_query"] { font-size: 16px !important; }
}

/* ---------- search box (theme header) ---------- */
/* slightly stronger border */
#search_block_top #searchbox #search_query_top {
	border-width: 2px 2px 2px 0;
	border-color: #0090AE;
}
#search_block_top #searchbox .no-btn {
	border-width: 2px 0 2px 2px;
	border-color: #0090AE;
}
/* magnifier in the same color as the border */
#search_block_top #searchbox .no-btn,
#search_block_top #searchbox .no-btn .icons,
#search_block_top #searchbox .no-btn:hover .icons {
	color: #0090AE;
}

/* X clear button */
input.lsx-has-clear { padding-left: 32px !important; }
input.lsx-has-clear::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
input.lsx-has-clear::-ms-clear { display: none; }
.lsx-clear {
	position: absolute;
	z-index: 5;
	display: none;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #e6f4f7;
	color: #0090AE;
	font-size: 18px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
}
.lsx-clear:hover { background: #0090AE; color: #fff; }
