/**
 * Retail-style responsive header — exposed search row, persistent garage strip,
 * desktop category navigation, and vehicle drawer (bottom-sheet on mobile,
 * centered modal dialog on desktop).
 *
 * Loaded by inc/mobile-header.php (handle: tetron-mobile-header).
 * Palette follows the existing Tetron/Kadence token set: brand navy #073b6d,
 * deeper navy #052c52, muted greys, and fitment green #16a34a / #22c55e.
 */

/* ---------------------------------------------------------------------------
 * 1. Base + hidden states (All Viewports)
 * ------------------------------------------------------------------------ */

/* Keep document scrolling/zoom intact; apply touch behavior only to controls. */
button,
[role="button"],
a.button,
.tetron-om-hero-banner__btn,
.tetron-om-vehicle-band__btn,
.tetron-om-part-card__cta {
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

button:not(:disabled):not([aria-disabled="true"]):active,
a.button:active,
.tetron-om-hero-banner__btn:active,
.tetron-om-vehicle-band__btn:active,
.tetron-om-part-card__cta:active {
	/* Immediate static feedback also works with reduced motion. */
	opacity: 0.78;
	transition: none;
}

@media (pointer: coarse) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	textarea,
	select {
		/* Small form text triggers focus zoom in iOS Safari. */
		font-size: max(16px, 1rem) !important;
	}
}

.tetron-om-garage-drawer[hidden],
.tetron-om-garage-shop[hidden],
.tetron-om-clear-btn[hidden] {
	display: none !important;
}

.tetron-om-search-fallback .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Replace legacy Kadence header rows with unified header */
#main-header,
#mobile-header,
#masthead .site-main-header-wrap,
#masthead .site-mobile-header-wrap {
	display: none !important;
}

.tetron-mobile-bars {
	position: relative;
	z-index: 990;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* --- Tier 1: dark top promo ribbon --- */
.tetron-om-promo-strip {
	background: #1c1c1c;
	color: #ffffff;
	font-size: 11.5px;
	line-height: 1.25;
	padding: 6px 8px;
}

.tetron-om-promo-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.tetron-om-svg-icon {
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

.tetron-om-svg-exclaim {
	fill: #073b6d;
}

.tetron-om-promo-strip__text {
	margin: 0;
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
	color: #ffffff;
	overflow-wrap: anywhere;
}

.tetron-om-promo-strip__text strong {
	font-weight: 800;
}

.tetron-om-promo-strip__inner > a {
	max-width: 100%;
	color: #ffffff;
	font-weight: 700;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

/* --- Tier 1.5: desktop white sub-utility strip (hidden on mobile) --- */
.tetron-om-utility-bar {
	display: none;
}

/* --- Tier 2: Slanted #073b6d brand wedge + search bar + Account/Cart --- */
.tetron-om-main-bar {
	background: #ffffff;
	border-bottom: 1px solid #d4d4d4;
}

.tetron-om-main-bar__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	height: 54px;
	width: 100%;
}

.tetron-om-brand-wedge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 22px 0 6px;
	background: #073b6d;
	color: #ffffff;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.tetron-om-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 36px;
	padding: 0 !important;
	border: 0;
	background: transparent !important;
	color: #ffffff !important;
	cursor: pointer;
}

.tetron-om-menu-btn svg {
	width: 22px !important;
	height: 22px !important;
	flex: 0 0 22px;
}

.tetron-om-brand-logo-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #ffffff;
}

.tetron-om-brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.92);
	border-radius: 5px;
	background: #052c52;
	text-decoration: none;
}

.tetron-om-brand-logo img {
	display: block;
	height: 20px;
	width: auto;
	max-width: 72px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.tetron-om-brand-wordmark {
	display: none;
}

/* Inline search box inside Tier 2 */
.tetron-om-search-row {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	padding: 0 6px 0 2px;
	background: #ffffff;
}

.tetron-om-search-inner {
	display: block;
	width: 100%;
}

.tetron-om-search-fallback {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 36px;
	margin: 0;
	border: 1px solid #9ca3af;
	border-radius: 2px;
	background: #ffffff;
	overflow: hidden;
}

.tetron-om-search-field {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 34px !important;
	padding: 0 40px 0 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #111827 !important;
	font-size: 13px !important;
	line-height: 34px !important;
	box-shadow: none !important;
	appearance: none;
}

.tetron-om-search-field:focus {
	outline: none;
}

.tetron-om-search-fallback:focus-within {
	border-color: #073b6d;
	box-shadow: 0 0 0 1px #073b6d;
}

.tetron-om-search-field::placeholder {
	color: #6b7280;
	opacity: 1;
}

.tetron-om-search-submit {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 34px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #073b6d !important;
	color: #ffffff !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-search-submit:hover {
		background: #052c52 !important;
	}
}

