/*
	css/cookies.css

	Cookie lišta pluginu Complianz (od 17. 11. 2026) v designu webu.

	Barvy, písmo, texty a chování lišty se nastavují v Complianz
	(Complianz → Consent Banner). Sem patří jen to, co tam nastavit nejde:
	rozvržení spodního pruhu na obsahový pás webu min(90 %, 1280 px),
	štítek "Cookies" (Space Mono, zkosený rámeček jako přepínač jazyků)
	a tlačítko ve stylu světlého tlačítka webu (cs-btn-svetle).

	Selektory začínají "body .cmplz-cookiebanner.cmplz-bottom", aby
	přebily vygenerované CSS Complianz (uploads/complianz/css/), které
	se načítá až za tímto souborem.

	Enqueue řeší functions.php, sekce 34.
*/

/* --- Pruh přes celou šířku okna ----------------------------------------- */
body .cmplz-cookiebanner.cmplz-bottom {
	--cs-cookies-pas: min(90%, 1280px);
	left: 0 !important;
	right: 0;
	bottom: 0 !important;
	top: auto !important;
	transform: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 28px calc((100% - var(--cs-cookies-pas)) / 2) !important;
	box-sizing: border-box;
	border-top: 1px solid rgba(174, 206, 214, 0.25) !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto;
	column-gap: 64px !important;
	row-gap: 12px !important;
	align-items: center;
	font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
}

/* Skrytá a zavřená lišta zůstává skrytá - Complianz ji schovává třídami
   cmplz-hidden / cmplz-dismissed, které by display: grid výš přebil. */
body .cmplz-cookiebanner.cmplz-bottom.cmplz-hidden,
body .cmplz-cookiebanner.cmplz-bottom.cmplz-dismissed {
	display: none !important;
}

/* Prvky, které lišta s jedním tlačítkem nepotřebuje. */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-divider,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-logo,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-close,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-categories,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-links.cmplz-information {
	display: none !important;
}

