/* ==========================================================================
   RealOEM V2 Stylesheet
   All old grid/#rightnav/#main styles removed.
   Pages use body classes: .bmw-select-page | .v2-page | .home-page
   ========================================================================== */

/* ---- Diagram hotspot interaction (used by main.js) ---- */
#partsimg {
	position: relative;
	left: 0;
	top: 0;
	outline: none;
}

#partsimghl {
	content: " ";
	position: absolute;
	z-index: 1;
	width: 640px;
	height: 100%;
}

map area {
	outline: none;
}

.imghl {
	position: absolute;
	top: 0;
	left: 0;
	visibility: hidden;
	background-color: transparent;
	border: 2px solid #FF6600;
	border-radius: 4px;
	cursor: pointer;
}

.imghla {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background-color: transparent;
	cursor: pointer;
}

.not-avail {
	position: absolute;
	background-color: white;
	opacity: 0.85;
	border-radius: 4px;
	cursor: not-allowed;
}

div.poshl {
	border: 4px solid #F5CD02;
	margin: -2px;
	visibility: visible;
}

div.posselect {
	border: 2px solid #0c4a6e;
	visibility: visible;
	margin: 0;
}

/* ---- Photo icon ---- */
#partsList .aphoto {
	background: url("assets/photo.png") 0px 1px no-repeat;
	width: 16px;
	padding: 0;
}

#partsList .aphoto a {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.partphoto {
	display: inline-block;
	background: url("assets/photo.png") 0 0 no-repeat;
	width: 16px;
	height: 16px;
	margin: 0 0 0 10px;
}

/* ---- Print ---- */
@media print {
	#partsimg, #partsimg img {
		width: 100%;
		height: auto;
	}
	.imghl, .imghlna, .searchBox, .lang, .noprint, .splinks,
	.gad-wide, .gad-tall-right, .gad-parts-square, .gad-select-square,
	.ad-rail, .search-form-ad, [data-freestar-ad] {
		display: none !important;
	}
}

/* ---- Loading animation ---- */
.loading-anim div {
	height: 2px;
	width: 2px;
	margin-left: 4px;
	display: inline-block;
	background-color: #333;
	border: 1px solid #111;
	animation: loading_anim_loader 1.3s linear infinite;
	opacity: 0;
}

.loading-anim div:nth-child(2) { animation-delay: 0.2s; }
.loading-anim div:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading_anim_loader {
	0% { opacity: 1 }
	30% { opacity: 0 }
	100% { opacity: 0 }
}

/* ---- Ad containers ---- */
.splinks {
	font-size: 10px;
	margin: 4pt 0 0 0;
}

.gad-wide {
	max-width: 728px;
	display: inline-block;
	width: 728px;
}

.gad-wide-r-div { max-width: 728px; width: 100%; }
.gad-wide-r { display: none; }
.gad-select-square { display: inline-block; padding: 12px 0 0 50px; }
.gad-parts-square { display: inline-block; padding: 0 0 0 8px; }
.gad-tall-right { width: 160px; min-width: 160px; position: relative; }

@media (max-width: 589px) {
	.gad-wide { display: none }
	.gad-wide-r { display: block }
}
@media (max-width: 877px) {
	.gad-tall-right { display: none }
}
@media (max-width: 970px) {
	.gad-select-square { display: none }
}
@media (max-width: 1199px) {
	.gad-parts-square { display: none }
}

/* ---- Privacy Manager button ---- */
#pmLink {
	visibility: hidden;
	text-decoration: none;
	cursor: pointer;
	background: transparent;
	border: none;
	padding-right: 10px;
}

#pmLink:hover {
	visibility: visible;
	color: grey;
}

/* ---- FCP Euro (affiliate) ---- */
.fcp-euro-cta {
	margin: 8pt 0 10pt;
}

