#lgd-vchat-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	z-index: 2147483000;
	transition: transform .15s ease;
}
#lgd-vchat-launcher:hover { transform: scale(1.06); }
#lgd-vchat-launcher svg { width: 26px; height: 26px; }
#lgd-vchat-launcher .lgd-vchat-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #ff4d4f;
	color: #fff;
	font: 600 11px/20px -apple-system, sans-serif;
	text-align: center;
	padding: 0 5px;
	box-shadow: 0 0 0 2px #000;
}

#lgd-vchat-panel {
	position: fixed;
	right: 20px;
	bottom: 92px;
	width: 370px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 2147483000;
	font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
}
#lgd-vchat-panel.lgd-vchat-hidden { display: none; }
#lgd-vchat-launcher.lgd-vchat-hidden { display: none; }

.lgd-vchat-header {
	background: #000;
	color: #fff;
	padding: 16px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.lgd-vchat-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.5);
}
.lgd-vchat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lgd-vchat-header-text { flex: 1; min-width: 0; }
.lgd-vchat-header-title { font-weight: 700; font-size: 17px; }
.lgd-vchat-header-sub { font-size: 12.5px; opacity: .8; margin-top: 2px; }
.lgd-vchat-header-btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	opacity: .85;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lgd-vchat-header-btn:hover { opacity: 1; }
.lgd-vchat-header-btn svg { width: 18px; height: 18px; }

.lgd-vchat-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
}

.lgd-vchat-bubble { max-width: 82%; }
.lgd-vchat-bubble.team { align-self: flex-start; }
.lgd-vchat-bubble.visitor { align-self: flex-end; }
.lgd-vchat-bubble-text {
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 15px;
	white-space: pre-wrap;
	word-break: break-word;
}
.lgd-vchat-bubble.team .lgd-vchat-bubble-text { background: #f1f1f1; color: #1a1a1a; border-bottom-left-radius: 4px; }
.lgd-vchat-bubble.visitor .lgd-vchat-bubble-text { background: #000; color: #fff; border-bottom-right-radius: 4px; }
.lgd-vchat-bubble-time { font-size: 11px; color: #8a8a8a; margin-top: 4px; text-align: right; }

.lgd-vchat-email-box {
	background: #f4f4f4;
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 14px;
	color: #333;
	align-self: stretch;
}
.lgd-vchat-email-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 24px;
	padding: 6px 6px 6px 14px;
}
.lgd-vchat-email-row input {
	flex: 1;
	border: none !important;
	outline: none !important;
	font: inherit !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #1a1a1a !important;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	min-width: 0;
}
.lgd-vchat-email-row button {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #f0f0f0;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.lgd-vchat-email-row button:hover { background: #e4e4e4; }
.lgd-vchat-email-row svg { width: 16px; height: 16px; }

.lgd-vchat-reply-time {
	text-align: center;
	font-size: 12px;
	color: #7a8699;
	padding: 6px 16px 0;
	flex-shrink: 0;
}

.lgd-vchat-composer {
	flex-shrink: 0;
	padding: 12px 16px 6px;
}
.lgd-vchat-composer-row {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e2e2e2;
	border-radius: 26px;
	padding: 8px 8px 8px 16px;
	background: #fff;
}
.lgd-vchat-composer-row input {
	flex: 1;
	border: none !important;
	outline: none !important;
	font: inherit !important;
	font-size: 15px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #1a1a1a !important;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none !important;
	min-width: 0;
}
.lgd-vchat-composer-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #4a4a4a;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.lgd-vchat-composer-btn:hover { background: #f2f2f2; }
.lgd-vchat-composer-btn svg { width: 19px; height: 19px; }
.lgd-vchat-footer {
	text-align: center;
	font-size: 11px;
	color: #9a9a9a;
	padding: 4px 16px 14px;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	#lgd-vchat-panel {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}
	#lgd-vchat-launcher { right: 16px; bottom: 16px; }
}

#lgd-vchat-panel.lgd-vchat-expanded {
	width: 460px;
	height: 720px;
	max-height: calc(100vh - 60px);
}
