/* UA Chatbot — bottom-left, navy/green branding */
#ua-chatbot-bubble {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #0a2a5e;
	border: none;
	cursor: pointer;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	padding: 0;
}
#ua-chatbot-bubble:hover { background: #123a7d; }
#ua-chatbot-bubble svg { width: 30px; height: 30px; fill: #fff; }
#ua-chatbot-bubble .ua-chatbot-close { display: none; }
#ua-chatbot-bubble.ua-open .ua-chatbot-chat-icon { display: none; }
#ua-chatbot-bubble.ua-open .ua-chatbot-close { display: block; }

#ua-chatbot-panel {
	position: fixed;
	right: 20px;
	bottom: 92px;
	width: 370px;
	max-width: calc(100vw - 40px);
	height: 520px;
	max-height: calc(100vh - 130px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
	z-index: 99999;
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#ua-chatbot-panel.ua-open { display: flex; }

.ua-chatbot-header {
	background: #0a2a5e;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.ua-chatbot-logo {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	flex-shrink: 0;
}
.ua-chatbot-header strong { display: block; font-size: 16px; }
.ua-chatbot-header span { font-size: 12px; opacity: 0.85; }

#ua-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f4f6fa;
}
.ua-chatbot-msg {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	word-wrap: break-word;
}
.ua-chatbot-msg a { color: #0a2a5e; font-weight: 600; }
.ua-chatbot-bot {
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e1e5ee;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.ua-chatbot-user {
	background: #1d7a3a;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}
.ua-chatbot-typing { font-style: italic; opacity: 0.7; }

.ua-chatbot-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-self: flex-start;
}
.ua-chatbot-chip {
	background: #fff;
	border: 1px solid #0a2a5e;
	color: #0a2a5e;
	border-radius: 18px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}
.ua-chatbot-chip:hover { background: #0a2a5e; color: #fff; }

.ua-chatbot-inputrow {
	display: flex;
	border-top: 1px solid #e1e5ee;
	background: #fff;
}
#ua-chatbot-input {
	flex: 1;
	border: none;
	padding: 13px 14px;
	font-size: 14px;
	outline: none;
}
#ua-chatbot-send {
	background: #0a2a5e;
	color: #fff;
	border: none;
	padding: 0 18px;
	font-size: 14px;
	cursor: pointer;
}
#ua-chatbot-send:hover { background: #123a7d; }

.ua-chatbot-leadform { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.ua-chatbot-leadform input,
.ua-chatbot-leadform textarea {
	border: 1px solid #cfd6e4;
	border-radius: 8px;
	padding: 9px 11px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}
.ua-chatbot-leadform button {
	background: #1d7a3a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px;
	font-size: 14px;
	cursor: pointer;
}
.ua-chatbot-leadform button:hover { background: #16632e; }
.ua-chatbot-leadform button:disabled { opacity: 0.6; cursor: default; }