a.fcp-euro-button {
	display: inline-block;
	background-color: #0c4a6e;
	border: none;
	box-shadow: none;
	color: #ffffff;
	text-decoration: none;
	padding: 8pt 14pt;
	border-radius: 10px;
	font-weight: bold;
}

a.fcp-euro-button:hover {
	background-color: #0a3a57;
}

.fcp-euro-caption {
	font-size: 8.5pt;
	color: #555;
	margin-top: 4pt;
	max-width: 420px;
}

/* ---- Utility ---- */
.clear { clear: both; }
.error { font-weight: bold; color: #dc2626; }
.vs1 { padding: 12pt 0 0 12pt; }
.vs2 { padding: 16pt 0 0 0; }

/* ==========================================================================
   Shared: site header, footer, spinner, layout primitives
   ========================================================================== */

.site-header .head_inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.site-header .head_email {
	font-size: 0.9em;
	color: #0c184a;
}

.site-header .head_logo {
	font-size: 1.3em;
	font-weight: 700;
	text-decoration: none;
	color: #0c184a;
}

.page-container {
	max-width: 880px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.left_filter h2 {
	margin: 0 0 12px;
	font-size: 1.1em;
	color: #0c184a;
}

#left_filter {
	min-height: 120px;
}

.cssload-container {
	display: flex;
	justify-content: center;
	padding: 16px 0;
}

.cssload-speeding-wheel {
	width: 26px;
	height: 26px;
	border: 3px solid rgba(12, 24, 74, 0.2);
	border-top-color: #0c184a;
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.page-tools {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 6px;
}

.page-tools .lang {
	text-align: right;
}

.page-tools .lang a {
	margin-right: 12px;
}

.page-tools .lang-label {
	margin-right: 6px;
}

.ad-rail {
	width: 160px;
	min-width: 160px;
}

.site-footer {
	margin-top: 32px;
	padding: 20px 0 0;
	border-top: 1px solid rgba(12, 24, 74, 0.12);
}

.site-footer .footer-inner {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.site-footer .footer-link {
	color: #0c184a;
	text-decoration: none;
	font-size: 0.9em;
}

@media (max-width: 1024px) {
	.withleftmenu {
		flex-direction: column;
	}
	.left_filter, .ad-rail {
		width: 100%;
	}
	.ad-rail {
		min-width: 0;
	}
}

/* ==========================================================================
   Select page  (body.bmw-select-page)
   ========================================================================== */

.bmw-select-page {
	background-color: #f8f8f8;
	color: #1d4f6f;
	margin: 0;
	font-family: "Helvetica Neue", Arial, sans-serif;
}

.bmw-select-page *,
.bmw-select-page *:after,
.bmw-select-page *:before {
	box-sizing: border-box;
}

.bmw-select-page .site-header { display: none; }
.bmw-select-page .withleftmenu { display: block; }
.bmw-select-page .left_filter { display: none; }
.bmw-select-page .main-container { width: 100%; }
.bmw-select-page .content { text-align: center; }

.bmw-select-page .page-container {
	max-width: 1200px;
}

.bmw-select-page #center {
	max-width: 1120px;
	margin: 0 auto;
}

.hero { padding: 24px 0 8px; }

.hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-logo-img {
	width: 360px;
	max-width: 100%;
	height: auto;
	display: block;
}

.bmw-select-page h1 {
	margin: 4px 0 10px;
	font-size: 2.1em;
	font-weight: 500;
}

.bmw-select-page .select-subtitle {
	margin: 0 auto 24px;
	font-size: 1.05em;
	font-weight: normal;
	max-width: 560px;
	color: #2f5873;
}

.search_forms {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 0;
	margin: 12px 0 28px;
	justify-content: center;
}

.search_form {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.search_form form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	position: relative;
}

.search_form .field-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

.search_form .field-row-stacked {
	flex-direction: column;
	align-items: center;
}

.search_form .field-row-stacked input[type="text"],
.search_form .field-row-stacked input[type="search"],
.search_form .field-row-stacked input[type="tel"],
.search_form .field-row-stacked input[type="number"] {
	width: 260px;
	max-width: 100%;
}

.search_form .field-row label {
	background: #0c4a6e;
	color: #ffffff;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78em;
	white-space: nowrap;
}

.search_form .field-row input[type="text"],
.search_form .field-row input[type="search"],
.search_form .field-row input[type="tel"],
.search_form .field-row input[type="number"] {
	flex: 0 0 auto;
	width: 260px;
	max-width: 100%;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	background: #ededed;
	font-size: 0.95em;
	height: 42px;
}

.search_form .search-submit {
	position: absolute;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

.search_form .catalog-version {
	font-size: 0.9em;
	color: #2f5873;
}

#selectForm { margin-top: 10px; }

#bmw_selections {
	background: transparent;
	border: none;
	padding: 0;
}

#bmw_selects {
	display: grid;
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	gap: 18px 16px;
	align-items: start;
}

#bmw_selects > .bmw_select_table {
	order: 0;
}

