/*
 * Het venster staat op elke pagina van het thema. Knoppen, tekst en afbeeldingen krijgen daarom
 * hier expliciet hun stijl, zodat thema-stijlen (Elementor, WooCommerce) er niet doorheen komen.
 */
.lzc {
	--lzc-accent: #d78aa1;
	--lzc-on-accent: #ffffff;
	--lzc-bg: #ffffff;
	--lzc-soft: #f5f2f0;
	--lzc-text: #1f1f1f;
	--lzc-muted: #6b6b6b;
	--lzc-border: #e8e2df;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--lzc-text);
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
}
.lzc *, .lzc *::before, .lzc *::after { box-sizing: border-box; }

.lzc button {
	margin: 0 !important;
	padding: 0;
	min-width: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: none;
	box-shadow: none !important;
	color: inherit;
	font: inherit !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.lzc button:focus-visible { outline: 2px solid var(--lzc-accent); outline-offset: 2px; }
.lzc svg { display: block; flex: none; }
.lzc img { display: block; max-width: none; margin: 0; border: 0; box-shadow: none; }

/* Profielfoto */
.lzc .lzc-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--lzc-accent);
	color: var(--lzc-on-accent);
	display: grid;
	place-items: center;
	overflow: hidden;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}
.lzc .lzc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lzc .lzc-header .lzc-avatar { width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, .7); }

/* Chatknop: pil met profielfoto en tekst */
.lzc .lzc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px 6px 6px !important;
	border-radius: 999px;
	background: var(--lzc-bg);
	color: var(--lzc-text);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14) !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.lzc .lzc-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important; }
.lzc .lzc-launcher-text { font-weight: 600; font-size: 15px; white-space: nowrap; }
.lzc.is-open .lzc-launcher { display: none; }

/* Pop-up boven de knop */
.lzc .lzc-popup {
	display: none;
	position: relative;
	max-width: 260px;
	padding: 14px 36px 14px 16px;
	background: var(--lzc-bg);
	border: 1px solid var(--lzc-border);
	border-radius: 16px 16px 4px 16px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
	animation: lzc-pop .25s ease-out;
}
.lzc.has-popup:not(.is-open) .lzc-popup { display: block; }
.lzc .lzc-popup-text { display: block; text-align: left; font-size: 15px !important; }
.lzc .lzc-popup .lzc-icon {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	color: var(--lzc-muted);
}
.lzc .lzc-popup .lzc-icon svg { width: 14px; height: 14px; }
@keyframes lzc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Venster */
.lzc .lzc-panel {
	display: none;
	flex-direction: column;
	width: 370px;
	height: min(620px, calc(100vh - 40px));
	background: var(--lzc-bg);
	border: 1px solid var(--lzc-border);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	overflow: hidden;
}
.lzc.is-open .lzc-panel { display: flex; }

.lzc .lzc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 10px 12px 14px;
	background: var(--lzc-accent);
	color: var(--lzc-on-accent);
}
.lzc .lzc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lzc .lzc-header .lzc-name {
	color: var(--lzc-on-accent) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .04em;
}
.lzc .lzc-header .lzc-sub { color: var(--lzc-on-accent) !important; font-size: 12px; line-height: 1.2; opacity: .85; }

