/* Barra discreta de consentimento LGPD na base da tela + modal sob demanda. */
.ucb-bar[hidden],
.ucm-backdrop[hidden] {
	display: none !important;
}

.ucb-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: rgba(18, 18, 22, 0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
	color: #f3f2f6;
	padding: 14px 20px;
	font-family: inherit;
}

.ucb-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ucb-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.ucb-title {
	margin: 0 0 3px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
}

.ucb-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #d4d1dc;
}

.ucb-link {
	color: #ff9c45;
	text-decoration: underline;
	margin-left: 4px;
	white-space: nowrap;
}

.ucb-link:hover {
	color: #ffb875;
}

.ucb-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

.ucb-btn {
	appearance: none;
	border-radius: 8px;
	padding: 9px 15px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.ucb-btn-primary {
	background: #f58120;
	border: 1px solid #f58120;
	color: #16110b;
}

.ucb-btn-primary:hover {
	background: #ff943b;
	border-color: #ff943b;
}

.ucb-btn-outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.32);
	color: #ffffff;
}

.ucb-btn-outline:hover {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.55);
}

.ucb-btn-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #d4d1dc;
}

.ucb-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.ucb-btn:focus-visible,
.ucm-close:focus-visible {
	outline: 2px solid #ff9c45;
	outline-offset: 2px;
}

/* Modal de preferências (só aparece ao clicar em "Escolher") */
.ucm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99995;
	background: rgba(8, 8, 12, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ucm-dialog {
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	background: #17171c;
	color: #f3f2f6;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.ucm-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.ucm-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.ucm-subtitle {
	margin: 0;
	font-size: 13px;
	color: #c6c2d0;
}

.ucm-close {
	background: transparent;
	border: 0;
	color: #c6c2d0;
	font-size: 26px;
	line-height: 1;
	padding: 2px 6px;
	cursor: pointer;
	border-radius: 6px;
}

.ucm-close:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.ucm-body {
	padding: 14px 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ucm-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.ucm-item-info strong {
	display: block;
	font-size: 14px;
	color: #ffffff;
	margin-bottom: 2px;
}

.ucm-item-info label {
	cursor: pointer;
	margin: 0;
}

.ucm-item-info p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: #c6c2d0;
}

/* Toggle switch */
.ucm-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin: 0;
}

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

.ucm-slider {
	position: absolute;
	inset: 0;
	background: #464653;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ucm-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.ucm-switch input:checked + .ucm-slider {
	background: #f58120;
}

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

.ucm-switch-locked .ucm-slider {
	opacity: 0.65;
	cursor: not-allowed;
}

.ucm-footer {
	padding: 14px 20px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.ucm-policy {
	font-size: 12.5px;
	color: #ff9c45;
	text-decoration: underline;
}

.ucm-footer-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 768px) {
	.ucb-bar {
		padding: 12px 14px;
	}
	.ucb-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.ucb-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ucb-btn {
		text-align: center;
		padding: 9px 8px;
		font-size: 12.5px;
	}
	.ucm-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.ucm-footer-actions {
		display: grid;
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ucb-btn,
	.ucm-slider,
	.ucm-slider::before {
		transition: none;
	}
}
