#chat-widget.active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	border-radius: 0;
}

.bot-message {
	background: white;
	padding: 8px 12px;
	border-radius: 18px 18px 18px 0;
	margin-bottom: 8px;
	max-width: 90%;
	display: inline-block;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	border: 1px solid #e0e0e0;
	animation: fadeIn .3s ease;
}

.option-btn {
	background: #005baa;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 18px;
	cursor: pointer;
	font-size: 14px;
	text-align: left;
	transition: background .2s;
	width: 100%;
}

.option-btn:hover {
	background: #003d7a;
}

.back-btn {
	background: #6c757d !important;
}

.back-btn:hover {
	background: #5a6268 !important;
}

#chat-toggle.hidden {
	display: none;
}

.error-message {
	color: #f44;
	margin: 10px 0;
	text-align: center;
	font-size: 14px;
	animation: fadeIn .3s ease-in-out;
}

@media (min-width: 768px) {
	#chat-widget.active {
		border-radius: 12px;
	}
	
	.bot-message {
		max-width: 80%;
		padding: 10px 15px;
	}
}

@media (max-width: 767px) {
	#chat-widget.keyboard-visible {
		height: 50vh !important;
		width: 60% !important;
		left: 50% !important;
		transform: translate(-50%, 0) !important;
		border-radius: 12px 12px 0 0 !important;
		box-shadow: 0 0 20px rgba(0, 0, 0, .3);
		border: 2px solid #005baa;
	}
	
	#chat-widget.keyboard-visible .chat-header {
		display: flex;
		border-radius: 10px 10px 0 0;
		padding: 8px 10px;
		font-size: 14px;
	}
	
	#chat-widget.keyboard-visible #chat-messages {
		padding: 8px;
		border-radius: 0;
	}
	
	#chat-widget.keyboard-visible .chat-input-container {
		padding: 8px;
		border-top: 1px solid #eee;
	}
	
	#chat-widget.keyboard-visible #user-input {
		width: calc(100% - 40px);
		padding: 8px 12px;
		font-size: 14px;
	}
	
	#chat-widget.keyboard-visible #send-btn {
		width: 34px;
		height: 34px;
		font-size: 14px;
		right: 8px;
		top: 8px;
	}
	
	@media (max-width: 480px) {
		#chat-widget.keyboard-visible {
			width: 85% !important;
		}
		
		#chat-widget.keyboard-visible .chat-header h3 {
			font-size: 14px;
		}
		
		.bot-message {
			font-size: 15px;
			padding: 6px 10px;
		}
		
		.option-btn {
			padding: 8px 12px;
			font-size: 15px;
		}
	}
}

@media (max-width: 400px) {
	#chat-widget.keyboard-visible {
		width: 90% !important;
	}
	
	#chat-widget.keyboard-visible #user-input {
		font-size: 13px;
	}
}