/* Base widget container */
#ai-chatbot-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Toggle button */
#ai-chatbot-toggle {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: none;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	font-weight: 600;
}

/* Chat window */
#ai-chatbot-window {
	width: 360px;
	height: 500px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin-bottom: 12px;
}

/* Header */
#ai-chatbot-header {
	color: #ffffff;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}

#ai-chatbot-close {
	border: none;
	background: transparent;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
}

/* Messages */
#ai-chatbot-messages {
	flex-grow: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #ffffff;
}

.ai-chatbot-message {
	max-width: 75%;
	padding: 10px 14px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.35;
	white-space: pre-wrap;
	word-break: break-word;
}

.ai-chatbot-message.user {
	align-self: flex-end;
	color: #ffffff;
}

.ai-chatbot-message.bot {
	align-self: flex-start;
	background: #f1f5f9;
	color: #0f172a;
}

/* Input area */
#ai-chatbot-input-area {
	border-top: 1px solid #e5e7eb;
	padding: 12px;
	display: flex;
	gap: 8px;
	align-items: center;
}

#ai-chatbot-input {
	flex-grow: 1;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	padding: 8px 14px;
	outline: none;
}

#ai-chatbot-send {
	border: none;
	color: #ffffff;
	border-radius: 20px;
	padding: 8px 16px;
	cursor: pointer;
	font-weight: 600;
}

/* Typing indicator */
.ai-chatbot-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ai-chatbot-typing span {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #94a3b8;
	animation: ai-chatbot-bounce 1.2s infinite ease-in-out;
}

.ai-chatbot-typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.ai-chatbot-typing span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes ai-chatbot-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
	40% { transform: translateY(-4px); opacity: 1; }
}

