/* CSS for chat widget */
#impactus-chatbot-container {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#impactus-chat-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #0073aa;
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

#impactus-chat-toggle:hover {
	transform: scale(1.05);
}

#impactus-chat-window {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 350px;
	height: 500px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform-origin: bottom right;
}

#impactus-chat-window.impactus-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.9);
}

.impactus-chat-header {
	background: #0073aa;
	color: #fff;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.impactus-chat-header h3 {
	margin: 0;
	font-size: 16px;
	color: #fff;
}

#impactus-chat-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.impactus-chat-messages {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f9f9f9;
}

.impactus-message {
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
}

.impactus-message.bot {
	align-self: flex-start;
	background: #e9ecef;
	color: #333;
	border-bottom-left-radius: 4px;
}

.impactus-message.user {
	align-self: flex-end;
	background: #0073aa;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.impactus-chat-input {
	display: flex;
	padding: 15px;
	background: #fff;
	border-top: 1px solid #eee;
}

#impactus-chat-input-field {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 10px 15px;
	outline: none;
	font-size: 14px;
}

#impactus-chat-input-field:focus {
	border-color: #0073aa;
}

#impactus-chat-send {
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 0 15px;
	margin-left: 10px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}

#impactus-chat-send:hover {
	background: #005177;
}

.impactus-typing-indicator {
	align-self: flex-start;
	background: #e9ecef;
	padding: 12px 16px;
	border-radius: 18px;
	border-bottom-left-radius: 4px;
	display: flex;
	gap: 4px;
}
.impactus-typing-indicator span {
	width: 6px;
	height: 6px;
	background: #888;
	border-radius: 50%;
	display: inline-block;
	animation: impactusBlink 1.4s infinite both;
}
.impactus-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.impactus-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes impactusBlink {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}

@media (max-width: 480px) {
	#impactus-chat-window {
		position: fixed;
		bottom: 0;
		right: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	#impactus-chatbot-container {
		bottom: 15px;
		right: 15px;
	}
}
