/* Pyrasied Zoeken. Breedte bepaalt de Elementor-widget eromheen. */

.pyr-zoek {
	--pyr-zoek-rand: #000;
	--pyr-zoek-lijn: #e6e6e6;
	--pyr-zoek-hover: #f4f4f4;
	--pyr-zoek-grijs: #6f6f6f;
	position: relative;
	width: 100%;
	font-family: roboto, Roboto, sans-serif;
	color: #000;
}

.pyr-zoek__form {
	display: flex;
	align-items: center;
	height: 40px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--pyr-zoek-rand);
	border-radius: 0;
}

.pyr-zoek .pyr-zoek__input,
.pyr-zoek .pyr-zoek__input:focus {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 8px 0 14px;
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: #000;
	-webkit-appearance: none;
	appearance: none;
}

.pyr-zoek__input::placeholder {
	color: #8f8f8f;
	opacity: 1;
}

.pyr-zoek__input::-webkit-search-cancel-button,
.pyr-zoek__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.pyr-zoek__form:focus-within {
	outline: 2px solid #000;
	outline-offset: -2px;
}

.pyr-zoek .pyr-zoek__knop {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #6f6f6f;
	cursor: pointer;
}

/* Wisknop staat nog in oudere uitvoer van de shortcode */
.pyr-zoek .pyr-zoek__wis {
	display: none;
}

.pyr-zoek .pyr-zoek__knop:hover {
	background: transparent;
	color: #000;
}

/* Paneel */

.pyr-zoek__paneel {
	position: absolute;
	z-index: 9999;
	top: 100%;
	left: 0;
	right: 0;
	min-width: min(420px, calc(100vw - 24px));
	max-height: min(70vh, 600px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-top: -1px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid var(--pyr-zoek-rand);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.pyr-zoek__paneel[hidden] {
	display: none;
}

.pyr-zoek__groep + .pyr-zoek__groep {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--pyr-zoek-lijn);
}

.pyr-zoek__kop {
	padding: 10px 16px 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pyr-zoek-grijs);
}

.pyr-zoek a.pyr-zoek__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 7px 16px;
	color: #000;
	text-decoration: none;
	line-height: 1.3;
}

.pyr-zoek a.pyr-zoek__item:hover,
.pyr-zoek a.pyr-zoek__item.is-actief {
	background: var(--pyr-zoek-hover);
	color: #000;
}

.pyr-zoek__beeld {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background: var(--pyr-zoek-hover);
	color: var(--pyr-zoek-grijs);
}

.pyr-zoek__beeld img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pyr-zoek__item--g .pyr-zoek__beeld {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
	margin: 0 8px;
	background: transparent;
}

/* Categorie of merk: eigen label boven de naam, zodat het niet op een product lijkt */
.pyr-zoek__item--c .pyr-zoek__tekst {
	flex: 1 1 auto;
}

.pyr-zoek__item--c .pyr-zoek__sub {
	order: -1;
	margin: 0 0 3px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pyr-zoek__tekst {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pyr-zoek__titel {
	font-family: itc-avant-garde-gothic-pro, roboto, sans-serif;
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pyr-zoek__item--g .pyr-zoek__titel {
	font-family: inherit;
	font-weight: 500;
}

.pyr-zoek__sub {
	margin-top: 2px;
	font-size: 12px;
	color: var(--pyr-zoek-grijs);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pyr-zoek__code {
	display: inline-block;
	margin-right: 4px;
	padding: 2px 6px 1px;
	background: #000;
	color: #fff;
	font-family: roboto, Roboto, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	vertical-align: 1px;
}


.pyr-zoek .pyr-zoek__meer {
	display: block;
	width: 100%;
	margin: 0;
	padding: 6px 16px 10px 78px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 13px;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #000;
	cursor: pointer;
}

.pyr-zoek .pyr-zoek__meer:hover {
	background: transparent;
	color: #000;
	text-decoration-thickness: 2px;
}

.pyr-zoek__leeg {
	padding: 14px 16px;
	font-size: 14px;
	color: var(--pyr-zoek-grijs);
}

.pyr-zoek__leeg strong {
	color: #000;
}

@media (max-width: 767px) {
	.pyr-zoek__paneel {
		min-width: 0;
		max-height: 65vh;
	}

	.pyr-zoek .pyr-zoek__input {
		font-size: 16px; /* voorkomt inzoomen op iOS */
	}
}
