/*
 * Motored storefront design tokens + Compatibility / Mi Garage components.
 *
 * Engine/skin contract (docs/THEME-CONTRACT.md): this file owns structure and behavior-related styling only.
 * Every visual value comes from a PUBLIC input token (--motored-*-color / --motored-*-size) that the theme
 * sets on :root, with a neutral fallback here so the components work under any theme.
 * The short names below (--motored-accent, --motored-radius...) are PRIVATE: declared on each component
 * root, read by our rules only. Themes never set them.
 * Rules: no !important, no theme names or theme tokens, color literals only as var() fallbacks.
 */
.motored-search,
.motored-filters,
.motored-quick,
.motored-compat-list,
.motored-compat-selector,
.motored-compat-banner,
.motored-compat-badge,
.motored-compat-bar,
.motored-garage-cta,
.motored-garage-page,
.motored-garage-drawer,
.motored-bike-page,
.motored-bike-hub,
.motored-bike-card,
.motored-notify-form,
.motored-notify-dialog,
.motored-plans-dialog {
	--motored-accent: var(--motored-accent-color, currentColor);
	--motored-on-accent: var(--motored-on-accent-color, #fff);
	--motored-border: var(--motored-line-color, color-mix(in srgb, currentColor 20%, transparent));
	--motored-bg: var(--motored-surface-color, transparent);
	--motored-raised: var(--motored-raised-color, Canvas);
	--motored-ink: var(--motored-ink-color, CanvasText);
	--motored-muted: var(--motored-muted-color, color-mix(in srgb, currentColor 72%, transparent));
	--motored-soft: var(--motored-soft-color, color-mix(in srgb, currentColor 4%, transparent));
	--motored-link: var(--motored-link-color, currentColor);
	--motored-highlight: var(--motored-highlight-color, var(--motored-on-accent));
	--motored-radius: var(--motored-radius-size, 8px);
	--motored-pill: var(--motored-pill-radius-size, 999px);
	--motored-shadow: var(--motored-shadow-color, rgb(0 0 0 / 14%));
	--motored-ok: var(--motored-ok-color, #1b7f4b);
	--motored-no: var(--motored-danger-color, #b43c2f);
	--motored-focus: var(--motored-focus-color, var(--motored-accent-color, #1a5fb4));
	font-family: inherit;
	color: inherit;
	box-sizing: border-box;
}

.motored-search *,
.motored-filters *,
.motored-compat-list *,
.motored-compat-selector *,
.motored-compat-banner *,
.motored-compat-bar *,
.motored-garage-cta *,
.motored-garage-page *,
.motored-bike-page *,
.motored-bike-hub *,
.motored-plans-dialog * {
	box-sizing: border-box;
}

/* Visible keyboard focus on every interactive element we render (themes often remove outlines). */
.motored-search :focus-visible,
.motored-filters :focus-visible,
.motored-compat-list :focus-visible,
.motored-compat-selector :focus-visible,
.motored-compat-banner :focus-visible,
.motored-compat-bar :focus-visible,
.motored-bike-page :focus-visible,
.motored-garage-cta :focus-visible,
.motored-garage-page :focus-visible,
.motored-plans-dialog :focus-visible {
	outline: 2px solid var(--motored-focus);
	outline-offset: 2px;
}

/* Product Compatibility SSR 2-column list */
.motored-compat-list__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.motored-compat-list__search {
	width: 100%;
	max-width: 420px;
	min-height: 2.3rem;
	padding: 0.4rem 0.65rem;
	margin-bottom: 0.75rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	font: inherit;
	color: inherit;
	background: var(--motored-bg);
}

.motored-compat-list__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 1.5rem;
}

@media (min-width: 768px) {
	.motored-compat-list__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.motored-compat-list__brand {
	border-bottom: 1px dashed var(--motored-border);
	padding: 0.6rem 0;
	line-height: 1.45;
}

.motored-compat-list__brand-name {
	font-weight: 700;
	text-transform: uppercase;
}

.motored-compat-list__toggle {
	margin-top: 0.75rem;
}

.motored-compat-list__mine {
	padding: 0.6rem 0.85rem;
	margin-bottom: 0.75rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-soft);
	font-weight: 600;
}

/* Vehicle cascade selector [motored_compat_selector] */
.motored-compat-selector__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.motored-compat-selector__row[hidden],
.motored-compat-selector__msg[hidden],
.motored-compat-banner__picker[hidden],
.motored-compat-banner__saved[hidden] {
	display: none;
}

.motored-compat-selector__row {
	min-width: 0;
}

.motored-compat-selector__row label {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 0.85em;
	font-weight: 600;
	opacity: 0.85;
}

.motored-compat-selector__row select {
	display: block;
	width: 100%;
	min-width: 0;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0.45rem 0.65rem;
	margin: 0;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
	color: inherit;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.3;
	text-overflow: ellipsis;
}

.motored-compat-selector__row select:focus {
	outline: none;
	border-color: var(--motored-accent);
	box-shadow: 0 0 0 1px var(--motored-accent);
}

.motored-compat-selector__row select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.motored-compat-selector__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.motored-compat-selector__actions > .button {
	margin: 0;
}

.motored-compat-selector__msg {
	margin: 0.65rem 0 0;
	font-size: 0.9em;
	font-weight: 600;
}

.motored-compat-selector__msg.is-ok {
	color: var(--motored-ok);
}

.motored-compat-selector__msg.is-error {
	color: var(--motored-no);
}

/* Single product compatibility banner & inline picker */
.motored-compat-banner {
	margin: 0.7rem 0 0.9rem;
}

.motored-compat-badge {
	margin: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-soft);
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.motored-compat-badge--empty {
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.motored-compat-badge__lead {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.motored-compat-badge__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	margin-top: 1px;
	color: inherit;
}

.motored-compat-badge--ok .motored-compat-badge__icon {
	color: var(--motored-ok);
}

.motored-compat-badge--no .motored-compat-badge__icon {
	color: var(--motored-no);
}

.motored-compat-badge__body {
	flex: 1 1 auto;
	min-width: 0;
}

.motored-compat-badge--ok {
	border-color: color-mix(in srgb, var(--motored-ok) 32%, transparent);
	background: color-mix(in srgb, var(--motored-ok) 5%, transparent);
}

.motored-compat-badge--no {
	border-color: color-mix(in srgb, var(--motored-no) 32%, transparent);
	background: color-mix(in srgb, var(--motored-no) 5%, transparent);
}

.motored-compat-badge__title {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
}

.motored-compat-badge--ok .motored-compat-badge__title {
	color: var(--motored-ok);
}

.motored-compat-badge--no .motored-compat-badge__title {
	color: var(--motored-no);
}

.motored-compat-badge__meta {
	margin: 0.2rem 0 0;
	font-size: 0.88em;
	opacity: 0.82;
	line-height: 1.35;
}

.motored-compat-badge__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	margin-top: 0.45rem;
}

.motored-compat-badge__link,
button.motored-compat-badge__link {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	min-height: 0;
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.motored-compat-badge .motored-compat-badge__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding-block: 0.5em;
	flex: 0 0 auto;
	line-height: 1.2;
}

.motored-compat-banner__picker {
	margin-top: 0.6rem;
	padding: 0.9rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
}

.motored-compat-banner__saved {
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px dashed var(--motored-border);
}

.motored-compat-banner__saved-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85em;
	font-weight: 600;
	opacity: 0.8;
}

.motored-compat-banner__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.motored-compat-banner__chip {
	display: inline-flex;
	align-items: center;
	margin: 0;
	min-height: 0;
	background: transparent;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-pill);
	padding: 0.3rem 0.75rem;
	font: inherit;
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	color: inherit;
	cursor: pointer;
}

.motored-compat-banner__chip.is-active {
	border-color: var(--motored-accent);
	box-shadow: inset 0 0 0 1px var(--motored-accent);
}

/* My Account -> Mi Garage page */
.motored-garage-page[data-garage-full-page] {
	max-width: 58rem;
	margin: 1.5rem auto;
	padding-inline: 1rem;
}

.motored-garage-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	width: min(100%, 26rem);
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	box-sizing: border-box;
	background: var(--motored-raised);
	color: var(--motored-ink);
	box-shadow: -12px 0 36px var(--motored-shadow);
}

.motored-garage-drawer[open] {
	display: flex;
	flex-direction: column;
	animation: motored-garage-enter 200ms cubic-bezier(.22, 1, .36, 1);
}

.motored-garage-drawer:not([open]) {
	display: none;
}

.motored-garage-drawer::backdrop {
	background: var(--motored-backdrop-color, rgb(0 0 0 / 60%));
}

.motored-garage-drawer-open {
	overflow: hidden;
}

.motored-garage-drawer__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1.25rem;
	background: var(--motored-accent);
	color: var(--motored-on-accent);
	flex: none;
}

