/* ==========================================================================
   Xleb Search — Base Styles
   Scoped to .xleb-search-* — no global resets, safe alongside other plugins.
   ========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────── */
.xleb-search-wrap {
	position: relative;
	width: 100%;
	max-width: 600px;
}

/* ── Form ─────────────────────────────────────────────────────── */
.xleb-search-form {
	position: relative;
	width: 100%;
}

.xleb-search-inner {
	display: flex;
	align-items: stretch;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* .xleb-search-inner:focus-within {
	border-color: #999;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
} */

/* ── Input ────────────────────────────────────────────────────── */
.xleb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	background: transparent;
	color: var(--inputPlaceHolder);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.xleb-search-input::-webkit-search-cancel-button,
.xleb-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
}

/* ── Button ───────────────────────────────────────────────────── */
.xleb-search-btn {
	flex: 0 0 auto;
	border: 0;
	padding: 10px 18px;
	background: transparent;
	color: var(--inputPlaceHolder);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.xleb-search-btn:hover,
.xleb-search-btn:focus {
	background: #005d8c;
	outline: none;
}

/* ── Dropdown container ───────────────────────────────────────── */
.xleb-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 16px 40px rgba(0, 0, 15, 0.12);
	z-index: 9999;
	overflow: hidden;
}

/* ── Autocomplete list ────────────────────────────────────────── */
.xleb-search-ac-list {
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
}

.xleb-search-ac-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.xleb-search-ac-item:last-child {
	border-bottom: 0;
}

.xleb-search-ac-link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px;
	box-sizing: border-box;
	text-decoration: none;
	color: #00000f;
	transition: background 0.1s ease;
}

.xleb-search-ac-link--no-thumb {
	grid-template-columns: minmax(0, 1fr);
}

.xleb-search-ac-link:hover,
.xleb-search-ac-item--active .xleb-search-ac-link {
	background: #f5f5f7;
}

.xleb-search-ac-thumb {
	display: block;
	width: 64px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: #f5f5f7;
	overflow: hidden;
}

.xleb-search-ac-thumb--empty {
	background: #f5f5f7;
}

.xleb-search-ac-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.xleb-search-ac-title {
	display: block;
	font-family: var(--fontOnest, Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0;
	color: #00000f;
}

.xleb-search-ac-meta,
.xleb-search-ac-type {
	display: block;
	font-family: var(--fontOnest, Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 0.5);
}

.xleb-search-ac-price {
	display: block;
	font-family: var(--fontOnest, Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0;
	color: #00000f;
}

/* ── Full-page results list ───────────────────────────────────── */
.xleb-search-page {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
}

.xleb-search-page__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.xleb-search-page__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	text-decoration: none;
	font-family: var(--fontOnest, Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 19px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 0.5);
}

.xleb-search-page__back:hover,
.xleb-search-page__back:focus {
	color: #00000f;
	text-decoration: none;
}

.xleb-search-page__back-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 16px;
}

.xleb-search-page__title {
	margin: 0;
	font-family: var(--fontOnest, Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 50px;
	font-weight: 500;
	line-height: 48px;
	letter-spacing: 0;
	color: #00000f;
}

.xleb-search-page__results {
	width: 100%;
}

.xleb-search-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.xleb-search-result {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.xleb-search-result__link {
	display: flex;
	gap: 14px;
	padding: 14px;
	text-decoration: none;
	color: inherit;
	transition: background 0.1s ease;
}

.xleb-search-result__link:hover {
	background: #f9f9f9;
}

.xleb-search-result__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 3px;
}

.xleb-search-result__body {
	flex: 1 1 auto;
	min-width: 0;
}

.xleb-search-result__type {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

.xleb-search-result__title {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
}

.xleb-search-result__excerpt {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.55;
	color: #555;
}

.xleb-search-result__date {
	font-size: 12px;
	color: #999;
}

.xleb-search-no-results {
	padding: 16px 0;
	font-size: 14px;
	color: #666;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
	.xleb-search-btn {
		padding: 10px 12px;
		font-size: 13px;
	}

	.xleb-search-ac-link {
		grid-template-columns: 56px minmax(0, 1fr);
		min-height: 68px;
		padding: 10px;
	}

	.xleb-search-ac-thumb {
		width: 56px;
		height: 42px;
	}

	.xleb-search-ac-title,
	.xleb-search-ac-price {
		font-size: 15px;
		line-height: 19px;
	}

	.xleb-search-page__title {
		font-size: 32px;
		line-height: 34px;
	}

	.xleb-search-result__link {
		flex-direction: column;
	}

	.xleb-search-result__thumb {
		width: 100%;
		height: 140px;
		flex: none;
	}
}


.xleb-search-form li+li{
	margin-top: unset !important;
}

.xleb-search-form ul{
	gap: var(--gapX2);
}

.xleb-search-form .xleb-search-ac-link--all-results{
	color: var(--linkDefaultColor);
}