/* Ledge Cookie Consent — estilos do banner.
   Tudo isolado com o prefixo .lcc- para nunca colidir com o CSS do tema.
   As cores vêm das definições e são aplicadas como custom properties. */

:root {
	--lcc-bg: #ffffff;
	--lcc-text: #1a1a1a;
	--lcc-accent: #1d3d8f;
	--lcc-secondary: #eef0f3;
}

#lcc-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
}

/* ---------- Fundo escurecido (só na posição "modal") ---------- */

#lcc-root.lcc-has-backdrop {
	pointer-events: auto;
	background: rgba(12, 12, 16, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* ---------- Painel principal ---------- */

.lcc-panel {
	pointer-events: auto;
	background: var(--lcc-bg);
	color: var(--lcc-text);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 26px;
	font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
}

/* modal centrado */
.lcc-panel.lcc-pos-modal {
	width: 100%;
	max-width: 460px;
	max-height: 88vh;
	overflow-y: auto;
	animation: lcc-pop 0.25s ease;
}

@keyframes lcc-pop {
	from { transform: scale(0.96); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

/* cartão / barra: posicionamento próprio, fora do fluxo do backdrop */
.lcc-panel.lcc-pos-card-left,
.lcc-panel.lcc-pos-card-right,
.lcc-panel.lcc-pos-bar {
	position: fixed;
	bottom: 20px;
	max-width: 400px;
	width: calc(100% - 40px);
	animation: lcc-rise 0.3s ease;
}

.lcc-panel.lcc-pos-card-left { left: 20px; }
.lcc-panel.lcc-pos-card-right { right: 20px; }

.lcc-panel.lcc-pos-bar {
	left: 0;
	right: 0;
	bottom: 0;
	max-width: none;
	width: 100%;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

@keyframes lcc-rise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.lcc-header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.lcc-title {
	font-weight: 700;
	font-size: 17px;
	margin: 0;
}

.lcc-panel.lcc-pos-modal .lcc-title,
.lcc-panel.lcc-pos-modal > .lcc-links {
	text-align: center;
}

.lcc-panel.lcc-pos-bar .lcc-title {
	font-size: 15px;
}

.lcc-desc {
	margin: 0 0 18px;
	opacity: 0.85;
}

.lcc-panel.lcc-pos-bar .lcc-desc {
	margin-bottom: 0;
}

.lcc-links {
	display: block;
	margin-top: 10px;
}

.lcc-links a {
	color: var(--lcc-accent);
	text-decoration: underline;
	font-weight: 600;
}

.lcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.lcc-btn {
	appearance: none;
	border: none;
	border-radius: 9px;
	padding: 11px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	flex: 1 1 auto;
}

.lcc-btn-accept {
	background: var(--lcc-accent);
	color: #fff;
}

.lcc-btn-reject,
.lcc-btn-customize,
.lcc-btn-save {
	background: var(--lcc-secondary);
	color: var(--lcc-text);
}

.lcc-btn:hover {
	filter: brightness(0.95);
}

.lcc-btn:focus-visible {
	outline: 2px solid var(--lcc-accent);
	outline-offset: 2px;
}

/* ---------- Categorias em acordeão ---------- */

.lcc-categories {
	margin: 18px 0;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.lcc-category {
	border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}

.lcc-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
}

.lcc-category-header strong {
	font-size: 13.5px;
}

.lcc-category-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.lcc-always-on {
	font-size: 12.5px;
	font-weight: 700;
	color: #1a8f4c;
}

.lcc-chevron {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
	opacity: 0.6;
}

.lcc-category[data-expanded="true"] .lcc-chevron {
	transform: rotate(180deg);
}

.lcc-category-desc {
	max-height: 0;
	overflow: hidden;
	opacity: 0.8;
	font-size: 12.5px;
	transition: max-height 0.2s ease, padding 0.2s ease;
}

.lcc-category[data-expanded="true"] .lcc-category-desc {
	max-height: 220px;
	padding-bottom: 12px;
}

/* toggle simples */
.lcc-switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
	flex: 0 0 auto;
}

.lcc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.lcc-switch .lcc-slider {
	position: absolute;
	inset: 0;
	background: rgba(127, 127, 127, 0.4);
	border-radius: 999px;
	transition: 0.2s;
	cursor: pointer;
}

.lcc-switch .lcc-slider::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.lcc-switch input:checked + .lcc-slider {
	background: var(--lcc-accent);
}

.lcc-switch input:checked + .lcc-slider::before {
	transform: translateX(16px);
}

.lcc-switch input:disabled + .lcc-slider {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------- Botão flutuante para reabrir preferências ---------- */

.lcc-floating-btn {
	position: fixed;
	bottom: 16px;
	z-index: 999998;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--lcc-bg, #fff);
	color: var(--lcc-accent, #1a1a1a);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	pointer-events: auto;
	opacity: 0.85;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lcc-floating-btn:hover {
	opacity: 1;
	transform: scale(1.06);
}

.lcc-floating-btn svg {
	width: 16px;
	height: 16px;
}

.lcc-floating-btn.lcc-floating-left { left: 16px; }
.lcc-floating-btn.lcc-floating-right { right: 16px; }

/* ---------- Placeholder de conteúdo bloqueado (iframes) ---------- */

.lcc-embed-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	padding: 24px;
	background: rgba(127, 127, 127, 0.08);
	border: 1px dashed rgba(127, 127, 127, 0.4);
	border-radius: 10px;
	font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	min-height: 120px;
	width: 100%;
	box-sizing: border-box;
}

.lcc-embed-placeholder button {
	appearance: none;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	background: var(--lcc-accent, #1d3d8f);
	color: #fff;
}

@media (max-width: 480px) {
	.lcc-panel.lcc-pos-card-left,
	.lcc-panel.lcc-pos-card-right {
		left: 12px !important;
		right: 12px !important;
		width: calc(100% - 24px);
		bottom: 12px;
	}

	.lcc-panel.lcc-pos-modal {
		max-width: none;
	}

	#lcc-root.lcc-has-backdrop {
		padding: 12px;
	}
}
