#thaphaco-chat-bubble {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1a7d4b;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.2);
	z-index: 999999;
	font-size: 26px;
}

#thaphaco-chat-window {
	position: fixed;
	bottom: 88px;
	right: 20px;
	width: 320px;
	max-width: 90vw;
	height: 420px;
	max-height: 70vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#thaphaco-chat-window.open {
	display: flex;
}

#thaphaco-chat-header {
	background: #1a7d4b;
	color: #fff;
	padding: 10px 14px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#thaphaco-chat-close {
	cursor: pointer;
	font-size: 18px;
}

#thaphaco-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
	background: #f7f7f7;
}

.thaphaco-chat-msg {
	margin: 6px 0;
	padding: 8px 12px;
	border-radius: 10px;
	max-width: 80%;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
}

.thaphaco-chat-msg.user {
	background: #1a7d4b;
	color: #fff;
	margin-left: auto;
}

.thaphaco-chat-msg.bot {
	background: #e9e9e9;
	color: #222;
	margin-right: auto;
}

#thaphaco-chat-input-row {
	display: flex;
	border-top: 1px solid #eee;
}

#thaphaco-chat-input {
	flex: 1;
	border: none;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
}

#thaphaco-chat-send {
	border: none;
	background: #1a7d4b;
	color: #fff;
	padding: 0 16px;
	cursor: pointer;
	font-size: 14px;
}