.tetron-om-search-submit svg {
	width: 17px !important;
	height: 17px !important;
	flex: 0 0 17px;
}

.tetron-om-header-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.tetron-om-account-link {
	display: none;
}

.tetron-om-cart-btn {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding-right: 4px;
	color: #262626;
	text-decoration: none;
}

.tetron-om-cart-btn svg {
	width: 22px;
	height: 22px;
}

.tetron-om-cart-btn__label {
	display: none;
}

.tetron-om-cart-badge {
	position: absolute;
	top: 6px;
	right: 3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #073b6d;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* --- Tier 3: 50/50 split bar on mobile; full #f2f2f2 nav + garage bar on desktop --- */
.tetron-om-subbar {
	background: #ffffff;
	border-bottom: 1px solid #d4d4d4;
	min-height: 48px;
}

.tetron-om-subbar__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	min-height: 48px;
}

.tetron-om-desktop-cats {
	display: none;
}

.tetron-om-subbar__cell {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 6px 10px;
	background: transparent;
	text-decoration: none;
	color: #111827;
}

/* Authentic solid dark silhouette icons (no pastel box) */
.tetron-om-subbar__lead-icon {
	flex: 0 0 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: transparent;
	color: #262626;
}

.tetron-om-subbar__lead-icon svg {
	width: 21px;
	height: 21px;
	display: block;
}

.tetron-om-garage-bar.has-vehicle .tetron-om-subbar__lead-icon {
	color: #15803d;
}

.tetron-om-subbar__cell--store {
	border-right: 1px solid #d4d4d4;
}

.tetron-om-subbar__text,
.tetron-om-garage-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.22;
}

.tetron-om-subbar__eyebrow,
.tetron-om-garage-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #333333;
	letter-spacing: 0;
	text-transform: none;
}

.tetron-om-subbar__value,
.tetron-om-garage-label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12.5px;
	font-weight: 700;
	color: #111827;
}

.tetron-om-subbar__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	color: #262626;
}

.tetron-om-subbar__chevron--desktop {
	display: none;
}

.tetron-om-subbar__chevron svg {
	width: 14px;
	height: 14px;
	display: block;
}

.tetron-om-garage-bar {
	padding: 0;
	background: transparent;
	color: #111827;
	min-height: 48px;
}

.tetron-om-garage-bar__main {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 6px 10px !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.tetron-om-garage-bar.has-vehicle .tetron-om-garage-eyebrow {
	color: #15803d;
	font-weight: 700;
}

.tetron-om-garage-bar.has-vehicle .tetron-om-garage-label {
	color: #111827;
}

.tetron-om-garage-shop {
	display: none !important;
}

/* Give search its own row instead of squeezing it between the logo and cart. */
@media (max-width: 1024px) {
	.tetron-om-promo-strip {
		display: none;
	}

	.tetron-om-main-bar {
		padding-top: env(safe-area-inset-top, 0px);
	}

	.tetron-om-main-bar__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52px;
		height: auto;
	}

	.tetron-om-brand-wedge {
		min-height: 48px;
		padding-left: max(8px, env(safe-area-inset-left, 0px));
	}

	.tetron-om-header-actions {
		grid-column: 2;
		grid-row: 1;
		justify-content: center;
	}

	.tetron-om-menu-btn,
	.tetron-om-cart-btn {
		width: 44px;
		min-height: 44px;
	}

	.tetron-om-search-row {
		grid-column: 1 / -1;
		grid-row: 2;
		padding: 8px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
	}

	.tetron-om-search-fallback {
		height: 46px;
		border-radius: 6px;
	}

	.tetron-om-search-field {
		height: 44px !important;
		padding-right: 52px !important;
		line-height: 1.4 !important;
	}

	.tetron-om-search-submit {
		width: 46px;
		height: 44px;
	}

	.tetron-om-subbar__inner {
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
	}
}

