#fla-root {
	--fla-green: #08371e;
	--fla-orange: #c26428;
	--fla-cream: #faf5eb;
	--fla-ink: #1d2620;
	--fla-muted: #6b6f68;
	--fla-line: #e6e0d3;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fla-ink);
}
#fla-root *, #fla-root *::before, #fla-root *::after { box-sizing: border-box; }

#fla-root .fla-launch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px 12px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--fla-green);
	color: var(--fla-cream);
	font: inherit;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(8, 55, 30, .28);
	transition: transform .15s ease, box-shadow .15s ease;
}
#fla-root .fla-launch:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(8, 55, 30, .34); }
#fla-root .fla-launch:focus-visible { outline: 3px solid var(--fla-orange); outline-offset: 2px; }
#fla-root .fla-launch svg { color: var(--fla-orange); flex: none; }
#fla-root.fla-is-open .fla-launch { display: none; }

#fla-root .fla-panel {
	display: flex;
	flex-direction: column;
	width: 380px;
	height: min(580px, calc(100vh - 40px));
	background: #fff;
	border: 1px solid var(--fla-line);
	border-top: 4px solid var(--fla-orange);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(20, 30, 24, .22);
	overflow: hidden;
}
#fla-root .fla-panel[hidden] { display: none; }

#fla-root .fla-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 12px 12px 16px;
	border-bottom: 1px solid var(--fla-line);
	background: #fff;
}
#fla-root .fla-brand { flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; }
#fla-root .fla-brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; color: var(--fla-green); font-weight: 700; }
#fla-root .fla-brand span { font-size: 14px; color: var(--fla-muted); }
#fla-root .fla-brand em {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: var(--fla-orange);
	border: 1px solid var(--fla-orange);
	border-radius: 4px;
	padding: 0 5px;
}
#fla-root .fla-head button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--fla-muted);
	cursor: pointer;
}
#fla-root .fla-head button:hover { background: #f2efe8; color: var(--fla-green); }

#fla-root .fla-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 8px;
	background: #fff;
	overscroll-behavior: contain;
}
#fla-root .fla-msg {
	max-width: 88%;
	margin: 0 0 10px;
	padding: 10px 13px;
	border-radius: 12px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
#fla-root .fla-msg p { margin: 0 0 8px; padding: 0; font-size: 15px; line-height: 1.5; color: inherit; }
#fla-root .fla-msg p:last-child { margin-bottom: 0; }
#fla-root .fla-msg ul { margin: 4px 0 8px; padding: 0 0 0 18px; }
#fla-root .fla-msg ul:last-child { margin-bottom: 0; }
#fla-root .fla-msg li { margin: 0 0 4px; padding: 0; font-size: 15px; line-height: 1.45; list-style: disc; }
#fla-root .fla-msg a { color: var(--fla-green); text-decoration: underline; text-decoration-color: var(--fla-orange); text-underline-offset: 2px; font-weight: 600; }
#fla-root .fla-bot { background: var(--fla-cream); color: var(--fla-ink); border-bottom-left-radius: 4px; }
#fla-root .fla-user { margin-left: auto; background: #eef0ec; color: var(--fla-ink); border-bottom-right-radius: 4px; }
#fla-root .fla-error { background: #fdf0e8; }

#fla-root .fla-typing { display: inline-flex; gap: 5px; padding: 13px 14px; }
#fla-root .fla-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--fla-orange); opacity: .35; animation: fla-dot 1.2s infinite ease-in-out; }
#fla-root .fla-typing span:nth-child(2) { animation-delay: .2s; }
#fla-root .fla-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes fla-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

#fla-root .fla-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--fla-line);
	background: #fff;
}
#fla-root .fla-form textarea {
	flex: 1;
	min-height: 42px;
	max-height: 120px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--fla-line);
	border-radius: 10px;
	background: #fff;
	color: var(--fla-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.35;
	resize: none;
	box-shadow: none;
}
#fla-root .fla-form textarea:focus { outline: none; border-color: var(--fla-green); }
#fla-root .fla-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--fla-orange);
	color: #fff;
	cursor: pointer;
}
#fla-root .fla-send:disabled { opacity: .5; cursor: default; }
#fla-root .fla-note {
	padding: 0 14px 10px;
	background: #fff;
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--fla-muted);
}

@media (max-width: 600px) {
	#fla-root { left: 12px; bottom: 12px; }
	#fla-root.fla-is-open { left: 8px; right: 8px; bottom: 8px; }
	#fla-root .fla-panel { width: 100%; height: min(82vh, calc(100vh - 16px)); }
	#fla-root .fla-launch { padding: 11px 15px 11px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	#fla-root .fla-launch, #fla-root .fla-typing span { transition: none; animation: none; }
}
@media print { #fla-root { display: none !important; } }
