/*
 * Lupacentrum – chat, cookie lišta, mapa a zásady cookies (2026)
 * Farby a písmo podľa webu: #df9e5d (akcent), #2c2c2c (tmavá), Roboto Condensed.
 */

.lc-chat, .lc-suhlas, .lc-okno, .lc-mapa, .zasady-text {
	--lc-akcent: #df9e5d;
	--lc-akcent-tmavy: #c8843f;
	--lc-tmava: #2c2c2c;
	--lc-text: #3e3d3d;
	--lc-text-slaby: #6b6b6b;
	--lc-svetla: #f4f2ef;
	--lc-ciara: #e4e0da;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ---------- Spoločné tlačidlá ---------- */
.lc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 2px solid var(--lc-tmava);
	border-radius: 0;
	font: 700 15px/1.2 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.lc-btn-plny {
	background: var(--lc-tmava);
	color: #fff;
}

.lc-btn-plny:hover,
.lc-btn-plny:focus-visible {
	background: var(--lc-akcent);
	border-color: var(--lc-akcent);
	color: var(--lc-tmava);
	text-decoration: none;
}

.lc-btn-obrys {
	background: #fff;
	color: var(--lc-tmava);
}

.lc-btn-obrys:hover,
.lc-btn-obrys:focus-visible {
	background: var(--lc-tmava);
	color: #fff;
	text-decoration: none;
}

.lc-btn:focus-visible,
.lc-chat button:focus-visible,
.lc-chat a:focus-visible,
.lc-okno input:focus-visible + span {
	outline: 2px solid var(--lc-akcent);
	outline-offset: 2px;
}

/* =====================================================================
 * COOKIE LIŠTA
 * ===================================================================== */
.lc-suhlas[hidden], .lc-okno[hidden] { display: none !important; }

.lc-suhlas {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	background: #fff;
	border-top: 3px solid var(--lc-akcent);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
	color: var(--lc-text);
}

.lc-suhlas-vnutro {
	max-width: 1170px;
	margin: 0 auto;
	padding: 18px 15px calc(18px + env(safe-area-inset-bottom));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
}

.lc-suhlas-text {
	flex: 1 1 520px;
	min-width: 0;
}

.lc-suhlas-text p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.lc-suhlas .lc-suhlas-nadpis {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lc-tmava);
	margin-bottom: 4px;
}

.lc-suhlas-text a,
.lc-okno-telo a,
.zasady-text a {
	color: var(--lc-tmava);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lc-suhlas-tlacidla {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 1 auto;
}

@media (max-width: 767px) {
	.lc-suhlas-vnutro { padding-top: 14px; }
	.lc-suhlas-text p { font-size: 14px; }
	.lc-suhlas-tlacidla { width: 100%; }
	.lc-suhlas-tlacidla .lc-btn { flex: 1 1 calc(50% - 5px); padding: 0 10px; }
	.lc-suhlas-tlacidla .lc-btn-obrys { flex-basis: 100%; }
}

/* Okno s nastaveniami */
.lc-okno {
	position: fixed;
	inset: 0;
	z-index: 2100;
	background: rgba(20, 20, 20, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lc-okno-panel {
	background: #fff;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	color: var(--lc-text);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.lc-okno-hlavicka {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--lc-ciara);
}

.lc-okno-hlavicka h2 {
	margin: 0;
	font: 400 22px/1.2 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lc-tmava);
}

.lc-okno-zavriet {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: var(--lc-tmava);
	cursor: pointer;
}

.lc-okno-telo {
	padding: 18px 22px;
	overflow-y: auto;
}

.lc-okno-telo > p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
}

.lc-kategoria {
	border: 1px solid var(--lc-ciara);
	padding: 14px 16px;
	margin-top: 10px;
}

.lc-kategoria p {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--lc-text-slaby);
}

