.lsca-root {
	--lsca-primary: #1a73e8;
	--lsca-bubble-bg: #01142c;
	--lsca-accent: #f2a93b;
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.lsca-bottom-right { right: 20px; }
.lsca-bottom-left { left: 20px; }

.lsca-bubble {
	height: 54px;
	padding: 5px 20px 5px 5px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--lsca-bubble-bg), #0a2a52);
	color: #fff;
	border: none;
	box-shadow: 0 8px 22px rgba(1,20,44,0.35);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: transform 0.15s ease;
	position: relative;
}
.lsca-bubble:hover { transform: scale(1.04); }

.lsca-bubble-icon-wrap {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.lsca-bubble-icon { width: 100%; height: 100%; object-fit: cover; }

.lsca-bubble-label {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	letter-spacing: 0.2px;
}

.lsca-bubble-dot {
	position: absolute;
	top: 2px;
	right: 10px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--lsca-accent);
	box-shadow: 0 0 0 3px rgba(1,20,44,0.9);
	animation: lsca-dot-pulse 1.8s ease-in-out infinite;
}
.lsca-bubble.lsca-noticed .lsca-bubble-dot { animation: none; }

@keyframes lsca-dot-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.35); opacity: 0.65; }
}

.lsca-panel {
	position: absolute;
	bottom: 72px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: 70vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.22);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.lsca-bottom-right .lsca-panel { right: 0; }
.lsca-bottom-left .lsca-panel { left: 0; }
.lsca-panel.lsca-open { display: flex; }

.lsca-header {
	background: var(--lsca-primary);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lsca-header-logo {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	object-fit: cover;
	flex-shrink: 0;
}
.lsca-header-text { flex: 1; min-width: 0; }
.lsca-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsca-subtitle { font-size: 12px; opacity: 0.85; }

.lsca-lang-toggle { display: flex; gap: 4px; }
.lsca-lang-btn {
	background: rgba(255,255,255,0.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 999px;
	font-size: 11px;
	padding: 3px 8px;
	cursor: pointer;
}
.lsca-lang-btn.active { background: #fff; color: var(--lsca-primary); border-color: #fff; }

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

.lsca-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f7f8fa;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lsca-msg { display: flex; }
.lsca-msg-user { justify-content: flex-end; }
.lsca-msg-assistant { justify-content: flex-start; }

.lsca-msg-bubble {
	max-width: 80%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.lsca-msg-user .lsca-msg-bubble { background: var(--lsca-primary); color: #fff; border-bottom-right-radius: 4px; }
.lsca-msg-assistant .lsca-msg-bubble { background: #fff; color: #1f2328; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.lsca-typing .lsca-msg-bubble { color: #8a8f98; font-style: italic; }

.lsca-input-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eee;
	background: #fff;
	box-sizing: border-box;
}
.lsca-input {
	flex: 1;
	resize: none;
	border: 1px solid #dcdfe4;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 13.5px;
	font-family: inherit;
	line-height: 1.4;
	height: 38px;
	min-height: 38px;
	max-height: 80px;
	overflow-y: auto;
	box-sizing: border-box;
	background: #ffffff !important;
	color: #1f2328 !important;
	-webkit-appearance: none;
	appearance: none;
}
.lsca-input::placeholder { color: #9aa0a6; opacity: 1; }
.lsca-input:focus { outline: none; border-color: var(--lsca-primary); }
.lsca-send {
	background: var(--lsca-primary);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	height: 38px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.lsca-send:disabled { opacity: 0.6; cursor: default; }

.lsca-footer {
	text-align: center;
	font-size: 10.5px;
	color: #9aa0a6;
	padding: 5px 0 8px;
	background: #fff;
	border-top: 1px solid #f1f1f1;
}
.lsca-footer a { color: #9aa0a6; text-decoration: none; }
.lsca-footer a:hover { text-decoration: underline; }

.lsca-lead-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lsca-lead-intro { font-size: 13px; margin: 0 0 2px; color: #1f2328; }
.lsca-field {
	border: 1px solid #dcdfe4;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}
.lsca-consent { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #4b5563; }
.lsca-lead-submit {
	background: var(--lsca-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.lsca-shake { animation: lsca-shake 0.35s; }
@keyframes lsca-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.lsca-whatsapp-link {
	display: inline-block;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	align-self: flex-start;
}

@media (max-width: 480px) {
	.lsca-bubble { height: 48px; padding: 4px 16px 4px 4px; gap: 8px; }
	.lsca-bubble-icon-wrap { width: 36px; height: 36px; }
	.lsca-bubble-label { font-size: 13.5px; }

	.lsca-panel {
		width: calc(100vw - 24px);
		max-width: 380px;
		height: 70vh;
		max-height: 560px;
		bottom: 62px;
	}
}

@media (max-width: 360px) {
	.lsca-bubble-label { display: none; }
	.lsca-bubble { padding: 4px; border-radius: 50%; }
	.lsca-bubble-dot { right: 2px; }
	.lsca-panel { width: calc(100vw - 16px); }
}

@media (max-height: 640px) {
	.lsca-panel { height: 78vh; }
}
/* Appended rules for the built-in (no custom logo) bubble/header icon. */
.lsca-icon-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lsca-primary, #1a73e8);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
.lsca-header-logo.lsca-icon-fallback { font-size: 14px; border-radius: 7px; }
