
/* Style for the chat bubble */
header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 900;
}

#chat-bubble {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: #06b6d4;
	border-radius: 50%;
	padding: 10px;
	cursor: pointer;
	z-index: 10001;
}

/* Add animation styles for the pop-in-out message */
@keyframes popInOut {
	0%, 100% {
		opacity: 0;
		transform: scale(.8);
	}
	
	50% {
		opacity: 1;
		transform: scale(1);
	}
}

#pop-message {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	background: #06b6d4;
	color: #fff;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 14px;
	opacity: 0;
	animation: popInOut 2s ease-in-out infinite;
}

#chat-icon {
	width: 100%;
	height: auto;
}

/* Style for the chat modal (80% of screen height on desktop and mobile) */
#chat-modal {
	position: fixed;
	top: 10px;
	bottom: 10px;
	right: 20px;
	width: 85%;
	max-width: 360px;
	background-color: white;
	border: 1px solid #ccc;
	z-index: 11000;
	border-radius: 8px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, .2);
	display: flex;
	flex-direction: column;
	height: 80vh;
	overflow: hidden;
	margin-bottom: 20px;
}

/* Media Query for Mobile Devices (also 80% height on mobile) */
@media (max-width: 600px) {
	#chat-modal {
		right: 10px;
		left: 10px;
		width: auto;
		max-width: none;
		height: 80vh;
	}
	
	#chat-content {
		flex-grow: 1;
		height: 100%;
		overflow-y: auto;
	}
	
	#chat-iframe {
		flex-grow: 1;
		height: 100%;
		width: 100%;
		border: none;
	}
}

/* Close button style */
.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
	color: white;
	background-color: transparent;
	border: none;
}

/* Header style (Ensure it remains visible) */
#chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background-color: #06b6d4;
	color: white;
	border-radius: 10px 10px 0 0;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 1002;
}

#chat-title {
	margin: 0 auto;
	font-weight: bold;
	font-size: 18px;
	font-family: "Exo 2", Helvetica, Arial, Lucida, sans-serif;
	text-align: center;
}

#close-chat {
	background: transparent;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
}

/* Content style */
#chat-content {
	flex-grow: 1;
	overflow: auto;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-bottom: 0;
}

/* Style for the iframe inside the modal */
#chat-iframe {
	flex-grow: 1;
	width: 100%;
	height: 100%;
	border: none;
}

/* Ensure the chat icon is centered within the bubble */
#chat-bubble img {
	width: 100%;
	height: auto;
}

/* Adjust the input box and send button inside the iframe */
.input-form {
	display: flex;
	width: 100%;
	padding: 10px;
	background-color: white;
	border-top: 1px solid #ccc;
}

input[type="text"] {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-right: 10px;
	width: 100%;
	box-sizing: border-box;
}

button {
	padding: 10px 20px;
	background-color: #06b6d4;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

button:hover {
	background-color: #007bb5;
}

/* Custom Scrollbar appearance */
#chat-content::-webkit-scrollbar {
	width: 6px;
}

#chat-content::-webkit-scrollbar-thumb {
	background-color: #06b6d4;
	border-radius: 10px;
}

#chat-content::-webkit-scrollbar-track {
	background-color: #f0f0f0;
}

#chat-content:hover::-webkit-scrollbar-thumb {
	background-color: #007bb5;
}