.motored-garage-drawer__header h2 {
	color: inherit;
	font-size: 1.15rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

.motored-garage-drawer .motored-garage-drawer__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	min-height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.motored-garage-drawer .motored-garage-drawer__close:hover {
	background: color-mix(in srgb, var(--motored-on-accent) 14%, transparent);
	color: var(--motored-highlight);
}

.motored-garage-drawer__close:focus-visible {
	outline: 2px solid var(--motored-highlight);
	outline-offset: 2px;
}

.motored-garage-drawer > .motored-garage-page--drawer {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.motored-garage-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.motored-garage-guest {
	background: var(--motored-raised);
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}

.motored-garage-guest__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--motored-ink);
	line-height: 1.25;
}

.motored-garage-guest__cta {
	margin: 0 0 0.55rem;
	font-size: 0.88rem;
	color: var(--motored-muted);
}

.motored-garage-guest__cta a {
	color: var(--motored-link);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.motored-garage-guest__perks {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.84rem;
	color: var(--motored-muted);
	display: grid;
	gap: 0.25rem;
}

.motored-garage-drawer__footer {
	flex: none;
	background: var(--motored-raised);
	border-top: 1px solid var(--motored-border);
	box-shadow: 0 -4px 16px color-mix(in srgb, var(--motored-shadow) 45%, transparent);
}

.motored-garage-drawer__footer .motored-garage-add {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.motored-garage-drawer__footer .motored-garage-add summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--motored-ink);
	list-style: none;
}

