/* Autocomplete de produtos, mantido pelo tema filho. */
.abcsp-search-attached {
	position: relative;
	z-index: 5;
}

.abcsp-search-attached input[type="search"],
.abcsp-search-attached input.search-field {
	padding-right: 48px !important;
}

.abcsp-search-attached input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.abcsp-search-attached button[type="submit"],
.abcsp-search-attached input[type="submit"],
.abcsp-search-attached .search-submit,
.abcsp-search-attached .elementor-search-form__submit {
	display: none !important;
}

.abcsp-search-attached.is-focused {
	z-index: 100000;
}

.abcsp-search-clear {
	align-items: center;
	background: #e5e7eb !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #5f6670 !important;
	cursor: pointer;
	display: none;
	font-size: 22px !important;
	font-weight: 700 !important;
	height: 32px;
	justify-content: center;
	line-height: 1 !important;
	padding: 0 !important;
	position: absolute;
	right: 10px;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
	width: 32px !important;
	z-index: 3;
}

.abcsp-search-attached.has-value .abcsp-search-clear {
	display: flex;
}

.abcsp-search-clear:hover,
.abcsp-search-clear:focus {
	background: #d1d5db !important;
	color: #111827 !important;
	outline: none;
	transform: translateY(-50%) scale(1.04);
}

.abcsp-search-suggestions {
	background: #fff;
	border: 1px solid #d9dee4;
	border-radius: 6px;
	box-shadow: 0 16px 34px rgba(10, 14, 20, 0.18);
	display: none;
	left: 0;
	margin-top: 6px;
	max-height: min(480px, 72vh);
	overflow: auto;
	position: absolute;
	right: 0;
	scrollbar-color: #9ca3af #f3f4f6;
	scrollbar-width: thin;
	top: 100%;
	z-index: 99999;
}

.abcsp-search-suggestions.is-open {
	display: block;
}

.abcsp-search-suggestions::-webkit-scrollbar {
	width: 10px;
}

.abcsp-search-suggestions::-webkit-scrollbar-track {
	background: #f3f4f6;
}

.abcsp-search-suggestions::-webkit-scrollbar-thumb {
	background: #a7b0ba;
	border: 2px solid #f3f4f6;
	border-radius: 999px;
}

.abcsp-search-suggestions.has-scroll:not(.is-scrolled-end)::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 82%);
	bottom: 0;
	content: "";
	display: block;
	height: 34px;
	margin-top: -34px;
	pointer-events: none;
	position: sticky;
	z-index: 2;
}

.abcsp-search-suggestion,
.abcsp-search-state {
	box-sizing: border-box;
	font-family: inherit;
	width: 100%;
}

.abcsp-search-suggestion {
	background: transparent;
	border: 0;
	color: #151515;
	cursor: pointer;
	text-align: left;
	white-space: normal;
}

.abcsp-search-suggestion {
	align-items: stretch;
	display: grid;
	gap: 14px;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	min-height: 94px;
	padding: 12px 14px;
}

.abcsp-search-suggestion + .abcsp-search-suggestion {
	border-top: 1px solid #edf0f2;
}

.abcsp-search-suggestion:hover,
.abcsp-search-suggestion.is-active {
	background: #f6f8fb;
}

.abcsp-search-suggestion__image {
	align-items: center;
	background: #f3f3f3;
	border: 1px solid #eceff3;
	border-radius: 6px;
	display: flex;
	height: 64px;
	justify-content: center;
	overflow: hidden;
	width: 64px;
}

.abcsp-search-suggestion__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.abcsp-search-suggestion__body {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.abcsp-search-suggestion__title {
	color: #111;
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.28;
	overflow-wrap: anywhere;
	white-space: normal;
}

.abcsp-search-suggestion__vehicle {
	font-weight: 800;
}

.abcsp-search-suggestion__meta,
.abcsp-search-suggestion__foot {
	color: #5c6670;
	display: block;
	font-size: 12.5px;
	line-height: 1.35;
	overflow-wrap: anywhere;
	white-space: normal;
}

.abcsp-search-suggestion__meta {
	color: #4d5966;
	font-weight: 500;
}

.abcsp-search-suggestion__foot {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.abcsp-search-suggestion__sku {
	color: #7b8490;
	font-weight: 400;
}

.abcsp-search-suggestion__price {
	color: #111;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	place-self: center end;
	white-space: nowrap;
}

.abcsp-search-state {
	color: #5c6670;
	font-size: 13px;
	padding: 14px 12px;
}

.abcsp-search-highlight {
	background: #fff2b8;
	border-radius: 3px;
	color: inherit;
	font-weight: 800;
	padding: 0 2px;
}

.abcsp-search-suggestion__badges {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.abcsp-search-suggestion__badge {
	align-items: center;
	background: #eef2f6;
	border: 1px solid #dde3ea;
	border-radius: 999px;
	color: #3c4652;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 4px;
	line-height: 1;
	padding: 4px 8px;
	white-space: nowrap;
}

.abcsp-search-suggestion__badge.is-front::before,
.abcsp-search-suggestion__badge.is-rear::before,
.abcsp-search-suggestion__badge.is-both::before {
	align-items: center;
	border-radius: 999px;
	content: "\2713";
	display: inline-flex;
	font-size: 9px;
	font-weight: 800;
	height: 14px;
	justify-content: center;
	line-height: 1;
	width: 14px;
}

.abcsp-search-suggestion__badge.is-front {
	background: #eff9ff;
	border-color: #cde9fb;
	color: #185f88;
}

.abcsp-search-suggestion__badge.is-front::before {
	background: #d7f0ff;
	color: #185f88;
}

.abcsp-search-suggestion__badge.is-rear {
	background: #f4f5ff;
	border-color: #dadcff;
	color: #3d448f;
}

.abcsp-search-suggestion__badge.is-rear::before {
	background: #e4e6ff;
	color: #3d448f;
}

.abcsp-search-suggestion__badge.is-both,
.abcsp-search-suggestion__badge.is-kit {
	background: #f0fbf5;
	border-color: #ccefdc;
	color: #1f6c43;
}

.abcsp-search-suggestion__badge.is-both::before {
	background: #d7f4e4;
	color: #1f6c43;
}

@media (max-width: 768px) {
	.abcsp-search-attached input[type="search"],
	.abcsp-search-attached input.search-field {
		font-size: 16px !important;
		min-height: 48px;
		-webkit-text-size-adjust: 100%;
	}

	.abcsp-search-attached.is-focused .abcsp-search-suggestions {
		max-height: calc(100vh - 96px);
		overscroll-behavior: contain;
	}
}

@media (max-width: 640px) {
	.abcsp-search-suggestions {
		max-height: 70vh;
	}

	.abcsp-search-suggestion {
		gap: 10px;
		grid-template-columns: 56px minmax(0, 1fr);
		min-height: 84px;
		padding: 10px;
	}

	.abcsp-search-suggestion__image {
		height: 56px;
		width: 56px;
	}

	.abcsp-search-suggestion__title {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.abcsp-search-suggestion__badge {
		font-size: 10.5px;
		gap: 3px;
		padding: 4px 7px;
	}

	.abcsp-search-suggestion__badge.is-front::before,
	.abcsp-search-suggestion__badge.is-rear::before,
	.abcsp-search-suggestion__badge.is-both::before {
		font-size: 8px;
		height: 13px;
		width: 13px;
	}

	.abcsp-search-suggestion__price {
		justify-self: start;
		place-self: auto;
	}

	.abcsp-search-suggestion__price {
		grid-column: 2;
		margin-top: -2px;
	}
}
