/* Listivo Cookie Consent - Frontend Styles */

:root {
	--lcc-bg: #1e2b3c;
	--lcc-text: #ffffff;
	--lcc-accent: #ff5a1f;
}

.lcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background: var(--lcc-bg);
	color: var(--lcc-text);
	box-shadow: 0 -2px 16px rgba(0,0,0,.25);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

.lcc-banner[hidden] { display: none !important; }

.lcc-position-bottom { bottom: 0; }
.lcc-position-top { top: 0; box-shadow: 0 2px 16px rgba(0,0,0,.25); }

.lcc-layout-box.lcc-position-bottom {
	left: 20px;
	right: auto;
	bottom: 20px;
	max-width: 420px;
	border-radius: 12px;
}

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

.lcc-banner-text { flex: 1 1 420px; }

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

.lcc-banner-text p { margin: 0; opacity: .92; }

.lcc-banner-text a {
	color: var(--lcc-text);
	text-decoration: underline;
	white-space: nowrap;
}

.lcc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
}

.lcc-btn {
	cursor: pointer;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border: 2px solid transparent;
	white-space: nowrap;
	transition: opacity .15s ease, transform .05s ease;
}
.lcc-btn:active { transform: scale(.98); }

.lcc-btn-primary {
	background: var(--lcc-accent);
	color: #fff;
}
.lcc-btn-primary:hover { opacity: .9; }

.lcc-btn-outline {
	background: transparent;
	color: var(--lcc-text);
	border-color: currentColor;
	opacity: .85;
}
.lcc-btn-outline:hover { opacity: 1; }

/* Modal */

.lcc-modal { position: fixed; inset: 0; z-index: 1000000; }
.lcc-modal[hidden] { display: none !important; }

.lcc-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}

.lcc-modal-box {
	position: relative;
	max-width: 560px;
	margin: 6vh auto;
	background: #fff;
	color: #1e2b3c;
	border-radius: 14px;
	padding: 28px;
	max-height: 86vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.lcc-modal-box h2 { margin-top: 0; }

.lcc-cat-row {
	padding: 14px 0;
	border-bottom: 1px solid #eaeaea;
}
.lcc-cat-row:last-child { border-bottom: none; }

.lcc-cat-row-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lcc-required-badge {
	margin-left: auto;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #eee;
	color: #555;
	padding: 3px 8px;
	border-radius: 999px;
}

.lcc-cat-description {
	margin: 6px 0 0;
	font-size: 13px;
	color: #555;
}

.lcc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
}
.lcc-switch input { opacity: 0; width: 0; height: 0; }
.lcc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #ccc;
	border-radius: 999px;
	transition: .15s;
}
.lcc-slider:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: .15s;
}
.lcc-switch input:checked + .lcc-slider { background-color: var(--lcc-accent); }
.lcc-switch input:checked + .lcc-slider:before { transform: translateX(18px); }
.lcc-switch input:disabled + .lcc-slider { opacity: .6; cursor: not-allowed; }

.lcc-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}
.lcc-modal-actions .lcc-btn-outline { color: #1e2b3c; }

.lcc-reopen-settings {
	background: none;
	border: none;
	padding: 0;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

@media (max-width: 640px) {
	.lcc-banner-inner { flex-direction: column; align-items: stretch; }
	.lcc-banner-actions { flex-direction: column; }
	.lcc-btn { width: 100%; text-align: center; }
}