.motored-garage-drawer__footer .motored-garage-add summary::-webkit-details-marker {
	display: none;
}

.motored-garage-add__chev {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 150ms ease;
	margin-top: -3px;
}

.motored-garage-drawer__footer .motored-garage-add[open] .motored-garage-add__chev {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.motored-garage-add__body {
	padding: 0 1.25rem 1.15rem;
	max-height: 50vh;
	overflow-y: auto;
}

.motored-garage-drawer .motored-compat-selector__grid {
	grid-template-columns: minmax(0, 1fr);
}

.motored-garage-card__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

/* Primary CTA: a native WooCommerce `.button.alt`, so its colors are the theme's button colors. */
.motored-garage-card .motored-garage-card__primary {
	width: 100%;
	margin: 0;
	text-align: center;
}

.motored-garage-card__secondary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

/* Text buttons: the element + class selector beats generic theme `button` rules without !important. */
.motored-garage-card button.motored-garage-card__link {
	background: transparent;
	border: 0;
	padding: 0.15rem 0;
	margin: 0;
	min-height: 0;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--motored-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.motored-garage-card button.motored-garage-card__link:hover {
	color: var(--motored-ink);
}

.motored-garage-card button.motored-garage-card__remove {
	margin-left: auto;
}

.motored-garage-card button.motored-garage-card__remove:hover {
	color: var(--motored-no);
}

.motored-garage-page__login {
	margin: 0.85rem 0 0;
	font-size: 0.9em;
}

.motored-garage-page__login a {
	text-decoration: underline;
}

/* Centered garage dialog (theme support "motored-garage-modal"): same dialog, no side drawer.
   Structure only; the theme gives it its look through the tokens and the public classes. */
.motored-garage-drawer.motored-garage-drawer--modal {
	inset: 0;
	margin: auto;
	width: min(calc(100% - 2rem), 28rem);
	height: fit-content;
	max-height: calc(100% - 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 0 24px var(--motored-shadow);
}

.motored-garage-drawer.motored-garage-drawer--modal[open] {
	display: block;
	animation: motored-garage-pop 160ms ease-out;
}

.motored-garage-drawer--modal .motored-garage-drawer__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	border-radius: 0;
	background: var(--motored-accent);
	color: var(--motored-on-accent);
}

.motored-garage-drawer--modal .motored-garage-drawer__close:hover {
	background: var(--motored-accent);
	color: var(--motored-highlight);
}

.motored-garage-drawer--modal .motored-garage-drawer__header {
	display: block;
	padding: 2rem 2rem 0.5rem;
	background: transparent;
	color: inherit;
	text-align: center;
}

.motored-garage-drawer--modal .motored-garage-drawer__header h2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-transform: none;
	letter-spacing: 0;
}

.motored-garage-drawer__lead {
	margin: 0.5rem 0 0;
	color: var(--motored-muted);
}

.motored-garage-page--modal {
	padding: 0.5rem 2.5rem 2.5rem;
}

.motored-garage-page--modal .motored-garage-pick[hidden],
.motored-garage-page--modal .motored-garage-list[hidden] {
	display: none;
}

.motored-garage-page--modal .motored-compat-selector__grid {
	grid-template-columns: minmax(0, 1fr);
}

.motored-garage-pick__cancel {
	display: block;
	margin: 0.75rem auto 0;
}

.motored-garage-current {
	text-align: center;
}

.motored-garage-current__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0.75rem 0 0;
}

