/* Header live search — materials + vendors */

#brx-header .mk-hs-host,
.mk-hs-host {
	position: relative !important;
}

.mk-hs-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 10050;
	max-height: min(70vh, 420px);
	overflow: auto;
	padding: 10px 0 8px;
	border: 1px solid #e5e9f0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(26, 31, 46, 0.12);
}

.mk-hs-section + .mk-hs-section {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #f0f2f7;
}

.mk-hs-section__title {
	padding: 4px 16px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8094ae;
}

.mk-hs-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	text-decoration: none;
	color: inherit;
}

.mk-hs-item:hover,
.mk-hs-item:focus-visible {
	background: #f7f1e8;
	outline: none;
}

.mk-hs-item__img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #f0f2f7;
}

.mk-hs-item--vendor .mk-hs-item__img {
	border-radius: 50%;
}

.mk-hs-item__img--empty {
	display: inline-block;
}

.mk-hs-item__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mk-hs-item__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1f2e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mk-hs-item__badge {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 999px;
	background: #f7f1e8;
	color: #8a5a2b;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mk-hs-item__meta {
	font-size: 12px;
	color: #8094ae;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mk-hs-empty {
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #8094ae;
}

.mk-hs-all {
	display: block;
	margin-top: 6px;
	padding: 12px 16px;
	border-top: 1px solid #f0f2f7;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #b5813a;
	text-decoration: none;
}

.mk-hs-all:hover {
	text-decoration: underline;
}

/* Compact / drawer mode */
#brx-header .mk-header-search__drawer .mk-hs-panel {
	position: fixed;
	left: 12px;
	right: 12px;
	top: auto;
	width: auto;
}

@media (max-width: 767px) {
	.mk-hs-panel {
		max-height: min(60vh, 360px);
	}
}
