#chat-fab {
	position: fixed;
	bottom: 12px;
	right: 12px;
	width: 56px;
	height: 56px;
	background: #007bff;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 9999;
	transition: box-shadow 0.2s;
}
#chat-fab:hover {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}
#chat-fab svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}
#chat-widget-window {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #fff;
	border-radius: 0;
	box-shadow: none;
	font-family: sans-serif;
	z-index: 9999;
	display: none;
	flex-direction: column;
	overflow: hidden;
	animation: chatOpen 0.2s;
}
@keyframes chatOpen {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
#chat-widget-header {
	background: #007bff;
	color: #fff;
	padding: 14px 18px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#chat-widget-close {
	cursor: pointer;
	font-size: 22px;
}
#chat-widget-content {
	flex: 1;
	overflow-y: auto;
	background: #fafafa;
	padding: 12px;
}
#chat-widget-input-area {
	display: flex;
	border-top: 1px solid #eee;
	background: #fff;
}
#chat-widget-input {
	flex: 1;
	padding: 12px;
	border: none;
	outline: none;
	font-size: 15px;
	background: #fff;
	border-radius: 0;
}
#chat-widget-send {
	padding: 0 18px;
	background: #007bff;
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 0;
	font-size: 15px;
}
.chat-thread {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	border-radius: 6px;
}
.chat-thread:hover {
	background: #f0f8ff;
}
.chat-back {
	color: #007bff;
	cursor: pointer;
	margin-bottom: 10px;
	display: inline-block;
}
.chat-message {
	margin: 8px 0;
}
.chat-message.me {
	text-align: right;
}
.chat-message.me span {
	background: #007bff;
	color: #fff;
}
.chat-message.other span {
	background: #e9ecef;
	color: #333;
}
.chat-message span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 16px;
	max-width: 80%;
	word-break: break-word;
}
.chat-message-meta {
	font-size: 11px;
	color: #888;
	margin-top: 2px;
}

/* Fullscreen specific styles */
#chat-widget-window.fullscreen {
	display: flex;
}

#chat-widget-header {
	min-height: 60px;
	padding: 20px 24px;
	font-size: 18px;
}

#chat-widget-content {
	padding: 20px 24px;
}

#chat-widget-input-area {
	padding: 0;
	min-height: 60px;
}

#chat-widget-input {
	padding: 20px 24px;
	font-size: 16px;
}

#chat-widget-send {
	padding: 0 32px;
	font-size: 16px;
	min-width: 80px;
}

.chat-thread {
	padding: 16px 20px;
	margin: 8px 0;
	border-radius: 12px;
	font-size: 16px;
}

.chat-message {
	margin: 16px 0;
}

.chat-message span {
	padding: 12px 18px;
	font-size: 16px;
	border-radius: 20px;
}

/* Close button styling for fullscreen */
#chat-widget-close {
	font-size: 28px;
	padding: 4px;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

#chat-widget-close:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
	#chat-widget-header {
		padding: 16px 20px;
		font-size: 16px;
	}
	
	#chat-widget-content {
		padding: 16px 20px;
	}
	
	#chat-widget-input {
		padding: 16px 20px;
		font-size: 16px;
	}
	
	#chat-widget-send {
		padding: 0 24px;
	}
}

/* Hide FAB when fullscreen is active */
#chat-widget-window.fullscreen ~ #chat-fab {
	display: none;
}