.motored-garage-page--modal button.motored-garage-current__link {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--motored-link);
	font: inherit;
	cursor: pointer;
}

.motored-garage-current__name {
	margin: 0.6rem 0 0;
	color: var(--motored-ink);
}

.motored-garage-current .motored-garage-current__primary {
	display: block;
	width: 100%;
	margin: 1.25rem 0 0;
	text-align: center;
}

.motored-garage-others {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--motored-border);
}

.motored-garage-others__title {
	margin: 0 0 0.5rem;
	color: var(--motored-muted);
}

.motored-garage-others__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.motored-garage-others__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
}

.motored-garage-guest--inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.5rem 0 0;
	border: 0;
	border-radius: 0;
	background: var(--motored-soft);
}

.motored-garage-guest--inline .motored-garage-guest__title {
	margin: 0;
}

.motored-garage-guest--inline .motored-garage-guest__login {
	flex: none;
	margin: 0;
}

.motored-garage-page--modal .motored-compat-disclaimer {
	margin-top: 1rem;
	text-align: center;
}

@keyframes motored-garage-pop {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.motored-garage-drawer.motored-garage-drawer--modal[open] {
		animation: none;
	}
}

@keyframes motored-garage-enter {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.motored-garage-drawer[open] {
		animation: none;
	}
}

.motored-garage-page__head {
	margin-bottom: 1.1rem;
}

.motored-garage-page__head h2 {
	margin: 0 0 0.35rem;
}

.motored-garage-page__head p {
	margin: 0;
	opacity: 0.85;
}

.motored-garage-cards {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.motored-garage-card {
	padding: 0.9rem 1rem;
}

.motored-garage-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.motored-garage-card__name {
	font-size: 1.02em;
}

.motored-garage-badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: var(--motored-pill);
	border: 1px solid color-mix(in srgb, var(--motored-ok) 35%, transparent);
	background: color-mix(in srgb, var(--motored-ok) 8%, transparent);
	color: var(--motored-ok);
	font-size: 0.78em;
	font-weight: 700;
}

.motored-garage-card__sizes {
	margin: 0.35rem 0 0;
	font-size: 0.9em;
	opacity: 0.85;
}

.motored-garage-empty {
	padding: 1rem;
	margin-bottom: 1.25rem;
	border: 1px dashed var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-soft);
}

