.chatbox {
	display: none;
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 400px;
	height: 600px;
	background: #354f92 0% 0% no-repeat padding-box;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	flex-direction: column;
	padding: 0;
	z-index: 9999;
}

@media (max-width: 768px) {
	.chatbox {
		width: 96%;
    height: 75%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    padding: 5px 2%;
	}

	.chatbox-header {
		border-radius: 0;
		padding: 15px;
	}

	.chatbox-body {
		padding: 15px;
	}

	.chatbox-input {
		border-radius: 0;
		padding: 10px 15px;
		position: sticky;
		bottom: 0;
	}

	.chat-icon {
		bottom: 20px;
		width: 50px;
		height: 50px;
		font-size: 20px;
	}

	.message-content {
		max-width: 85%;
	}

	.message .text {
		padding: 10px 14px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.chatbox-header {
		padding: 12px;
	}

	.chatbox-headerTitle {
		font-size: 16px;
	}

	.chatbox-body {
		padding: 12px;
	}

	.chatbox-input {
		padding: 8px 12px;
	}

	.chatbox-input input {
		padding: 8px 12px;
		font-size: 14px;
	}

	.chatbox-input button {
		padding: 6px 15px;
		font-size: 13px;
	}

	.message .avatar {
		width: 32px;
		height: 32px;
		min-width: 32px;
		min-height: 32px;
		max-width: 32px;
		max-height: 32px;
		margin-right: 8px;
	}

	.message.user .avatar {
		margin-left: 8px;
	}

	.message-content {
		max-width: 90%;
	}

	.message .text {
		padding: 8px 12px;
		font-size: 13px;
	}
}

.chatbox-header {
	padding: 15px 20px;
	background-color: #354f92;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	border-radius: 12px 12px 0 0;
}

.chatbox-headerTitle {
	font-size: 18px;
	font-weight: 500;
}

i.fa-solid.fa-xmark {
	cursor: pointer;
}

.chatbox-body {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background-color: white;
}

.chatbox-input {
	padding: 15px 20px;
	border-top: 1px solid #eee;
	display: flex;
	background: white;
	border-radius: 0 0 12px 12px;
}

.chatbox-input input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #e0e0e0;
	border-radius: 24px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.chatbox-input input:focus {
	outline: none;
	border-color: #354f92;
	box-shadow: 0 0 0 2px rgba(53, 79, 146, 0.1);
}

.chatbox-input button {
	margin-left: 10px;
	padding: 8px 20px;
	background-color: #354f92;
	color: white;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s ease;
}

.chatbox-input button:hover {
	background-color: #2a3f75;
}

.chat-icon {
	position: fixed;
	bottom: 30px;
	right: 10px;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 9999;
}

.chat-icon:hover {
	transform: scale(1.05);
}

.message {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
}

.message.bot {
	justify-content: flex-start;
}

.message.user {
	justify-content: flex-end;
}

.message .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	margin-right: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-sizing: border-box;
	min-width: 36px;
	min-height: 36px;
	max-width: 36px;
	max-height: 36px;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.user .avatar {
	margin-left: 12px;
	margin-right: 0;
}

.message-content {
	display: flex;
	flex-direction: column;
	max-width: 70%;
}

.message .time {
	font-size: 12px;
	color: #999;
	margin-bottom: 4px;
}

.message .text {
	padding: 12px 16px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.4;
}

.message.bot .text {
	background-color: #f5f5f5;
	border-top-left-radius: 4px;
}

.message.user .text {
	background-color: #354f92;
	color: white;
	border-top-right-radius: 4px;
}

.bot-avatar {
	background-image: url('../images/xazs.png');
	background-size: cover;
	background-position: center;
}

.user-avatar {
	background-image: url('../images/khtx.png');
	background-size: cover;
	background-position: center;
}