/* Winstgevers Zoeken */

.wz {
	--wz-field-color: #fff;
	--wz-field-line: rgba(255, 255, 255, 0.9);
	--wz-field-font: "Open Sans Light", "Open Sans", sans-serif;
	--wz-text: #444;
	--wz-muted: #6d6d6d;
	--wz-accent: #003236;
	--wz-hover: #f2f5f5;
	--wz-font: Raleway, sans-serif;
	position: relative;
	font-family: var(--wz-font);
}

.wz .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.wz button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	color: inherit;
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
}

.wz button:focus-visible,
.wz .wz-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Zoekveld */

.wz-toggle {
	display: none !important;
	width: 40px;
	height: 40px;
	color: var(--wz-field-color) !important;
}

.wz-toggle svg {
	width: 24px;
	height: 24px;
}

.wz-form {
	display: flex;
	align-items: center;
	width: 250px;
	height: 40px;
	margin: 0;
	color: var(--wz-field-color);
}

.wz-back {
	display: none !important;
}

.wz-submit {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	color: inherit !important;
}

.wz .wz-form input.wz-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 30px;
	margin: 0 0 0 10px;
	padding: 0 8px 0 18px;
	border: 0;
	border-left: 1px solid var(--wz-field-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-family: var(--wz-field-font);
	font-size: 16px;
	line-height: 30px;
	-webkit-appearance: none;
	appearance: none;
}

.wz .wz-form input.wz-input::placeholder {
	color: inherit;
	opacity: 0.85;
	font-style: normal;
	text-transform: none;
}

.wz .wz-form input.wz-input:focus {
	outline: none;
	border-color: var(--wz-field-line);
	box-shadow: none;
}

.wz .wz-form input.wz-input::-webkit-search-cancel-button,
.wz .wz-form input.wz-input::-webkit-search-decoration {
	-webkit-appearance: none;
	display: none;
}

.wz-clear,
.wz-spinner {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: inherit !important;
}

.wz-clear,
.wz-spinner {
	display: none !important;
}

.wz--filled:not(.wz--loading) .wz-clear {
	display: inline-flex !important;
}

.wz--loading .wz-spinner {
	display: inline-block !important;
}

.wz-spinner::after {
	content: "";
	display: block;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin: 4px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: wz-spin 0.7s linear infinite;
}

@keyframes wz-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Suggesties */

.wz-results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 99999;
	box-sizing: border-box;
	width: 380px;
	max-width: calc(100vw - 32px);
	max-height: min(640px, calc(100vh - 120px));
	overflow-y: auto;
	padding: 6px 0;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	color: var(--wz-text);
	text-align: left;
	overscroll-behavior: contain;
}

.wz-results[hidden] {
	display: none;
}

.wz-group + .wz-group {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #eee;
}

.wz-group-title {
	padding: 8px 16px 4px;
	color: var(--wz-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wz .wz-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	color: var(--wz-text);
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
}

.wz .wz-item:hover,
.wz .wz-item.is-active {
	background: var(--wz-hover);
	color: var(--wz-text);
}

.wz-item strong {
	color: var(--wz-accent);
	font-weight: 700;
}

.wz-image {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: #fff;
}

.wz-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.wz-sub,
.wz-stock {
	color: var(--wz-muted);
	font-size: 11px;
}

.wz-stock {
	color: #a4472c;
}

.wz-item.is-out-of-stock .wz-image {
	opacity: 0.55;
}

.wz-price {
	flex: 0 0 auto;
	color: #555;
	font-size: 13px;
	text-align: right;
	white-space: nowrap;
}

.wz-price del {
	display: block;
	color: var(--wz-muted);
	font-size: 11px;
}

.wz-price ins {
	text-decoration: none;
}

.wz-count {
	flex: 0 0 auto;
	color: var(--wz-muted);
	font-size: 11px;
}

.wz .wz-all {
	justify-content: center;
	margin-top: 4px;
	padding: 12px 16px;
	border-top: 1px solid #eee;
	color: var(--wz-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wz-empty {
	padding: 14px 16px;
	color: var(--wz-muted);
	font-size: 13px;
}

/* Kleine schermen: icoon in de header, zoeken in een volledig scherm. */

@media (max-width: 1180px) {
	.wz--flexibel .wz-toggle {
		display: inline-flex !important;
	}

	.wz--flexibel .wz-panel {
		display: none;
	}

	.wz--flexibel.wz--open .wz-panel {
		position: fixed;
		inset: 0;
		/* Ingelogd: onder de WordPress-beheerbalk beginnen. */
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 2147483000;
		display: flex;
		flex-direction: column;
		background: #fff;
	}

	.wz--open .wz-form {
		flex: 0 0 auto;
		box-sizing: border-box;
		width: 100%;
		height: 60px;
		padding: 0 8px;
		border-bottom: 1px solid #e5e5e5;
		color: var(--wz-text);
	}

	.wz--open .wz-back {
		display: inline-flex !important;
		width: 44px;
		height: 44px;
	}

	.wz--open .wz-submit {
		display: none !important;
	}

	.wz.wz--open .wz-form input.wz-input {
		height: 44px;
		margin: 0;
		padding: 0 8px;
		border-left: 0;
		font-family: var(--wz-font);
		font-size: 16px;
	}

	.wz--open .wz-clear,
	.wz--open .wz-spinner {
		width: 44px;
		height: 44px;
	}

	.wz--open .wz-spinner::after {
		margin: 14px;
	}

	.wz--open .wz-results {
		position: static;
		flex: 1 1 auto;
		width: auto;
		max-width: none;
		max-height: none;
		box-shadow: none;
	}

	.wz--open .wz-item {
		padding: 10px 16px;
		font-size: 14px;
	}

	html.wz-overlay-open,
	html.wz-overlay-open body {
		overflow: hidden;
	}
}