.motored-garage-empty__title {
	margin: 0;
	font-weight: 600;
}

.motored-garage-empty__hint {
	margin: 0.25rem 0 0;
	font-size: 0.92em;
	opacity: 0.8;
}

.motored-garage-add {
	padding: 1rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
	margin-bottom: 0.85rem;
}

.motored-garage-add h3 {
	margin: 0 0 0.75rem;
}

.motored-compat-disclaimer {
	margin: 0.5rem 0 0;
	opacity: 0.78;
}

.motored-garage-drawer .motored-compat-disclaimer{
	padding: 0 1rem;
}

/* Active bike bar on ?moto= catalog pages */
.motored-compat-bar {
	padding: 0.9rem 1rem;
	margin-bottom: 1.15rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
}

.motored-compat-bar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.4rem;
	margin: 0 0 0.35rem;
	font-size: 0.9em;
}

.motored-compat-bar__title {
	margin: 0 0 0.35rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.motored-compat-bar__sizes,
.motored-compat-bar__empty {
	margin: 0 0 0.55rem;
	font-size: 0.94em;
}

.motored-compat-bar__positions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.45rem;
}

.motored-compat-bar__tab,
.motored-bike-hero__jump {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-pill);
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.4;
	color: inherit;
	text-decoration: none;
}

.motored-compat-bar__tab:hover,
.motored-bike-hero__jump:hover {
	border-color: var(--motored-accent);
}

.motored-compat-bar__tab.is-active {
	border-color: var(--motored-accent);
	box-shadow: inset 0 0 0 1px var(--motored-accent);
}

.motored-compat-bar__tab.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.motored-compat-badge__missing {
	margin-top: 0.45rem;
	font-size: 0.9em;
}

.motored-compat-bar__count {
	font-size: 0.9em;
	opacity: 0.85;
}

.motored-compat-bar__disclaimer {
	margin: 0;
	opacity: 0.78;
}

/* Searchable long selects (cascade "type to filter") */
.motored-cascade__filter {
	display: block;
	width: 100%;
	min-height: 2.2rem;
	margin: 0 0 0.35rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
	color: inherit;
	font: inherit;
	font-size: 0.88rem;
}

/* Product loop card compact fit badge (classic and block product templates) */
.motored-compat-badge--loop {
	display: block;
	margin: 0.4rem 0 0;
	padding: 0.3rem 0.55rem;
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.motored-compat-badge--loop.motored-compat-badge--ok {
	color: var(--motored-ok);
}

.motored-compat-badge--loop.motored-compat-badge--no {
	color: var(--motored-no);
}

/* Compatibility tab extras */
.motored-compat-list__mine.is-ok {
	border-color: color-mix(in srgb, var(--motored-ok) 35%, transparent);
	background: color-mix(in srgb, var(--motored-ok) 6%, transparent);
	color: var(--motored-ok);
}

.motored-compat-list__mine.is-no {
	border-color: color-mix(in srgb, var(--motored-no) 35%, transparent);
	background: color-mix(in srgb, var(--motored-no) 6%, transparent);
	color: var(--motored-no);
}

.motored-compat-list__none,
.motored-compat-list__error {
	margin: 0.6rem 0 0;
	font-size: 0.92em;
}

.motored-compat-list__error {
	color: var(--motored-no);
}

.motored-compat-list__none[hidden],
.motored-compat-list__error[hidden],
.motored-compat-list__toggle[hidden],
.motored-compat-list__brand[hidden] {
	display: none;
}

/* "View only tires for my bike" CTA on catalog pages */
.motored-garage-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	padding: 0.65rem 0.9rem;
	margin-bottom: 1rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
}

.motored-garage-cta[hidden],
.motored-compat-bar__switch[hidden],
.motored-garage-notice[hidden] {
	display: none;
}

.motored-garage-cta__link {
	font-weight: 700;
}

/* Other saved bikes inside the ?moto= bar */
.motored-compat-bar__switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.45rem;
}

.motored-compat-bar__switch-label {
	font-size: 0.88em;
	font-weight: 600;
	opacity: 0.8;
}

