/* Zoekblok "Vind jouw onderdeel" — tabbladen kenteken / merk & model / motorcode / artikelnummer */
.wh-ps {
	--wh-gold: var(--e-global-color-primary, #AE9444);
	--wh-dark: #1c2431;
	--wh-line: #e3e6ea;
	--wh-muted: #6b7280;
	width: 100%;
	color: var(--wh-dark);
	font-size: 15px;
}
.wh-ps-title {
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 14px;
}
.wh-ps-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--wh-line);
	margin-bottom: 18px;
	overflow-x: auto;
	scrollbar-width: none;
}
.wh-ps-tabs::-webkit-scrollbar { display: none; }
.wh-ps-tabs button {
	flex: 1 0 auto;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 10px 8px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	color: var(--wh-muted);
	cursor: pointer;
	white-space: nowrap;
}
/* Het thema geeft button:hover een zwarte achtergrond; tabbladen blijven transparant met alleen de gouden streep. */
.wh-ps .wh-ps-tabs button,
.wh-ps .wh-ps-tabs button:hover,
.wh-ps .wh-ps-tabs button:focus,
.wh-ps .wh-ps-tabs button:active {
	background: transparent !important;
	box-shadow: none;
	border-radius: 0;
}
.wh-ps .wh-ps-tabs button:hover { color: var(--wh-dark); border-bottom-color: var(--wh-line); }
.wh-ps .wh-ps-tabs button[aria-selected="true"]:hover { border-bottom-color: var(--wh-gold); }
.wh-ps-tabs button[aria-selected="true"] {
	color: var(--wh-dark);
	border-bottom-color: var(--wh-gold);
}
.wh-ps-tabs button:focus-visible { outline: 2px solid var(--wh-gold); outline-offset: -2px; }

.wh-ps-panel[hidden] { display: none; }
.wh-ps-panel { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* Kentekenplaat in NL-stijl */
.wh-ps-plate {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--wh-dark);
	border-radius: 8px;
	overflow: hidden;
	background: #f7c23c;
	margin: 0;
}
.wh-ps-plate-nl {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #003399;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.wh-ps .wh-ps-plate input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 12px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
	color: #111;
	box-shadow: none;
	height: auto;
}
.wh-ps .wh-ps-plate input::placeholder { color: rgba(17, 17, 17, .35); }
.wh-ps .wh-ps-plate input:focus { outline: none; }
.wh-ps-plate:focus-within { box-shadow: 0 0 0 3px rgba(174, 148, 68, .35); }

.wh-ps-vehicle { min-height: 0; font-size: 14px; color: var(--wh-dark); }
.wh-ps-vehicle:empty { display: none; }
.wh-ps-vehicle.is-error { color: #b42318; }
.wh-ps-vehicle strong { font-weight: 700; }
.wh-ps-vehicle .wh-ps-count { display: block; color: #15803d; font-weight: 600; margin-top: 2px; }
.wh-ps-vehicle .wh-ps-count.is-zero { color: var(--wh-muted); }

.wh-ps-row { display: flex; gap: 10px; }
.wh-ps-row select { flex: 1; min-width: 0; }
.wh-ps select,
.wh-ps .wh-ps-input {
	width: 100%;
	height: 48px;
	border: 1px solid var(--wh-line);
	border-radius: 6px;
	padding: 0 14px;
	font-size: 16px;
	background-color: #fff;
	color: var(--wh-dark);
}
.wh-ps select:disabled { background-color: #f3f4f6; color: var(--wh-muted); }
.wh-ps .wh-ps-input { text-transform: uppercase; }
.wh-ps .wh-ps-input::placeholder { text-transform: none; }
.wh-ps select:focus,
.wh-ps .wh-ps-input:focus { outline: none; border-color: var(--wh-gold); box-shadow: 0 0 0 3px rgba(174, 148, 68, .25); }

.wh-ps .wh-ps-submit {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 6px;
	background: var(--wh-dark);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
	transition: background-color .2s;
}
.wh-ps .wh-ps-submit:hover,
.wh-ps .wh-ps-submit:focus-visible { background: var(--wh-gold); color: #fff; }

.wh-ps-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--wh-muted); }

/* Melding boven de zoekresultaten in de shop */
.wh-ps-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-left: 4px solid var(--e-global-color-primary, #AE9444);
	background: #fff;
	border-radius: 6px;
	line-height: 1.6;
}
.wh-ps-notice-plate {
	display: inline-block;
	padding: 0 8px;
	margin-right: 4px;
	background: #f7c23c;
	border: 1px solid #111;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 1px;
}
.wh-ps-notice-again { margin-left: 6px; white-space: nowrap; color: var(--e-global-color-primary, #AE9444); font-weight: 600; }

@media (max-width: 480px) {
	.wh-ps-title { font-size: 18px; margin-bottom: 10px; }
	.wh-ps-tabs { margin-bottom: 14px; }
	.wh-ps-tabs { gap: 0; }
	.wh-ps .wh-ps-tabs button { flex: 1 1 auto; padding: 10px 4px; font-size: 12px; letter-spacing: 0; }
	.wh-ps .wh-ps-plate input { font-size: 22px; padding: 10px; }
	.wh-ps-row { flex-direction: column; }
}
