/*chatbot start*/

/* Chat button */
.chat-button {
	background: #1aa7ff;
	color: white;
	border: none;
	border-radius: 50%;
	padding: 16px;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
	z-index: 99999;
}

/* Chat box */
.chat-box {
	position: fixed;
	right: 20px;
	/* bottom: 90px; */
	bottom: 150px;
	width: 330px;
	height: 430px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
	display: none;
	flex-direction: column;
	overflow: hidden;
	animation: fadeUp 0.35s ease-out;
	z-index: 99999;
}

@keyframes fadeUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Header */
.chat-header {
	background: #1aa7ff;
	padding: 4px;
	color: white;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.chat-header span {
	font-size: 16px;
}

.chat-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

/* Messages area */
.chat-messages {
	padding: 10px;
	flex: 1;
	overflow-y: scroll;
	background: #f5f7fb;
	display: flex;
	flex-direction: column;
	height: 70%;
}

/* User bubble */
.msg-user {
	background: #1aa7ff;
	color: white;
	max-width: 75%;
	padding: 10px;
	border-radius: 12px 12px 0 12px;
	margin: 8px 0;
	margin-left: auto;
	display: inline-block;
	font-size: 12px;
}

/* Bot bubble */
.msg-bot {
	background: #e9ecef;
	color: #333;
	max-width: 75%;
	padding: 10px;
	border-radius: 12px 12px 12px 0;
	margin: 8px 0;
	margin-right: auto;
	display: inline-block;
	font-size: 12px;
}

/* Link buttons */
.bot-button {
	display: inline-block;
	background: #1aa7ff;
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	text-decoration: none;
	margin-top: 6px;
	font-size: 14px;
}

.bot-button:hover {
	background: white;
	color: #1aa7ff;
	border: 1px dashed #1aa7ff;
}

/* Input area */
.chat-input-area {
	padding: 10px;
	display: flex;
	gap: 8px;
	background: #fff;
}

.chat-input {
	flex: 1;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.send-button {
	background: #1aa7ff;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 0 18px;
	font-size: 18px;
	cursor: pointer;
}

/* Typing Indicator */
.typing-indicator {
	display: flex;
	gap: 4px;
	padding: 8px 15px;
}

.dot {
	width: 8px;
	height: 8px;
	background: #1aa7ff;
	border-radius: 50%;
	animation: blink 1s infinite;
}

@keyframes blink {
	0% {
		opacity: 0.2;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.2;
	}
}

/* Close Button */
.close-chat-btn {
	margin-left: auto;
	background: transparent;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 0 8px;
}

/* Tooltip container */
.chat-tooltip {
	position: fixed;
	right: 90px;
	/* left side of icon */
	bottom: 90px;
	background: #1aa7ff;
	color: white;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateX(-20px);
	transition: all 0.4s ease;
	z-index: 99999;
	pointer-events: none;
	/* user cannot click */
}

/* Visible state */
.chat-tooltip.show {
	opacity: 1;
	transform: translateX(0);
}

/* blinking cursor effect */
#tooltipText::after {
	content: "|";
	margin-left: 3px;
	animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}
/* Bigger tooltip arrow pointing to the chat button */
.chat-tooltip::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
	border-width: 18px;
	border-style: solid;
	border-color: transparent transparent transparent #1aa7ff;
}
.robot-icon {
	width: 28px;
	height: 28px;
}
/* Mobile responsive — break into 2 lines */
@media only screen and (max-width: 480px) {
	.chat-tooltip {
		white-space: normal !important;
		/* allow wrapping */
		width: 160px;
		/* fixed clean width */
		right: 80px;
		/* stays beside icon */
		bottom: 80px;
		line-height: 1.3;
		padding: 10px 12px;
	}
}

.chat-info {

	font-size: 10px;
	color: #1aa7ff;

	display: flex;
	align-items: center;
    justify-content: center;
	gap: 5px;

}

.chat-info i {
	font-size: 16px;
	color: #1aa7ff;
}

/*chatbot end*/
