.ai-chat-wrapper-3540 {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
}

.ai-chat-trigger-3540 {
	width: 60px;
	height: 60px;
	background-color: #25D366;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 30px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: transform 0.3s ease;
}

.ai-chat-trigger-3540 i {
	font-size: 30px;
}

.ai-chat-trigger-3540 svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.ai-chat-trigger-3540:hover {
	transform: scale(1.1);
}

.ai-chat-window-3540 {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 350px;
	height: 450px;
	background: #ECE5DD;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.ai-chat-window-3540.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ai-chat-header-3540 {
	background-color: #128C7E;
	color: white;
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ai-chat-header-info-3540 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ai-chat-avatar-3540 {
	width: 40px;
	height: 40px;
	background-color: rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ai-chat-avatar-3540 i { font-size: 20px; }
.ai-chat-avatar-3540 svg { width: 20px; height: 20px; fill: currentColor; }

.ai-chat-header-text-3540 {
	display: flex;
	flex-direction: column;
}

.ai-chat-title-3540 {
	font-weight: bold;
	font-size: 16px;
	line-height: 1.2;
}

.ai-chat-status-3540 {
	font-size: 12px;
	opacity: 0.9;
}

.ai-chat-close-3540 {
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.ai-chat-body-3540 {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
}

.ai-message-3540 {
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
	position: relative;
	box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.ai-system-3540 {
	background-color: #ffffff;
	align-self: flex-start;
	border-top-left-radius: 0;
}

.ai-system-3540::before {
	content: '';
	position: absolute;
	top: 0;
	left: -8px;
	border: 8px solid transparent;
	border-top-color: #ffffff;
	border-right-color: #ffffff;
}

.ai-user-3540 {
	background-color: #dcf8c6;
	align-self: flex-end;
	border-top-right-radius: 0;
}

.ai-user-3540::before {
	content: '';
	position: absolute;
	top: 0;
	right: -8px;
	border: 8px solid transparent;
	border-top-color: #dcf8c6;
	border-left-color: #dcf8c6;
}

.ai-chat-footer-3540 {
	display: flex;
	padding: 10px;
	background: #f0f0f0;
	gap: 10px;
	align-items: center;
}

.ai-chat-footer-3540 input {
	flex: 1;
	padding: 12px 15px;
	border: none;
	border-radius: 20px;
	outline: none;
	font-size: 14px;
}

.ai-chat-footer-3540 button {
	background-color: #128C7E;
	color: white;
	border: none;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background 0.3s ease;
	font-size: 18px;
}

.ai-chat-footer-3540 button:hover {
	background-color: #075E54;
}

.ai-chat-footer-3540 button.recording {
	background-color: #ff3b30;
	animation: pulseRecord 1.5s infinite;
}

@keyframes pulseRecord {
	0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.ai-chat-loading-3540 {
	align-self: flex-start;
	background: #fff;
	padding: 10px;
	border-radius: 15px;
	display: flex;
	gap: 5px;
}

.ai-chat-loading-3540 span {
	width: 8px;
	height: 8px;
	background: #aaa;
	border-radius: 50%;
	animation: aiBounce 1.4s infinite ease-in-out both;
}

.ai-chat-loading-3540 span:nth-child(1) { animation-delay: -0.32s; }
.ai-chat-loading-3540 span:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiBounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}

/* Editor Preview Fix */
.elementor-editor-active .ai-chat-wrapper-3540 {
	position: relative;
	bottom: auto;
	right: auto;
	display: flex;
	gap: 20px;
}
.elementor-editor-active .ai-chat-window-editor-preview {
	position: relative;
	bottom: auto;
	right: auto;
	opacity: 1;
	visibility: visible;
	transform: none;
}
