/* ============================================================
   CEA Theme – Widget Banner / Hero (Elementor)
   ============================================================ */

.cea-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 342px;
	border-radius: 8px;
}

/* Dentro de um produto o Banner esconde-se (ver render()) — colapsa o
   padding do container Elementor à volta dele, que fica órfão e vazio. */
body.cea-detail-active .e-con-inner:has(.cea-banner-empty-marker),
body.cea-detail-active .elementor-widget-cea-banner {
	padding: 0 !important;
	min-height: 0 !important;
}

.cea-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: 8px;
}

.cea-banner__media img,
.cea-banner__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cea-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 8px;
}

.cea-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
	padding: 48px;
}

.cea-banner__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 826px;
}

.cea-banner__title {
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600;
	font-size: 48px;
	line-height: 60px;
	color: #FFFFFF !important;
	margin: 0;
}

.cea-banner__subtitle {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	color: #FFFFFF;
	margin: 0;
}

.cea-banner__search {
	display: flex;
	align-items: center;
	gap: 40px;
	width: 100%;
	padding: 16px 16px 16px 24px;
	background: #FFFFFF;
	border-radius: 8px;
}

.cea-banner__search-label {
	flex-shrink: 0;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 28px;
	color: #595959;
	white-space: nowrap;
}

.cea-banner__search-fields {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1 1 auto;
	min-width: 0;
}

/* ── Select customizado (não nativo) ─────────────────────────── */

.cea-select {
	position: relative;
	flex: 1 1 0;
	min-width: 200px;
}

.cea-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	height: 56px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #191919;
	cursor: pointer;
	text-align: left;
}

.cea-select__trigger svg {
	flex-shrink: 0;
	color: #71717A;
	transition: transform .15s ease;
}

.cea-select.is-open .cea-select__trigger svg { transform: rotate(180deg); }
.cea-select.is-open .cea-select__trigger { border-color: #066EAF; }

.cea-select__value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cea-select__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: 320px;
	overflow-y: auto;
	background: #FFFFFF;
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	box-shadow: 0 0 1px 0 rgba(24, 24, 27, .3), 0 4px 8px 0 rgba(24, 24, 27, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.cea-select.is-open .cea-select__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cea-select__option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 16px 8px;
	background: transparent;
	border: none;
	border-bottom: 1px solid #D4D4D8;
	cursor: pointer;
	text-align: left;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	color: #595959;
}

.cea-select__option:last-child { border-bottom: none; }

.cea-select__option:hover,
.cea-select__option.is-active { background: #F5F7FA; color: #066EAF; }

.cea-select__option-code { flex: 0 0 48px; }
.cea-select__option-label { flex: 1 1 0; min-width: 0; }

.cea-select__option--simple {
	padding: 12px 16px;
	font-size: 16px;
	line-height: 24px;
}

.cea-select__empty {
	margin: 0;
	padding: 16px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #71717A;
}

.cea-select--search .cea-select__panel { top: calc(100% + 8px); }

.cea-banner__search-input {
	display: block;
	width: 100%;
	height: 56px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #191919;
}

.cea-banner__search-input::placeholder { color: #71717A; }

.cea-banner__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	padding: 0;
	background: #066EAF;
	border: none;
	border-radius: 8px;
	color: #FFFFFF;
	cursor: pointer;
}

.cea-banner__search-btn:hover { opacity: .9; }

/* ── Breakpoint mobile ───────────────────────────────────────── */

@media (max-width: 1024px) {
	.cea-banner { min-height: 0; border-radius: 0; }
	.cea-banner__media,
	.cea-banner__overlay { border-radius: 0; }

	.cea-banner__content { padding: 32px 16px; gap: 24px; }

	.cea-banner__text { max-width: none; gap: 16px; }

	.cea-banner__title { font-size: 28px; line-height: 36px; }

	.cea-banner__subtitle { font-size: 16px; line-height: 24px; }

	.cea-banner__search { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }

	.cea-banner__search-label { white-space: normal; }

	.cea-banner__search-fields { flex-direction: column; align-items: stretch; gap: 12px; }

	.cea-select,
	.cea-banner__search-input { min-width: 0; width: 100%; }

	.cea-banner__search-btn { width: 100%; }
}
