/* Yoga Leve — Consent Bridge (banner LGPD mínimo) */

.yl-consent {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 2147483000; /* acima de overlays do tema */
	width: calc(100% - 32px);
	max-width: 720px;
	box-sizing: border-box;
	background: #ffffff;
	color: #1a1a1a;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.yl-consent[hidden] {
	display: none;
}

.yl-consent__body {
	padding: 16px 18px;
}

.yl-consent__text {
	margin: 0 0 12px;
}

.yl-consent__link {
	color: #6b4eff;
	text-decoration: underline;
}

.yl-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.yl-consent__btn {
	appearance: none;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

/* "Recusar": cinza sólido, mesmo tamanho do "Aceitar" (igual em cliques/posição
   — só muda a cor; recusar tão fácil quanto aceitar, requisito LGPD). */
.yl-consent__btn--neutral {
	background: #e9e9e9;
	color: #1a1a1a;
}
.yl-consent__btn--neutral:hover {
	background: #dedede;
}

.yl-consent__btn--primary {
	background: #6b4eff;
	border-color: #6b4eff;
	color: #ffffff;
}
.yl-consent__btn--primary:hover {
	background: #5a3ee6;
}

.yl-consent__btn:focus-visible {
	outline: 2px solid #6b4eff;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.yl-consent {
		bottom: 0;
		width: 100%;
		border-radius: 12px 12px 0 0;
	}

	.yl-consent__actions {
		justify-content: stretch;
	}

	.yl-consent__btn {
		flex: 1 1 auto;
	}
}

@media (prefers-color-scheme: dark) {
	.yl-consent {
		background: #1d1d22;
		color: #f1f1f3;
		border-color: #34343c;
	}

	.yl-consent__btn--neutral {
		background: #34343c;
		color: #f1f1f3;
	}
	.yl-consent__btn--neutral:hover {
		background: #3f3f49;
	}
}
