/* Hallmark · component: FIPE price feedback · genre: modern-minimal · tone: quiet and precise
 * theme: studied-DNA (Autolevi/MyListing) · anchor: Autolevi blue · macrostructure: existing form + inline reference rail
 * states: default · loading · error · success · contrast: pass · slop: pass
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */
.autolevi-fipe-input-wrap {
	position: relative;
}

.autolevi-fipe-native-field {
	display: none !important;
}

.autolevi-fipe-suggestions {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid #dfe5eb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(28, 46, 66, 0.16);
}

.autolevi-fipe-suggestions[hidden] {
	display: none;
}

.autolevi-fipe-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #17212b;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.autolevi-fipe-option span {
	padding-right: 16px;
}

.autolevi-fipe-option small {
	flex: 0 0 auto;
	color: #6d7885;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.autolevi-fipe-option:hover,
.autolevi-fipe-option:focus,
.autolevi-fipe-option.is-active {
	outline: none;
	background: #eef6ff;
	color: #005ca8;
}

.autolevi-fipe-status {
	min-height: 18px;
	margin-top: 5px;
	color: #6d7885;
	font-size: 12px;
	line-height: 1.4;
}

.autolevi-fipe-price-reference {
	border-left: 2px solid var(--accent);
	display: grid;
	gap: 4px;
	margin-top: 12px;
	padding: 8px 12px;
}

.autolevi-fipe-price-reference[hidden] {
	display: none;
}

.autolevi-fipe-price-reference > span,
.autolevi-fipe-price-reference > small {
	font-size: 12px;
	line-height: 1.4;
}

.autolevi-fipe-price-reference > span {
	font-weight: 600;
}

.autolevi-fipe-price-reference > strong {
	color: var(--accent);
	font-size: 18px;
	line-height: 1.25;
}

.autolevi-fipe-price-reference > small {
	opacity: 0.75;
}

.autolevi-fipe-price-reference[data-state="loading"] {
	opacity: 0.7;
}

.autolevi-fipe-price-reference[data-state="error"] {
	border-left-style: dashed;
}

/*
 * Cadastro e edição são páginas diferentes no MyListing. Esta regra garante
 * a mesma tipografia nas duas, inclusive quando a edição não passa pelo Elementor.
 */
body.add-listing-form .section-title h2,
body.edit-listing-form .section-title h2,
body.add-listing-form #submit-job-form,
body.edit-listing-form #submit-job-form,
body.add-listing-form #submit-job-form input,
body.edit-listing-form #submit-job-form input,
body.add-listing-form #submit-job-form textarea,
body.edit-listing-form #submit-job-form textarea,
body.add-listing-form #submit-job-form select,
body.edit-listing-form #submit-job-form select,
body.add-listing-form #submit-job-form button,
body.edit-listing-form #submit-job-form button,
body.add-listing-form .add-listing-nav,
body.edit-listing-form .add-listing-nav {
	font-family: "Roboto", "GlacialIndifference", sans-serif !important;
}

body.add-listing-form .section-title h2,
body.edit-listing-form .section-title h2 {
	font-weight: 600;
}

@media (max-width: 767px) {
	.autolevi-fipe-suggestions {
		max-height: 230px;
	}
}
