/* ============================================================
   CEA Theme – Widget Detalhe do Processo (Elementor)
   ============================================================ */

.cea-dp-wrap {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

/* ── Cabeçalho do produto ─────────────────────────────────────── */

.cea-dp__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cea-dp__head-title {
	margin: 0;
	max-width: 716px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 48px;
	line-height: 60px;
	color: #254666 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cea-dp__head-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	padding: 16px;
	border: 2px solid #066EAF;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	color: #066EAF;
	text-decoration: none;
}

.cea-dp__head-btn:hover { background: #E5F2FF; text-decoration: none; }

.cea-dp__head-btn {
	background: none;
	cursor: pointer;
	font: inherit;
}

/* ── Licenças prévias (passo 1) ───────────────────────────────── */

.cea-dp__licenses {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cea-dp__license-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 4px;
	background: #E5F2FF;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #066EAF;
}

/* ── Link "Consultar procedimento" ───────────────────────────── */

.cea-dp__step-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	color: #066EAF;
	text-decoration: none;
}

.cea-dp__step-link:hover { text-decoration: underline; }

/* ── Modal: Códigos HS Associados ─────────────────────────────── */

.cea-dp__codigos-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cea-dp__codigos-modal.is-open { display: flex; }

.cea-dp__codigos-overlay {
	position: absolute;
	inset: 0;
	background: rgba(37, 70, 102, .7);
}

.cea-dp__codigos-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 730px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0 20px 40px rgba(24, 24, 27, .2);
}

.cea-dp__codigos-dialog > * { flex-shrink: 0; }

.cea-dp__codigos-close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: none;
	color: #71717A;
	cursor: pointer;
}

.cea-dp__codigos-close:hover { color: #254666; }

.cea-dp__codigos-title {
	margin: 0;
	max-width: 90%;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 30px;
	color: #254666;
}

.cea-dp__codigos-desc {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #595959;
}

.cea-dp__codigos-faq { border-radius: 8px; overflow: hidden; }

.cea-dp__codigos-faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px;
	border: none;
	background: #F4F4F5;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #254666;
	text-align: left;
	cursor: pointer;
}

.cea-dp__codigos-faq-icon { flex-shrink: 0; color: #254666; transition: transform .2s ease; }
.cea-dp__codigos-faq.is-open .cea-dp__codigos-faq-icon { transform: rotate(45deg); }

.cea-dp__codigos-faq-panel {
	display: none;
	padding: 16px;
	background: #FAFAFA;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 24px;
	color: #595959;
}

.cea-dp__codigos-faq.is-open .cea-dp__codigos-faq-panel { display: block; }
.cea-dp__codigos-faq-panel p { margin: 0; }

.cea-dp__codigos-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.cea-dp__codigos-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 240px;
	padding: 12px 16px;
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	color: #71717A;
}

.cea-dp__codigos-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #18181B;
}

.cea-dp__codigos-download {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding: 12px 16px;
	border: 2px solid #066EAF;
	border-radius: 8px;
	background: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #066EAF;
	cursor: pointer;
}

.cea-dp__codigos-download:hover { background: #E5F2FF; }

.cea-dp__codigos-table-wrap {
	border: 1px solid #D4D4D8;
	border-radius: 8px;
	overflow: hidden;
}

.cea-dp__codigos-table { width: 100%; border-collapse: collapse; }

.cea-dp__codigos-table th,
.cea-dp__codigos-table td {
	padding: 12px 16px;
	text-align: left;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 22px;
}

.cea-dp__codigos-table thead th { background: #E5F2FF; font-weight: 600; color: #254666; }
.cea-dp__codigos-table tbody tr:not(:last-child) { border-bottom: 1px solid #F4F4F5; }
.cea-dp__codigos-table tbody td { color: #595959; }
.cea-dp__codigos-code { font-weight: 600; color: #066EAF; white-space: nowrap; }

.cea-dp__codigos-empty {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #71717A;
}

body.cea-dp-modal-open { overflow: hidden; }

.cea-dp {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 40px;
}

/* ── Barra lateral ────────────────────────────────────────────── */

.cea-dp__sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	flex: 0 0 360px;
	width: 360px;
}

.cea-dp__nav-item {
	display: flex;
	align-items: center;
	padding: 24px 20px;
	border-bottom: 2px solid #D4D4D8;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 28px;
	color: #71717A;
	text-decoration: none;
}

.cea-dp__nav-item:hover { background: #F4F4F5; text-decoration: none; }

.cea-dp__nav-item.is-active {
	font-weight: 600;
	color: #004B7B;
	border-color: #004B7B;
}

/* ── Conteúdo ─────────────────────────────────────────────────── */

.cea-dp__content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	flex: 1 1 0;
	min-width: 0;
}

.cea-dp__section { scroll-margin-top: 24px; }

.cea-dp__section-head {
	padding: 24px;
	border-radius: 8px;
	background: #E5F2FF;
}

.cea-dp__section-title {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 30px;
	color: #254666;
}

.cea-dp__list {
	display: flex;
	flex-direction: column;
	gap: 44px;
	margin-top: 40px;
}

.cea-dp__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 24px;
}

.cea-dp__item-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cea-dp__num {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	color: #066EAF;
	flex-shrink: 0;
}

.cea-dp__item-title {
	flex: 1 1 0;
	min-width: 0;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	color: #595959;
}

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

.cea-dp__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 20px;
	padding: 0 8px;
	border-radius: 4px;
	background: #D4D4D8;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #595959;
	white-space: nowrap;
}

.cea-dp__divider {
	width: 100%;
	height: 1px;
	background: rgba(24, 24, 27, .1);
}

.cea-dp__note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0 24px;
}

.cea-dp__note svg { flex-shrink: 0; color: #595959; margin-top: 2px; }
.cea-dp__note p { margin: 0; font-family: 'Inter', sans-serif; font-size: 18px; line-height: 28px; color: #595959; }

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

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

@media (max-width: 1024px) {
	.cea-dp-wrap { gap: 32px; }

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

	.cea-dp { flex-direction: column; gap: 24px; }

	.cea-dp__sidebar {
		position: static;
		flex-direction: row;
		flex: 0 0 auto;
		width: 100%;
		overflow-x: auto;
	}

	.cea-dp__nav-item { padding: 12px 16px; white-space: nowrap; font-size: 16px; }

	.cea-dp__section-title { font-size: 20px; line-height: 26px; }

	.cea-dp__item,
	.cea-dp__note,
	.cea-dp__empty { padding: 0 16px; }

	.cea-dp__item-title,
	.cea-dp__text { font-size: 16px; line-height: 24px; }

	.cea-dp__list { gap: 32px; margin-top: 24px; }

	.cea-dp__codigos-dialog { padding: 24px; gap: 16px; }
	.cea-dp__codigos-toolbar { flex-direction: column; align-items: stretch; }
	.cea-dp__codigos-download { justify-content: center; }
}
