
#hm-chatbot {
	font-family: Arial, sans-serif;
	position: relative;
	z-index: 9999;
}

#hm-chat-toggle {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 20px;
	border: none;
	border-radius: 30px;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
	cursor: pointer;
}

	#hm-chat-toggle:hover {
		background: #1d4ed8;
	}

.hm-chat-icon {
	font-size: 22px;
}

.hm-chat-window {
	position: fixed;
	right: 24px;
	bottom: 88px;
	width: 370px;
	max-width: calc(100vw - 24px);
	height: 520px;
	max-height: calc(100vh - 120px);
	display: none;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

	.hm-chat-window.hm-open {
		display: flex;
	}

.hm-chat-header {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 15px;
	background: #2563eb;
	color: #fff;
}

.hm-chat-avatar {
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	color: #2563eb;
	border-radius: 50%;
	font-weight: bold;
	font-size: 20px;
}

.hm-chat-title {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
}

	.hm-chat-title small {
		color: #ffe1e1;
	}

#hm-chat-close {
	border: none;
	background: transparent;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
}

.hm-chat-messages {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
	background: #f8fafc;
}

.hm-message {
	max-width: 88%;
	margin-bottom: 12px;
	padding: 11px 13px;
	border-radius: 13px;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.hm-bot-message {
	margin-right: auto;
	background: #fff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
}

.hm-user-message {
	margin-left: auto;
	background: #2563eb;
	color: #fff;
}

.hm-chat-suggestions {
	display: flex;
	gap: 7px;
	padding: 8px 12px;
	overflow-x: auto;
}

	.hm-chat-suggestions button {
		flex-shrink: 0;
		border: 1px solid #2563eb;
		border-radius: 20px;
		background: #fff;
		color: #d60010;
		padding: 7px 10px;
		font-size: 12px;
		cursor: pointer;
	}

.hm-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e5e7eb;
}

#hm-chat-input {
	flex: 1;
	width: 0;
	min-width: 0;
	border: 1px solid #d1d5db;
	border-radius: 22px;
	outline: none;
	padding: 11px 13px;
	font-size: 14px;
}

	#hm-chat-input:focus {
		border-color: #2563eb;
	}

#hm-chat-send {
	border: none;
	border-radius: 22px;
	padding: 0 16px;
	background: #2563eb;
	color: #fff;
	cursor: pointer;
}

	#hm-chat-send:disabled {
		opacity: .6;
		cursor: wait;
	}

.hm-chat-footer {
	padding: 0 12px 10px;
	text-align: center;
	font-size: 10px;
	color: #6b7280;
}

@media (max-width: 480px) {
	#hm-chat-toggle {
		right: 14px;
		bottom: 14px;
	}

	.hm-chat-window {
		right: 12px;
		bottom: 76px;
		width: calc(100vw - 24px);
		height: min(520px, calc(100vh - 100px));
		max-height: calc(100vh - 100px);
	}
}
