.webmz-ajax-search {
	position: relative;
	width: 100%;
	font-family: var(--webmz-font-family, inherit);
}

.webmz-ajax-search__form {
	display: flex;
	align-items: stretch;
	min-height: 58px;
	padding: 4px;
	background: #f2f7fc;
	border: 1px solid #e5edf5;
	border-radius: 12px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.webmz-ajax-search__form:focus-within {
	border-color: var(--webmz-color-primary);
	box-shadow: 0 0 0 3px rgba(8, 120, 249, .12);
}

.webmz-ajax-search__input {
	flex: 1;
	min-width: 0;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	color: var(--webmz-color-text-dark);
	background: transparent;
	border: 0;
	outline: none;
}

.webmz-ajax-search__input::placeholder {
	color: var(--webmz-color-text-gray);
}

.webmz-ajax-search__input::-webkit-search-cancel-button {
	display: none;
}

.webmz-ajax-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 58px;
	border: 0;
	border-radius: 9px;
	background: var(--webmz-color-primary);
	color: #fff;
	font-size: 19px;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.webmz-ajax-search__submit:hover {
	background: var(--webmz-color-primary-hover);
}

.webmz-ajax-search__submit:active {
	transform: scale(.97);
}

.webmz-ajax-search__submit svg {
	display: block;
	stroke: currentColor;
}

.webmz-ajax-search__panel {
	position: absolute;
	z-index: 9999;
	inset-inline: 0;
	top: calc(100% + 10px);
	padding: 22px;
	background: #fff;
	border: 1px solid #e5edf5;
	border-radius: 18px;
	box-shadow: 0 22px 60px rgba(16, 45, 80, .14);
	max-height: 580px;
	overflow: auto;
}

.webmz-ajax-search__panel[hidden] {
	display: none !important;
}

.webmz-ajax-search__loading {
	margin-bottom: 14px;
	padding: 10px 12px;
	background: #f2f7fc;
	border-radius: 9px;
	color: var(--webmz-color-text-gray);
	font-size: 13px;
}

.webmz-ajax-search__block {
	margin-bottom: 22px;
}

.webmz-ajax-search__block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 13px;
}

.webmz-ajax-search__heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--webmz-color-text-navy);
}

.webmz-ajax-search__arrows {
	display: flex;
	gap: 6px;
	direction: ltr;
}

.webmz-ajax-search__arrows button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #e3ebf3;
	border-radius: 8px;
	background: #fff;
	color: var(--webmz-color-text-navy);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.webmz-ajax-search__arrows button:hover {
	border-color: var(--webmz-color-primary);
	color: var(--webmz-color-primary);
}

.webmz-ajax-search__arrows .swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

.webmz-ajax-search__slider {
	overflow: hidden;
}

.webmz-search-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 10px;
	border: 1px solid #edf2f7;
	border-radius: 12px;
	background: #fff;
	color: var(--webmz-color-text-dark);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.webmz-search-product:hover,
.webmz-search-post:hover {
	border-color: #d5e5f6;
	box-shadow: 0 9px 22px rgba(16, 45, 80, .06);
	color: var(--webmz-color-text-dark);
}

.webmz-search-product__image {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 9px;
	background: #f5f8fb;
}

.webmz-search-product__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.webmz-search-product__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.75;
}

.webmz-search-product__price {
	font-size: 13px;
	color: var(--webmz-color-primary);
	font-weight: 700;
}

.webmz-search-post {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 86px;
	padding: 9px;
	border: 1px solid #edf2f7;
	border-radius: 12px;
	background: #fff;
	color: var(--webmz-color-text-dark);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.webmz-search-post__image {
	flex: 0 0 67px;
	width: 67px;
	max-width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f8fb;
}

.webmz-search-post__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.webmz-search-post__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #a6b8c9;
	font-size: 26px;
}

.webmz-search-post__content {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.webmz-search-post__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.7;
}

.webmz-search-post__date {
	font-size: 11px;
	color: var(--webmz-color-text-gray);
}

.webmz-ajax-search__empty {
	padding: 20px 12px;
	border-radius: 11px;
	background: #f8fafc;
	color: var(--webmz-color-text-gray);
	font-size: 13px;
	text-align: center;
}

.webmz-ajax-search__suggestions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	padding-top: 18px;
	border-top: 1px solid #edf2f7;
}

.webmz-ajax-search__chips-block .webmz-ajax-search__heading {
	margin-bottom: 12px;
}

.webmz-ajax-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.webmz-ajax-search__chip {
	padding: 7px 12px;
	border: 1px solid #e5edf5;
	border-radius: 30px;
	background: #f7fafc;
	color: var(--webmz-color-text-gray);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.webmz-ajax-search__chip:hover {
	background: var(--webmz-color-primary);
	border-color: var(--webmz-color-primary);
	color: #fff;
}

.webmz-ajax-search__muted {
	color: var(--webmz-color-text-gray);
	font-size: 12px;
}

@media (max-width: 767px) {
	.webmz-ajax-search__panel {
		padding: 16px;
		max-height: min(75vh, 680px);
		overflow-y: auto;
	}

	.webmz-ajax-search__suggestions {
		grid-template-columns: 1fr;
	}
}
