/* WhatsApp Chatbot Widget Styles */
.whatsapp-chatbot-container {
	position: fixed;
	bottom: 30px;
	left: 30px;
	z-index: 999999;
}

.whatsapp-btn {
	width: 55px;
	height: 55px;
	background-color: #25D366;
	color: #fff !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	position: relative;
}

.whatsapp-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Pulse animation for WhatsApp button */
.whatsapp-btn::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid #25D366;
	top: 0;
	left: 0;
	animation: wa-pulse 1.8s infinite;
	opacity: 0;
}

@keyframes wa-pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

.whatsapp-chat-box {
	position: absolute;
	bottom: 65px;
	left: 0;
	width: 320px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-chat-box.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.whatsapp-chat-header {
	background: var(--primary-color);
	color: #fff;
	padding: 12px 15px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.whatsapp-chat-avatar {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--primary-color);
	font-weight: 700;
	position: relative;
}

.whatsapp-chat-avatar::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 10px;
	height: 10px;
	background: #25D366;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
}

.whatsapp-chat-header-info h4 {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.whatsapp-chat-header-info p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

.whatsapp-chat-body {
	padding: 15px;
	background: #f8f9fa;
	max-height: 260px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-bubble {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 15px;
	font-size: 13.5px;
	line-height: 1.4;
}

.chat-bubble.bot {
	background: #fff;
	color: #333;
	align-self: flex-start;
	border-top-left-radius: 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-bubble.user {
	background: var(--primary-color);
	color: #fff;
	align-self: flex-end;
	border-top-right-radius: 0;
}

.chatbot-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 5px;
}

.chatbot-opt-btn {
	background: #fff;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.chatbot-opt-btn:hover {
	background: var(--primary-color);
	color: #fff;
}

.whatsapp-chat-footer {
	padding: 8px 12px;
	background: #fff;
	border-top: 1px solid #eee;
	text-align: center;
}

.whatsapp-chat-cta-btn {
	display: inline-block;
	width: 100%;
	background: #25D366;
	color: #fff !important;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(37, 211, 102, 0.2);
	transition: all 0.2s ease;
}

.whatsapp-chat-cta-btn:hover {
	background: #20ba5a;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Typing indicator style */
.typing-indicator {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
}
.typing-indicator span {
	width: 6px;
	height: 6px;
	background: #aaa;
	border-radius: 50%;
	animation: bounce 1s infinite alternate;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
	to { transform: translateY(-4px); }
}

/* Chatbot links styling */
.chatbot-link {
	color: var(--primary-color) !important;
	text-decoration: underline !important;
	font-weight: 700;
	transition: color 0.2s ease;
}
.chatbot-link:hover {
	color: var(--accent-color) !important;
}
