.fwc-widget {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.fwc-widget.fwc-pos-right { right: 20px; }
.fwc-widget.fwc-pos-left  { left: 20px; }

@media (max-width: 782px) {
	.fwc-widget.fwc-hide-mobile { display: none !important; }
}
@media (min-width: 783px) {
	.fwc-widget.fwc-hide-desktop { display: none !important; }
}

.fwc-bubble {
	width: var(--fwc-button-size, 60px);
	height: var(--fwc-button-size, 60px);
	border-radius: 50%;
	background: var(--fwc-brand-color, #25D366);
	border: none;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
	position: relative;
}
.fwc-bubble:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.fwc-bubble-icon { width: 55%; height: 55%; }
.fwc-close-icon { width: 45%; height: 45%; display: none; }
.fwc-widget.fwc-open .fwc-bubble-icon { display: none; }
.fwc-widget.fwc-open .fwc-close-icon { display: block; }

/* Teaser speech bubble */
.fwc-teaser {
	position: absolute;
	bottom: 6px;
	max-width: 220px;
	background: #fff;
	color: #111;
	padding: 10px 14px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	font-size: 13px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.fwc-widget.fwc-pos-right .fwc-teaser { right: calc(var(--fwc-button-size, 60px) + 14px); }
.fwc-widget.fwc-pos-left  .fwc-teaser { left: calc(var(--fwc-button-size, 60px) + 14px); }
.fwc-widget.fwc-teaser-visible .fwc-teaser {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.fwc-widget.fwc-open .fwc-teaser { display: none; }

/* Popup panel (multi-agent) */
.fwc-panel {
	position: absolute;
	bottom: calc(var(--fwc-button-size, 60px) + 16px);
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px) scale(.98);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.fwc-widget.fwc-pos-right .fwc-panel { right: 0; }
.fwc-widget.fwc-pos-left  .fwc-panel { left: 0; }
.fwc-widget.fwc-open .fwc-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.fwc-panel-header {
	background: var(--fwc-brand-color, #25D366);
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
.fwc-panel-header-text { display: flex; flex-direction: column; }
.fwc-panel-header-text strong { font-size: 15px; margin-bottom: 2px; }
.fwc-panel-header-text span { font-size: 12px; opacity: .9; }
.fwc-panel-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 0 10px;
}

.fwc-agent-list {
	max-height: 320px;
	overflow-y: auto;
	background: #f5f6f7;
	padding: 8px;
}
.fwc-agent-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: transform .15s ease;
}
.fwc-agent-item:last-child { margin-bottom: 0; }
.fwc-agent-item:hover { transform: translateY(-1px); }

.fwc-agent-avatar-wrap { position: relative; flex-shrink: 0; width: 42px; height: 42px; }
.fwc-agent-avatar-wrap img {
	width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block;
}
.fwc-agent-initial {
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--fwc-brand-color, #25D366);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 600; font-size: 16px; text-transform: uppercase;
}
.fwc-online-dot {
	position: absolute;
	bottom: 0; right: 0;
	width: 11px; height: 11px;
	background: #31d158;
	border: 2px solid #fff;
	border-radius: 50%;
}

.fwc-agent-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.fwc-agent-name { font-size: 14px; font-weight: 600; color: #111; }
.fwc-agent-role { font-size: 12px; color: #667085; }
.fwc-agent-chat-icon { color: #a0a6ad; font-size: 18px; }