#bmw_selects > .bmw_select_box_parent {
	order: 1;
}

#bmw_selects > .bmw_select_table,
#bmw_selects > .selcolumn.note,
#bmw_selects > .select-square-ad {
	grid-column: 1 / -1;
}

#bmw_selects > .selcolumn.note {
	order: 2;
}

#bmw_selects > .select-square-ad {
	order: 3;
}

#bmw_selects > .select-square-ad {
	display: flex;
	justify-content: center;
}

.bmw_select_table {
	display: flex;
	gap: 32px;
	justify-content: center;
	max-width: 600px;
	margin: 0 auto;
}

.bmw-select-page .selcolumn {
	min-width: 260px;
	flex: 1 1 260px;
	padding: 0;
	text-align: left;
	display: inline-block;
	vertical-align: top;
}

.bmw_select_table .selcolumn {
	flex: 1 1 280px;
	max-width: 280px;
}

.bmw-select-page .selcolumn label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78em;
	color: #2f5873;
}

.bmw_select_table .selcolumn label {
	font-size: 1.2em;
	font-weight: 700;
	color: #1d4f6f;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bmw_select_box {
	border: none;
	border-radius: 18px;
	background: #ededed;
	padding: 12px;
	min-width: 0;
}

.bmw_select_box select {
	width: 100%;
	border: none;
	background: transparent;
	padding: 6px 8px;
	font-size: 0.95em;
	border-radius: 12px;
	min-width: 0;
}

.bmw_select_table .bmw_select_box {
	background: #e8e8e8;
	border-radius: 16px;
	padding: 16px;
	min-height: 100px;
}

.bmw_select_table .bmw_select_box select {
	background: transparent;
	border: none;
	padding: 0;
	font-size: 1em;
	line-height: 1.6;
	color: #333;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	outline: none;
	width: 100%;
	height: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bmw_select_table .bmw_select_box select::-webkit-scrollbar { display: none; }
.bmw_select_table .bmw_select_box select::-ms-expand { display: none; }

.bmw_select_table .bmw_select_box select option {
	padding: 8px 12px;
	margin: 2px 0;
	background: transparent;
	color: #333;
}

.bmw_select_table .bmw_select_box select option:checked,
.bmw_select_table .bmw_select_box select option[selected] {
	background-color: #b8b8b8;
	color: #333;
	font-weight: 500;
	border-radius: 8px;
}

.bmw_select_box_parent {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	min-width: 0;
	width: 100%;
	max-width: none;
	margin: 0;
}

.bmw_select_box_parent .bmw_select_box { min-height: 150px; }

.bmw-select-page .selcolumn.note {
	max-width: 320px;
	padding-top: 8px;
	color: #2f5873;
	text-align: left;
	margin: 0 auto;
}

.select-square-ad { margin-top: 16px; }

.searchResults {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	background: #d6d6d6;
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	margin: 16px auto 0;
	font-weight: 500;
	font-size: 0.9em;
	color: #1d4f6f;
	width: 100%;
	max-width: 760px;
}

.searchResults .column {
	padding: 0;
	display: inline-block;
	vertical-align: baseline;
	text-align: left;
}

.searchResults-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.searchResults-line {
	line-height: 1.25;
}

.searchResults-label {
	font-weight: 600;
}

.searchResults-value {
	font-weight: 700;
}

.searchResults-action form {
	margin: 0;
}

.searchResults-button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	border: 1px solid #0c4a6e;
	background-color: #0c4a6e;
	color: #ffffff;
	padding: 8px 22px;
	border-radius: 999px;
	font-size: 0.74em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 1px 0 rgba(12, 24, 74, 0.12);
	font-family: inherit;
	line-height: 1;
}

