.sa-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999998;
	font-size: 15px;
}

.sa-chat-tlacitko {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	border-radius: 999px;
	background: var(--sa-barva-hlavni, #1e73be);
	color: var(--sa-barva-text, #fff);
	padding: 12px 18px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	font-weight: 600;
}

/* Nahraná ikona misto textového popisku - kulate tlačítko, bez textu. */
.sa-chat-tlacitko--ikona {
	width: 56px;
	height: 56px;
	padding: 0;
	justify-content: center;
}

.sa-chat-ikona {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.sa-chat-panel {
	position: fixed;
	right: 20px;
	bottom: 90px;
	width: 360px;
	max-width: calc(100vw - 40px);
	max-height: min(600px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	background: var(--sa-barva-pozadi-panelu, #fff);
	color: var(--sa-barva-text-panelu, #1f1f24);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.sa-chat-panel[hidden] {
	display: none;
}

.sa-chat-hlavicka {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--sa-barva-hlavni, #1e73be);
	color: var(--sa-barva-text, #fff);
	padding: 14px 16px;
	font-weight: 700;
}

.sa-chat-profil {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sa-chat-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.sa-chat-profil-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.sa-chat-jmeno {
	font-weight: 700;
}

.sa-chat-pozice {
	font-size: 0.78em;
	font-weight: 400;
	opacity: 0.85;
}

.sa-chat-zavrit {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

/*
 * Křížek zůstává bez podbarvení i po najetí — je to drobná ikona v barevné
 * hlavičce, kde plocha pod ní působí jako chyba vykreslení. Zpětná vazba
 * na akci se dává změnou průhlednosti.
 */
.sa-chat-zavrit:hover,
.sa-chat-zavrit:focus-visible {
	background: none;
	opacity: 0.75;
}

.sa-chat-obsah {
	padding: 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sa-chat-uvod {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.5;
	opacity: 0.85;
}

.sa-chat-kontakt {
	list-style: none;
	margin: 0;
	padding: 10px 12px;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sa-chat-kontakt li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9em;
}

.sa-chat-kontakt a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.sa-chat-kontakt a:hover {
	text-decoration: underline;
}

.sa-chat-faq h4,
.sa-chat-navrhy-nadpis,
.sa-chat-form-nadpis {
	margin: 0 0 8px;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.6;
}

.sa-chat-faq-seznam,
.sa-chat-navrhy-seznam {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sa-chat-faq-otazka {
	width: 100%;
	text-align: left;
	background: var(--sa-barva-faq-pozadi, rgba(0, 0, 0, 0.04));
	color: var(--sa-barva-faq-text, inherit);
	font: inherit;
	border: none;
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 0.92em;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.sa-chat-faq-otazka:hover {
	background: var(--sa-barva-faq-hover, rgba(0, 0, 0, 0.08));
}

.sa-chat-faq-odpoved {
	padding: 10px 12px;
	font-size: 0.88em;
	line-height: 1.5;
	opacity: 0.85;
}

.sa-chat-faq-odpoved[hidden] {
	display: none;
}

.sa-chat-navrhy[hidden] {
	display: none;
}

.sa-chat-navrhy-seznam li button {
	width: 100%;
	text-align: left;
	background: rgba(30, 115, 190, 0.08);
	color: inherit;
	font: inherit;
	border: 1px solid rgba(30, 115, 190, 0.25);
	border-radius: 8px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 0.88em;
}

.sa-chat-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 14px;
}

.sa-chat-form textarea,
.sa-chat-form input[type="text"],
.sa-chat-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 8px 10px;
	color: inherit;
	font: inherit;
	background: transparent;
}

/*
 * Motiv webu (GeneratePress) dává polím při focusu vlastní pozadí (světle modré).
 * V okně chatu má pole zůstat bez pozadí i s focusem - stejné jako v klidovém stavu.
 */
.sa-chat-form textarea:focus,
.sa-chat-form input[type="text"]:focus,
.sa-chat-form input[type="email"]:focus,
.sa-chat-form textarea:hover,
.sa-chat-form input[type="text"]:hover,
.sa-chat-form input[type="email"]:hover {
	background: transparent;
	color: inherit;
	border-color: var(--sa-barva-hlavni, currentColor);
	outline: none;
}

.sa-chat-form input:-webkit-autofill,
.sa-chat-form input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--sa-barva-pozadi-panelu, #fff) inset;
	-webkit-text-fill-color: currentColor;
}

.sa-chat-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sa-chat-odeslat {
	border: none;
	border-radius: 999px;
	background: var(--sa-barva-hlavni, #1e73be);
	color: var(--sa-barva-text, #fff);
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
}

.sa-chat-odeslat:disabled {
	opacity: 0.6;
	cursor: default;
}

.sa-chat-stav {
	margin: 0;
	font-size: 0.85em;
	min-height: 1.2em;
}

@media (max-width: 480px) {
	.sa-chat-panel {
		right: 10px;
		left: 10px;
		bottom: 84px;
		width: auto;
	}

	.sa-chat {
		right: 10px;
		bottom: 10px;
	}
}