/* --- Štítek "Cookies" ---------------------------------------------------- */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-header {
	grid-column: 1;
	grid-row: 1;
	display: block !important;
	margin: 0 !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-title {
	display: inline-block !important;
	position: relative;
	margin: 0 !important;
	padding: 5px 12px 5px 11px;
	font-family: 'Space Mono', monospace;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gcid-primary-color, #24b8aa) !important;
	text-align: left !important;
}

/* Zkosený rámeček: levý horní a pravý dolní roh seříznutý, jako štítek
   přepínače jazyků v hlavičce. ::before je obrys (barva rámečku),
   ::after o 1 px menší výplň v barvě lišty - mezi nimi zůstane linka
   i na šikmých hranách. Text leží nad oběma vrstvami. */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-title {
	isolation: isolate;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-title::before,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-title::after {
	content: '';
	position: absolute;
	z-index: -1;
	clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
	pointer-events: none;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-title::before {
	inset: 0;
	background: rgba(174, 206, 214, 0.7);
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-title::after {
	inset: 1px;
	background: var(--gcid-secondary-color, #022736);
}

/* --- Text ---------------------------------------------------------------- */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-body {
	grid-column: 1;
	grid-row: 2;
	display: block !important;
	margin: 0 !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-message {
	max-width: 760px;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 300;
	line-height: 1.5 !important;
	color: var(--gcid-3d658425-862c-4c76-8f94-28617861048f, #fff) !important;
	text-align: left !important;
}

/* --- Odkazy na dokumenty --------------------------------------------------- */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-links.cmplz-documents {
	grid-column: 1 !important;
	grid-row: 3 !important;
	justify-self: start !important;
	margin: 0 !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-documents ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start !important;
	gap: 6px 24px;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-documents li {
	margin: 0 !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-documents .cmplz-link {
	font-family: 'Space Mono', monospace;
	font-size: 13px !important;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7) !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-documents .cmplz-link:hover,
body .cmplz-cookiebanner.cmplz-bottom .cmplz-documents .cmplz-link:focus-visible {
	color: var(--gcid-primary-color, #24b8aa) !important;
}

/* --- Tlačítko (jako cs-btn-svetle: průhledné, bílý rámeček) --------------- */
body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons {
	grid-column: 2 !important;
	grid-row: 1 / span 3 !important;
	align-self: center;
	display: flex !important;
	margin: 0 !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn {
	display: none;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn.cmplz-accept {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 152px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 13px 30px !important;
	border: 1px solid var(--gcid-3d658425-862c-4c76-8f94-28617861048f, #fff) !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: var(--gcid-3d658425-862c-4c76-8f94-28617861048f, #fff) !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	background: var(--gcid-3d658425-862c-4c76-8f94-28617861048f, #fff) !important;
	color: var(--gcid-secondary-color, #022736) !important;
}

body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn.cmplz-accept:focus-visible {
	outline: 2px solid var(--gcid-primary-color, #24b8aa);
	outline-offset: 4px;
}

/* --- Tablet a telefon: pod sebe, tlačítko přes celou šířku pásu ------------ */
@media (max-width: 767px) {
	body .cmplz-cookiebanner.cmplz-bottom {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 14px !important;
		padding-top: 22px !important;
		padding-bottom: 22px !important;
	}

	body .cmplz-cookiebanner.cmplz-bottom .cmplz-message {
		font-size: 15px !important;
	}

	body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons {
		grid-column: 1 !important;
		grid-row: 4 !important;
		margin-top: 4px !important;
	}

	body .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn.cmplz-accept {
		width: 100% !important;
	}
}

/* ===========================================================================
   Karta "Cookie settings" vpravo dole (od 17. 11. 2026)

   Po potvrzení lišty zůstane u spodní hrany okna zajetá karta, kliknutím
   se lišta znovu otevře. Na desktopu je zasunutá o 12 px (text je celý
   vidět, line-height 32 px) a po najetí myší
   (nebo focusu z klávesnice) se vysune - posun dělá Complianz animací
   proměnné bottom. Na telefonu a tabletu (do 768 px) je vysunutá celá,
   najetí myší tam nejde (Complianz volba "hover-show-mobile").
   Pravá hrana sedí na obsahový pás webu, levý horní roh je zkosený
   jako štítek "Cookies" v liště.
   =========================================================================== */
#cmplz-manage-consent .cmplz-manage-consent {
	--cmplz-manage-consent-height: 44px;
	--cmplz-manage-consent-offset: -12px;
	right: calc((100% - min(90%, 1280px)) / 2) !important;
	min-width: 0 !important;
	height: 44px !important;
	padding: 0 18px 0 20px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: 'Space Mono', monospace !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 32px !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	vertical-align: top;
	color: var(--gcid-primary-color, #24b8aa) !important;
	box-shadow: none !important;
	isolation: isolate;
	transition: color 0.2s ease;
}

/* Obrys (::before) a výplň (::after) se zkoseným levým horním rohem;
   spodní hrana karty je u okraje okna, takže ji nekreslíme. */
#cmplz-manage-consent .cmplz-manage-consent::before,
#cmplz-manage-consent .cmplz-manage-consent::after {
	content: '';
	position: absolute;
	z-index: -1;
	clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
	pointer-events: none;
}

#cmplz-manage-consent .cmplz-manage-consent::before {
	inset: 0;
	background: rgba(174, 206, 214, 0.45);
}

#cmplz-manage-consent .cmplz-manage-consent::after {
	inset: 1px 1px 0 1px;
	background: var(--gcid-secondary-color, #022736);
}

#cmplz-manage-consent .cmplz-manage-consent:hover,
#cmplz-manage-consent .cmplz-manage-consent:focus-visible {
	color: var(--gcid-3d658425-862c-4c76-8f94-28617861048f, #fff) !important;
}

#cmplz-manage-consent .cmplz-manage-consent:focus-visible {
	outline: 2px solid var(--gcid-primary-color, #24b8aa);
	outline-offset: 2px;
}

/* Stránky s formulářem (reCAPTCHA): odznak Googlu leží vpravo dole
   (vykukuje 70 px od pravého okraje, 14 px nad spodní hranou) a na
   užších oknech by kartu překryl. Karta se proto drží nejméně 88 px
   od pravého okraje - na širokém monitoru zůstává na pásu webu. */
body:has(.grecaptcha-badge) #cmplz-manage-consent .cmplz-manage-consent {
	right: max(calc((100% - min(90%, 1280px)) / 2), 88px) !important;
}

/* /murmus: pilulkové menu sekcí se po odscrollování hero lepí ke spodní
   hraně okna (cs-pilulky--dole, js/pilulky.js) a s kartou by se
   překrývalo. Dokud tam je, karta zajede pod okraj; vrátí se nahoře
   v hero a u patičky, kde se pilulky schovají (cs-pilulky--schovane). */
#cmplz-manage-consent .cmplz-manage-consent {
	transition: color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}

body:has(.cs-pilulky--dole:not(.cs-pilulky--schovane)) #cmplz-manage-consent .cmplz-manage-consent {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}
