/* ============================================================
   CEA Theme – Página de detalhe de produto (Exportação/Importação)
   Estilos escopados a .cea-pd, conforme design Figma
   "Desktop - Wireframe - Exportação - Produto"
   ============================================================ */

/* Esconde o título/excerto/breadcrumb fixos do template Elementor da página
   quando mostramos o detalhe dinâmico de um produto ou procedimento, para não
   duplicar cabeçalhos (o nosso conteúdo já traz o seu próprio breadcrumb/título) */
body.cea-detail-active .elementor-widget-breadcrumbs,
body.cea-detail-active .e-con.e-child:has(.elementor-widget-theme-page-title) {
	display: none !important;
}

.cea-pd {
	--cea-pd-blue:   #066EAF;
	--cea-pd-black:  #191919;
	--cea-pd-border: #E2E8F0;
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--cea-pd-black);
	margin-block: 32px;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.cea-pd-breadcrumb {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 32px;
	font-size: .9rem;
}

.cea-pd-breadcrumb a {
	color: var(--cea-pd-black);
	text-decoration: underline;
}

.cea-pd-breadcrumb a:hover { color: var(--cea-pd-blue); }

.cea-pd-breadcrumb span[aria-current] {
	color: var(--cea-pd-black);
	font-weight: 400;
}

.cea-pd-breadcrumb__sep { opacity: .6; }

/* ── Cabeçalho ───────────────────────────────────────────── */
.cea-pd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.cea-pd-head h1 {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 2.5rem;
	font-weight: 600;
	letter-spacing: -.4px;
	line-height: 1.25;
}

.cea-pd-head .cea-pd-btn { flex-shrink: 0; }

/* ── Botões (estilo Figma) ───────────────────────────────── */
.cea-pd-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border: 1px solid var(--cea-pd-black);
	border-radius: 12px;
	background: #fff;
	color: var(--cea-pd-black) !important;
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none !important;
	white-space: nowrap;
}

.cea-pd-btn:hover { background: #F5F8FB; }
.cea-pd-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Accordion ───────────────────────────────────────────── */
.cea-pd-accordion {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cea-pd-section {
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.cea-pd-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 32px;
	border: none;
	background: #fff;
	color: var(--cea-pd-black);
	font-size: 1.5rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}

.cea-pd-section.is-open > .cea-pd-section__header {
	background: var(--cea-pd-blue);
	color: #fff;
	border-radius: 12px 12px 0 0;
}

.cea-pd-section__chevron { flex-shrink: 0; transition: transform .15s ease; }
.cea-pd-section:not(.is-open) .cea-pd-section__chevron { transform: rotate(180deg); }

.cea-pd-section__body {
	display: none;
	padding: 40px 120px;
	background: #fff;
	border: 2px solid var(--cea-pd-blue);
	border-top: none;
	border-radius: 0 0 12px 12px;
}

.cea-pd-section.is-open > .cea-pd-section__body { display: block; }

/* ── Passos (dentro de Fases do Processo) ───────────────── */
.cea-pd-steps {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.cea-pd-step__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}

.cea-pd-step__title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--cea-pd-black);
}

.cea-pd-step__icon { flex-shrink: 0; width: 24px; height: 24px; transition: transform .15s ease; }
.cea-pd-step.is-open .cea-pd-step__icon { transform: rotate(45deg); }

.cea-pd-step + .cea-pd-step { padding-top: 32px; border-top: 1px solid var(--cea-pd-border); }

.cea-pd-step__body {
	display: none;
	margin-top: 24px;
}

.cea-pd-step.is-open .cea-pd-step__body { display: block; }

.cea-pd-step__desc {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--cea-pd-black);
	margin-bottom: 24px;
}

.cea-pd-step__meta {
	font-size: .85rem;
	color: #5A6478;
	margin-bottom: 16px;
}

.cea-pd-step__licenses {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

/* ── Custos / Duração (listas simples) ──────────────────── */
.cea-pd-list { display: flex; flex-direction: column; gap: 16px; }

.cea-pd-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cea-pd-border);
}

.cea-pd-list__row:last-child { border-bottom: none; padding-bottom: 0; }
.cea-pd-list__name { font-weight: 600; }
.cea-pd-list__value { color: #5A6478; font-size: .95rem; white-space: nowrap; }
.cea-pd-empty { color: #5A6478; font-size: .95rem; }

/* ── Códigos HS associados ───────────────────────────────── */
.cea-pd-codigos { margin-top: 48px; }

.cea-pd-codigos h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 24px;
}

.cea-pd-codigos__group {
	background: #fff;
	border-radius: 12px;
	padding: 24px 32px;
	margin-bottom: 16px;
}

.cea-pd-codigos__heading { font-weight: 600; margin-bottom: 12px; }

.cea-pd-codigos__codes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px 24px;
	font-size: .9rem;
	color: #5A6478;
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.cea-pd-head { flex-wrap: wrap; }
	.cea-pd-head h1 { font-size: 1.9rem; }
	.cea-pd-section__body { padding: 24px; }
}