.searchResults-button:hover {
	filter: brightness(1.05);
}

.searchResults-button:focus-visible {
	outline: 2px solid rgba(12, 74, 110, 0.5);
	outline-offset: 2px;
}

/* Select page responsive */
@media (max-width: 1024px) {
	#bmw_selects {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}
	.bmw_select_table {
		flex-direction: column;
		gap: 20px;
	}
	.bmw_select_table .selcolumn {
		max-width: none;
		flex: 1 1 auto;
	}
	.searchResults {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 768px) {
	.search_forms { flex-direction: column; }
	.bmw_select_table { flex-direction: column; gap: 20px; }
	.bmw_select_table .selcolumn { max-width: none; }
	.bmw_select_table .bmw_select_box { min-height: 90px; }
	.bmw_select_box_parent .bmw_select_box { min-height: auto; }
	.hero-logo-img { width: 260px; }
	.search_form .field-row { flex-direction: column; align-items: center; }
	.search_form .field-row label { text-align: center; }
}

@media (max-width: 640px) {
	#bmw_selects {
		grid-template-columns: 1fr;
	}

	.searchResults {
		flex-direction: column;
		align-items: stretch;
	}

	.searchResults-action form {
		width: 100%;
	}

	.searchResults-button {
		width: 100%;
	}
}

/* ==========================================================================
   V2 pages  (body.v2-page)
   Part Groups, Show Parts, Part Xref, Part Search
   ========================================================================== */

.v2-page {
	background-color: #f5f6f8;
	color: #1a1a2e;
	margin: 0;
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

.v2-page *,
.v2-page *:after,
.v2-page *:before {
	box-sizing: border-box;
}

.v2-page .site-header { display: none; }
.v2-page .withleftmenu { display: block; }
.v2-page .left_filter { display: none; }
.v2-page .main-container { width: 100%; }
.v2-page .content { text-align: left; }
.v2-page #center { max-width: 100%; }

.v2-page .page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

/* ---- Toolbar ---- */
.v2-page .page-tools {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	margin-bottom: 4px;
	border-bottom: 1px solid #e2e5ea;
}

.v2-page .page-tools .lang {
	text-align: right;
	font-size: 0.92em;
}

.v2-page .page-tools .lang a {
	margin-right: 14px;
	color: #0c4a6e;
	text-decoration: none;
}

.v2-page .page-tools .lang select {
	padding: 6px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	font-size: 0.92em;
}

.v2-page .page-tools .searchBox { float: none; }

.v2-page .page-tools .searchBox form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
}

.v2-page .page-tools .searchBox input[type="text"] {
	padding: 10px 16px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	font-size: 0.92em;
	height: 40px;
	width: 200px;
	margin: 0;
}

.v2-page .page-tools .searchBox input[type="text"]:focus {
	outline: none;
	border-color: #0c4a6e;
	box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.12);
}

.v2-page .page-tools .searchBox input[type="submit"] {
	padding: 10px 18px;
	background: #0c4a6e;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 0.85em;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	height: 40px;
}