/* ---------------------------------------------------------------------------
 * 2. Desktop Layout (>= 1025px) — Authentic 4-Row Contained Header
 * ------------------------------------------------------------------------ */

@media (min-width: 1025px) {
	.tetron-om-promo-strip {
		padding: 6px 24px;
		font-size: 12px;
	}

	/* Tier 1.5: white sub-utility strip above logo & search */
	.tetron-om-utility-bar {
		display: block;
		background: #ffffff;
		padding: 7px 24px 2px;
	}

	.tetron-om-utility-bar__inner {
		max-width: 1180px;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.tetron-om-utility-bar__shipping {
		font-size: 11px;
		font-weight: 800;
		color: #111827;
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}

	.tetron-om-utility-bar__links {
		display: flex;
		align-items: center;
		gap: 18px;
	}

	.tetron-om-utility-bar__links a {
		color: #262626;
		font-size: 11.5px;
		font-weight: 400;
		text-decoration: none;
	}

	@media (hover: hover) and (pointer: fine) {
		.tetron-om-utility-bar__links a:hover {
			color: #073b6d;
			text-decoration: underline;
		}
	}

	/* Tier 2: Centered 1180px row with Slanted Brand Block + Wide Search + Account + Cart | 0 */
	.tetron-om-main-bar {
		padding: 6px 24px 12px;
		border-bottom: 0;
	}

	.tetron-om-main-bar__inner {
		max-width: 1180px;
		margin: 0 auto;
		height: 54px;
		align-items: center;
		gap: 20px;
	}

	.tetron-om-brand-wedge {
		height: 52px;
		padding: 0 26px 0 22px;
		gap: 0;
		clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	}

	.tetron-om-menu-btn {
		display: none;
	}

	.tetron-om-brand-logo-wrap {
		gap: 10px;
	}

	.tetron-om-brand-logo {
		padding: 4px 10px;
		border-width: 2px;
	}

	.tetron-om-brand-logo img {
		height: 22px;
		max-width: 82px;
	}

	.tetron-om-brand-wordmark {
		display: inline-block;
		font-size: 15px;
		font-weight: 900;
		letter-spacing: 0.04em;
		color: #ffffff;
		line-height: 1;
		white-space: nowrap;
	}

	.tetron-om-search-row {
		flex: 1 1 540px;
		max-width: 620px;
		padding: 0;
	}

	.tetron-om-search-fallback {
		height: 38px;
		border: 1px solid #9ca3af;
		border-radius: 2px;
	}

	.tetron-om-search-field {
		height: 36px !important;
		padding: 0 44px 0 12px !important;
		font-size: 13.5px !important;
		line-height: 36px !important;
	}

	.tetron-om-search-submit {
		width: 40px;
		height: 36px;
	}

	.tetron-om-search-submit svg {
		width: 18px !important;
		height: 18px !important;
		flex: 0 0 18px;
	}

	.tetron-om-header-actions {
		gap: 20px;
	}

	.tetron-om-account-link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: #111827;
		font-size: 13px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}

	.tetron-om-account-link svg:first-child {
		width: 18px;
		height: 18px;
		color: #262626;
	}

	@media (hover: hover) and (pointer: fine) {
		.tetron-om-account-link:hover {
			color: #073b6d;
		}
	}

	.tetron-om-cart-btn {
		width: auto;
		height: auto;
		padding: 0;
		border: 0;
		background: transparent;
		gap: 7px;
		color: #111827;
		font-size: 13px;
		font-weight: 700;
		white-space: nowrap;
	}

	.tetron-om-cart-btn svg {
		width: 20px;
		height: 20px;
		color: #262626;
	}

	.tetron-om-cart-btn__label {
		display: inline;
	}

	.tetron-om-cart-badge {
		display: none;
	}

	@media (hover: hover) and (pointer: fine) {
		.tetron-om-cart-btn:hover {
			color: #073b6d;
		}
	}

	/* Tier 3: Full-bleed #f2f2f2 navigation + Selected Store + Garage bar */
	.tetron-om-subbar {
		background: #f2f2f2;
		border-top: 1px solid #e5e5e5;
		border-bottom: 1px solid #d4d4d4;
		padding: 0 24px;
		min-height: 44px;
	}

	.tetron-om-subbar__inner {
		max-width: 1180px;
		margin: 0 auto;
		display: flex;
		align-items: stretch;
		justify-content: space-between;
		min-height: 44px;
	}

	.tetron-om-desktop-cats {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 22px;
		padding: 0;
	}

	.tetron-om-desktop-cats__btn,
	.tetron-om-desktop-cats a {
		display: inline-flex;
		align-items: center;
		gap: 5px;
		color: #111827;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.01em;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
		padding: 0;
		border: 0;
		background: transparent !important;
		cursor: pointer;
		font-family: inherit;
	}

	.tetron-om-desktop-cats__btn svg,
	.tetron-om-desktop-cats a svg {
		width: 9px;
		height: 6px;
		color: #262626;
	}

	@media (hover: hover) and (pointer: fine) {
		.tetron-om-desktop-cats__btn:hover,
		.tetron-om-desktop-cats a:hover {
			color: #073b6d;
		}
	}

	.tetron-om-desktop-cats a:focus {
		color: #073b6d;
	}

	.tetron-om-subbar__cell--store {
		flex: 0 0 auto;
		background: transparent;
		padding: 4px 18px;
		border-right: 0;
	}

	.tetron-om-garage-bar {
		flex: 0 0 auto;
		background: transparent;
		border-left: 1px solid #d4d4d4;
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.tetron-om-garage-bar__main {
		padding: 4px 0 4px 18px !important;
		gap: 8px;
	}

	.tetron-om-subbar__chevron--mobile {
		display: none;
	}

	.tetron-om-subbar__chevron--desktop {
		display: inline-flex;
		align-items: center;
		margin-left: 4px;
	}

	.tetron-om-subbar__chevron--desktop svg {
		width: 9px;
		height: 6px;
	}

	.tetron-om-garage-bar.has-vehicle .tetron-om-garage-shop:not([hidden]) {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		margin-left: 10px;
		padding: 6px 12px;
		border-radius: 4px;
		background: #073b6d;
		color: #ffffff;
		font-size: 12px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------------------
 * 3. Vehicle Drawer / Modal (All Viewports: Bottom Sheet on Mobile, Centered Modal on Desktop)
 * ------------------------------------------------------------------------ */

.tetron-om-garage-drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	overflow: hidden;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.tetron-om-garage-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.6);
	cursor: pointer;
}

.tetron-om-garage-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-height: 86dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #ffffff;
	border-radius: 12px 12px 0 0;
	padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 1025px) {
	.tetron-om-garage-drawer {
		align-items: center;
		padding: 24px;
	}

	.tetron-om-garage-sheet {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		width: 100%;
		max-width: 520px;
		max-height: 84dvh;
		border-radius: 8px;
		border-top: 4px solid #073b6d;
		padding: 20px 24px 24px;
		box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
	}

	.tetron-om-garage-handle {
		display: none;
	}
}

