.fcb-widget-container {
	position: fixed;
	bottom: var(--fcb-offset-y, 20px);
	right: var(--fcb-offset-x, 20px);
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fcb-trigger {
	background-color: var(--fcb-primary, #0073aa);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.fcb-trigger:hover {
	transform: scale(1.05);
}

.fcb-icon {
	width: 30px;
	height: 30px;
}

.fcb-popup {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 350px;
	max-height: 500px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform-origin: bottom right;
}

.fcb-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.95);
}

.fcb-header {
	background-color: var(--fcb-primary, #0073aa);
	color: #fff;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fcb-title {
	font-weight: 600;
	font-size: 16px;
}

.fcb-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.fcb-body {
	padding: 15px;
	overflow-y: auto;
	flex-grow: 1;
	background-color: #f9f9f9;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fcb-message {
	padding: 10px 15px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.4;
	max-width: 85%;
	animation: fcb-fade-in 0.3s ease;
}

.fcb-received {
	background-color: #fff;
	color: #333;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fcb-sent {
	background-color: var(--fcb-primary, #0073aa);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.fcb-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.fcb-faq-btn {
	background-color: #fff;
	border: 1px solid var(--fcb-primary, #0073aa);
	color: var(--fcb-primary, #0073aa);
	padding: 8px 12px;
	border-radius: 16px;
	font-size: 13px;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fcb-faq-btn:hover {
	background-color: var(--fcb-primary, #0073aa);
	color: #fff;
}

.fcb-footer {
	padding: 10px 15px;
	background-color: #fff;
	border-top: 1px solid #eee;
	font-size: 12px;
	color: #777;
	text-align: center;
}

.fcb-typing {
	display: flex;
	gap: 4px;
	padding: 12px 16px;
	align-items: center;
}

.fcb-dot {
	width: 6px;
	height: 6px;
	background-color: #888;
	border-radius: 50%;
	animation: fcb-bounce 1.4s infinite ease-in-out both;
}

.fcb-dot:nth-child(1) { animation-delay: -0.32s; }
.fcb-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes fcb-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}

@keyframes fcb-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}