/* LightVibes Consent — banner + preferences + placeholders */

#lvc-root {
	--lvc-bg: #FBFAFD;
	--lvc-text: #2A2438;
	--lvc-accent: #C42B7C;
	--lvc-accent-text: #FFFFFF;
	--lvc-radius: 14px;
	--lvc-shadow: 0 10px 40px rgba(36, 31, 49, 0.22);
	--lvc-border: rgba(42, 36, 56, 0.12);
	font-family: inherit;
}

/* ---------- banner ---------- */

.lvc-banner {
	position: fixed;
	z-index: 99999;
	max-width: 420px;
	width: calc(100% - 32px);
	box-sizing: border-box;
	background: var(--lvc-bg);
	color: var(--lvc-text);
	border: 1px solid var(--lvc-border);
	border-radius: var(--lvc-radius);
	box-shadow: var(--lvc-shadow);
	padding: 20px 22px;
	line-height: 1.5;
	font-size: 14px;
}

.lvc-pos-bottom-left {
	left: 16px;
	bottom: 16px;
}

.lvc-pos-bottom-right {
	right: 16px;
	bottom: 16px;
}

.lvc-pos-bottom-center {
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
}

.lvc-layout-bar {
	max-width: none;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	transform: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.lvc-layout-bar .lvc-text {
	flex: 1 1 320px;
	margin: 0;
}

.lvc-layout-bar .lvc-title {
	flex: 1 1 100%;
}

.lvc-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--lvc-text);
}

.lvc-text {
	margin: 0 0 16px;
	color: var(--lvc-text);
}

.lvc-privacy {
	color: var(--lvc-accent);
	text-decoration: underline;
}

/* ---------- actions / buttons ---------- */

.lvc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.lvc-btn {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 10px;
	padding: 10px 16px;
	border: 1px solid transparent;
	transition: filter 0.15s ease, background 0.15s ease;
	line-height: 1.2;
}

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

.lvc-btn-primary {
	background: var(--lvc-accent);
	color: var(--lvc-accent-text);
}

.lvc-btn-primary:hover {
	filter: brightness(1.07);
}

.lvc-btn-ghost {
	background: transparent;
	color: var(--lvc-text);
	border-color: var(--lvc-border);
}

.lvc-btn-ghost:hover {
	background: rgba(42, 36, 56, 0.06);
}

.lvc-btn-link {
	background: transparent;
	color: var(--lvc-text);
	border: none;
	text-decoration: underline;
	padding: 10px 8px;
	margin-right: auto;
}

/* reopen link produced by the shortcode */
.lvc-reopen {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- preferences modal ---------- */

.lvc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(36, 31, 49, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.lvc-modal {
	position: relative;
	background: var(--lvc-bg);
	color: var(--lvc-text);
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	border-radius: var(--lvc-radius);
	box-shadow: var(--lvc-shadow);
	padding: 24px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.5;
}

.lvc-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	color: var(--lvc-text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	opacity: 0.7;
}

.lvc-close:hover {
	opacity: 1;
	background: rgba(42, 36, 56, 0.06);
}

.lvc-close:focus-visible {
	outline: 3px solid var(--lvc-accent);
	outline-offset: 2px;
}

.lvc-cats {
	margin: 8px 0 20px;
}

.lvc-cat {
	border: 1px solid var(--lvc-border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.lvc-cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	cursor: pointer;
}

.lvc-cat-input {
	width: 18px;
	height: 18px;
	accent-color: var(--lvc-accent);
	cursor: pointer;
}

.lvc-cat-input:disabled {
	cursor: default;
}

.lvc-cat-name {
	font-size: 15px;
}

.lvc-cat-desc {
	margin: 6px 0 0 28px;
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- blocked-content placeholders ---------- */

.lvc-placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 180px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
	background: rgba(42, 36, 56, 0.05);
	border: 1px dashed var(--lvc-border, rgba(42, 36, 56, 0.2));
	border-radius: 12px;
	color: #2A2438;
	font-size: 14px;
	line-height: 1.5;
}

.lvc-placeholder-title {
	font-weight: 700;
}

.lvc-placeholder .lvc-btn-primary {
	background: var(--lvc-accent, #C42B7C);
	color: var(--lvc-accent-text, #fff);
}

.lvc-placeholder a[data-lvc-open] {
	color: var(--lvc-accent, #C42B7C);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
	.lvc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: calc(100% - 16px);
		max-width: none;
		transform: none;
	}

	.lvc-pos-bottom-center {
		left: 8px;
	}

	.lvc-actions {
		justify-content: stretch;
	}

	.lvc-btn-primary,
	.lvc-btn-ghost {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lvc-btn {
		transition: none;
	}
}

/* ---------- generated legal texts ---------- */

.lvc-legal {
	line-height: 1.6;
}

.lvc-legal h4 {
	margin: 1em 0 0.25em;
}

.lvc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
	font-size: 0.95em;
}

.lvc-cookie-table th,
.lvc-cookie-table td {
	border: 1px solid rgba(42, 36, 56, 0.18);
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.lvc-cookie-table th {
	background: rgba(42, 36, 56, 0.05);
}