.motored-compat-bar__switch .motored-compat-banner__chip {
	text-decoration: none;
}

/* Mi Garage "removed — Undo" / session notice */
.motored-garage-notice {
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-soft);
	font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
	.motored-compat-badge,
	.motored-garage-cta {
		transition: opacity 0.15s ease;
	}
}

/* BikePages landing & hub blocks (theme-agnostic; tokens come from the shared block at the top) */

.motored-bike-hero {
	padding: 0.9rem 1rem;
	margin: 0 0 1.25rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-bg);
}

.motored-bike-hero__badges,
.motored-bike-hero__nav,
.motored-bike-versions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
}

.motored-bike-hero__nav {
	margin-top: 0.75rem;
}

.motored-bike-hero__chip {
	padding: 0.2rem 0.55rem;
	border-radius: var(--motored-pill);
	font-weight: 700;
	border: 1px solid var(--motored-ok);
	color: var(--motored-ok);
}

.motored-bike-hero__chip[hidden],
.motored-notify-form[hidden],
.motored-notify-form__msg[hidden] {
	display: none;
}

.motored-notify-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.motored-bike-sizes__scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.motored-bike-sizes__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0;
}

.motored-bike-sizes__table th,
.motored-bike-sizes__table td {
	padding: 0.5rem 0.65rem;
	border-bottom: 1px solid var(--motored-border);
	text-align: left;
}

.motored-bike-versions {
	margin: 0 0 1.25rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
}

.motored-bike-versions__cur {
	font-weight: 700;
}

.motored-bike-section {
	margin: 1.5rem 0;
}

/* Classic WC cards need an explicit layout when used outside a native shop template. */
.motored-bike-section ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.motored-bike-section ul.products::before,
.motored-bike-section ul.products::after {
	display: none;
}

.motored-bike-section ul.products li.product {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.motored-bike-section .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
}

.motored-bike-section .woocommerce-loop-product__title {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0.75rem 0;
}

.motored-bike-section .product img {
	display: block;
	max-width: 100%;
	height: auto;
}

.motored-bike-section .product .price {
	display: block;
	margin: 0.5rem 0;
}

.motored-notify-dialog {
	width: min(480px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	padding: 1.5rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-raised-color, var(--wp--preset--color--base, Canvas));
	color: var(--motored-ink-color, var(--wp--preset--color--contrast, CanvasText));
}

.motored-notify-dialog::backdrop {
	background: var(--motored-backdrop-color, rgb(0 0 0 / 55%));
}

.motored-notify-dialog__close {
	display: block;
	margin: 0 0 0.5rem auto;
	padding: 0 0.75rem;
	min-height: 44px;
	cursor: pointer;
}

.motored-notify-dialog h2 {
	font-size: 1.4rem;
	line-height: 1.3;
}

.motored-notify-dialog .motored-notify-form {
	display: grid;
	gap: 1rem;
}

.motored-notify-dialog .motored-notify-form__input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin-top: 0.5rem;
	padding: 0.65rem;
	font: inherit;
}

.motored-notify-dialog :focus-visible {
	outline: 2px solid var(--motored-focus);
	outline-offset: 3px;
}

.motored-bike-pair {
	margin: 1.5rem 0;
	padding: 1rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
}

.motored-bike-pair__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.85rem;
	margin: 0.75rem 0;
}

.motored-bike-pair__card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
}

.motored-bike-pair__pos {
	font-size: 0.82em;
	font-weight: 700;
	text-transform: uppercase;
	opacity: 0.75;
}

.motored-bike-faq__item {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--motored-border);
}

.motored-bike-faq__item summary {
	cursor: pointer;
	font-weight: 600;
}

.motored-bike-hub__brands {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	padding: 0;
}

.motored-bike-hub__models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0.35rem 1.25rem;
	margin: 0.5rem 0 1.5rem;
	padding: 0;
	list-style: none;
}

.motored-bike-hub--all h2 {
	margin: 1.5rem 0 0.25rem;
	font-size: 1.15em;
}