.tetron-om-garage-handle {
	/* This sheet has no drag gesture; do not advertise one with a handle. */
	display: none;
}

.tetron-om-garage-header {
	/* Keep dismissal available while long saved-vehicle lists scroll. */
	position: sticky;
	top: 0;
	z-index: 3;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eceff2;
}

.tetron-om-garage-header__title-wrap,
#tetron-om-garage-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.tetron-om-garage-header__icon,
.tetron-om-garage-title__icon {
	flex: 0 0 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	background: #f2f2f2;
	color: #1c1c1c;
}

.tetron-om-garage-header__icon svg,
.tetron-om-garage-title__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.tetron-om-garage-header h3,
#tetron-om-garage-title {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #111827;
}

.tetron-om-garage-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 1px solid #d8dde2;
	border-radius: 50%;
	background: #f4f6f7 !important;
	color: #4b5563 !important;
	cursor: pointer;
}

.tetron-om-garage-close svg {
	width: 16px;
	height: 16px;
	display: block;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-garage-close:hover {
		background: #e8ecef;
		color: #111827;
	}
}

.tetron-om-garage-close:focus {
	background: #e8ecef;
	color: #111827;
}

.tetron-om-garage-body {
	padding-top: 14px;
}

.tetron-om-section-subtitle {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4b5563;
}

