/* ==========================================================================
   Lebens Cookie Consent (inc/cookie-consent.php, assets/js/cookie-consent.js)
   ========================================================================== */

.lcc {
	--lcc-orange: #E8532E;
	--lcc-orange-hover: #C7491B;
	--lcc-orange-tint: #FDEEE9;
	--lcc-ink: #0A1628;
	--lcc-text: #4A5160;
	--lcc-steel: #5C6374;
	--lcc-line: #E4E7EB;
	--lcc-soft: #F5F6F7;
	--lcc-ok: #1E7B45;
	--lcc-ok-tint: #E7F5EC;
	--lcc-ring: 0 0 0 3px rgba(232, 83, 46, .28);
	--lcc-ease: cubic-bezier(.22, .61, .36, 1);
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--lcc-text);
	-webkit-font-smoothing: antialiased;
}
.lcc *, .lcc *::before, .lcc *::after { box-sizing: border-box; }
.lcc [hidden] { display: none !important; }
.lcc h2, .lcc h3, .lcc p { margin: 0; padding: 0; }
.lcc svg { display: block; width: 100%; height: 100%; }
.lcc .lcc-ico-base { fill: var(--lcc-orange); }
.lcc .lcc-ico-chip { fill: #fff; }

html.lcc-lock, html.lcc-lock body { overflow: hidden; }

/* ---------- Buttons ---------- */
.lcc-btn {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 22px; margin: 0;
	border: 1.5px solid transparent; border-radius: 90px;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
	text-align: center; white-space: nowrap; cursor: pointer;
	transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.lcc-btn:focus { outline: none; }
.lcc-btn:focus-visible { box-shadow: var(--lcc-ring); }
.lcc-btn:active { transform: translateY(1px); }

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

.lcc-btn--secondary { background: var(--lcc-ink); color: #fff; }
.lcc-btn--secondary:hover { background: #1C2A40; }

.lcc-btn--outline { background: #fff; color: var(--lcc-ink); border-color: #CBD0D7; }
.lcc-btn--outline:hover { border-color: var(--lcc-ink); }

.lcc-btn--text {
	background: transparent; color: var(--lcc-steel);
	padding: 0 6px; min-height: 46px;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.lcc-btn--text:hover { color: var(--lcc-orange); }

.lcc-link {
	color: var(--lcc-ink); font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
	white-space: nowrap;
}
.lcc-link:hover { color: var(--lcc-orange); }
.lcc-link:focus-visible { outline: none; box-shadow: var(--lcc-ring); border-radius: 4px; }

/* ---------- Banner ---------- */
.lcc-banner {
	position: fixed; z-index: 100000;
	left: 24px; bottom: 24px;
	width: min(480px, calc(100vw - 48px));
	display: grid;
	grid-template-columns: 52px 1fr;
	grid-template-areas: "icon body" "actions actions";
	gap: 16px 18px;
	padding: 26px 26px 22px;
	background: #fff;
	border: 1px solid rgba(10, 22, 40, .06);
	border-radius: 22px;
	box-shadow: 0 30px 70px -18px rgba(10, 22, 40, .32), 0 4px 14px rgba(10, 22, 40, .06);
	opacity: 0;
	transform: translateY(28px) scale(.98);
	transition: opacity .32s var(--lcc-ease), transform .32s var(--lcc-ease);
}
.lcc-banner.is-visible { opacity: 1; transform: none; }

.lcc-banner__icon {
	grid-area: icon;
	width: 52px; height: 52px; padding: 11px;
	border-radius: 16px; background: var(--lcc-orange-tint);
}
.lcc-banner__body { grid-area: body; min-width: 0; }
.lcc-banner__title {
	font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--lcc-ink);
	margin-bottom: 8px !important; letter-spacing: -.01em;
}
.lcc-banner__text { font-size: 14px; line-height: 1.6; }

.lcc-banner__actions {
	grid-area: actions;
	display: flex; align-items: center; gap: 10px;
	padding-top: 4px;
}
.lcc-banner__actions .lcc-btn--text { margin-right: auto; }
.lcc-banner__actions .lcc-btn--secondary,
.lcc-banner__actions .lcc-btn--primary { flex: 1 1 0; }

@media (min-width: 1201px) {
	/* keep clear of the fixed 80px side navigation */
	.lcc-banner { left: 104px; }
}

@media (max-width: 600px) {
	.lcc-banner {
		left: 10px; right: 10px; bottom: 10px; width: auto;
		grid-template-columns: 44px 1fr;
		gap: 14px;
		padding: 22px 18px 16px;
		border-radius: 20px;
	}
	.lcc-banner__icon { width: 44px; height: 44px; padding: 9px; border-radius: 14px; }
	.lcc-banner__title { font-size: 17px; margin-bottom: 6px !important; }
	.lcc-banner__text { font-size: 13.5px; line-height: 1.55; }
	.lcc-banner__actions { flex-wrap: wrap; gap: 8px; }
	.lcc-banner__actions .lcc-btn--secondary,
	.lcc-banner__actions .lcc-btn--primary { order: 1; min-height: 48px; }
	.lcc-banner__actions .lcc-btn--text { order: 2; flex: 1 0 100%; margin: 0; min-height: 36px; }
}

/* ---------- Settings dialog ---------- */
.lcc-modal {
	position: fixed; inset: 0; z-index: 100001;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
}
.lcc-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(10, 22, 40, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .26s var(--lcc-ease);
}
.lcc-modal__dialog {
	position: relative;
	width: min(660px, 100%);
	max-height: min(88vh, 780px);
	display: flex; flex-direction: column;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 40px 90px -20px rgba(10, 22, 40, .45);
	opacity: 0; transform: translateY(18px) scale(.98);
	transition: opacity .26s var(--lcc-ease), transform .26s var(--lcc-ease);
	outline: none;
}
.lcc-modal.is-open .lcc-modal__backdrop { opacity: 1; }
.lcc-modal.is-open .lcc-modal__dialog { opacity: 1; transform: none; }

.lcc-modal__head {
	display: flex; align-items: center; gap: 14px;
	padding: 22px 24px 18px 28px;
	border-bottom: 1px solid var(--lcc-line);
}
.lcc-modal__icon {
	flex: none; width: 42px; height: 42px; padding: 9px;
	border-radius: 13px; background: var(--lcc-orange-tint);
}
.lcc-modal__title {
	flex: 1; font-size: 21px; font-weight: 800; line-height: 1.25;
	color: var(--lcc-ink); letter-spacing: -.01em;
}
.lcc-modal__close {
	-webkit-appearance: none; appearance: none;
	flex: none; width: 40px; height: 40px; padding: 10px; margin: 0;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
	transition: background-color .18s;
}
.lcc-modal__close svg { fill: none; stroke: var(--lcc-ink); stroke-width: 2; stroke-linecap: round; }
.lcc-modal__close:hover { background: var(--lcc-soft); }
.lcc-modal__close:focus { outline: none; }
.lcc-modal__close:focus-visible { box-shadow: var(--lcc-ring); }

.lcc-modal__body {
	flex: 1 1 auto; min-height: 0;
	overflow-y: auto; overscroll-behavior: contain;
	padding: 20px 28px 24px;
}
.lcc-modal__intro { font-size: 14.5px; line-height: 1.6; margin-bottom: 18px !important; }

/* Category card */
.lcc-cat {
	border: 1px solid var(--lcc-line);
	border-radius: 16px;
	transition: border-color .18s, background-color .18s;
}
.lcc-cat + .lcc-cat { margin-top: 12px; }
.lcc-cat:has(input:checked) { border-color: rgba(232, 83, 46, .45); background: #FFFBF9; }

.lcc-cat__head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
	padding: 18px 20px 6px;
}
.lcc-cat__title { font-size: 16px; font-weight: 700; color: var(--lcc-ink); margin-bottom: 5px !important; }
.lcc-cat__desc { font-size: 13.5px; line-height: 1.55; color: var(--lcc-steel); }

.lcc-badge {
	flex: none; margin-top: 2px;
	padding: 5px 11px; border-radius: 90px;
	font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
	color: var(--lcc-ok); background: var(--lcc-ok-tint);
}

/* Toggle switch */
.lcc-switch { position: relative; flex: none; display: inline-block; margin-top: 2px; cursor: pointer; }
.lcc-switch input {
	position: absolute; inset: 0; width: 100%; height: 100%;
	margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.lcc-switch__track {
	display: block; width: 50px; height: 30px; border-radius: 30px;
	background: #CDD2D9;
	transition: background-color .2s var(--lcc-ease), box-shadow .2s;
}
.lcc-switch__thumb {
	position: absolute; top: 3px; left: 3px;
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; box-shadow: 0 2px 5px rgba(10, 22, 40, .25);
	transition: transform .2s var(--lcc-ease);
}
.lcc-switch__thumb::after {
	content: ""; position: absolute; left: 8px; top: 6px;
	width: 5px; height: 9px;
	border: solid var(--lcc-orange); border-width: 0 2px 2px 0;
	transform: rotate(45deg); opacity: 0; transition: opacity .2s;
}
.lcc-switch input:checked + .lcc-switch__track { background: var(--lcc-orange); }
.lcc-switch input:checked + .lcc-switch__track .lcc-switch__thumb { transform: translateX(20px); }
.lcc-switch input:checked + .lcc-switch__track .lcc-switch__thumb::after { opacity: 1; }
.lcc-switch input:focus-visible + .lcc-switch__track { box-shadow: var(--lcc-ring); }
.lcc-switch:hover input:not(:checked) + .lcc-switch__track { background: #BAC0C9; }

/* Cookie list */
.lcc-cat__details { padding: 0 20px 14px; }
.lcc-cat__details summary {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 0; list-style: none; cursor: pointer;
	font-size: 13px; font-weight: 700; color: var(--lcc-steel);
	border-radius: 6px;
}
.lcc-cat__details summary::-webkit-details-marker { display: none; }
.lcc-cat__details summary::before {
	content: ""; width: 7px; height: 7px;
	border: solid currentColor; border-width: 0 1.8px 1.8px 0;
	transform: rotate(-45deg); transition: transform .2s;
	margin: 0 2px 0 1px;
}
.lcc-cat__details[open] summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.lcc-cat__details summary:hover { color: var(--lcc-ink); }
.lcc-cat__details summary:focus { outline: none; }
.lcc-cat__details summary:focus-visible { box-shadow: var(--lcc-ring); }
.lcc-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
	font-size: 11px; background: var(--lcc-soft); color: var(--lcc-steel);
}

.lcc-table-wrap { margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--lcc-line); }
.lcc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; background: #fff; }
.lcc-table th, .lcc-table td { padding: 9px 12px; text-align: left; vertical-align: top; border: 0; }
.lcc-table th {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	color: var(--lcc-steel); background: var(--lcc-soft);
}
.lcc-table tbody tr + tr td { border-top: 1px solid var(--lcc-line); }
.lcc-table code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px; color: var(--lcc-ink); word-break: break-all;
}

.lcc-modal__foot {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
	padding: 18px 28px 22px;
	border-top: 1px solid var(--lcc-line);
}
.lcc-modal__foot .lcc-btn { padding: 0 14px; }

@media (max-width: 600px) {
	.lcc-modal { padding: 0; align-items: flex-end; }
	.lcc-modal__dialog {
		width: 100%; max-height: 92vh; max-height: 92dvh;
		border-radius: 24px 24px 0 0;
		transform: translateY(40px);
	}
	.lcc-modal__dialog::before {
		content: ""; position: absolute; top: 8px; left: 50%;
		width: 40px; height: 4px; margin-left: -20px;
		border-radius: 4px; background: #D5D9DF;
	}
	.lcc-modal__head { padding: 22px 16px 14px 20px; }
	.lcc-modal__title { font-size: 19px; }
	.lcc-modal__body { padding: 16px 16px 20px; }
	.lcc-cat__head { padding: 16px 16px 4px; gap: 14px; }
	.lcc-cat__details { padding: 0 16px 12px; }
	.lcc-modal__foot {
		grid-template-columns: 1fr 1fr;
		padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
	}
	.lcc-modal__foot .lcc-btn--primary { grid-column: 1 / -1; order: -1; }

	/* stacked cookie table */
	.lcc-table thead { display: none; }
	.lcc-table tr { display: block; padding: 8px 0; }
	.lcc-table tbody tr + tr { border-top: 1px solid var(--lcc-line); }
	.lcc-table tbody tr + tr td { border-top: 0; }
	.lcc-table td { display: flex; gap: 10px; padding: 3px 12px; }
	.lcc-table td::before {
		content: attr(data-th); flex: 0 0 88px;
		font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
		color: var(--lcc-steel); padding-top: 1px;
	}
}

/* ---------- Floating re-open button ---------- */
.lcc-fab {
	-webkit-appearance: none; appearance: none;
	position: fixed; z-index: 9990; left: 20px; bottom: 20px;
	width: 48px; height: 48px; padding: 11px; margin: 0;
	border: 1px solid rgba(10, 22, 40, .08); border-radius: 50%;
	background: #fff; cursor: pointer;
	box-shadow: 0 10px 28px -8px rgba(10, 22, 40, .35);
	transition: transform .25s var(--lcc-ease), box-shadow .25s;
	animation: lcc-pop .35s var(--lcc-ease) both;
}
.lcc-fab:hover { transform: rotate(-14deg) scale(1.06); box-shadow: 0 14px 32px -8px rgba(10, 22, 40, .4); }
.lcc-fab:focus { outline: none; }
.lcc-fab:focus-visible { box-shadow: var(--lcc-ring), 0 10px 28px -8px rgba(10, 22, 40, .35); }
@media (min-width: 1201px) { .lcc-fab { left: 100px; } }
@media (max-width: 600px) { .lcc-fab { left: 12px; bottom: 12px; width: 42px; height: 42px; padding: 9px; } }

@keyframes lcc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.lcc-toast {
	position: fixed; z-index: 100002; left: 50%; bottom: 28px;
	transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
	transition: opacity .25s var(--lcc-ease), transform .25s var(--lcc-ease);
}
.lcc-toast span {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 20px 12px 16px; border-radius: 90px;
	background: var(--lcc-ink); color: #fff;
	font-size: 14px; font-weight: 600; white-space: nowrap;
	box-shadow: 0 14px 34px -10px rgba(10, 22, 40, .5);
}
.lcc-toast span::before {
	content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
	background: #2FA866 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.lcc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	.lcc-banner, .lcc-modal__dialog, .lcc-modal__backdrop, .lcc-toast, .lcc-fab, .lcc-switch__thumb {
		transition: none !important; animation: none !important;
	}
}

@media print { .lcc { display: none !important; } }
