/* LGPD Cookie Consent */
.lgpdcc, .lgpdcc-modal, .lgpdcc-float, .lgpdcc-ph {
	--lgpdcc-bg: #ffffff;
	--lgpdcc-text: #1f2937;
	--lgpdcc-muted: #4b5563;
	--lgpdcc-border: #e5e7eb;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--lgpdcc-text);
}
.lgpdcc *, .lgpdcc-modal *, .lgpdcc-ph * { box-sizing: border-box; }
.lgpdcc[hidden], .lgpdcc-modal[hidden], .lgpdcc-float[hidden] { display: none !important; }

/* Banner */
.lgpdcc {
	position: fixed;
	z-index: 2147483000;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px;
	pointer-events: none;
}
.lgpdcc-banner {
	pointer-events: auto;
	background: var(--lgpdcc-bg);
	border: 1px solid var(--lgpdcc-border);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
	padding: 20px 22px;
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "title actions" "desc actions";
	column-gap: 24px;
	align-items: center;
}
.lgpdcc--bottom .lgpdcc-title { grid-area: title; }
.lgpdcc--bottom .lgpdcc-desc { grid-area: desc; }
.lgpdcc--bottom .lgpdcc-actions { grid-area: actions; }
.lgpdcc--box-left, .lgpdcc--box-right { right: auto; max-width: 420px; }
.lgpdcc--box-right { right: 0; left: auto; }
.lgpdcc--box-left .lgpdcc-banner, .lgpdcc--box-right .lgpdcc-banner { display: block; }

.lgpdcc-title {
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 6px;
	color: var(--lgpdcc-text);
}
.lgpdcc-desc {
	margin: 0;
	color: var(--lgpdcc-muted);
	font-size: 14px;
}
.lgpdcc-desc a, .lgpdcc-policy {
	color: var(--lgpdcc-color, #0b5ed7);
	text-decoration: underline;
}

.lgpdcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.lgpdcc--bottom .lgpdcc-actions { margin-top: 0; flex-wrap: nowrap; }

.lgpdcc-btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 18px;
	margin: 0;
	border-radius: 8px;
	border: 2px solid var(--lgpdcc-color, #0b5ed7);
	background: var(--lgpdcc-color, #0b5ed7);
	color: #fff;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	transition: filter .15s ease;
}
.lgpdcc-btn:hover { filter: brightness(.92); }
.lgpdcc-btn--ghost {
	background: transparent;
	color: var(--lgpdcc-color, #0b5ed7);
}
.lgpdcc-btn:focus-visible, .lgpdcc-close:focus-visible, .lgpdcc-float:focus-visible, .lgpdcc-switch:focus-visible {
	outline: 3px solid var(--lgpdcc-color, #0b5ed7);
	outline-offset: 2px;
}

/* Modal */
html.lgpdcc-lock { overflow: hidden; }
.lgpdcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(17, 24, 39, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.lgpdcc-modal-box {
	background: var(--lgpdcc-bg);
	border-radius: 12px;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	outline: none;
}
.lgpdcc-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px 6px;
}
.lgpdcc-modal-head .lgpdcc-title { margin: 0; }
.lgpdcc-close {
	appearance: none;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--lgpdcc-muted);
	padding: 4px 8px;
}
.lgpdcc-modal-body {
	padding: 6px 22px 10px;
	overflow-y: auto;
}
.lgpdcc-modal .lgpdcc-actions {
	padding: 14px 22px 20px;
	margin: 0;
	border-top: 1px solid var(--lgpdcc-border);
}
.lgpdcc-modal .lgpdcc-actions .lgpdcc-btn { flex: 1 1 auto; }

.lgpdcc-cat {
	border: 1px solid var(--lgpdcc-border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 12px;
}
.lgpdcc-cat-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}
.lgpdcc-cat-label { font-weight: 600; }
.lgpdcc-cat-desc {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--lgpdcc-muted);
}
.lgpdcc-always {
	font-size: 12px;
	font-weight: 600;
	color: var(--lgpdcc-muted);
}

/* Interruptor */
.lgpdcc-switch {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 42px;
	height: 24px;
	margin: 0;
	border-radius: 999px;
	background: #cbd5e1;
	position: relative;
	cursor: pointer;
	transition: background .15s ease;
	border: 0;
}
.lgpdcc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .15s ease;
}
.lgpdcc-switch:checked { background: var(--lgpdcc-color, #0b5ed7); }
.lgpdcc-switch:checked::after { transform: translateX(18px); }

/* Botão flutuante */
.lgpdcc-float {
	position: fixed;
	z-index: 2147482999;
	left: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--lgpdcc-border);
	background: var(--lgpdcc-bg);
	color: var(--lgpdcc-color, #0b5ed7);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: .85;
}
.lgpdcc-float:hover { opacity: 1; }

/* Placeholder de vídeo */
.lgpdcc-ph {
	width: 100%;
	background: #111827;
	color: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	border-radius: 6px;
	min-height: 180px;
}
.lgpdcc-ph--fill {
	position: absolute;
	inset: 0;
	min-height: 0;
	border-radius: 0;
}
.lgpdcc-ph-inner { max-width: 460px; }
.lgpdcc-ph p { margin: 0 0 14px; font-size: 14px; color: #e5e7eb; }
.lgpdcc-ph-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lgpdcc-ph .lgpdcc-btn--ghost { color: #fff; border-color: #fff; }
.lgpdcc-ph-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #e5e7eb; text-decoration: underline; }
.lgpdcc-ph-link:hover { color: #fff; }

/* Tabela de cookies (shortcode) */
.lgpdcc-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lgpdcc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lgpdcc-table th, .lgpdcc-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: top; }
.lgpdcc-table th { background: #f9fafb; }

/* Celular */
@media (max-width: 782px) {
	.lgpdcc { padding: 10px; }
	.lgpdcc--box-left, .lgpdcc--box-right { max-width: none; left: 0; right: 0; }
	.lgpdcc-banner { display: block; padding: 16px; }
	.lgpdcc--bottom .lgpdcc-actions { margin-top: 12px; flex-wrap: wrap; }
	.lgpdcc-actions .lgpdcc-btn { flex: 1 1 100%; }
	.lgpdcc-ph { min-height: 200px; }
}