/* --- Saved vehicles --- */
.tetron-om-saved-section {
	margin-bottom: 18px;
}

.tetron-om-saved-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.tetron-om-clear-btn {
	padding: 5px 10px;
	border: 1px solid #f0c2c2;
	border-radius: 999px;
	background: #fdf2f2;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-clear-btn:hover {
		background: #fbe3e3;
	}
}

.tetron-om-clear-btn:focus {
	background: #fbe3e3;
}

.tetron-om-saved-list {
	display: grid;
	gap: 8px;
}

.tetron-om-saved-item {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.tetron-om-saved-vehicle {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 13px;
	border: 1px solid #d8dde2;
	border-radius: 8px;
	background: #ffffff;
	text-align: left;
	cursor: pointer;
}

.tetron-om-saved-vehicle__icon {
	flex: 0 0 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #edf4fb;
	color: #073b6d;
}

.tetron-om-saved-item.is-active .tetron-om-saved-vehicle__icon {
	background: #dcfce7;
	color: #15803d;
}

.tetron-om-saved-vehicle__text,
.tetron-om-saved-vehicle__details {
	flex: 1 1 auto;
	min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-saved-vehicle:hover {
		border-color: #0a4f8f;
		background: #f7fafc;
	}
}

.tetron-om-saved-vehicle:focus {
	border-color: #0a4f8f;
	background: #f7fafc;
}

.tetron-om-saved-item.is-active .tetron-om-saved-vehicle {
	border-color: #86efac;
	background: #f0fdf4;
}

.tetron-om-saved-vehicle__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tetron-om-saved-vehicle__meta {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #6b7280;
}

.tetron-om-saved-badge {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: #16a34a;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tetron-om-saved-remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	padding: 0 !important;
	border: 1px solid #d8dde2;
	border-radius: 8px;
	background: #f4f6f7 !important;
	color: #6b7280 !important;
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-saved-remove:hover {
		background: #fbe3e3;
		border-color: #f0c2c2;
		color: #b91c1c;
	}
}

.tetron-om-saved-remove:focus {
	background: #fbe3e3;
	border-color: #f0c2c2;
	color: #b91c1c;
}

.tetron-om-saved-empty {
	padding: 14px;
	border: 1px dashed #d8dde2;
	border-radius: 8px;
	background: #f4f6f7;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
}

/* --- New vehicle (YMM form inside the drawer) --- */
.tetron-om-form-section {
	padding-top: 16px;
	border-top: 1px solid #eceff2;
}

.tetron-om-form-section .tetron-om-section-subtitle {
	margin-bottom: 10px;
}

#tetron-om-garage-drawer .ymm_search_outer {
	margin: 0 !important;
	max-width: 100% !important;
}

#tetron-om-garage-drawer .feilds_data {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#tetron-om-garage-drawer .ymm_search_inner {
	flex: 0 0 100%;
	min-width: 100%;
	max-width: 100%;
}

#tetron-om-garage-drawer .ymm_search_inner select {
	width: 100%;
	height: 46px;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid #d8dde2;
	border-radius: 6px;
	background-color: #ffffff;
	color: #111827;
	font-size: 16px;
	line-height: 1.2;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
	background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

#tetron-om-garage-drawer .ymm_search_inner select:focus {
	outline: 2px solid #0a4f8f;
	outline-offset: 0;
	border-color: #0a4f8f;
}

#tetron-om-garage-drawer .ymm_search_inner.sbutton {
	flex: 0 0 100%;
}

#tetron-om-garage-drawer .ymm_search_inner.sbutton .mainsearchbtn {
	width: 100%;
	min-height: 46px;
	border-radius: 6px;
	background: #073b6d;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	#tetron-om-garage-drawer .ymm_search_inner.sbutton .mainsearchbtn:hover {
		background: #0a4f8f;
	}
}

#tetron-om-garage-drawer .ymm_search_inner.sbutton .mainsearchbtn:focus {
	background: #0a4f8f;
}

/* Saved vehicles already sit right above — the inline quick-select is noise. */
#tetron-om-garage-drawer .ymm_quick_select_wrap {
	display: none !important;
}

.tetron-om-garage-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eceff2;
	text-align: center;
}

