/*
 * HD Cookies Consent - banner suhlasu so subormi cookie.
 * Dizajnove tokeny: Elementor kit (kremova #FFF9EE, olivova #6B7051,
 * hneda #896950, salviova #ECF2E7, text #636363, tmava #2D2D2D),
 * Poppins, zaoblene tlacidla 30px.
 */

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

/* Skryte prvky musia ostat skryte aj napriek vlastnemu display. */
.hdcc[hidden],
.hdcc__settings[hidden],
.hdcc-open[hidden] {
	display: none !important;
}

/* ---------- Kontajner ---------- */

.hdcc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	margin: 0;
	padding: 12px;
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #636363;
	text-align: left;
	pointer-events: none;
	animation: hdcc-pop 0.25s ease-out both;
}

@keyframes hdcc-pop {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hdcc__card {
	pointer-events: auto;
	max-width: 980px;
	margin: 0 auto;
	padding: 22px 26px;
	background: #fff9ee;
	border: 2px solid #6b7051;
	border-radius: 30px;
	box-shadow: 0 14px 44px rgba(45, 45, 45, 0.2);
}

.hdcc__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.35;
	color: #2d2d2d;
}

.hdcc__text {
	margin: 0 0 16px;
	font-size: 0.95rem;
	color: #636363;
}

/* ---------- Tlačidlá ---------- */

.hdcc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hdcc__actions--settings {
	margin-top: 18px;
}

.hdcc__btn {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	min-height: 46px;
	min-width: 46px;
	margin: 0;
	padding: 11px 26px;
	border-radius: 30px;
	border: 2px solid transparent;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hdcc__btn--primary {
	background: #6b7051;
	border-color: #6b7051;
	color: #ffffff;
}

.hdcc__btn--primary:hover {
	background: #896950;
	border-color: #896950;
	color: #ffffff;
}

.hdcc__btn--secondary {
	background: #fff9ee;
	border-color: #6b7051;
	color: #6b7051;
}

.hdcc__btn--secondary:hover {
	background: #ecf2e7;
	border-color: #6b7051;
	color: #4f5340;
}

.hdcc__btn--tertiary {
	background: transparent;
	border-color: transparent;
	color: #636363;
	padding-left: 14px;
	padding-right: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hdcc__btn--tertiary:hover {
	color: #2d2d2d;
}

/* ---------- Viditeľný fokus ---------- */

.hdcc a:focus-visible,
.hdcc button:focus-visible,
.hdcc input:focus-visible,
.hdcc-open:focus-visible {
	outline: 3px solid #2d2d2d;
	outline-offset: 3px;
}

/* Fokus na cely dialog zvyraznime obrysom karty. */
.hdcc:focus-visible {
	outline: none;
}

.hdcc:focus-visible .hdcc__card {
	outline: 3px solid #2d2d2d;
	outline-offset: 3px;
}

.hdcc__settings:focus-visible {
	outline: 3px solid #2d2d2d;
	outline-offset: 3px;
}

/* ---------- Nastavenia ---------- */

.hdcc__settings {
	margin-top: 20px;
	padding-top: 4px;
	border-top: 2px solid rgba(137, 105, 80, 0.35);
}

.hdcc__fieldset {
	margin: 0;
	padding: 12px 0 0;
	border: 0;
	min-width: 0;
}

.hdcc__legend {
	padding: 0;
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 600;
	color: #2d2d2d;
}

.hdcc__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(137, 105, 80, 0.28);
}

.hdcc__row:first-of-type {
	border-top: 0;
}

.hdcc__check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 3px 0 0;
	accent-color: #6b7051;
	cursor: pointer;
}

.hdcc__check:disabled {
	cursor: not-allowed;
}

.hdcc__label {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	cursor: pointer;
}

.hdcc__cat {
	font-size: 0.98rem;
	font-weight: 600;
	color: #2d2d2d;
}

.hdcc__desc {
	font-size: 0.88rem;
	line-height: 1.55;
	color: #636363;
}

.hdcc__badge {
	flex: 0 0 auto;
	padding: 5px 14px;
	border-radius: 30px;
	background: #ecf2e7;
	border: 1px solid #6b7051;
	color: #4f5340;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

.hdcc__sub {
	margin: 18px 0 6px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2d2d2d;
}

.hdcc__cookies {
	margin: 0;
	font-size: 0.875rem;
}

.hdcc__cookies dt {
	margin-top: 8px;
	font-weight: 600;
	color: #2d2d2d;
}

.hdcc__cookies dd {
	margin: 2px 0 0;
	color: #636363;
}

.hdcc__cookies code {
	padding: 1px 7px;
	border-radius: 8px;
	background: #ecf2e7;
	color: #2d2d2d;
	font-size: 0.92em;
}

.hdcc__note {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: #636363;
}

.hdcc__links {
	margin: 16px 0 0;
	font-size: 0.9rem;
}

.hdcc__links a {
	color: #6b7051;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hdcc__links a:hover {
	color: #896950;
}

/* ---------- Nenápadné tlačidlo pre opätovné otvorenie ---------- */

.hdcc-open {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 9px 18px;
	min-height: 40px;
	font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	color: #6b7051;
	background: #fff9ee;
	border: 2px solid #6b7051;
	border-radius: 30px;
	box-shadow: 0 6px 20px rgba(45, 45, 45, 0.18);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.hdcc-open:hover {
	background: #ecf2e7;
	color: #4f5340;
}

/* ---------- Responzivita ---------- */

@media (max-width: 700px) {
	.hdcc {
		padding: 10px;
	}

	.hdcc__card {
		padding: 18px 16px;
		border-radius: 24px;
	}

	.hdcc__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hdcc__btn {
		width: 100%;
	}

	.hdcc__badge {
		margin-left: 34px;
	}

	.hdcc__row {
		gap: 10px;
	}

	.hdcc-open {
		font-size: 0.78rem;
		padding: 8px 14px;
	}
}

@media (min-width: 701px) and (max-width: 1024px) {
	.hdcc__card {
		padding: 20px;
	}
}

/* ---------- Znížený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {

	.hdcc,
	.hdcc *,
	.hdcc *::before,
	.hdcc *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
