/*
 * Lišta so súhlasom s cookies (modules/_layout/cookies.latte).
 * Vzhľad webu sa nastaví prepísaním premenných v style.css webu, napr.:
 *   .cc { --cc-accent: #D4006F; --cc-radius: 22px; --cc-font: 'Archivo', sans-serif; }
 * Úpravy konkrétnych prvkov s predponou .cc (súbor sa načíta po štýloch webu): .cc .cc__btn--primary { ... }
 */
.cc {
	--cc-bg: #ffffff;
	--cc-text: #111111;
	--cc-muted: #555555;
	--cc-accent: #111111;
	--cc-accent-text: #ffffff;
	--cc-border: #dddddd;
	--cc-radius: 16px;
	--cc-font: inherit;

	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	display: flex;
	justify-content: flex-start;
	pointer-events: none;
	font-family: var(--cc-font);
}
.cc[hidden] { display: none; }

.cc__box {
	pointer-events: auto;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 22px 24px;
	background: var(--cc-bg);
	color: var(--cc-text);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
	font-size: 15px;
	line-height: 1.5;
}

.cc__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.cc__text { margin: 0; color: var(--cc-muted); }
.cc__text p { margin: 0; }
.cc__text a { color: inherit; font-weight: 700; }

.cc__options { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cc-border); }
.cc__options[hidden] { display: none; }
.cc__option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--cc-muted); cursor: pointer; }
.cc__option strong { color: var(--cc-text); }
.cc__option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cc-accent); }

.cc__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cc__btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--cc-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--cc-text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.cc__btn[hidden] { display: none; }
.cc__btn--primary { background: var(--cc-accent); color: var(--cc-accent-text); }
.cc__btn--link { flex: 0 0 auto; border-color: transparent; text-decoration: underline; padding-inline: 8px; }
.cc__btn:focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; }