.lc-kategoria-riadok {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lc-kategoria-nazov {
	margin: 0;
	font-weight: 700;
	font-size: 16px;
	color: var(--lc-tmava);
	cursor: pointer;
}

.lc-vzdy {
	font-size: 13px;
	font-weight: 700;
	color: #4f7a3a;
}

.lc-prepinac {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	flex: 0 0 auto;
}

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

.lc-prepinac span {
	position: absolute;
	inset: 0;
	background: #bdb7ae;
	border-radius: 28px;
	transition: background .2s;
}

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

.lc-prepinac input:checked + span { background: var(--lc-tmava); }
.lc-prepinac input:checked + span:before { transform: translateX(22px); }

.lc-okno-paticka {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid var(--lc-ciara);
}

.lc-okno-paticka .lc-btn { flex: 1 1 140px; }

/* Pätička webu – odkazy na cookies */
.paticka-odkazy {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 22px;
}

.paticka-odkazy a,
.paticka-odkazy button {
	background: none;
	border: 0;
	padding: 6px 0;
	font: 400 13px/1.4 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #b5b5b5;
	cursor: pointer;
	text-decoration: none;
}

.paticka-odkazy a:hover,
.paticka-odkazy button:hover {
	color: #df9e5d;
}

/* =====================================================================
 * MAPA (načíta sa až po kliknutí)
 * ===================================================================== */
.lc-mapa {
	position: relative;
	height: 450px;
	background: #e9e6e1 repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 22px);
	border-top: 1px solid #ddd;
}

.lc-mapa iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.lc-mapa-nahrada {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	text-align: center;
	color: var(--lc-text);
}

.lc-mapa-ikona {
	font-size: 42px;
	color: var(--lc-akcent);
}

.lc-mapa-adresa {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.4;
	color: var(--lc-tmava);
}

.lc-mapa-tlacidla {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.lc-mapa-pozn {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--lc-text-slaby);
}

@media (max-width: 767px) {
	.lc-mapa { height: 340px; }
}

/* =====================================================================
 * ZÁSADY COOKIES
 * ===================================================================== */
.zasady-text {
	max-width: 860px;
	margin: 0 auto;
	text-align: left;
	color: var(--lc-text);
}

.zasady-text h2 {
	margin: 32px 0 0;
	font: 700 18px/1.3 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 0.05em;
	color: var(--lc-tmava);
}

.zasady-text h2 + * { margin-top: 10px; }

.zasady-text p {
	font-size: 16px;
	line-height: 1.6;
	text-align: left !important;
}

.zasady-datum { color: var(--lc-text-slaby); font-size: 14px !important; }

.zasady-tabulka { overflow-x: auto; margin-top: 12px; }

.zasady-tabulka table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.4;
}

.zasady-tabulka th,
.zasady-tabulka td {
	border: 1px solid var(--lc-ciara);
	padding: 9px 10px;
	text-align: left;
	vertical-align: top;
}

.zasady-tabulka th {
	background: var(--lc-svetla);
	color: var(--lc-tmava);
	font-weight: 700;
}

.zasady-odkaz {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--lc-tmava);
	text-decoration: underline;
	cursor: pointer;
}

/* =====================================================================
 * CHAT
 * ===================================================================== */
.lc-chat {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1500;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	pointer-events: none;
}

.lc-chat > * { pointer-events: auto; }
.lc-chat [hidden] { display: none !important; }

/* Tlačidlo na otvorenie */
.lc-chat-spustac {
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--lc-akcent);
	color: var(--lc-tmava);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transition: transform .2s, background .2s;
}

.lc-chat-spustac:hover { transform: scale(1.06); background: var(--lc-akcent-tmavy); }
.lc-chat-ikona-zavri { display: none; }
.lc-chat-otvoreny .lc-chat-ikona-otvor { display: none; }
.lc-chat-otvoreny .lc-chat-ikona-zavri { display: block; }

/* Uvítacia bublina */
.lc-chat-bublina {
	position: relative;
	max-width: 260px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	border-radius: 14px 14px 4px 14px;
	animation: lc-chat-vstup .3s ease-out;
}

.lc-chat-bublina-text {
	display: block;
	width: 100%;
	border: 0;
	background: none;
	padding: 14px 34px 14px 16px;
	text-align: left;
	font: 400 15px/1.4 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	color: var(--lc-text);
	cursor: pointer;
}

.lc-chat-bublina-zavri {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	font-size: 20px;
	color: var(--lc-text-slaby);
	cursor: pointer;
}

/* Okno chatu */
.lc-chat-okno {
	width: 370px;
	height: 560px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
	animation: lc-chat-vstup .25s ease-out;
}

@keyframes lc-chat-vstup {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.lc-chat-hlavicka {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 10px 14px 16px;
	background: var(--lc-tmava);
	color: #fff;
	flex: 0 0 auto;
}

.lc-chat-avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--lc-akcent);
	color: var(--lc-tmava);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lc-chat-hlavicka-text { flex: 1 1 auto; min-width: 0; }

.lc-chat .lc-chat-nadpis {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	color: #fff;
}

.lc-chat .lc-chat-podnadpis {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: #cfcac3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lc-chat-bodka {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: #6cc070;
	vertical-align: 1px;
}

