.gestiauto-direct-search {
	width: 100%;
}

.gestiauto-direct-search__box {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
}

.gestiauto-direct-search__shell {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
	padding: 14px 18px;
	background: #f4f4f4;
	border: 3px solid #00b7d6;
	border-radius: 999px;
	box-sizing: border-box;
}

.gestiauto-direct-search__state {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
	align-items: center;
}

.gestiauto-direct-search__state.is-active {
	display: flex;
}

.gestiauto-direct-search__state--input {
	gap: 16px;
}

.gestiauto-direct-search__state--selected {
	min-width: 0;
}

.gestiauto-direct-search__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	color: #8b94a1;
}

.gestiauto-direct-search__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.gestiauto-direct-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 500;
	color: #1f2937;
	box-shadow: none;
}

.gestiauto-direct-search__input::placeholder {
	color: #9aa3af;
	opacity: 1;
}

.gestiauto-direct-search__status {
	flex: 0 0 auto;
	font-size: 14px;
	color: #6b7280;
	white-space: nowrap;
}

.gestiauto-direct-search__selected-brand {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	min-width: 0;
}

.gestiauto-direct-search__selected-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 90px;
	width: 90px;
}

.gestiauto-direct-search__selected-logo img {
	display: block;
	max-width: 100%;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gestiauto-direct-search__selected-name {
	display: block;
	min-width: 0;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	color: #1f2937;
}

.gestiauto-direct-search__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.gestiauto-direct-search__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #9aa3af;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.gestiauto-direct-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: #005c74;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.gestiauto-direct-search__button:hover:not([disabled]) {
	transform: translateY(-1px);
}

.gestiauto-direct-search__button[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}


.gestiauto-direct-brand-locked {
	cursor: default !important;
}

.gestiauto-direct-brand-locked .select2-selection {
	cursor: default !important;
}

.gestiauto-direct-brand-locked .select2-selection__arrow {
	opacity: 0.45;
}


@media (max-width: 767px) {
	.gestiauto-direct-search__shell {
		flex-wrap: wrap;
		gap: 12px;
		min-height: auto;
		padding: 16px;
		border-radius: 28px;
	}

	.gestiauto-direct-search__state,
	.gestiauto-direct-search__state.is-active {
		width: 100%;
	}

	.gestiauto-direct-search__state--input {
		gap: 12px;
	}

	.gestiauto-direct-search__icon {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
	}

	.gestiauto-direct-search__input {
		font-size: 18px;
	}

	.gestiauto-direct-search__status {
		display: none;
	}

	.gestiauto-direct-search__selected-brand {
		gap: 14px;
	}

	.gestiauto-direct-search__selected-logo {
		flex: 0 0 72px;
		width: 72px;
	}

	.gestiauto-direct-search__selected-name {
		font-size: 18px;
	}

	.gestiauto-direct-search__actions {
		width: 100%;
		justify-content: flex-end;
	}

	.gestiauto-direct-search__button {
		min-width: 140px;
		min-height: 52px;
		font-size: 17px;
	}
}