.lzc .lzc-icon {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: grid;
	place-items: center;
}
.lzc .lzc-header .lzc-icon { color: var(--lzc-on-accent); }
.lzc .lzc-header .lzc-icon:hover { background: rgba(255, 255, 255, .18); }
.lzc .lzc-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Berichten */
.lzc .lzc-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--lzc-bg);
}
.lzc .lzc-msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	overflow-wrap: anywhere;
	font-size: 15px;
}
.lzc .lzc-msg p { margin: 0 0 6px; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.lzc .lzc-msg p:last-child { margin-bottom: 0; }
.lzc .lzc-msg ul { margin: 4px 0 6px; padding-left: 18px; list-style: disc; }
.lzc .lzc-msg li { margin: 2px 0; padding: 0; }
.lzc .lzc-msg a { color: inherit; text-decoration: underline; }

.lzc .lzc-assistant { align-self: flex-start; background: var(--lzc-soft); border-bottom-left-radius: 4px; }
.lzc .lzc-user { align-self: flex-end; background: var(--lzc-accent); color: var(--lzc-on-accent); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.lzc .lzc-error { align-self: center; background: #fdecea; color: #8a1c13; font-size: 13px; text-align: center; }

/* Snelle keuzes */
.lzc .lzc-replies { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 2px; }
.lzc .lzc-reply {
	max-width: 85%;
	padding: 9px 14px !important;
	border: 1.5px solid var(--lzc-accent) !important;
	border-radius: 999px;
	background: var(--lzc-bg);
	color: var(--lzc-text);
	font-size: 14px !important;
	text-align: left;
	transition: background .15s ease, color .15s ease;
}
.lzc .lzc-reply:hover { background: var(--lzc-accent); color: var(--lzc-on-accent); }

.lzc .lzc-typing { display: flex; gap: 4px; padding: 13px 14px; }
.lzc .lzc-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lzc-muted);
	animation: lzc-blink 1.2s infinite ease-in-out;
}
.lzc .lzc-typing span:nth-child(2) { animation-delay: .15s; }
.lzc .lzc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lzc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Productkaartjes: horizontaal scrollen */
.lzc .lzc-cards {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 2px 2px 6px;
	margin: 0 -16px;
	padding-left: 16px;
	padding-right: 16px;
	scroll-snap-type: x mandatory;
	flex: none;
}
.lzc .lzc-card {
	flex: none;
	width: 150px;
	display: flex;
	flex-direction: column;
	background: var(--lzc-bg);
	border: 1px solid var(--lzc-border);
	border-radius: 14px;
	overflow: hidden;
	scroll-snap-align: start;
}
.lzc .lzc-card-link { display: flex; flex-direction: column; color: inherit !important; text-decoration: none !important; }
.lzc .lzc-card-img { width: 100%; height: 150px; object-fit: cover; background: var(--lzc-soft); }
.lzc .lzc-card-name {
	padding: 8px 10px 2px;
	font-size: 13px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lzc .lzc-card-price { padding: 0 10px 8px; font-size: 13px; font-weight: 700; }
.lzc .lzc-card-btn {
	display: block;
	margin: auto 8px 8px !important;
	padding: 7px 8px !important;
	border-radius: 999px;
	background: var(--lzc-accent);
	color: var(--lzc-on-accent) !important;
	font-size: 13px !important;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}
.lzc a.lzc-card-btn { background: var(--lzc-bg); color: var(--lzc-text) !important; border: 1.5px solid var(--lzc-accent) !important; }
.lzc .lzc-card-btn.is-added { background: #2e7d4f; }
.lzc .lzc-card-btn:disabled { cursor: default; }
.lzc .lzc-cart-link { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--lzc-text) !important; text-decoration: underline !important; }

/* Foto's */
.lzc .lzc-thumb { display: block; max-width: 160px; max-height: 160px; border-radius: 10px; margin-bottom: 6px; }
.lzc .lzc-preview { display: none; position: relative; align-self: flex-start; margin: 8px 12px 0; }
.lzc.has-preview .lzc-preview { display: block; }
.lzc .lzc-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--lzc-border); }
.lzc .lzc-preview .lzc-icon {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--lzc-text);
	color: #fff;
}
.lzc .lzc-preview .lzc-icon svg { width: 12px; height: 12px; }
.lzc .lzc-form .lzc-photo { width: 42px; height: 42px; color: var(--lzc-muted); }
.lzc .lzc-form .lzc-photo:hover { color: var(--lzc-text); background: var(--lzc-soft); }

/* Invoer */
.lzc .lzc-form {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--lzc-border);
}
.lzc .lzc-input {
	flex: 1;
	width: auto;
	height: 42px;
	min-height: 42px;
	max-height: 120px;
	margin: 0;
	padding: 10px 12px;
	resize: none;
	border: 1px solid var(--lzc-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 15px;
	line-height: 1.35;
	outline: none;
}
.lzc .lzc-input:focus { border-color: var(--lzc-accent); }
.lzc .lzc-send {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--lzc-accent);
	color: var(--lzc-on-accent);
	display: grid;
	place-items: center;
}
.lzc .lzc-send:disabled { opacity: .5; cursor: default; }
.lzc .lzc-send svg { width: 18px; height: 18px; fill: currentColor; }

.lzc .lzc-note {
	margin: 0;
	padding: 0 14px 10px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--lzc-muted);
	text-align: center;
}

@media (max-width: 480px) {
	.lzc { right: 16px; bottom: 16px; }
	.lzc.is-open { inset: 0; }
	.lzc .lzc-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
	.lzc .lzc-input { font-size: 16px; } /* voorkomt inzoomen op iPhone */
}

@media (prefers-reduced-motion: reduce) {
	.lzc .lzc-launcher, .lzc .lzc-typing span, .lzc .lzc-popup { transition: none; animation: none; }
}