.v2-page .page-tools .searchBox input[type="submit"]:hover {
	background: #0a3a57;
}

/* ---- Typography ---- */
.v2-page h1 {
	margin: 16px 0 8px;
	font-size: 1.75em;
	font-weight: 700;
	color: #0c184a;
}

.v2-page h2 {
	margin: 12px 0 8px;
	font-size: 1.4em;
	font-weight: 600;
	color: #0c184a;
}

.v2-page h3 { color: #0c184a; font-weight: 600; }
.v2-page h4 { color: #0c184a; }

/* ---- Breadcrumb ---- */
.v2-page .toplinks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.8;
	font-size: 0.95em;
	padding: 12px 20px;
	margin: 0 0 16px;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 12px;
}

.v2-page .toplinks a {
	color: #0c4a6e;
	text-decoration: none;
	font-weight: 500;
}

.v2-page .toplinks a:hover { text-decoration: underline; }
.v2-page .rpad2 { margin-left: 8px; }

/* ============================================================
   Part Group Thumbnail Cards
   ============================================================ */
.v2-page .mg-thumb {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	max-width: 200px;
	min-height: auto;
	padding: 10px;
	margin: 0;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	text-align: center;
	font-weight: bold;
	font-size: 9pt;
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.v2-page .mg-thumb:hover {
	border-color: #0c4a6e;
	box-shadow: 0 4px 16px rgba(12, 74, 110, 0.12);
	transform: translateY(-2px);
}

.v2-page .mg-thumb a {
	text-decoration: none;
	color: #1a1a2e;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
}

.v2-page .mg-thumb a div.image { text-align: center; width: 100%; }
.v2-page .mg-thumb a div.image span { display: block; margin: 0; }

.v2-page .mg-thumb a div.image img {
	border-radius: 12px;
	border: 1px solid transparent;
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.v2-page .mg-thumb:hover a div.image span { background-color: transparent; }
.v2-page .mg-thumb:hover a img { opacity: 1; border-color: #0c4a6e; filter: none; }

.v2-page .mg-thumb a div.title {
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #0c184a;
}

/* ---- Diagram Thumbnails ---- */
.v2-page .diagThumbs { padding: 16px 0; }

.v2-page .diag-thumb {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	max-width: 220px;
	padding: 10px;
	margin: 0;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	text-align: center;
	font-weight: bold;
	font-size: 9pt;
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.v2-page .diag-thumb:hover {
	border-color: #0c4a6e;
	box-shadow: 0 4px 16px rgba(12, 74, 110, 0.12);
	transform: translateY(-2px);
}

.v2-page .diag-thumb a {
	text-decoration: none;
	color: #1a1a2e;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
}

.v2-page .diag-thumb a div.image { text-align: center; width: 100%; }
.v2-page .diag-thumb a div.image span { display: block; }

.v2-page .diag-thumb a div.image img {
	border-radius: 12px;
	border: 1px solid transparent;
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.v2-page .diag-thumb:hover a div.image span { background-color: transparent; }
.v2-page .diag-thumb:hover a img { opacity: 1; border-color: #0c4a6e; filter: none; }

.v2-page .diag-thumb a div.title {
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #0c184a;
}

.v2-page .diag-hdr {
	border-bottom: 2px solid #0c184a;
	padding-bottom: 6px;
	margin: 24px 0 12px;
	font-size: 1.1em;
}

.partgrp-page .partgrp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 200px));
	justify-content: center;
	gap: 16px 20px;
	align-items: start;
}

.partgrp-page .diagThumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 220px));
	justify-content: center;
	gap: 16px 20px;
	align-items: start;
}

.partgrp-page .partgrp-grid > [data-freestar-ad],
.partgrp-page .diagThumbs > [data-freestar-ad] {
	grid-column: 1 / -1;
	justify-self: center;
}

.partgrp-page .diagThumbs > h3,
.partgrp-page .diagThumbs > a {
	grid-column: 1 / -1;
}

/* ============================================================
   Show Parts - Diagram + Parts Table
   ============================================================ */

.v2-page #partsimg {
	margin: 16px 0;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	padding: 16px;
	display: inline-block;
}

