/**
 * Cookie CMP front-end — totalmente encapsulado, independente do tema e do Elementor.
 */
#cmp-root {
	all: initial;
	display: block;
	font-family: var(--cmp-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
#cmp-root *,
#cmp-root *::before,
#cmp-root *::after {
	box-sizing: border-box;
	font-family: inherit;
}
#cmp-root .cmp-overlay {
	position: fixed;
	inset: 0;
	background: var(--cmp-overlay);
	z-index: var(--cmp-z-overlay);
}
/* Modal de preferências (centro da tela) */
#cmp-root .cmp-modal__dialog {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(720px, calc(100vw - 32px));
	background: var(--cmp-surface);
	color: var(--cmp-text);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	z-index: var(--cmp-z-banner);
	padding: 24px;
	border: 1px solid var(--cmp-border);
}
/* Banner — cartão inferior esquerdo (pegada tipo AdOpt / goadopt.io) */
#cmp-root .cmp-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	right: auto;
	top: auto;
	transform: none;
	width: min(432px, calc(100vw - 40px));
	max-width: 100%;
	background: var(--cmp-surface);
	color: var(--cmp-text);
	border-radius: 18px;
	box-shadow:
		0 10px 40px rgba(15, 23, 42, 0.12),
		0 2px 10px rgba(15, 23, 42, 0.06);
	z-index: var(--cmp-z-banner);
	padding: 22px 22px 18px;
	border: 1px solid rgba(15, 23, 42, 0.06);
}
#cmp-root .cmp-banner__header,
#cmp-root .cmp-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}
#cmp-root .cmp-banner__logo {
	flex-shrink: 0;
	display: block;
}
#cmp-root .cmp-banner__title,
#cmp-root .cmp-modal__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--cmp-text);
	flex: 1;
	min-width: 0;
}
#cmp-root .cmp-banner__text,
#cmp-root .cmp-modal__intro {
	margin: 0 0 12px;
	color: var(--cmp-muted);
	line-height: 1.55;
	font-size: 0.9375rem;
}
#cmp-root .cmp-banner__links {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.45;
}
#cmp-root .cmp-banner__link {
	color: var(--cmp-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
}
#cmp-root .cmp-banner__link:hover {
	opacity: 0.88;
}
#cmp-root .cmp-banner__actions,
#cmp-root .cmp-modal__actions,
#cmp-root .cmp-content-blocker__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
#cmp-root .cmp-banner__actions {
	justify-content: flex-end;
	gap: 12px;
}
#cmp-root .cmp-modal__toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 12px;
}
#cmp-root .cmp-btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 12px 18px;
	text-align: center;
	transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	line-height: 1.2;
}
#cmp-root .cmp-btn:hover {
	opacity: 0.92;
}
#cmp-root .cmp-btn--primary {
	background: var(--cmp-primary);
	color: var(--cmp-primary-text);
	min-width: 7.25rem;
}
#cmp-root .cmp-btn--secondary {
	background: var(--cmp-secondary);
	color: var(--cmp-secondary-text);
}
#cmp-root .cmp-btn--ghost {
	background: var(--cmp-surface);
	border: 1px solid var(--cmp-ghost-border);
	color: var(--cmp-text);
	min-width: 7.25rem;
}
/* Texto tipo «Customizar» (AdOpt) */
#cmp-root .cmp-btn--link {
	background: transparent;
	border: 0;
	color: var(--cmp-accent);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 10px 8px;
	margin-right: auto;
	box-shadow: none;
	min-width: 0;
}
#cmp-root .cmp-btn--link:hover {
	opacity: 0.88;
	text-decoration-thickness: 1px;
}
#cmp-root .cmp-btn--small {
	padding: 8px 12px;
	font-size: 0.875rem;
	border-radius: 6px;
}
#cmp-root .cmp-modal__close {
	background: transparent;
	border: 0;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--cmp-muted);
	padding: 0;
}
#cmp-root .cmp-category-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	max-height: 280px;
	overflow: auto;
	border: 1px solid var(--cmp-border);
	border-radius: 8px;
}
#cmp-root .cmp-category {
	padding: 14px 16px;
	border-bottom: 1px solid var(--cmp-border);
}
#cmp-root .cmp-category:last-child {
	border-bottom: 0;
}
#cmp-root .cmp-category__label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: var(--cmp-text);
}
#cmp-root .cmp-category__name {
	font-weight: 700;
}
#cmp-root .cmp-category__description {
	margin: 6px 0 0 28px;
	color: var(--cmp-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}
#cmp-root .cmp-content-blocker {
	min-height: var(--cmp-blocker-min-height, 200px);
	background: var(--cmp-blocker-bg);
	border: 1px solid var(--cmp-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	margin: 1em 0;
}
#cmp-root .cmp-content-blocker__inner {
	max-width: 520px;
	text-align: center;
}
#cmp-root .cmp-content-blocker__title {
	display: block;
	margin-bottom: 8px;
	font-size: 1.1rem;
	color: var(--cmp-text);
}
#cmp-root .cmp-content-blocker__description {
	margin: 0 0 16px;
	color: var(--cmp-muted);
	line-height: 1.5;
}
/* FAB ~60×60px (pegada WhatsApp) */
#cmp-root .cmp-widget {
	position: fixed;
	bottom: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	background: var(--cmp-widget-bg);
	box-shadow:
		0 6px 28px rgba(15, 23, 42, 0.22),
		0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: var(--cmp-z-widget);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#cmp-root .cmp-widget:hover {
	transform: scale(1.04);
	box-shadow:
		0 8px 34px rgba(15, 23, 42, 0.26),
		0 4px 12px rgba(0, 0, 0, 0.12);
}
#cmp-root .cmp-widget--bottom-left {
	left: 20px;
	right: auto;
}
#cmp-root .cmp-widget--bottom-right {
	right: 20px;
	left: auto;
}
#cmp-root .cmp-widget__icon-img {
	display: block;
	width: 30px;
	height: 30px;
}
#cmp-root .cmp-open-preferences {
	cursor: pointer;
	text-decoration: underline;
	color: var(--cmp-accent);
}
@media (max-width: 640px) {
	#cmp-root .cmp-banner {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
	}
	#cmp-root .cmp-banner__header {
		flex-direction: row;
		align-items: flex-start;
	}
	#cmp-root .cmp-banner__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	#cmp-root .cmp-banner .cmp-btn--link {
		margin-right: 0;
		align-self: center;
		padding: 12px;
		width: auto;
	}
	#cmp-root .cmp-banner .cmp-btn--ghost,
	#cmp-root .cmp-banner .cmp-btn--primary {
		min-width: 0;
		width: 100%;
	}
	#cmp-root .cmp-modal__actions {
		flex-direction: column;
	}
	#cmp-root .cmp-modal__actions .cmp-btn {
		width: 100%;
	}
}
