/* Lucus Cookie Consent */
#lcc-root {
	--lcc-accent: #1d6f5f;
	--lcc-bg: #fff;
	--lcc-text: #16201d;
	--lcc-radius: 14px;
	--lcc-muted: color-mix( in srgb, var( --lcc-text ) 62%, transparent );
	--lcc-line: color-mix( in srgb, var( --lcc-text ) 14%, transparent );
	--lcc-shadow: 0 18px 50px -12px rgba( 0, 0, 0, .35 );
	font-family: inherit;
}

#lcc-root .lcc-hidden { display: none !important; }

#lcc-root .lcc-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 8, 14, 12, .45 );
	backdrop-filter: blur( 2px );
	z-index: 99998;
}

/* ---------- baner ---------- */

.lcc-banner {
	position: fixed;
	z-index: 99999;
	box-sizing: border-box;
	background: var( --lcc-bg );
	color: var( --lcc-text );
	border-radius: var( --lcc-radius );
	box-shadow: var( --lcc-shadow );
	padding: 22px 24px;
	display: flex;
	gap: 20px;
	align-items: center;
	animation: lcc-in .28s ease-out both;
}

.lcc-banner * { box-sizing: border-box; }

.lcc-layout-bar.lcc-banner {
	left: 16px;
	right: 16px;
	bottom: 16px;
	border-radius: var( --lcc-radius );
	flex-wrap: wrap;
}
.lcc-layout-bar.lcc-pos-top { top: 16px; bottom: auto; }

.lcc-layout-box.lcc-banner {
	max-width: 420px;
	flex-direction: column;
	align-items: stretch;
}
.lcc-layout-box.lcc-pos-bottom-left  { left: 20px; bottom: 20px; }
.lcc-layout-box.lcc-pos-bottom-right { right: 20px; bottom: 20px; }
.lcc-layout-box.lcc-pos-bottom       { left: 20px; bottom: 20px; }
.lcc-layout-box.lcc-pos-top          { left: 20px; top: 20px; }

.lcc-layout-center.lcc-banner {
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
	max-width: 520px;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
}

.lcc-banner__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 650;
	color: inherit;
}

.lcc-banner__text { font-size: .875rem; line-height: 1.55; color: var( --lcc-muted ); }
.lcc-banner__text p { margin: 0 0 .5em; }
.lcc-banner__text p:last-child { margin-bottom: 0; }
.lcc-banner__text a { color: var( --lcc-accent ); }
.lcc-banner__policy { margin-top: .6em; font-size: .8125rem; }

.lcc-banner__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex-shrink: 0;
}
.lcc-layout-box .lcc-banner__actions,
.lcc-layout-center .lcc-banner__actions { margin-top: 4px; }
.lcc-layout-box .lcc-btn--primary { flex: 1 1 100%; }

/* ---------- przyciski ---------- */

.lcc-btn {
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1;
	padding: 11px 18px;
	border-radius: calc( var( --lcc-radius ) * .6 );
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.lcc-btn:focus-visible { outline: 2px solid var( --lcc-accent ); outline-offset: 2px; }

.lcc-btn--primary { background: var( --lcc-accent ); color: #fff; }
.lcc-btn--primary:hover { filter: brightness( 1.08 ); }

.lcc-btn--secondary {
	background: transparent;
	color: var( --lcc-text );
	border-color: var( --lcc-line );
}
.lcc-btn--secondary:hover { border-color: var( --lcc-accent ); color: var( --lcc-accent ); }

.lcc-btn--ghost { background: transparent; color: var( --lcc-muted ); text-decoration: underline; padding-inline: 8px; }
.lcc-btn--ghost:hover { color: var( --lcc-accent ); }

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

.lcc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.lcc-modal__backdrop { position: absolute; inset: 0; background: rgba( 8, 14, 12, .5 ); }

.lcc-modal__panel {
	position: relative;
	background: var( --lcc-bg );
	color: var( --lcc-text );
	width: min( 560px, calc( 100vw - 32px ) );
	max-height: min( 82vh, 720px );
	display: flex;
	flex-direction: column;
	border-radius: var( --lcc-radius );
	box-shadow: var( --lcc-shadow );
	animation: lcc-in .22s ease-out both;
}

.lcc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px 14px;
	border-bottom: 1px solid var( --lcc-line );
}
.lcc-modal__head h2 { margin: 0; font-size: 1.05rem; font-weight: 650; }

.lcc-modal__close {
	background: none;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var( --lcc-muted );
	padding: 0 4px;
}
.lcc-modal__close:hover { color: var( --lcc-text ); }

.lcc-modal__content { padding: 6px 22px 16px; overflow-y: auto; }

.lcc-cat { padding: 14px 0; border-bottom: 1px solid var( --lcc-line ); }
.lcc-cat:last-of-type { border-bottom: 0; }
.lcc-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.lcc-cat__label { font-weight: 600; font-size: .9375rem; }
.lcc-cat__desc { margin: 6px 0 0; font-size: .8125rem; line-height: 1.5; color: var( --lcc-muted ); }

.lcc-switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.lcc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.lcc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: color-mix( in srgb, var( --lcc-text ) 20%, transparent );
	transition: background-color .18s ease;
	pointer-events: none;
}
.lcc-switch__track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .18s ease;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .3 );
}
.lcc-switch input:checked + .lcc-switch__track { background: var( --lcc-accent ); }
.lcc-switch input:checked + .lcc-switch__track::after { transform: translateX( 20px ); }
.lcc-switch input:disabled + .lcc-switch__track { opacity: .55; }
.lcc-switch input:focus-visible + .lcc-switch__track { outline: 2px solid var( --lcc-accent ); outline-offset: 2px; }