.v2-page #partsimg img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	vertical-align: top;
}

.v2-page #partsList {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	font-size: 10pt;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	overflow: hidden;
	margin: 16px 0;
}

/* Header row: th cells get dark navy */
.v2-page #partsList tr.r0 th {
	background-color: #0c184a !important;
	color: #ffffff;
	font-weight: 600;
	font-size: 0.82em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Data rows: light alternating */
.v2-page #partsList tr {
	background-color: #ffffff !important;
}

.v2-page #partsList tr.r0 {
	background-color: #f4f5f7 !important;
}

.v2-page #partsList tr.r1 {
	background-color: #ffffff !important;
}

.v2-page #partsList th { padding: 12px 12px; }

.v2-page #partsList td {
	padding: 10px 12px;
	vertical-align: top;
	border-bottom: 1px solid #eef0f3;
	color: #1a1a2e;
}

.v2-page #partsList td.price {
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
}

.v2-page #partsList td.fcp-euro-cell { white-space: nowrap; }

.v2-page #partsList td a {
	color: #0c4a6e;
	text-decoration: none;
	font-weight: 600;
}

.v2-page #partsList td a:hover {
	text-decoration: underline;
	color: #0a3a57;
}

/* Hover from diagram hotspots */
.v2-page #partsList tr.poshl,
.v2-page #partsList tr.r0.poshl,
.v2-page #partsList tr.r1.poshl {
	background-color: #fef9e7 !important;
}

/* Click-selected from diagram hotspots */
.v2-page #partsList tr.posselect,
.v2-page #partsList tr.r0.posselect,
.v2-page #partsList tr.r1.posselect {
	background-color: #e8f0fe !important;
}

/* Edge grouping */
.v2-page #partsList td.edge1 {
	border-left: 3px solid #94a3b8;
	border-top: 1px solid #cbd5e1;
	border-top-left-radius: 4px;
	padding-left: 10px;
}

.v2-page #partsList td.edge2 {
	border-left: 3px solid #94a3b8;
	padding-left: 10px;
}

.v2-page #partsList td.edge3 {
	border-left: 3px solid #94a3b8;
	border-bottom: 1px solid #cbd5e1;
	border-bottom-left-radius: 4px;
	padding-left: 10px;
}

.v2-page #partsList a.fcp-euro-link {
	display: inline-block;
	background-color: #0c4a6e;
	color: #ffffff;
	text-decoration: none;
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 8.5pt;
	font-weight: 600;
}

.v2-page #partsList a.fcp-euro-link:hover {
	background-color: #0a3a57;
}

/* ============================================================
   Part Detail / Cross-Reference
   ============================================================ */

.v2-page dl {
	font-size: 11pt;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	padding: 20px 28px;
	margin: 16px 0;
}

