#lcp-widget-root {
	--lcp-primary: #e8695f;
	position: fixed;
	z-index: 999999;
	bottom: 24px;
	right: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#lcp-widget-root.lcp-position-bottom-left {
	right: auto;
	left: 24px;
}

.lcp-launcher {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--lcp-primary);
	color: #fff;
	border: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: transform 0.15s ease;
}

.lcp-launcher:hover {
	transform: scale(1.06);
}

.lcp-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #d92d20;
	color: #fff;
	border-radius: 999px;
	min-width: 20px;
	height: 20px;
	font-size: 12px;
	font-weight: 600;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border: 2px solid #fff;
}

.lcp-panel {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 460px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	display: none;
	flex-direction: column;
	overflow: hidden;
}

#lcp-widget-root.lcp-position-bottom-left .lcp-panel {
	right: auto;
	left: 0;
}

.lcp-panel.lcp-open {
	display: flex;
}

.lcp-header {
	background: var(--lcp-primary);
	color: #fff;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
}

.lcp-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.lcp-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f7f7f8;
}

.lcp-msg {
	display: flex;
	max-width: 80%;
}

.lcp-bubble {
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.lcp-msg-visitor {
	align-self: flex-end;
}

.lcp-msg-visitor .lcp-bubble {
	background: var(--lcp-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.lcp-msg-agent {
	align-self: flex-start;
}

.lcp-msg-agent .lcp-bubble {
	background: #fff;
	color: #222;
	border: 1px solid #e5e5e8;
	border-bottom-left-radius: 4px;
}

.lcp-msg-system {
	align-self: center;
	font-size: 12px;
	color: #999;
	text-align: center;
}

.lcp-prechat-form {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-y: auto;
}

.lcp-greeting {
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
}

.lcp-prechat-form input,
.lcp-prechat-form select {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #333;
}

.lcp-btn-primary {
	background: var(--lcp-primary);
	color: #fff;
	border: none;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.lcp-message-form {
	display: flex;
	border-top: 1px solid #eee;
	padding: 10px;
	gap: 8px;
}

.lcp-input-message {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 14px;
}

.lcp-btn-send {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--lcp-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
