/* WBMZ Search — live-suggesties dropdown. Neutraal, neemt themakleuren over waar mogelijk. */

.wbmz-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1080;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e3e6ee;
	border-radius: var(--wbmz-radius, 8px);
	box-shadow: 0 12px 32px rgba(16, 28, 60, .16);
	font-size: 14px;
}

.wbmz-suggest-item,
.wbmz-suggest-all {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: #0b0b0c;
	text-decoration: none;
	border-bottom: 1px solid #f0f2f7;
}

.wbmz-suggest-item:last-of-type { border-bottom: 0; }

.wbmz-suggest-item:hover,
.wbmz-suggest-item.is-active,
.wbmz-suggest-all:hover,
.wbmz-suggest-all.is-active {
	background: #f4f5f7;
	color: #0b0b0c;
}

.wbmz-suggest-img {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f5f7;
	border-radius: 6px;
	overflow: hidden;
}

.wbmz-suggest-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wbmz-suggest-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wbmz-suggest-title {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wbmz-suggest-meta {
	font-size: 12px;
	color: #717184;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wbmz-suggest-price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--wbmz-accent, #285e9c);
	white-space: nowrap;
}

.wbmz-suggest mark {
	background: var(--wbmz-mark-bg, #fff2b2);
	color: var(--wbmz-mark-color, inherit);
	padding: 0 1px;
}

.wbmz-suggest-all {
	justify-content: center;
	font-weight: 600;
	color: var(--wbmz-accent, #285e9c);
	background: #fbfcfe;
}

.wbmz-suggest-empty {
	padding: 16px 14px;
	color: #717184;
	text-align: center;
}

/* Facetten, markeringen en "bedoelde je" op de resultatenpagina. */
.wbmz-facets {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 20px;
}

.wbmz-facet-label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.wbmz-facet ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.wbmz-facet-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid #e3e6ee;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.wbmz-facet-link:hover { border-color: #b9c0d4; }

.wbmz-facet-link.is-active {
	background: var(--wbmz-accent, #285e9c);
	border-color: var(--wbmz-accent, #285e9c);
	color: #fff;
}

.wbmz-facet-count { opacity: .65; font-size: 12px; }

.wbmz-did-you-mean { margin: 0 0 16px; }

mark.wbmz-mark {
	background: var(--wbmz-mark-bg, #fff2b2);
	color: var(--wbmz-mark-color, inherit);
	padding: 0 1px;
}

/* Groepskoppen, typefilter, verwante resultaten en veelgezochte termen. */
.wbmz-suggest-kop {
	display: block;
	padding: 8px 14px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #717184;
}

.wbmz-suggest-terms {
	padding: 0 14px 10px;
	border-bottom: 1px solid #f0f2f7;
}

.wbmz-suggest-terms .wbmz-suggest-kop { padding: 8px 0 6px; }

.wbmz-suggest-term {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	border: 1px solid #e3e6ee;
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
}

.wbmz-suggest-term:hover,
.wbmz-suggest-term.is-active { background: #f4f5f7; }

.wbmz-types ul,
.wbmz-federated ul {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.wbmz-type-link,
.wbmz-federated-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid #e3e6ee;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
}

.wbmz-type-link:hover,
.wbmz-federated-link:hover { border-color: #b9c0d4; }

.wbmz-type-link.is-active {
	background: var(--wbmz-accent, #285e9c);
	border-color: var(--wbmz-accent, #285e9c);
	color: #fff;
}

.wbmz-type-count,
.wbmz-federated-count { opacity: .65; font-size: 12px; }

.wbmz-federated-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .6;
}

.wbmz-group-heading {
	margin: 28px 0 12px;
	font-size: 1.1rem;
}

.wbmz-group-heading:first-child { margin-top: 0; }

.wbmz-group-count {
	font-size: .8em;
	font-weight: 400;
	opacity: .6;
}

/* Prijsopmaak in de dropdown, inclusief aanbiedingen. */
.wbmz-suggest-price del {
	opacity: .55;
	font-weight: 400;
	margin-right: 4px;
}

.wbmz-suggest-price ins {
	text-decoration: none;
	background: none;
}

.wbmz-suggest-price .woocommerce-Price-currencySymbol { font-weight: inherit; }

/* Titelkleur en korte omschrijving in de suggesties. */
.wbmz-suggest-title { color: var(--wbmz-titel, #0b0b0c); }

.wbmz-suggest-tekst {
	font-size: 12px;
	line-height: 1.4;
	color: #717184;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 2px;
}

/* Diagnoseregel, alleen zichtbaar voor beheerders. */
.wbmz-suggest-diag {
	padding: 6px 14px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #717184;
	background: #fbfcfe;
	border-top: 1px dashed #e3e6ee;
}

/* Sorteren en prijsfilter. */
.wbmz-sort,
.wbmz-prijsfilter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.wbmz-sort-label,
.wbmz-prijsfilter-label {
	font-size: 14px;
	font-weight: 600;
}

.wbmz-prijsfilter input[type="number"] { width: 100px; }

.wbmz-prijsfilter-wis {
	font-size: 13px;
	color: var(--wbmz-accent, #285e9c);
}

/* Categoriedropdown vóór het zoekveld */
.wbmz-scope {
	border: 0;
	background: transparent;
	max-width: 40%;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 0 .35rem;
}
.wbmz-scope:focus { outline: none; }
