/* Lemuel Manzano FAQ Assistant. Navy #101A40, royal blue #3D51B3, gold accent #F2B84B. */

#lmfaq-root {
	--lmfaq-navy: #101A40;
	--lmfaq-blue: #3D51B3;
	--lmfaq-blue-dark: #2F3F94;
	--lmfaq-gold: #F2B84B;
	--lmfaq-ink: #101A40;
	--lmfaq-muted: #4A5372;
	--lmfaq-bot-bg: #EEF1FB;
	--lmfaq-line: #D5DBF0;
	--lmfaq-field-border: #6F7BAE;
	--lmfaq-white: #FFFFFF;
	--lmfaq-bottom: 20px;
	--lmfaq-right: 20px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--lmfaq-ink);
	position: fixed;
	right: var(--lmfaq-right);
	bottom: var(--lmfaq-bottom);
	z-index: 99990;
}

#lmfaq-root *,
#lmfaq-root *::before,
#lmfaq-root *::after {
	box-sizing: border-box;
}

/* Launcher */
#lmfaq-root .lmfaq-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(16, 26, 64, 0.35);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

#lmfaq-root .lmfaq-launcher:hover {
	background: var(--lmfaq-blue-dark);
	transform: translateY(-1px);
}

#lmfaq-root .lmfaq-launcher:focus-visible,
#lmfaq-root .lmfaq-btn:focus-visible,
#lmfaq-root .lmfaq-input:focus-visible,
#lmfaq-root .lmfaq-send:focus-visible,
#lmfaq-root .lmfaq-msg:focus-visible {
	outline: 3px solid var(--lmfaq-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--lmfaq-white);
}

#lmfaq-root .lmfaq-close:focus-visible {
	outline: 3px solid var(--lmfaq-gold);
	outline-offset: 2px;
}

#lmfaq-root .lmfaq-launcher svg {
	width: 28px;
	height: 28px;
	display: block;
}

#lmfaq-root .lmfaq-launcher img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Panel */
#lmfaq-root .lmfaq-panel {
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: 560px;
	max-height: calc(100vh - 110px);
	max-height: calc(100dvh - 110px);
	margin: 0 0 12px;
	background: var(--lmfaq-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(16, 26, 64, 0.3);
	border: 1px solid var(--lmfaq-line);
}

#lmfaq-root .lmfaq-panel[hidden] {
	display: none;
}

#lmfaq-root .lmfaq-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--lmfaq-navy);
	color: var(--lmfaq-white);
	flex: 0 0 auto;
}

#lmfaq-root .lmfaq-avatar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
	border: 2px solid var(--lmfaq-gold);
	overflow: hidden;
}

#lmfaq-root .lmfaq-avatar svg {
	width: 22px;
	height: 22px;
}

#lmfaq-root .lmfaq-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#lmfaq-root .lmfaq-titles {
	flex: 1 1 auto;
	min-width: 0;
}

#lmfaq-root .lmfaq-title {
	margin: 0;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lmfaq-white);
}

#lmfaq-root .lmfaq-subtitle {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--lmfaq-gold);
}

#lmfaq-root .lmfaq-close {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lmfaq-white);
	cursor: pointer;
}

#lmfaq-root .lmfaq-close:hover {
	background: rgba(255, 255, 255, 0.14);
}

#lmfaq-root .lmfaq-close svg {
	width: 20px;
	height: 20px;
}

/* Conversation */
#lmfaq-root .lmfaq-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
	background: var(--lmfaq-white);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#lmfaq-root .lmfaq-msg {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

#lmfaq-root .lmfaq-msg.bot {
	align-self: flex-start;
	background: var(--lmfaq-bot-bg);
	color: var(--lmfaq-ink);
	border-bottom-left-radius: 4px;
}

#lmfaq-root .lmfaq-msg.user {
	align-self: flex-end;
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
	border-bottom-right-radius: 4px;
}

/* Choice buttons */
#lmfaq-root .lmfaq-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 2px;
}

#lmfaq-root .lmfaq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	margin: 0;
	border: 2px solid var(--lmfaq-blue);
	border-radius: 999px;
	background: var(--lmfaq-white);
	color: var(--lmfaq-blue-dark);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#lmfaq-root .lmfaq-btn:hover {
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
	text-decoration: none;
}

#lmfaq-root .lmfaq-btn.primary {
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
}

#lmfaq-root .lmfaq-btn.primary:hover {
	background: var(--lmfaq-blue-dark);
	border-color: var(--lmfaq-blue-dark);
}

#lmfaq-root .lmfaq-btn.quiet {
	border-color: var(--lmfaq-line);
	color: var(--lmfaq-muted);
	font-weight: 500;
}

#lmfaq-root .lmfaq-btn.quiet:hover {
	background: var(--lmfaq-bot-bg);
	color: var(--lmfaq-ink);
}

/* Footer */
#lmfaq-root .lmfaq-footer {
	flex: 0 0 auto;
	padding: 10px 16px 14px;
	border-top: 1px solid var(--lmfaq-line);
	background: var(--lmfaq-white);
}

#lmfaq-root .lmfaq-note {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--lmfaq-muted);
}

#lmfaq-root .lmfaq-form {
	display: flex;
	gap: 8px;
	margin: 0;
}

#lmfaq-root .lmfaq-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	margin: 0;
	border: 2px solid var(--lmfaq-field-border);
	border-radius: 999px;
	background: var(--lmfaq-white);
	color: var(--lmfaq-ink);
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}

#lmfaq-root .lmfaq-input::placeholder {
	color: #5B6384;
	opacity: 1;
}

#lmfaq-root .lmfaq-send {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lmfaq-blue);
	color: var(--lmfaq-white);
	cursor: pointer;
}

#lmfaq-root .lmfaq-send:hover {
	background: var(--lmfaq-blue-dark);
}

#lmfaq-root .lmfaq-send svg {
	width: 20px;
	height: 20px;
}

#lmfaq-root .lmfaq-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Phones */
@media (max-width: 480px) {
	#lmfaq-root {
		--lmfaq-right: 12px;
		--lmfaq-bottom: 12px;
	}

	#lmfaq-root .lmfaq-panel {
		width: calc(100vw - 24px);
		height: calc(100vh - 96px);
		height: calc(100dvh - 96px);
		max-height: none;
	}
}

#lmfaq-root.lmfaq-hide-mobile {
	display: block;
}

@media (max-width: 600px) {
	#lmfaq-root.lmfaq-hide-mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#lmfaq-root .lmfaq-launcher,
	#lmfaq-root .lmfaq-btn {
		transition: none;
	}

	#lmfaq-root .lmfaq-launcher:hover {
		transform: none;
	}
}

@media (forced-colors: active) {
	#lmfaq-root .lmfaq-launcher,
	#lmfaq-root .lmfaq-send,
	#lmfaq-root .lmfaq-btn {
		border: 2px solid ButtonText;
	}
}

@media print {
	#lmfaq-root {
		display: none;
	}
}