.v2-page dl dt {
	color: #0c184a;
	padding-top: 2pt;
	font-weight: bold;
	float: left;
	width: 100pt;
	clear: left;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.v2-page dl dd {
	float: left;
	padding-top: 2pt;
	margin-left: 10pt;
}

.v2-page .partSearchResults { padding: 20px 0; }

.v2-page .partSearchResults ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.v2-page .partSearchResults ul li {
	padding: 8px 16px;
	margin: 4px 0;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	transition: border-color 0.15s;
}

.v2-page .partSearchResults ul li:hover {
	border-color: #0c4a6e;
}

.v2-page .partSearchResults ul li a {
	color: #0c4a6e;
	text-decoration: none;
	font-weight: 500;
}

.v2-page .partSearchResults ul li a:hover { text-decoration: underline; }

.v2-page .partSearchResults .diagram {
	padding: 8px 16px;
	margin: 4px 0;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
}

.v2-page .partSearchResults .diagram a {
	color: #0c4a6e;
	text-decoration: none;
	font-weight: 500;
}

.v2-page .partSearchResults .diagram a:hover { text-decoration: underline; }
.v2-page .partSearchResults .diagram .part { padding: 3px 0 3px 12px; }

.v2-page .superseded,
.v2-page .supersedes {
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	padding: 16px 24px;
	margin: 12px 0;
	clear: left;
}

.v2-page .superseded h3,
.v2-page .supersedes h3 {
	padding: 0 0 8px;
	margin: 0;
	color: #0c184a;
}

.v2-page .superseded dl,
.v2-page .supersedes dl {
	border: none;
	padding: 0;
	margin: 0;
	background: transparent;
}

/* ---- Search form (partxref retry) ---- */
.v2-page .searchForm {
	margin-top: 16px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.v2-page .searchForm label {
	font-weight: 600;
	color: #0c184a;
}

.v2-page .searchForm input[type="text"] {
	padding: 10px 16px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	font-size: 0.95em;
	height: 42px;
	margin: 0;
}

.v2-page .searchForm input[type="submit"] {
	padding: 10px 20px;
	background: #0c4a6e;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 0.9em;
	font-weight: 700;
	cursor: pointer;
	height: 42px;
}

.v2-page .searchForm input[type="submit"]:hover {
	background: #0a3a57;
}

.v2-page .notes {
	padding: 16px 20px;
	margin: 12px 0;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	font-size: 10pt;
}

.v2-page .fcp-euro-cta {
	margin: 12px 0 16px;
	padding: 16px 20px;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
}

/* ---- Ad layout ---- */
.v2-page .tbl {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.v2-page .blk {
	flex: 1;
	min-width: 0;
}

.v2-page .gad-tall-right { flex-shrink: 0; }
.v2-page .splinks { margin: 12px 0; }

/* ---- Responsive ---- */
@media (max-width: 877px) {
	.v2-page .tbl { flex-direction: column; }
	.v2-page .gad-tall-right { display: none; }
}

@media (max-width: 1024px) {
	.partgrp-page .partgrp-grid,
	.partgrp-page .diagThumbs {
		grid-template-columns: 1fr;
		justify-content: stretch;
	}

	.partgrp-page .mg-thumb,
	.partgrp-page .diag-thumb {
		max-width: 100%;
	}

	.partgrp-page .partgrp-grid > [data-freestar-ad],
	.partgrp-page .diagThumbs > [data-freestar-ad] {
		justify-self: stretch;
	}
}

@media (max-width: 768px) {
	.v2-page .page-container { padding: 0 12px 32px; }

	.v2-page .page-tools {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 10px 0;
	}

	.v2-page .page-tools .searchBox input[type="text"] { width: 160px; }
	.partgrp-page .mg-thumb { width: 100%; padding: 10px; margin: 0; }
	.partgrp-page .diag-thumb { width: 100%; padding: 10px; margin: 0; }
	.v2-page .toplinks { padding: 10px 14px; font-size: 0.9em; }
	.v2-page h1 { font-size: 1.4em; }
	.v2-page h2 { font-size: 1.2em; }

	.v2-page #partsList th,
	.v2-page #partsList td {
		padding: 6px 6px;
		font-size: 9pt;
	}
}

@media (max-width: 589px) {
	.v2-page #partsimg { padding: 8px; }
	.v2-page #partsimg img { width: 100%; height: auto; }
	.v2-page .toplinks { flex-direction: column; align-items: flex-start; }
	.v2-page .rpad2 { margin-left: 0; display: block; }
	.partgrp-page .mg-thumb { width: 100%; padding: 8px; margin: 0; }
	.partgrp-page .diag-thumb { width: 100%; padding: 8px; margin: 0; }
	.v2-page dl { padding: 14px 16px; }
	.v2-page .partSearchResults ul li { padding: 6px 12px; }
}
