#lc-widget-root {
	--lc-color: #0052cc;
	--lc-text: #fff;
	position: relative;
	z-index: 2147483647;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lc-launcher {
	position: fixed;
	z-index: 2147483647;
	bottom: 24px;
	right: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--lc-color);
	color: var(--lc-text);
	border: 0;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.lc-launcher-icon {
	display: flex;
	align-items: center;
}

.lc-panel {
	position: fixed;
	z-index: 2147483647;
	bottom: 96px;
	right: 24px;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(20px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.lc-panel.lc-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.lc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--lc-color);
	color: var(--lc-text);
	flex-shrink: 0;
}

.lc-header-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.lc-header-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.lc-header-text strong {
	font-size: 14px;
}

.lc-header-text small {
	font-size: 11px;
	opacity: 0.85;
}

.lc-close {
	background: transparent;
	color: var(--lc-text);
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.lc-body {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.lc-screen {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 10px;
}

.lc-start {
	justify-content: flex-start;
}

.lc-greeting {
	margin: 0 0 8px;
	font-size: 14px;
	color: #344054;
	line-height: 1.5;
}

.lc-field {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.lc-field:focus {
	border-color: var(--lc-color);
	box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.lc-btn {
	border: 0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	background: var(--lc-color);
	color: var(--lc-text);
}

.lc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.lc-error {
	margin: 0;
	font-size: 13px;
	color: #d92d20;
}

.lc-chat .lc-messages {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 2px;
}

.lc-msg {
	display: flex;
	flex-direction: column;
	max-width: 85%;
}

.lc-msg.lc-own {
	align-self: flex-end;
	align-items: flex-end;
}

.lc-msg.lc-them {
	align-self: flex-start;
	align-items: flex-start;
}

.lc-bubble {
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
	background: #f2f4f7;
	color: #101828;
}

.lc-own .lc-bubble {
	background: var(--lc-color);
	color: var(--lc-text);
	border-bottom-right-radius: 3px;
}

.lc-them .lc-bubble {
	border-bottom-left-radius: 3px;
}

.lc-time {
	font-size: 10px;
	color: #98a2b3;
	margin-top: 2px;
}

.lc-closed {
	margin: 0;
	padding: 8px 10px;
	background: #fef3c7;
	color: #92400e;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
}

.lc-composer {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.lc-composer .lc-field {
	flex: 1;
}

.hidden {
	display: none !important;
}

@media (max-width: 480px) {
	.lc-panel {
		right: 8px;
		width: calc(100vw - 16px);
	}
	.lc-launcher {
		right: 8px;
		bottom: 16px;
		padding: 11px 16px;
	}
}