.lcc-modal__policy { margin: 14px 0 0; font-size: .8125rem; }
.lcc-modal__policy a { color: var( --lcc-accent ); }

.lcc-modal__foot {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	padding: 14px 22px 20px;
	border-top: 1px solid var( --lcc-line );
}

/* ---------- pływający przycisk powrotu ---------- */

.lcc-revisit {
	position: fixed;
	z-index: 99990;
	bottom: 18px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var( --lcc-accent );
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px -6px rgba( 0, 0, 0, .45 );
	display: grid;
	place-items: center;
	padding: 0;
}
.lcc-revisit--bottom-left { left: 18px; }
.lcc-revisit--bottom-right { right: 18px; }
.lcc-revisit svg { width: 24px; height: 24px; fill: currentColor; }
.lcc-revisit:hover { filter: brightness( 1.1 ); }

/* ---------- zablokowane osadzenia ---------- */

.lcc-embed-block {
	border: 1px dashed var( --lcc-line, rgba( 0, 0, 0, .18 ) );
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	font-size: .875rem;
	background: rgba( 0, 0, 0, .03 );
}
.lcc-embed-block p { margin: 0 0 12px; }
.lcc-embed-accept {
	font: inherit;
	font-size: .8125rem;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 8px;
	border: 0;
	background: var( --lcc-accent, #1d6f5f );
	color: #fff;
	cursor: pointer;
}
iframe[data-lcc][data-lcc-src] { display: none; }

/* ---------- deklaracja cookies ---------- */

.lcc-decl-table { width: 100%; border-collapse: collapse; font-size: .8125rem; margin: 10px 0 24px; }
.lcc-decl-table th,
.lcc-decl-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba( 0, 0, 0, .1 ); vertical-align: top; }
.lcc-decl-state { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.lcc-decl-state--on { background: #e3f5ec; color: #11684f; }
.lcc-decl-state--off { background: #f6e5e5; color: #8a2b2b; }

.lcc-inline-link {
	font: inherit;
	background: none;
	border: 0;
	padding: 0;
	color: var( --lcc-accent, #1d6f5f );
	text-decoration: underline;
	cursor: pointer;
}

@keyframes lcc-in {
	from { opacity: 0; transform: translateY( 10px ) scale( .99 ); }
	to { opacity: 1; }
}
.lcc-layout-center.lcc-banner { animation: none; }

@media ( prefers-reduced-motion: reduce ) {
	.lcc-banner, .lcc-modal__panel { animation: none; }
}

@media ( max-width: 600px ) {
	.lcc-banner { left: 10px !important; right: 10px !important; bottom: 10px !important; max-width: none; padding: 18px; }
	.lcc-layout-center.lcc-banner { top: auto; transform: none; }
	.lcc-banner__actions { flex-direction: column-reverse; }
	.lcc-banner__actions .lcc-btn { width: 100%; }
	.lcc-modal__foot { flex-direction: column-reverse; }
	.lcc-modal__foot .lcc-btn { width: 100%; }
}
