/* LSM Produktberater — Farben/Typo aus dem 2026-Shopdesign (bewusst
   hartkodiert, damit das Widget nicht von Theme-CSS-Variablen abhängt). */

.lsm-chat {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	font-family: "MES Roboto", Arial, sans-serif;
}

/* Button-Selektoren doppelt (.lsm-chat …) + explizite Resets: Elementors
   globale Kit-Regel (.elementor-kit-XXXX button, Spezifität 0,1,1) drückt
   sonst Padding/Mindestmaße hinein und macht aus den Kreisen Ovale. */
.lsm-chat .lsm-chat-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: 7px 24px 7px 7px;
	margin: 0 0 0 auto;
	line-height: 1.3;
	border: 0;
	border-radius: 999px;
	background: #0868bd;
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(16, 37, 57, 0.35);
	transition: background 0.2s, transform 0.2s;
}
.lsm-chat .lsm-chat-toggle:hover {
	background: #07539a;
	transform: translateY(-2px);
}
.lsm-chat-ava {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	display: grid;
	place-items: center;
	overflow: hidden;
	flex-shrink: 0;
}
.lsm-chat-ava img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lsm-chat-ava svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.lsm-chat-toggle-text strong {
	display: block;
	font-size: 15px;
	letter-spacing: -0.2px;
}
.lsm-chat-toggle-text small {
	display: block;
	font-size: 11.5px;
	font-weight: 400;
	opacity: 0.85;
	margin-top: 2px;
}

/* display:flex unten schlägt sonst das Browser-Default display:none des
   hidden-Attributs — chat.js klappt das Panel über panel.hidden auf/zu. */
.lsm-chat-panel[hidden] {
	display: none;
}
.lsm-chat-panel {
	width: min(370px, calc(100vw - 32px));
	height: min(540px, calc(100vh - 120px));
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dce4ec;
	border-radius: 12px;
	box-shadow: 0 25px 70px rgba(16, 37, 57, 0.3);
	overflow: hidden;
}

.lsm-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 18px;
	background: #0868bd;
	color: #fff;
}
.lsm-chat-head-text strong {
	display: block;
	font-size: 15px;
	letter-spacing: -0.2px;
}
.lsm-chat-head-text small {
	display: block;
	font-size: 11px;
	opacity: 0.85;
	margin-top: 2px;
}
.lsm-chat .lsm-chat-close {
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}
.lsm-chat .lsm-chat-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.lsm-chat-list {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f5f8fb;
}

.lsm-chat-msg {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.lsm-chat-msg--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #dce4ec;
	color: #14283d;
	border-bottom-left-radius: 3px;
}
.lsm-chat-msg--user {
	align-self: flex-end;
	background: #0868bd;
	color: #fff;
	border-bottom-right-radius: 3px;
}
.lsm-chat-msg--typing {
	color: #586777;
	letter-spacing: 3px;
	animation: lsm-chat-pulse 1s infinite;
}
@keyframes lsm-chat-pulse {
	50% { opacity: 0.4; }
}

.lsm-chat-link {
	color: #0868bd;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lsm-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #dce4ec;
	background: #fff;
}
.lsm-chat-form input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #cfdbe5;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	color: #14283d;
	background: #fff;
}
.lsm-chat-form input:focus {
	outline: none;
	border-color: #0868bd;
}
.lsm-chat .lsm-chat-send {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	line-height: 1;
	border: 0;
	border-radius: 6px;
	background: #0868bd;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}
.lsm-chat .lsm-chat-send:hover {
	background: #07539a;
}
.lsm-chat--busy .lsm-chat-send {
	opacity: 0.5;
	pointer-events: none;
}
.lsm-chat-send svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lsm-chat-note {
	margin: 0;
	padding: 8px 14px 10px;
	background: #fff;
	font-size: 10px;
	line-height: 1.5;
	color: #586777;
}

@media (max-width: 560px) {
	.lsm-chat {
		right: 14px;
		bottom: 14px;
	}
	.lsm-chat-panel {
		height: min(480px, calc(100vh - 100px));
	}
}
