#a1-chatbot-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#a1-chatbot-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #14233a;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#a1-chatbot-toggle:hover {
	background: #1d3255;
}

.a1-chatbot-toggle-icon {
	display: inline-flex;
	line-height: 0;
}

#a1-chatbot-panel {
	position: absolute;
	bottom: 64px;
	right: 0;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#a1-chatbot-panel[hidden] {
	display: none;
}

.a1-chatbot-header {
	background: #14233a;
	color: #fff;
	padding: 12px 16px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#a1-chatbot-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

#a1-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f4f6f8;
}

.a1-chatbot-msg {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.4;
	white-space: pre-wrap;
}

.a1-chatbot-msg.user {
	align-self: flex-end;
	background: #2b5f8c;
	color: #fff;
	border-bottom-right-radius: 2px;
}

.a1-chatbot-msg.assistant {
	align-self: flex-start;
	background: #fff;
	color: #14233a;
	border: 1px solid #dde5eb;
	border-bottom-left-radius: 2px;
}

.a1-chatbot-msg.typing {
	color: #8a97a3;
	font-style: italic;
}

#a1-chatbot-form {
	display: flex;
	border-top: 1px solid #dde5eb;
	background: #fff;
}

#a1-chatbot-input {
	flex: 1;
	border: none;
	padding: 12px 14px;
	font-size: 13.5px;
	outline: none;
}

#a1-chatbot-form button {
	background: #2b5f8c;
	color: #fff;
	border: none;
	width: 46px;
	font-size: 16px;
	cursor: pointer;
}

#a1-chatbot-form button:hover {
	background: #234c70;
}

@media (max-width: 480px) {
	#a1-chatbot-panel {
		width: calc(100vw - 24px);
		right: -8px;
	}
	.a1-chatbot-toggle-label {
		font-size: 12.5px;
	}
}
