/* Auto Navix canonical vehicle compatibility system. */

.autonavix-site .an-vehicle-selector,
.autonavix-site .an-vehicle-selector * {
	box-sizing: border-box;
}

.autonavix-site .an-vehicle-selector__fields {
	display: grid;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
}

.autonavix-site .an-vehicle-selector__field {
	min-width: 0;
}

.autonavix-site .an-vehicle-selector__field label {
	display: block;
	margin: 0 0 0.35rem;
	color: var(--an-color-text, #101828);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
}

.autonavix-site .an-vehicle-selector__field label span {
	color: var(--an-color-text-muted, #667085);
	font-size: 0.75rem;
	font-weight: 400;
}

.autonavix-site .an-vehicle-selector__field select {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 3rem;
	margin: 0;
	padding: 0.65rem 2.25rem 0.65rem 0.75rem;
	border: 1px solid var(--an-color-border-strong, #d0d5dd);
	border-radius: var(--an-button-radius, 0.625rem);
	background-color: var(--an-color-surface, #fff);
	color: var(--an-color-text, #101828);
	font-size: 0.875rem;
	line-height: 1.3;
	text-overflow: ellipsis;
}

.autonavix-site .an-vehicle-selector__field select:disabled {
	background-color: #f2f4f7;
	color: #667085;
	cursor: not-allowed;
	opacity: 1;
}

.autonavix-site .an-vehicle-selector__field select:focus-visible,
.autonavix-site .an-active-vehicle a:focus-visible,
.autonavix-site .an-compatibility-more summary:focus-visible,
.autonavix-site .an-compatibility-checker button:focus-visible,
.autonavix-site .an-search-pagination .page-numbers:focus-visible {
	outline: 3px solid rgba(21, 94, 239, 0.28);
	outline-offset: 2px;
}

.autonavix-site .an-vehicle-selector__status {
	min-height: 1.15rem;
	margin: 0.35rem 0 0;
	color: var(--an-color-text-muted, #667085);
	font-size: 0.75rem;
	line-height: 1.35;
}

.autonavix-site .an-vehicle-selector.is-loading .an-vehicle-selector__status::before {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 0.35rem;
	border: 2px solid #b2ccff;
	border-top-color: var(--an-color-brand-blue, #155eef);
	border-radius: 50%;
	content: "";
	vertical-align: -0.1rem;
	animation: an-vehicle-spin 700ms linear infinite;
}

.autonavix-site .an-vehicle-selector.has-error .an-vehicle-selector__status {
	color: var(--an-color-error, #d92d20);
}

.autonavix-site .an-home-finder .an-vehicle-selector__status {
	margin-bottom: -0.4rem;
}

.autonavix-site .an-search-filter--vehicle {
	padding: 0;
	border: 0;
}

.autonavix-site .an-search-filter--vehicle .an-vehicle-selector__status {
	margin-bottom: 0;
}

.autonavix-site .an-active-vehicle {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.9rem;
	margin: 0 0 1.25rem;
	padding: 1rem;
	border: 1px solid #b2ccff;
	border-radius: var(--an-card-radius, 0.875rem);
	background: linear-gradient(135deg, #eff4ff 0%, #f5f3ff 100%);
}

.autonavix-site .an-archive-vehicle-filter {
	margin: 0 0 1rem;
	padding: 0;
	border: 1px solid var(--an-color-border, #e4e7ec);
	border-radius: var(--an-card-radius, 0.875rem);
	background: var(--an-color-surface, #fff);
}

.autonavix-site .an-archive-vehicle-filter > summary {
	min-height: 3rem;
	padding: 0.8rem 1rem;
	color: var(--an-color-text, #101828);
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 700;
}

.autonavix-site .an-archive-vehicle-filter > form {
	padding: 0 1rem 1rem;
}

.autonavix-site .an-archive-vehicle-filter__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.autonavix-site .an-archive-vehicle-filter__actions > :only-child {
	grid-column: 1 / -1;
}

.autonavix-site .an-archive-vehicle-filter__actions .an-button {
	width: 100%;
	min-height: 2.75rem;
}

.autonavix-site .an-active-vehicle__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.15rem;
}

.autonavix-site .an-active-vehicle__eyebrow {
	color: var(--an-color-brand-blue, #155eef);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.autonavix-site .an-active-vehicle strong {
	color: var(--an-color-text, #101828);
	font-size: 1rem;
	overflow-wrap: anywhere;
}

.autonavix-site .an-active-vehicle__content > span:not(.an-active-vehicle__eyebrow),
.autonavix-site .an-active-vehicle small {
	color: var(--an-color-text-secondary, #475467);
}

.autonavix-site .an-active-vehicle small {
	margin-top: 0.2rem;
	font-size: 0.75rem;
}

.autonavix-site .an-active-vehicle__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.autonavix-site .an-active-vehicle__actions a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.75rem;
	border: 1px solid #84adff;
	border-radius: var(--an-button-radius, 0.625rem);
	background: rgba(255, 255, 255, 0.82);
	color: var(--an-color-brand-blue, #155eef);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.autonavix-site .an-product-compatibility.an-product-compatibility--detailed {
	display: block;
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid var(--an-color-border, #e4e7ec);
	border-radius: var(--an-card-radius, 0.875rem);
	background: var(--an-color-surface, #fff);
	box-shadow: var(--an-shadow-card, 0 1px 3px rgba(16, 24, 40, 0.1));
}

.autonavix-site .an-product-compatibility__header {
	display: grid;
	align-items: center;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.autonavix-site .an-product-compatibility__header .an-product-compatibility__icon {
	width: 2.5rem;
	height: 2.5rem;
}

.autonavix-site .an-product-compatibility__header h2 {
	margin: 0;
	color: var(--an-color-text, #101828);
	font-size: 1.125rem;
	line-height: 1.3;
}

.autonavix-site .an-product-compatibility__header p {
	margin: 0.15rem 0 0;
	color: var(--an-color-text-muted, #667085);
	font-size: 0.75rem;
	line-height: 1.45;
}

.autonavix-site .an-product-compatibility__unknown {
	margin: 0;
	padding: 0.85rem;
	border: 1px dashed #fdb022;
	border-radius: 0.625rem;
	background: #fffaeb;
	color: #7a2e0e;
	font-size: 0.8125rem;
}

.autonavix-site .an-compatibility-list {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 0.75rem;
	list-style: none;
}

.autonavix-site .an-compatibility-record {
	min-width: 0;
	padding: 0.85rem;
	border: 1px solid #abefc6;
	border-radius: 0.75rem;
	background: var(--an-color-success-surface, #ecfdf3);
}

.autonavix-site .an-compatibility-record__heading {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.1rem;
	margin-bottom: 0.65rem;
}

.autonavix-site .an-compatibility-record__heading strong {
	color: #067647;
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.autonavix-site .an-compatibility-record__heading span {
	color: var(--an-color-text-secondary, #475467);
	font-size: 0.8125rem;
}

.autonavix-site .an-compatibility-record__details {
	display: grid;
	margin: 0;
	gap: 0.3rem;
}

.autonavix-site .an-compatibility-record__details > div {
	display: grid;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.5rem;
	font-size: 0.75rem;
}

.autonavix-site .an-compatibility-record__details :where(dt, dd) {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.autonavix-site .an-compatibility-record__details dt {
	color: var(--an-color-text-muted, #667085);
}

.autonavix-site .an-compatibility-record__details dd {
	color: var(--an-color-text, #101828);
	font-weight: 600;
	text-align: right;
}

.autonavix-site .an-compatibility-record__notes {
	margin: 0.65rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid #abefc6;
	color: var(--an-color-text-secondary, #475467);
	font-size: 0.75rem;
	overflow-wrap: anywhere;
}

.autonavix-site .an-compatibility-more {
	margin-top: 0.75rem;
}

.autonavix-site .an-compatibility-more summary {
	min-height: 2.75rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--an-color-border-strong, #d0d5dd);
	border-radius: 0.625rem;
	color: var(--an-color-brand-blue, #155eef);
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 700;
}

.autonavix-site .an-compatibility-more[open] summary {
	margin-bottom: 0.75rem;
}

.autonavix-site .an-compatibility-checker {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--an-color-border, #e4e7ec);
}

.autonavix-site .an-compatibility-checker h3 {
	margin: 0;
	font-size: 1rem;
}

.autonavix-site .an-compatibility-checker > p:not(.an-compatibility-checker__result) {
	margin: 0.25rem 0 0.85rem;
	color: var(--an-color-text-muted, #667085);
	font-size: 0.75rem;
}

.autonavix-site .an-compatibility-checker > button {
	width: 100%;
	min-height: 2.75rem;
	margin-top: 0.35rem;
}

.autonavix-site .an-compatibility-checker__result {
	min-height: 1.25rem;
	margin: 0.75rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.45;
}

.autonavix-site .an-compatibility-checker__result:empty {
	display: block;
	padding: 0;
}

.autonavix-site .an-compatibility-checker__result.is-compatible {
	padding: 0.75rem;
	border-radius: 0.625rem;
	background: #ecfdf3;
	color: #067647;
}

.autonavix-site .an-compatibility-checker__result.is-not-compatible {
	padding: 0.75rem;
	border-radius: 0.625rem;
	background: #fef3f2;
	color: #b42318;
}

.autonavix-site .an-compatibility-checker__result.is-insufficient,
.autonavix-site .an-compatibility-checker__result.is-loading {
	padding: 0.75rem;
	border-radius: 0.625rem;
	background: #fffaeb;
	color: #93370d;
}

.autonavix-site .an-search-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 1.25rem;
}

.autonavix-site .an-search-pagination .page-numbers {
	display: inline-flex;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--an-color-border, #e4e7ec);
	border-radius: 0.5rem;
	background: #fff;
	color: var(--an-color-text, #101828);
	font-size: 0.8125rem;
	text-decoration: none;
}

.autonavix-site .an-search-pagination .page-numbers.current {
	border-color: var(--an-color-brand-blue, #155eef);
	background: var(--an-color-brand-blue, #155eef);
	color: #fff;
}

@media (min-width: 36rem) {
	.autonavix-site .an-active-vehicle {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}

	.autonavix-site .an-active-vehicle__actions {
		flex: 0 0 auto;
	}
}

@media (min-width: 48rem) {
	.autonavix-site .an-home-finder .an-vehicle-selector__fields {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.autonavix-site .an-vehicle-selector--checker .an-vehicle-selector__fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.autonavix-site .an-vehicle-selector--archive .an-vehicle-selector__fields {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.autonavix-site .an-archive-vehicle-filter__actions {
		display: flex;
		justify-content: flex-end;
	}

	.autonavix-site .an-archive-vehicle-filter__actions .an-button {
		width: auto;
		min-width: 8rem;
	}

	.autonavix-site .an-compatibility-checker > button {
		width: auto;
		min-width: 9rem;
	}
}

@media (max-width: 23.5rem) {
	.autonavix-site .an-active-vehicle__actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.autonavix-site .an-compatibility-record__details > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.1rem;
	}

	.autonavix-site .an-compatibility-record__details dd {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.autonavix-site .an-vehicle-selector.is-loading .an-vehicle-selector__status::before {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}

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