.tetron-om-garage-footer a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0a4f8f;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.tetron-om-garage-footer a svg {
	width: 14px;
	height: 14px;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-garage-footer a:hover {
		text-decoration: underline;
	}
}

.tetron-om-garage-footer a:focus {
	text-decoration: underline;
}

body.tetron-garage-drawer-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * 4. Inline YMM forms collapsed behind a compact trigger (<= 767px)
 * ------------------------------------------------------------------------ */

.tetron-om-inline-ymm-trigger {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #0a4f8f;
	border-radius: 8px;
	background: #073b6d;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.tetron-om-inline-ymm-trigger.is-active {
	display: flex;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-inline-ymm-trigger:hover {
		background: #0a4f8f;
	}
}

.tetron-om-inline-ymm-trigger:focus {
	background: #0a4f8f;
}

.tetron-om-inline-ymm-trigger__chevron {
	margin-left: auto;
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 767px) {
	.ymm_search_outer.is-mobile-collapsed {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * 5. Toast feedback (vehicle set on a product page)
 * ------------------------------------------------------------------------ */

.tetron-om-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	transform: translate(-50%, 16px);
	z-index: 1000000;
	max-width: 90vw;
	padding: 12px 18px;
	border-radius: 999px;
	background: #052c52;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	opacity: 0;
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.tetron-om-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------------------
 * 6. Narrow phones
 * ------------------------------------------------------------------------ */

@media (max-width: 380px) {
	.tetron-om-garage-label {
		max-width: 52vw;
		font-size: 12px;
	}

	.tetron-om-garage-shop,
	.tetron-om-garage-btn {
		padding: 0 12px;
	}
}

/* ---------------------------------------------------------------------------
 * 7. OEM & Interchange Part Lookup Trigger & Modal (#tetron-om-oem-drawer)
 * ------------------------------------------------------------------------ */

button.tetron-om-oem-trigger {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-right: 1px solid #d4d4d4;
	background: transparent !important;
	color: #111827 !important;
	text-align: left;
	font: inherit;
	cursor: pointer;
	width: 100%;
	box-shadow: none !important;
}

@media (min-width: 1025px) {
	button.tetron-om-oem-trigger {
		width: auto;
		border-right: 0;
		padding: 4px 18px;
	}
}

@media (hover: hover) and (pointer: fine) {
	button.tetron-om-oem-trigger:hover {
		background: rgba(7, 59, 109, 0.04) !important;
	}
}

button.tetron-om-oem-trigger:focus-visible {
	background: rgba(7, 59, 109, 0.04) !important;
}

.tetron-om-oem-desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
}

.tetron-om-oem-form {
	margin: 0 0 22px;
}

.tetron-om-oem-form__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (min-width: 540px) {
	.tetron-om-oem-form__row {
		flex-direction: row;
		align-items: stretch;
	}
}

.tetron-om-oem-input {
	flex: 1 1 auto;
	height: 46px !important;
	padding: 0 14px !important;
	border: 1.5px solid #94a3b8 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.tetron-om-oem-input:focus {
	outline: none !important;
	border-color: #073b6d !important;
	box-shadow: 0 0 0 3px rgba(7, 59, 109, 0.16) !important;
}

@media (max-width: 1024px) {
	.tetron-om-search-field,
	.tetron-om-oem-input {
		font-size: 16px !important;
	}
}

.tetron-om-oem-submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: #073b6d !important;
	color: #ffffff !important;
	font-size: 13.5px !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-oem-submit:hover {
		background: #052c52 !important;
	}
}

.tetron-om-oem-submit:focus-visible {
	background: #052c52 !important;
}

.tetron-om-oem-submit svg {
	width: 17px;
	height: 17px;
	display: block;
}

.tetron-om-oem-popular {
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.tetron-om-oem-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.tetron-om-oem-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	color: #0f172a;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.tetron-om-oem-chip:hover {
		border-color: #073b6d;
		background: #eff6ff;
		color: #073b6d;
	}
}

.tetron-om-oem-chip:focus-visible {
	border-color: #073b6d;
	background: #eff6ff;
	color: #073b6d;
}

.tetron-om-oem-chip svg {
	width: 14px;
	height: 14px;
	color: #073b6d;
	display: block;
}