/* Bike page summary inside archive/search listings (0 queries) */
.motored-bike-card {
	margin: 0.35rem 0 0.75rem;
}

.motored-bike-card p {
	margin: 0.2rem 0;
}

.motored-notify-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 440px;
	margin: 0.65rem 0;
	padding: 0.75rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
}

.motored-notify-form__input {
	width: 100%;
	min-height: 2.3rem;
	padding: 0.4rem 0.65rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
}

.motored-notify-form__msg.is-ok {
	color: var(--motored-ok);
	font-weight: 600;
}

.motored-notify-form__msg.is-error {
	color: var(--motored-no);
	font-weight: 600;
}

/* Payment plans modal dialog [motored_payment_plans] */
.motored-plans-dialog {
	width: min(32rem, calc(100vw - 2rem));
	max-width: 100%;
	max-height: calc(100dvh - 2rem);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.5rem;
	border: 1px solid var(--motored-border);
	border-radius: var(--motored-radius);
	background: var(--motored-raised);
	color: var(--motored-ink);
	box-shadow: 0 12px 32px var(--motored-shadow);
}

.motored-plans-dialog::backdrop {
	background: var(--motored-backdrop-color, rgb(0 0 0 / 55%));
}

.motored-plans-dialog__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.3;
}

.motored-plans-dialog__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25rem;
}

.motored-plans-dialog__table th,
.motored-plans-dialog__table td {
	padding: 0.6rem 0.5rem;
	border-bottom: 1px solid var(--motored-border);
	text-align: left;
	vertical-align: top;
}

.motored-plans-dialog__table td {
	text-align: right;
	white-space: nowrap;
}

.motored-plans-dialog__actions {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.motored-plans-dialog .motored-plans-dialog__close {
	margin: 0;
}

/* 1.15: corner close button, plan tag and amount parts. */
.motored-plans-dialog__dismiss {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	margin: 0;
}

.motored-plans-dialog .motored-plans-dialog__x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.motored-plans-dialog__tag {
	display: inline-block;
	padding: 0.1rem 0.4rem;
	background: var(--motored-soft);
	color: var(--motored-muted);
	font-size: 0.75em;
	white-space: nowrap;
	vertical-align: 0.1em;
}

.motored-plans-dialog__row--free .motored-plans-dialog__tag {
	color: var(--motored-ok);
}

.motored-plans-dialog__detail {
	color: var(--motored-muted);
}

/* Payment plans on product cards (Storefront::html_for in a loop): list line, cash price, button. Structure only. */
.motored-plans--loop {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
}

.motored-plans-cash {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.3rem;
}

.motored-plans--loop .motored-plans-link {
	display: block;
	text-align: center;
}

/* Compact loop badge ([data-motored-fit-slot], contract 1.6): the bike icon with a tooltip on hover, focus or tap. */
.motored-compat-badge--loop.motored-compat-badge--icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: help;
}

.motored-compat-badge--icon .motored-compat-badge__icon svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.motored-compat-badge__tip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.4rem);
	z-index: 20;
	width: max-content;
	max-width: 14rem;
	padding: 0.4rem 0.55rem;
	background: var(--motored-ink);
	color: var(--motored-raised);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.motored-compat-badge--icon:hover .motored-compat-badge__tip,
.motored-compat-badge--icon:focus-visible .motored-compat-badge__tip,
.motored-compat-badge--icon.is-open .motored-compat-badge__tip {
	opacity: 1;
	visibility: visible;
}

.motored-compat-badge--icon:focus-visible {
	outline: 2px solid var(--motored-focus);
	outline-offset: 2px;
}

/* Transfer price of a variable product hidden by payment-plans.js when the chosen variation has none (1.8). */
.motored-plans-cash[hidden] {
	display: none;
}

/* Factory sizes of the active bike inside the product banner (contract 1.11): label + one link per axis. */
.motored-compat-badge__sizes {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0.35rem 0 0;
}

.motored-compat-badge__size {
	color: var(--motored-link);
	font-weight: 600;
}

