/* Cartlum AI shopping chat: a bubble at the bottom right, a panel above it (full width on phones). */
.clc {
	--clc-ink: #1d2327;
	--clc-muted: #50575e;
	--clc-line: #dcdcde;
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--clc-ink);
}
.clc *, .clc *::before, .clc *::after { box-sizing: border-box; }
.clc-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 99px;
	background: var(--clx-accent, #1f2937);
	color: var(--clx-on-accent, #fff);
	font: inherit;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	cursor: pointer;
}
.clc-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.clc.is-open .clc-open { display: none; }
.clc-open:focus-visible, .clc-close:focus-visible, .clc-form button:focus-visible { outline: 3px solid var(--clx-accent, #1f2937); outline-offset: 2px; }
.clc-panel {
	display: flex;
	flex-direction: column;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: min(560px, calc(100vh - 32px));
	border: 1px solid var(--clc-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
	overflow: hidden;
}
.clc-panel[hidden] { display: none; }
.clc-head strong { font-weight: 700; }
.clc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--clc-line); }
.clc-close { width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: 8px; background: none; color: var(--clc-ink); font-size: 24px; cursor: pointer; }
.clc-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.clc-msg { max-width: 85%; margin: 0; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.clc-msg--bot { align-self: flex-start; background: #f2f3f3; }
.clc-msg--me { align-self: flex-end; background: var(--clx-accent, #1f2937); color: var(--clx-on-accent, #fff); }
.clc-msg.is-wait { color: var(--clc-muted); }
.clc-cards { display: flex; flex-direction: column; gap: 8px; }
.clc-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--clc-line); border-radius: 10px; }
.clc-card__img { display: block; width: 48px; height: 48px; border-radius: 8px; background: #f2f3f3; overflow: hidden; }
.clc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clc-card__name { display: block; color: var(--clc-ink); font-weight: 600; text-decoration: none; }
.clc-card__price { display: block; color: var(--clc-muted); font-size: 14px; }
.clc-card__go { padding: 8px 12px; border-radius: 8px; background: var(--clx-accent, #1f2937); color: var(--clx-on-accent, #fff); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.clc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--clc-line); }
.clc-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #8c8f94; border-radius: 8px; font: inherit; }
.clc-form button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--clx-accent, #1f2937); color: var(--clx-on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.clc-form button:disabled { opacity: .6; cursor: wait; }
.clc-note { margin: 0; padding: 0 12px 10px; color: var(--clc-muted); font-size: 12px; }
.clc-form .clc-photo { flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; border: 1px solid #8c8f94; border-radius: 8px; background: #fff; color: var(--clc-ink); cursor: pointer; }
.clc-form .clc-photo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.clc-form .clc-photo:disabled { opacity: .6; cursor: wait; }
.clc-form .clc-photo:focus-visible { outline: 3px solid var(--clx-accent, #1f2937); outline-offset: 2px; }
.clc-msg--photo { padding: 4px; }
.clc-msg--photo img { display: block; max-width: 160px; max-height: 160px; border-radius: 9px; }
/* Opened only from the store's own links (#cartlum-chat, #cartlum-photo). */
.clc--nobubble .clc-open { display: none; }
@media (max-width: 480px) {
	.clc { right: 12px; bottom: 12px; }
	.clc.is-open { left: 0; right: 0; bottom: 0; }
	.clc-panel { width: 100vw; max-width: 100vw; height: 85vh; border-radius: 14px 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .clc * { transition: none !important; } }