.lc-chat-ikona-btn {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.lc-chat-ikona-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* Správy */
.lc-chat-spravy {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 14px 8px;
	background: var(--lc-svetla);
	display: flex;
	flex-direction: column;
	gap: 10px;
	overscroll-behavior: contain;
}

.lc-chat-riadok { display: flex; }
.lc-chat-ja { justify-content: flex-end; }

.lc-chat-sprava {
	max-width: 84%;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.45;
	white-space: pre-line;
	overflow-wrap: anywhere;
	animation: lc-chat-vstup .2s ease-out;
}

.lc-chat-bot .lc-chat-sprava {
	background: #fff;
	color: var(--lc-text);
	border-radius: 4px 14px 14px 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.lc-chat-ja .lc-chat-sprava {
	background: var(--lc-tmava);
	color: #fff;
	border-radius: 14px 4px 14px 14px;
}

.lc-chat-btn {
	display: block;
	margin-top: 10px;
	padding: 9px 12px;
	background: var(--lc-tmava);
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	text-decoration: none !important;
	border-radius: 8px;
	white-space: normal;
}

.lc-chat-btn:hover { background: var(--lc-akcent); color: var(--lc-tmava) !important; }

/* Indikátor písania */
.lc-chat-pise .lc-chat-sprava {
	display: flex;
	gap: 4px;
	padding: 14px 16px;
}

.lc-chat-pise span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #aaa49b;
	animation: lc-chat-bodky 1.1s infinite ease-in-out;
}

.lc-chat-pise span:nth-child(2) { animation-delay: .15s; }
.lc-chat-pise span:nth-child(3) { animation-delay: .3s; }

@keyframes lc-chat-bodky {
	0%, 60%, 100% { transform: translateY(0); opacity: .5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* Výber otázok */
.lc-chat-volby {
	flex: 0 1 auto;
	max-height: 46%;
	overflow-y: auto;
	background: var(--lc-svetla);
	padding: 4px 14px 12px;
}

.lc-chat-volby:empty { padding: 0; }

.lc-chat-zoznam {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.lc-chat-moznost,
.lc-chat-dalsia {
	max-width: 92%;
	padding: 8px 14px;
	background: #fff;
	border: 1.5px solid var(--lc-akcent);
	border-radius: 18px;
	color: var(--lc-tmava);
	font: 400 14px/1.35 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	text-align: right;
	cursor: pointer;
	transition: background .15s;
}

.lc-chat-moznost:hover,
.lc-chat-dalsia:hover { background: #fbefe2; }

.lc-chat-moznost-opytana {
	border-color: var(--lc-ciara);
	color: var(--lc-text-slaby);
}

.lc-chat-dalsia {
	display: block;
	margin-left: auto;
	font-weight: 700;
}

/* Pätička chatu */
.lc-chat-paticka {
	flex: 0 0 auto;
	display: flex;
	border-top: 1px solid var(--lc-ciara);
	background: #fff;
}

.lc-chat-akcia {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 48px;
	color: var(--lc-tmava) !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.lc-chat-akcia + .lc-chat-akcia { border-left: 1px solid var(--lc-ciara); }
.lc-chat-akcia:hover { background: var(--lc-svetla); }

/* Tlačidlo "hore" nad chatom */
.ui-to-top { bottom: 98px !important; right: 33px !important; }

/* Kým je otvorená cookie lišta, chat nezavadzia */
html.lc-suhlas-otvoreny .lc-chat { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 991px) {
	.lc-chat {
		right: 14px;
		bottom: 82px;                 /* nad mobilnou lištou Zavolať / Cenová ponuka */
	}
	.lc-chat-spustac { width: 54px; height: 54px; }
	.ui-to-top { bottom: 146px !important; right: 20px !important; }
}

@media (max-width: 767px) {
	.lc-chat-otvoreny {
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		gap: 0;
	}
	.lc-chat-otvoreny .lc-chat-okno {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}
	.lc-chat-otvoreny .lc-chat-spustac { display: none; }
	.lc-chat-otvoreny .lc-chat-paticka { padding-bottom: env(safe-area-inset-bottom); }
	html.lc-chat-aktivny,
	html.lc-chat-aktivny body { overflow: hidden; }
	.lc-chat-okno { height: 100%; }
}

/* ---------- Doladenie ---------- */
.lc-okno-hlavicka h2,
.lc-okno-hlavicka button { margin: 0 !important; }
.lc-okno-paticka .lc-btn { white-space: nowrap; padding: 0 12px; }
html.lc-okno-otvorene, html.lc-okno-otvorene body { overflow: hidden; }
.lc-chat-zoznam > * + *, .lc-chat-paticka > * + *, .lc-chat-spravy > * + * { margin-top: 0; }
/* tlačidlo "hore" je posunuté nad chat, preto ho mimo použitia skryjeme */
.ui-to-top:not(.active) { opacity: 0; visibility: hidden; pointer-events: none; }
