/* ==========================================================================
   Cookie lišta — Fajn Brigády
   Barvy: oranžová #ff8c00 / #ea580c (akcent), tmavě modrá #0074ff (odkazy)
   BEM: .cookie-lista, .cookie-modal
   ========================================================================== */

:root {
	--cl-orange: #ff8c00;
	--cl-orange-dark: #ea580c;
	--cl-orange-light: #fff3e0;
	--cl-blue: #0074ff;
	--cl-gray-10: #1e293b;
	--cl-gray-20: #475569;
	--cl-gray-40: #94a3b8;
	--cl-gray-60: #cbd5e1;
	--cl-gray-80: #f1f5f9;
	--cl-gray-90: #f8fafc;
}

/* ---------- Lišta (banner) ---------- */

.cookie-lista {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 8000;
	background: #fff;
	border-top: 1px solid var(--cl-gray-60);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
	padding: 18px 20px;
	font-family: "Rubik", sans-serif;
	transform: translateY(0);
	transition: transform 0.3s ease;
}

.cookie-lista[hidden] {
	display: none;
}

.cookie-lista--zaviranie {
	transform: translateY(100%);
}

.cookie-lista__holder {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.cookie-lista__text {
	flex: 1 1 420px;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cl-gray-20);
}

.cookie-lista__text strong {
	color: var(--cl-gray-10);
	font-weight: 500;
}

.cookie-lista__odkaz {
	color: var(--cl-blue);
	text-decoration: underline;
}

.cookie-lista__odkaz:hover {
	color: var(--cl-orange-dark);
}

.cookie-lista__akce {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.cookie-lista__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	padding: 11px 18px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cookie-lista__btn--odmitnout {
	background: #fff;
	color: var(--cl-gray-20);
	border-color: var(--cl-gray-60);
}

.cookie-lista__btn--odmitnout:hover {
	background: var(--cl-gray-90);
	border-color: var(--cl-gray-40);
}

.cookie-lista__btn--nastaveni {
	background: #fff;
	color: var(--cl-orange-dark);
	border-color: var(--cl-orange);
}

.cookie-lista__btn--nastaveni:hover {
	background: var(--cl-orange-light);
}

.cookie-lista__btn--prijmout {
	background: var(--cl-orange);
	color: #fff;
}

.cookie-lista__btn--prijmout:hover {
	background: var(--cl-orange-dark);
}

@media (max-width: 700px) {
	.cookie-lista__holder {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.cookie-lista__akce {
		justify-content: stretch;
	}

	.cookie-lista__btn {
		flex: 1 1 auto;
	}
}

/* ---------- Modal s nastavením kategorií ---------- */

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 8100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cookie-modal.cookie-modal--otevreny {
	display: flex;
}

.cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.cookie-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 86vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	padding: 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	font-family: "Rubik", sans-serif;
}

.cookie-modal__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 500;
	color: var(--cl-gray-10);
}

.cookie-modal__popis {
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--cl-gray-20);
}

.cookie-modal__kategorie {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 22px;
}

.cookie-modal__polozka {
	border: 1.5px solid var(--cl-gray-80);
	border-radius: 10px;
	padding: 14px 16px;
}

.cookie-modal__polozka-hlavicka {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cookie-modal__polozka-nazev {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--cl-gray-10);
}

.cookie-modal__polozka-popis {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cl-gray-40);
}

.cookie-modal__stav-vzdy {
	font-size: 12px;
	font-weight: 500;
	color: var(--cl-orange-dark);
	background: var(--cl-orange-light);
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

/* Přepínač (toggle) */

.cookie-modal__prepinac {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}

.cookie-modal__prepinac input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-modal__prepinac-slider {
	position: absolute;
	inset: 0;
	background: var(--cl-gray-60);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s;
}

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

.cookie-modal__prepinac input:checked + .cookie-modal__prepinac-slider {
	background: var(--cl-orange);
}

.cookie-modal__prepinac input:checked + .cookie-modal__prepinac-slider::before {
	transform: translateX(18px);
}

.cookie-modal__prepinac input:disabled + .cookie-modal__prepinac-slider {
	background: var(--cl-orange);
	opacity: 0.6;
	cursor: not-allowed;
}

.cookie-modal__akce {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.cookie-modal__akce .cookie-lista__btn {
	flex: 0 0 auto;
}

@media (max-width: 480px) {
	.cookie-modal__akce {
		flex-direction: column;
	}

	.cookie-modal__akce .cookie-lista__btn {
		width: 100%;
	}
}
