/* VDG Cookie Consent – banner a predvoľby. Farby sa nastavujú cez CSS premenné v administrácii. */

.svcc-root {
	--svcc-bg: #fff;
	--svcc-text: #212121;
	--svcc-accent: #87652f;
	--svcc-accent-text: #fff;
	--svcc-border: rgba(127, 127, 127, 0.25);
	--svcc-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--svcc-text);
}

.svcc-root *,
.svcc-root *::before,
.svcc-root *::after {
	box-sizing: border-box;
}

.svcc-root [hidden] {
	display: none !important;
}

/* Banner */

.svcc-banner {
	position: fixed;
	z-index: 2147483000;
	bottom: 16px;
	left: 16px;
	width: calc(100% - 32px);
	max-width: 440px;
	padding: 20px;
	background: var(--svcc-bg);
	color: var(--svcc-text);
	border-radius: var(--svcc-radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	animation: svcc-in 0.25s ease-out;
}

.svcc-pos-bottom-right .svcc-banner {
	left: auto;
	right: 16px;
}

.svcc-pos-bottom .svcc-banner {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	padding: 16px 24px;
	border-radius: 0;
}

.svcc-pos-bottom .svcc-body {
	flex: 1 1 480px;
}

.svcc-root .svcc-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.svcc-root .svcc-text {
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	color: inherit;
}

.svcc-pos-bottom .svcc-banner .svcc-text {
	margin-bottom: 0;
}

.svcc-root .svcc-link {
	color: var(--svcc-accent);
	text-decoration: underline;
	font-weight: 600;
}

/* Odmietnuť a Prijať sú rovnako veľké vedľa seba, Prispôsobiť pod nimi. */
.svcc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.svcc-actions [data-svcc-action="customize"] {
	grid-column: 1 / -1;
	order: 1;
}

.svcc-pos-bottom .svcc-actions {
	display: flex;
	flex-wrap: wrap;
}

.svcc-pos-bottom .svcc-actions [data-svcc-action="customize"] {
	order: 0;
}

/* Tlačidlá */

.svcc-root .svcc-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 40px;
	margin: 0;
	padding: 8px 16px;
	border: 2px solid var(--svcc-accent);
	border-radius: 4px;
	background: var(--svcc-accent);
	color: var(--svcc-accent-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter 0.15s;
}

.svcc-root .svcc-btn:hover {
	filter: brightness(1.1);
}

.svcc-root .svcc-btn-outline {
	background: transparent;
	color: var(--svcc-accent);
}

.svcc-root .svcc-btn:focus-visible,
.svcc-root .svcc-close:focus-visible,
.svcc-root .svcc-cat-toggle:focus-visible,
.svcc-root .svcc-revisit:focus-visible,
.svcc-root .svcc-link:focus-visible,
.svcc-switch input:focus-visible + .svcc-slider {
	outline: 2px solid var(--svcc-accent);
	outline-offset: 2px;
}

/* Predvoľby */

.svcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.svcc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.svcc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: var(--svcc-bg);
	color: var(--svcc-text);
	border-radius: var(--svcc-radius);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
	outline: none;
}

.svcc-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--svcc-border);
}

.svcc-root .svcc-dialog-head .svcc-title {
	margin: 0;
	font-size: 18px;
}

.svcc-root .svcc-close {
	appearance: none;
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.svcc-dialog-body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px 20px;
}

.svcc-dialog-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 20px;
	border-top: 1px solid var(--svcc-border);
}

.svcc-dialog-foot .svcc-btn {
	flex: 1 1 160px;
}

.svcc-cat {
	padding: 12px 0;
	border-top: 1px solid var(--svcc-border);
}

.svcc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.svcc-root .svcc-cat-toggle {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.svcc-chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s;
}

.svcc-cat-toggle[aria-expanded="true"] .svcc-chevron {
	transform: rotate(45deg);
}

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

.svcc-always {
	flex: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--svcc-accent);
}

.svcc-cat-body {
	margin-top: 10px;
}

.svcc-root .svcc-cookie {
	width: 100%;
	margin: 0 0 8px;
	border: 0;
	border-collapse: collapse;
	border-radius: 4px;
	background: rgba(127, 127, 127, 0.08);
	font-size: 13px;
}

.svcc-root .svcc-cookie th,
.svcc-root .svcc-cookie td {
	padding: 6px 10px;
	border: 0;
	text-align: left;
	vertical-align: top;
	color: inherit;
	background: none;
}

.svcc-root .svcc-cookie th {
	width: 90px;
	font-weight: 600;
}

.svcc-root .svcc-empty {
	margin: 0;
	font-size: 13px;
	opacity: 0.8;
}

/* ID súhlasu v predvoľbách */

.svcc-root .svcc-consent-id {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--svcc-border);
	font-size: 12px;
	opacity: 0.85;
}

.svcc-root .svcc-consent-id code,
.svcc-consent-status code {
	font-size: 12px;
	word-break: break-all;
}

.svcc-root .svcc-copy,
.svcc-consent-status .svcc-copy {
	appearance: none;
	margin: 0 0 0 4px;
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 12px;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
}

/* Prepínač */

.svcc-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 44px;
	height: 24px;
	margin: 0;
}

.svcc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.svcc-slider {
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: #9e9e9e;
	transition: background 0.2s;
}

.svcc-slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.svcc-switch input:checked + .svcc-slider {
	background: var(--svcc-accent);
}

.svcc-switch input:checked + .svcc-slider::before {
	transform: translateX(20px);
}

.svcc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tlačidlo na opätovné otvorenie nastavení */

.svcc-root .svcc-revisit {
	position: fixed;
	z-index: 2147482999;
	bottom: 16px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--svcc-accent);
	color: var(--svcc-accent-text);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.svcc-pos-bottom-right .svcc-revisit {
	left: auto;
	right: 16px;
}

html.svcc-lock {
	overflow: hidden;
}

/* Shortcode [svcc_cookie_list] */

.svcc-list-scroll {
	overflow-x: auto;
	margin: 0 0 24px;
}

.svcc-list table {
	width: 100%;
	border-collapse: collapse;
}

.svcc-list th,
.svcc-list td {
	padding: 8px 10px;
	border: 1px solid rgba(127, 127, 127, 0.35);
	text-align: left;
	vertical-align: top;
}

@keyframes svcc-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 480px) {
	.svcc-banner {
		left: 8px;
		bottom: 8px;
		width: calc(100% - 16px);
		padding: 16px;
	}

	.svcc-pos-bottom-right .svcc-banner {
		right: 8px;
	}

	.svcc-dialog-foot .svcc-btn {
		flex: 1 1 100%;
	}

	.svcc-modal {
		padding: 8px;
	}

	.svcc-dialog {
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
	}
}

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

	.svcc-slider,
	.svcc-slider::before,
	.svcc-chevron,
	.svcc-root .svcc-btn {
		transition: none;
	}
}
