/* Oversite — Chatbot Widget · Premium UI */
:root {
	--qweb-cb-color: #ED1C24;
	--qweb-cb-color-rgb: 237,28,36;
	--qweb-cb-header-bg-rgb: 237,28,36;
	--qweb-cb-color-dark: #c8151c;
	--qweb-cb-color-light: rgba(var(--qweb-cb-color-rgb),0.08);
	--qweb-cb-bg: #ffffff;
	--qweb-cb-text: #1e293b;
	--qweb-cb-muted: #64748b;
	--qweb-cb-subtle: #94a3b8;
	--qweb-cb-border: #e2e8f0;
	--qweb-cb-surface: #f8fafc;
	--qweb-cb-user-bg: var(--qweb-cb-color);
	--qweb-cb-user-text: #ffffff;
	--qweb-cb-bot-bg: #f1f5f9;
	--qweb-cb-bot-text: #1e293b;
	--qweb-cb-header-bg: var(--qweb-cb-color);
	--qweb-cb-header-text: #ffffff;
	--qweb-cb-radius: 20px;
	--qweb-cb-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
	--qweb-cb-z: 999998;
	--qweb-cb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Launcher ──────────────────────────────────────────── */
.qweb-cb-launcher {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--qweb-cb-color), var(--qweb-cb-color-dark));
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(var(--qweb-cb-color-rgb),0.35), 0 2px 6px rgba(0,0,0,0.1);
	z-index: var(--qweb-cb-z);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease, box-shadow 0.3s ease;
	animation: qweb-cb-entrance 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
	animation-delay: 1s;
}
.qweb-cb-launcher:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 28px rgba(var(--qweb-cb-color-rgb),0.45), 0 4px 12px rgba(0,0,0,0.12);
}
.qweb-cb-launcher:active {
	transform: scale(0.95);
}
.qweb-cb-launcher--hidden {
	transform: scale(0) rotate(90deg);
	opacity: 0;
	pointer-events: none;
}
@keyframes qweb-cb-entrance {
	from { transform: scale(0) rotate(-90deg); opacity: 0; }
	to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.qweb-cb-launcher__icon {
	display: flex;
	transition: transform 0.3s ease;
}
.qweb-cb-launcher:hover .qweb-cb-launcher__icon {
	transform: scale(1.05);
}

/* Greeting tooltip */
.qweb-cb-greeting {
	position: fixed;
	bottom: 96px;
	right: 24px;
	background: #fff;
	color: var(--qweb-cb-text);
	padding: 12px 18px;
	border-radius: 14px 14px 4px 14px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
	font-size: 14px;
	font-family: var(--qweb-cb-font);
	line-height: 1.4;
	max-width: 320px;
	z-index: var(--qweb-cb-z);
	opacity: 0;
	transform: translateY(10px) scale(0.95);
	transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
	pointer-events: none;
	cursor: pointer;
}
.qweb-cb-greeting--show {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.qweb-cb-greeting__close {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e2e8f0;
	border: none;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--qweb-cb-muted);
	transition: background 0.2s;
}
.qweb-cb-greeting__close:hover {
	background: #cbd5e1;
}

/* ── Panel ─────────────────────────────────────────────── */
.qweb-cb-panel {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 400px;
	height: 600px;
	max-height: calc(100vh - 48px);
	background: var(--qweb-cb-bg);
	border-radius: var(--qweb-cb-radius);
	box-shadow: var(--qweb-cb-shadow);
	z-index: calc(var(--qweb-cb-z) + 1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(24px) scale(0.92);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
	font-family: var(--qweb-cb-font);
	border: 1px solid rgba(0,0,0,0.06);
}
.qweb-cb-panel--open {
	transform: translateY(0) scale(1);
	opacity: 1;
	pointer-events: auto;
}

/* ── Header ────────────────────────────────────────────── */
.qweb-cb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--qweb-cb-header-bg, var(--qweb-cb-color)), var(--qweb-cb-color-dark));
	color: var(--qweb-cb-header-text, #fff);
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}
.qweb-cb-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 200%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
	animation: qweb-cb-shimmer 4s ease-in-out infinite;
	pointer-events: none;
}
@keyframes qweb-cb-shimmer {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(50%); }
}
.qweb-cb-header::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	pointer-events: none;
}
.qweb-cb-header__info {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}
.qweb-cb-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	position: relative;
	flex-shrink: 0;
}
.qweb-cb-avatar__pulse {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--qweb-cb-color);
}
.qweb-cb-avatar__pulse::before {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: #22c55e;
	opacity: 0;
	animation: qweb-cb-online-pulse 2s ease-in-out infinite;
}
@keyframes qweb-cb-online-pulse {
	0% { opacity: 0.6; transform: scale(0.8); }
	100% { opacity: 0; transform: scale(1.6); }
}
.qweb-cb-header__name {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.qweb-cb-header__status {
	font-size: 12.5px;
	opacity: 0.85;
	font-weight: 500;
}
.qweb-cb-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
	z-index: 1;
}
.qweb-cb-close {
	background: rgba(255,255,255,0.15);
	border: none;
	color: var(--qweb-cb-header-text, #fff);
	cursor: pointer;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s, transform 0.15s;
	padding: 0;
}
.qweb-cb-close:hover {
	background: rgba(255,255,255,0.3);
	transform: scale(1.08);
}

/* ── Messages area ─────────────────────────────────────── */
.qweb-cb-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--qweb-cb-surface);
	scroll-behavior: smooth;
}
.qweb-cb-messages::-webkit-scrollbar {
	width: 5px;
}
.qweb-cb-messages::-webkit-scrollbar-track {
	background: transparent;
}
.qweb-cb-messages::-webkit-scrollbar-thumb {
	background: var(--qweb-cb-border);
	border-radius: 5px;
}
.qweb-cb-messages::-webkit-scrollbar-thumb:hover {
	background: var(--qweb-cb-subtle);
}

/* ── Message bubbles ───────────────────────────────────── */
.qweb-cb-msg {
	display: flex;
	gap: 10px;
	max-width: 82%;
	animation: qweb-cb-msgIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.qweb-cb-msg--user {
	align-self: flex-end;
	flex-direction: row-reverse;
}
.qweb-cb-msg--bot {
	align-self: flex-start;
}
.qweb-cb-msg__avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--qweb-cb-color, #f1f5f9);
	color: var(--qweb-cb-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.qweb-cb-msg__bubble {
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.55;
	word-break: break-word;
	position: relative;
}
.qweb-cb-msg--user .qweb-cb-msg__bubble {
	background: linear-gradient(135deg, var(--qweb-cb-color), var(--qweb-cb-color-dark));
	color: var(--qweb-cb-user-text);
	border-bottom-right-radius: 6px;
	box-shadow: 0 2px 8px rgba(var(--qweb-cb-color-rgb),0.2);
}
.qweb-cb-msg--bot .qweb-cb-msg__bubble {
	background: #fff;
	color: var(--qweb-cb-bot-text);
	border-bottom-left-radius: 6px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	border: 1px solid var(--qweb-cb-border);
}
.qweb-cb-msg__bubble a {
	color: var(--qweb-cb-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.qweb-cb-msg--user .qweb-cb-msg__bubble a {
	color: #fff;
	opacity: 0.9;
}
.qweb-cb-msg__time {
	font-size: 10.5px;
	color: var(--qweb-cb-subtle);
	margin-top: 4px;
	padding: 0 4px;
}
.qweb-cb-msg--user .qweb-cb-msg__time {
	text-align: right;
}
@keyframes qweb-cb-msgIn {
	from { opacity: 0; transform: translateY(12px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Consecutive messages from same role — tighter spacing */
.qweb-cb-msg + .qweb-cb-msg--bot .qweb-cb-msg__avatar,
.qweb-cb-msg--bot + .qweb-cb-msg--bot .qweb-cb-msg__avatar {
	visibility: hidden;
}

/* ── Quick-reply chips ─────────────────────────────────── */
.qweb-cb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 4px 40px;
	animation: qweb-cb-msgIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.qweb-cb-chip {
	padding: 8px 16px;
	border-radius: 20px;
	border: 1.5px solid var(--qweb-cb-border);
	background: #fff;
	color: var(--qweb-cb-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: normal;
	word-break: break-word;
	text-align: left;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	font-family: var(--qweb-cb-font);
}
.qweb-cb-chip:hover {
	background: var(--qweb-cb-color);
	color: #fff;
	border-color: var(--qweb-cb-color);
	box-shadow: 0 3px 12px rgba(var(--qweb-cb-color-rgb),0.25);
	transform: translateY(-1px);
}
.qweb-cb-chip:active {
	transform: translateY(0) scale(0.97);
}

/* ── Bot message hover ────────────────────────────────── */
.qweb-cb-msg--bot:hover .qweb-cb-msg__bubble {
	box-shadow: 0 3px 12px rgba(0,0,0,0.08);
	transform: translateY(-1px);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.qweb-cb-msg__bubble {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ── Typewriter reveal ────────────────────────────────── */
.qweb-cb-typewriter {
	overflow: hidden;
}
.qweb-cb-typewriter .qweb-cb-tw-word {
	opacity: 0;
	display: inline;
	animation: qweb-cb-wordIn 0.25s ease forwards;
}
@keyframes qweb-cb-wordIn {
	from { opacity: 0; filter: blur(2px); transform: translateY(4px); }
	to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ── Chip stagger entrance ────────────────────────────── */
.qweb-cb-chip {
	opacity: 0;
	animation: qweb-cb-chipIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes qweb-cb-chipIn {
	from { opacity: 0; transform: translateY(8px) scale(0.9); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Typing indicator ──────────────────────────────────── */
.qweb-cb-typing {
	display: flex;
	align-items: center;
	gap: 10px;
	animation: qweb-cb-msgIn 0.35s ease;
}
.qweb-cb-typing__dots {
	display: flex;
	gap: 5px;
	padding: 14px 18px;
	background: #fff;
	border-radius: 18px;
	border-bottom-left-radius: 6px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	border: 1px solid var(--qweb-cb-border);
}
.qweb-cb-typing__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--qweb-cb-subtle);
	animation: qweb-cb-bounce 1.4s infinite ease-in-out both;
}
.qweb-cb-typing__dots span:nth-child(1) { animation-delay: 0s; }
.qweb-cb-typing__dots span:nth-child(2) { animation-delay: 0.16s; }
.qweb-cb-typing__dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes qweb-cb-bounce {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
	40% { transform: scale(1); opacity: 1; }
}

/* ── Input area ────────────────────────────────────────── */
.qweb-cb-input-area {
	display: flex;
	padding: 14px 16px;
	border-top: 1px solid var(--qweb-cb-border);
	background: var(--qweb-cb-bg);
	flex-shrink: 0;
	gap: 10px;
	align-items: center;
}
.qweb-cb-menu-wrap {
	position: relative;
}
.qweb-cb-menu-btn {
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color 0.2s, background 0.2s;
}
.qweb-cb-menu-btn:hover {
	color: #64748b;
	background: rgba(0,0,0,0.05);
}
.qweb-cb-menu-drop {
	position: absolute;
	bottom: 100%;
	right: 0;
	margin-bottom: 6px;
	background: var(--qweb-cb-bg, #fff);
	border: 1px solid var(--qweb-cb-border, rgba(0,0,0,0.1));
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	opacity: 0;
	transform: translateY(4px) scale(0.95);
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 10;
	min-width: 120px;
	overflow: hidden;
}
.qweb-cb-menu-drop--open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.qweb-cb-end-chat {
	display: block;
	width: 100%;
	background: none;
	border: none;
	color: #ef4444;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	padding: 10px 16px;
	text-align: left;
	transition: background 0.15s;
	white-space: nowrap;
}
.qweb-cb-end-chat:hover {
	background: rgba(239,68,68,0.08);
}
.qweb-cb-input {
	flex: 1;
	border: 1.5px solid var(--qweb-cb-border);
	border-radius: 24px;
	padding: 11px 18px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s;
	color: var(--qweb-cb-text);
	background: var(--qweb-cb-surface);
	font-family: var(--qweb-cb-font);
}
.qweb-cb-input::placeholder {
	color: var(--qweb-cb-subtle);
}
.qweb-cb-input:focus {
	border-color: var(--qweb-cb-color);
	box-shadow: 0 0 0 3px var(--qweb-cb-color-light);
	background: #fff;
}
.qweb-cb-send {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--qweb-cb-color), var(--qweb-cb-color-dark));
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(var(--qweb-cb-color-rgb),0.2);
}
.qweb-cb-send:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 14px rgba(var(--qweb-cb-color-rgb),0.35);
}
.qweb-cb-send:active {
	transform: scale(0.95);
}
.qweb-cb-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.qweb-cb-send--fly {
	animation: qweb-cb-sendFly 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes qweb-cb-sendFly {
	0% { transform: scale(1) rotate(0deg); }
	30% { transform: scale(0.8) rotate(-15deg); }
	60% { transform: scale(1.2) rotate(5deg); }
	100% { transform: scale(1) rotate(0deg); }
}

/* ── Powered by ────────────────────────────────────────── */
.qweb-cb-powered {
	text-align: center;
	padding: 6px 16px 10px;
	font-size: 11px;
	color: var(--qweb-cb-subtle);
	background: var(--qweb-cb-bg);
	flex-shrink: 0;
}
.qweb-cb-powered a {
	color: var(--qweb-cb-muted);
	text-decoration: none;
	font-weight: 600;
}
.qweb-cb-powered a:hover {
	color: var(--qweb-cb-color);
}

/* ── Pre-chat form ─────────────────────────────────────── */
.qweb-cb-prechat {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 24px 20px;
}
.qweb-cb-prechat__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 280px;
}
.qweb-cb-prechat__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--qweb-cb-color-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--qweb-cb-color);
	overflow: hidden;
}
.qweb-cb-prechat__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.qweb-cb-prechat__avatar svg {
	width: 32px;
	height: 32px;
}
.qweb-cb-prechat__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--qweb-cb-text);
	text-align: center;
	line-height: 1.4;
}
.qweb-cb-prechat__subtitle {
	font-size: 12.5px;
	color: var(--qweb-cb-muted);
	text-align: center;
	margin-bottom: 4px;
}
.qweb-cb-prechat__input {
	width: 100%;
	border: 1.5px solid var(--qweb-cb-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	font-family: var(--qweb-cb-font);
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s;
	box-sizing: border-box;
	color: var(--qweb-cb-text);
	background: var(--qweb-cb-bg);
}
.qweb-cb-prechat__input:focus {
	border-color: var(--qweb-cb-color);
	box-shadow: 0 0 0 3px var(--qweb-cb-color-light);
}
.qweb-cb-prechat__start {
	width: 100%;
	background: var(--qweb-cb-color);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 11px 0;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--qweb-cb-font);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	margin-top: 4px;
}
.qweb-cb-prechat__start:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}
.qweb-cb-prechat__skip {
	background: none;
	border: none;
	color: var(--qweb-cb-muted);
	font-size: 12.5px;
	font-family: var(--qweb-cb-font);
	cursor: pointer;
	padding: 4px 8px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.qweb-cb-prechat__skip:hover {
	color: var(--qweb-cb-text);
}

/* ── File upload button ────────────────────────────────── */
.qweb-cb-file-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--qweb-cb-muted);
	cursor: pointer;
	padding: 6px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
	flex-shrink: 0;
}
.qweb-cb-file-btn:hover {
	color: var(--qweb-cb-color);
	background: var(--qweb-cb-color-light);
}

/* ── Lead capture form ─────────────────────────────────── */
.qweb-cb-lead-form {
	animation: qweb-cb-msgIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
	margin: 4px 0 0 40px;
	max-width: 82%;
}
.qweb-cb-lead-form__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
	padding: 18px;
	border-radius: 16px;
	border: 1px solid var(--qweb-cb-border);
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.qweb-cb-lead-form__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--qweb-cb-text);
	margin: 0 0 2px;
}
.qweb-cb-lead-input {
	border: 1.5px solid var(--qweb-cb-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s;
	background: var(--qweb-cb-surface);
	color: var(--qweb-cb-text);
	font-family: var(--qweb-cb-font);
}
.qweb-cb-lead-input::placeholder {
	color: var(--qweb-cb-subtle);
}
.qweb-cb-lead-input:focus {
	border-color: var(--qweb-cb-color);
	box-shadow: 0 0 0 3px var(--qweb-cb-color-light);
	background: #fff;
}
.qweb-cb-lead-input--error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}
.qweb-cb-lead-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: var(--qweb-cb-muted);
	cursor: pointer;
	line-height: 1.4;
}
.qweb-cb-lead-consent__check {
	margin-top: 1px;
	accent-color: var(--qweb-cb-color);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.qweb-cb-lead-submit {
	background: linear-gradient(135deg, var(--qweb-cb-color), var(--qweb-cb-color-dark));
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 11px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: var(--qweb-cb-font);
	box-shadow: 0 2px 8px rgba(var(--qweb-cb-color-rgb),0.2);
}
.qweb-cb-lead-submit:hover {
	box-shadow: 0 4px 16px rgba(var(--qweb-cb-color-rgb),0.35);
	transform: translateY(-1px);
}
.qweb-cb-lead-submit:active {
	transform: translateY(0);
}
.qweb-cb-lead-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.qweb-cb-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #25D366;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 11px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s ease;
	font-family: var(--qweb-cb-font);
	box-shadow: 0 2px 8px rgba(37,211,102,0.25);
	margin-top: 6px;
}
.qweb-cb-wa-btn:hover {
	background: #20bd5a;
	box-shadow: 0 4px 16px rgba(37,211,102,0.4);
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}
.qweb-cb-lead-success {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #16a34a;
	font-weight: 500;
	animation: qweb-cb-successIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes qweb-cb-successIn {
	from { opacity: 0; transform: scale(0.8); }
	to { opacity: 1; transform: scale(1); }
}
.qweb-cb-lead-success__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	animation: qweb-cb-checkPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
@keyframes qweb-cb-checkPop {
	from { transform: scale(0) rotate(-90deg); }
	to { transform: scale(1) rotate(0deg); }
}

/* ── Rating prompt ─────────────────────────────────────── */
.qweb-cb-rating {
	animation: qweb-cb-msgIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
	margin: 4px 0 0 40px;
}
.qweb-cb-rating__inner {
	background: #fff;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid var(--qweb-cb-border);
	box-shadow: 0 1px 6px rgba(0,0,0,0.04);
	text-align: center;
}
.qweb-cb-rating__label {
	font-size: 13px;
	color: var(--qweb-cb-muted);
	margin-bottom: 8px;
}
.qweb-cb-rating__stars {
	display: flex;
	justify-content: center;
	gap: 6px;
}
.qweb-cb-star {
	background: none;
	border: none;
	font-size: 26px;
	cursor: pointer;
	color: var(--qweb-cb-border);
	transition: color 0.2s, transform 0.2s;
	padding: 2px;
	line-height: 1;
}
.qweb-cb-star:hover,
.qweb-cb-star--active {
	color: #f59e0b;
	transform: scale(1.15);
}

/* ── Welcome card ──────────────────────────────────────── */
.qweb-cb-welcome {
	text-align: center;
	padding: 8px 0 4px;
	animation: qweb-cb-msgIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.qweb-cb-welcome__wave {
	font-size: 28px;
	margin-bottom: 4px;
}
.qweb-cb-welcome__text {
	font-size: 14px;
	color: var(--qweb-cb-muted);
	line-height: 1.5;
	padding: 0 16px;
}

/* ── Date separator ────────────────────────────────────── */
.qweb-cb-date-sep {
	text-align: center;
	font-size: 11px;
	color: var(--qweb-cb-subtle);
	padding: 8px 0;
	position: relative;
}
.qweb-cb-date-sep::before,
.qweb-cb-date-sep::after {
	content: '';
	position: absolute;
	top: 50%;
	width: calc(50% - 40px);
	height: 1px;
	background: var(--qweb-cb-border);
}
.qweb-cb-date-sep::before { left: 0; }
.qweb-cb-date-sep::after { right: 0; }

/* ── Proactive Engagement ─────────────────────────────── */
@keyframes qweb-cb-wiggle {
	0%, 100% { transform: rotate(0deg); }
	15% { transform: rotate(-12deg) scale(1.1); }
	30% { transform: rotate(12deg) scale(1.1); }
	45% { transform: rotate(-8deg); }
	60% { transform: rotate(8deg); }
	75% { transform: rotate(-4deg); }
	90% { transform: rotate(4deg); }
}
@keyframes qweb-cb-ring-pulse {
	0% { box-shadow: 0 0 0 0 rgba(var(--qweb-cb-color-rgb),0.5), 0 6px 20px rgba(var(--qweb-cb-color-rgb),0.35); }
	70% { box-shadow: 0 0 0 14px rgba(var(--qweb-cb-color-rgb),0), 0 6px 20px rgba(var(--qweb-cb-color-rgb),0.35); }
	100% { box-shadow: 0 0 0 0 rgba(var(--qweb-cb-color-rgb),0), 0 6px 20px rgba(var(--qweb-cb-color-rgb),0.35); }
}
.qweb-cb-launcher--attention {
	animation: qweb-cb-wiggle 0.8s ease-in-out, qweb-cb-ring-pulse 2s ease-in-out infinite 0.8s;
}

/* Waving hand attention grabber */
.qweb-cb-wave {
	position: fixed;
	bottom: 30px;
	right: 74px;
	font-size: 36px;
	line-height: 1;
	z-index: var(--qweb-cb-z);
	pointer-events: none;
	opacity: 0;
	transform: scale(0) rotate(-20deg);
	transform-origin: 70% 70%;
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.qweb-cb-wave--show {
	opacity: 1;
	transform: scale(1) rotate(0deg);
	animation: qweb-cb-hand-wave 1.2s ease-in-out;
}
@keyframes qweb-cb-hand-wave {
	0% { transform: scale(1) rotate(0deg); }
	10% { transform: scale(1.1) rotate(14deg); }
	20% { transform: scale(1.1) rotate(-8deg); }
	30% { transform: scale(1.1) rotate(14deg); }
	40% { transform: scale(1.1) rotate(-4deg); }
	50% { transform: scale(1.1) rotate(10deg); }
	60% { transform: scale(1) rotate(0deg); }
	100% { transform: scale(1) rotate(0deg); }
}
@media (max-width: 480px) {
	.qweb-cb-wave {
		bottom: 82px;
		right: 62px;
		font-size: 30px;
	}
}
.qweb-cb-launcher--left ~ .qweb-cb-wave {
	right: auto;
	left: 74px;
}

/* Notification badge */
.qweb-cb-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 22px;
	height: 22px;
	background: var(--qweb-cb-color, #ef4444);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	opacity: 0;
	transform: scale(0.4);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
	z-index: 10;
}
.qweb-cb-badge--show {
	opacity: 1;
	transform: scale(1);
	animation: qweb-cb-badge-pulse 2s ease-in-out 1s infinite;
}
@keyframes qweb-cb-badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.15); }
}

/* AI badge */
.qweb-cb-ai-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #7c3aed;
	background: linear-gradient(135deg, #ede9fe, #ddd6fe);
	border-radius: 10px;
	line-height: 1.4;
}

/* Greeting tooltip chips */
.qweb-cb-greeting__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.qweb-cb-greeting__chip {
	padding: 6px 12px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: var(--qweb-cb-text, #1e293b);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: var(--qweb-cb-font);
	text-align: left;
	line-height: 1.3;
}
.qweb-cb-greeting__chip:hover {
	background: var(--qweb-cb-color, #ED1C24);
	color: #fff;
	border-color: var(--qweb-cb-color, #ED1C24);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(var(--qweb-cb-color-rgb),0.25);
}
.qweb-cb-greeting__chip:active {
	transform: translateY(0) scale(0.97);
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.qweb-cb-panel {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		height: 100%;
		max-height: 100vh;
		border-radius: 0;
		border: none;
	}
	.qweb-cb-header {
		padding: 16px 16px;
		padding-top: max(env(safe-area-inset-top), 16px);
	}
	.qweb-cb-launcher {
		bottom: 76px;
		right: 16px;
		width: 56px;
		height: 56px;
	}
	.qweb-cb-greeting {
		bottom: 142px;
		right: 16px;
		max-width: calc(100vw - 90px);
	}
	.qweb-cb-chips {
		padding-left: 0;
	}
	.qweb-cb-input-area {
		padding-bottom: max(env(safe-area-inset-bottom), 14px);
	}
}

/* ── Left position ─────────────────────────────────────── */
.qweb-cb-launcher--left {
	right: auto;
	left: 24px;
}
.qweb-cb-panel--left {
	right: auto;
	left: 24px;
}
.qweb-cb-greeting--left {
	right: auto;
	left: 24px;
	border-radius: 14px 14px 14px 4px;
}

/* ── Accessibility ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.qweb-cb-launcher,
	.qweb-cb-panel,
	.qweb-cb-msg,
	.qweb-cb-chips,
	.qweb-cb-typing,
	.qweb-cb-lead-form,
	.qweb-cb-greeting,
	.qweb-cb-rating,
	.qweb-cb-welcome {
		animation: none !important;
		transition-duration: 0.01s !important;
	}
	.qweb-cb-typing__dots span {
		animation: none !important;
		opacity: 0.5;
	}
	.qweb-cb-avatar__pulse::before {
		animation: none !important;
	}
	.qweb-cb-launcher--attention {
		animation: none !important;
	}
	.qweb-cb-wave--show {
		animation: none !important;
	}
}

/* ── Focus visible ─────────────────────────────────────── */
.qweb-cb-launcher:focus-visible,
.qweb-cb-close:focus-visible,
.qweb-cb-chip:focus-visible,
.qweb-cb-send:focus-visible,
.qweb-cb-input:focus-visible,
.qweb-cb-star:focus-visible {
	outline: 2px solid var(--qweb-cb-color);
	outline-offset: 2px;
}

/* ╔═══════════════════════════════════════════════════════╗
   ║                 STYLE VARIANTS                        ║
   ╚═══════════════════════════════════════════════════════╝ */

/* ── MINIMAL ───────────────────────────────────────────── */
.qweb-cb--minimal.qweb-cb-launcher {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	background: var(--qweb-cb-color);
}
.qweb-cb--minimal.qweb-cb-launcher:hover {
	box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.qweb-cb--minimal.qweb-cb-panel {
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid var(--qweb-cb-border);
}
.qweb-cb--minimal .qweb-cb-header {
	background: var(--qweb-cb-color);
	padding: 14px 18px;
}
.qweb-cb--minimal .qweb-cb-header::after { display: none; }
.qweb-cb--minimal .qweb-cb-avatar {
	background: rgba(255,255,255,0.15);
	backdrop-filter: none;
}
.qweb-cb--minimal .qweb-cb-messages {
	background: #fff;
}
.qweb-cb--minimal .qweb-cb-msg__bubble {
	border-radius: 12px;
}
.qweb-cb--minimal .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	background: #f5f5f5;
	border: none;
	box-shadow: none;
}
.qweb-cb--minimal .qweb-cb-msg--user .qweb-cb-msg__bubble {
	background: var(--qweb-cb-color);
	box-shadow: none;
	border-bottom-right-radius: 4px;
}
.qweb-cb--minimal .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	border-bottom-left-radius: 4px;
}
.qweb-cb--minimal .qweb-cb-chip {
	border-radius: 8px;
	box-shadow: none;
	border: 1px solid var(--qweb-cb-border);
}
.qweb-cb--minimal .qweb-cb-chip:hover {
	box-shadow: none;
	transform: none;
}
.qweb-cb--minimal .qweb-cb-send {
	background: var(--qweb-cb-color);
	box-shadow: none;
}
.qweb-cb--minimal .qweb-cb-send:hover {
	box-shadow: none;
	transform: none;
	filter: brightness(1.1);
}
.qweb-cb--minimal .qweb-cb-input {
	background: #fff;
	border-radius: 8px;
}
.qweb-cb--minimal .qweb-cb-typing__dots {
	background: #f5f5f5;
	border: none;
	box-shadow: none;
}
.qweb-cb--minimal .qweb-cb-lead-form__inner {
	border: 1px solid var(--qweb-cb-border);
	box-shadow: none;
}
.qweb-cb--minimal .qweb-cb-lead-submit {
	background: var(--qweb-cb-color);
	box-shadow: none;
}

/* ── ROUNDED ───────────────────────────────────────────── */
.qweb-cb--rounded.qweb-cb-launcher {
	width: 66px;
	height: 66px;
	box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.qweb-cb--rounded.qweb-cb-panel {
	border-radius: 28px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.qweb-cb--rounded .qweb-cb-header {
	border-radius: 28px 28px 0 0;
	padding: 20px 22px;
}
.qweb-cb--rounded .qweb-cb-msg__bubble {
	border-radius: 22px;
}
.qweb-cb--rounded .qweb-cb-msg--user .qweb-cb-msg__bubble {
	border-bottom-right-radius: 8px;
}
.qweb-cb--rounded .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	border-bottom-left-radius: 8px;
	background: linear-gradient(135deg, #f0f4ff, #f5f0ff);
	border-color: #e8e0f0;
}
.qweb-cb--rounded .qweb-cb-msg__avatar {
	background: linear-gradient(135deg, #e8e0f0, #f0f4ff);
}
.qweb-cb--rounded .qweb-cb-chip {
	border-radius: 24px;
	padding: 10px 20px;
	border-color: #e0d8f0;
	background: linear-gradient(135deg, #faf8ff, #f5f0ff);
}
.qweb-cb--rounded .qweb-cb-chip:hover {
	background: var(--qweb-cb-color);
	border-color: var(--qweb-cb-color);
}
.qweb-cb--rounded .qweb-cb-input {
	border-radius: 28px;
	padding: 12px 22px;
}
.qweb-cb--rounded .qweb-cb-typing__dots {
	border-radius: 22px;
	border-bottom-left-radius: 8px;
	background: linear-gradient(135deg, #f0f4ff, #f5f0ff);
	border-color: #e8e0f0;
}
.qweb-cb--rounded .qweb-cb-lead-form__inner {
	border-radius: 20px;
}
.qweb-cb--rounded .qweb-cb-lead-input {
	border-radius: 14px;
}
.qweb-cb--rounded .qweb-cb-lead-submit {
	border-radius: 14px;
}
.qweb-cb--rounded .qweb-cb-close {
	border-radius: 50%;
}
.qweb-cb--rounded.qweb-cb-greeting {
	border-radius: 20px 20px 6px 20px;
}

/* ── SHARP ─────────────────────────────────────────────── */
.qweb-cb--sharp.qweb-cb-launcher {
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.qweb-cb--sharp.qweb-cb-panel {
	border-radius: 4px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.18);
	border: 2px solid var(--qweb-cb-color);
}
.qweb-cb--sharp .qweb-cb-header {
	border-radius: 0;
}
.qweb-cb--sharp .qweb-cb-header::after { display: none; }
.qweb-cb--sharp .qweb-cb-avatar {
	border-radius: 8px;
	backdrop-filter: none;
}
.qweb-cb--sharp .qweb-cb-msg__avatar {
	border-radius: 6px;
}
.qweb-cb--sharp .qweb-cb-msg__bubble {
	border-radius: 4px;
}
.qweb-cb--sharp .qweb-cb-msg--user .qweb-cb-msg__bubble {
	border-radius: 4px;
	border-bottom-right-radius: 0;
}
.qweb-cb--sharp .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	border-radius: 4px;
	border-bottom-left-radius: 0;
	border: 2px solid var(--qweb-cb-border);
}
.qweb-cb--sharp .qweb-cb-chip {
	border-radius: 4px;
	border: 2px solid var(--qweb-cb-color);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.05em;
}
.qweb-cb--sharp .qweb-cb-chip:hover {
	transform: none;
}
.qweb-cb--sharp .qweb-cb-input {
	border-radius: 4px;
	border-width: 2px;
}
.qweb-cb--sharp .qweb-cb-send {
	border-radius: 4px;
}
.qweb-cb--sharp .qweb-cb-typing__dots {
	border-radius: 4px;
	border-bottom-left-radius: 0;
	border: 2px solid var(--qweb-cb-border);
}
.qweb-cb--sharp .qweb-cb-close {
	border-radius: 4px;
}
.qweb-cb--sharp .qweb-cb-lead-form__inner {
	border-radius: 4px;
	border: 2px solid var(--qweb-cb-border);
}
.qweb-cb--sharp .qweb-cb-lead-input {
	border-radius: 4px;
	border-width: 2px;
}
.qweb-cb--sharp .qweb-cb-lead-submit {
	border-radius: 4px;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.05em;
}
.qweb-cb--sharp.qweb-cb-greeting {
	border-radius: 4px;
}
.qweb-cb--sharp .qweb-cb-rating__inner {
	border-radius: 4px;
	border: 2px solid var(--qweb-cb-border);
}

/* ── GLASS ─────────────────────────────────────────────── */
.qweb-cb--glass.qweb-cb-launcher {
	backdrop-filter: blur(12px);
	background: rgba(var(--qweb-cb-color-rgb),0.85);
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.qweb-cb--glass.qweb-cb-panel {
	background: rgba(255,255,255,0.82);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255,255,255,0.6);
	box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.qweb-cb--glass .qweb-cb-header {
	background: rgba(var(--qweb-cb-header-bg-rgb),0.88);
	backdrop-filter: blur(12px);
}
.qweb-cb--glass .qweb-cb-messages {
	background: transparent;
}
.qweb-cb--glass .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	background: rgba(255,255,255,0.75);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.5);
}
.qweb-cb--glass .qweb-cb-msg__avatar {
	background: rgba(255,255,255,0.6);
	backdrop-filter: blur(8px);
}
.qweb-cb--glass .qweb-cb-chip {
	background: rgba(255,255,255,0.6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.5);
}
.qweb-cb--glass .qweb-cb-chip:hover {
	background: var(--qweb-cb-color);
	border-color: var(--qweb-cb-color);
}
.qweb-cb--glass .qweb-cb-input-area {
	background: rgba(255,255,255,0.6);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255,255,255,0.4);
}
.qweb-cb--glass .qweb-cb-input {
	background: rgba(255,255,255,0.5);
	border-color: rgba(255,255,255,0.4);
}
.qweb-cb--glass .qweb-cb-input:focus {
	background: rgba(255,255,255,0.8);
}
.qweb-cb--glass .qweb-cb-typing__dots {
	background: rgba(255,255,255,0.65);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.4);
}
.qweb-cb--glass .qweb-cb-lead-form__inner {
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.5);
}
.qweb-cb--glass .qweb-cb-lead-input {
	background: rgba(255,255,255,0.5);
	border-color: rgba(255,255,255,0.4);
}
.qweb-cb--glass .qweb-cb-powered {
	background: transparent;
}
.qweb-cb--glass.qweb-cb-greeting {
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.5);
}
.qweb-cb--glass .qweb-cb-greeting__chip {
	background: rgba(255,255,255,0.5);
	border-color: rgba(255,255,255,0.4);
	backdrop-filter: blur(4px);
}
.qweb-cb--glass .qweb-cb-rating__inner {
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(8px);
}

/* ── DARK ──────────────────────────────────────────────── */
.qweb-cb--dark.qweb-cb-launcher {
	background: linear-gradient(135deg, #1e293b, #0f172a);
	box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.qweb-cb--dark.qweb-cb-panel {
	background: #1e293b;
	border: 1px solid #334155;
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.qweb-cb--dark .qweb-cb-header {
	background: linear-gradient(135deg, #0f172a, #1e293b);
}
.qweb-cb--dark .qweb-cb-header::after {
	background: rgba(255,255,255,0.03);
}
.qweb-cb--dark .qweb-cb-messages {
	background: #0f172a;
}
.qweb-cb--dark .qweb-cb-msg--bot .qweb-cb-msg__bubble {
	background: #334155;
	color: #e2e8f0;
	border-color: #475569;
}
.qweb-cb--dark .qweb-cb-msg--user .qweb-cb-msg__bubble {
	background: linear-gradient(135deg, var(--qweb-cb-color), var(--qweb-cb-color-dark));
}
.qweb-cb--dark .qweb-cb-msg__avatar {
	background: #334155;
	color: #94a3b8;
}
.qweb-cb--dark .qweb-cb-msg__time {
	color: #64748b;
}
.qweb-cb--dark .qweb-cb-chip {
	background: #334155;
	color: #e2e8f0;
	border-color: #475569;
}
.qweb-cb--dark .qweb-cb-chip:hover {
	background: var(--qweb-cb-color);
	border-color: var(--qweb-cb-color);
	color: #fff;
}
.qweb-cb--dark .qweb-cb-input-area {
	background: #1e293b;
	border-top-color: #334155;
}
.qweb-cb--dark .qweb-cb-input {
	background: #0f172a;
	border-color: #334155;
	color: #e2e8f0;
}
.qweb-cb--dark .qweb-cb-input::placeholder {
	color: #64748b;
}
.qweb-cb--dark .qweb-cb-input:focus {
	background: #1e293b;
	border-color: var(--qweb-cb-color);
}
.qweb-cb--dark .qweb-cb-typing__dots {
	background: #334155;
	border-color: #475569;
}
.qweb-cb--dark .qweb-cb-typing__dots span {
	background: #64748b;
}
.qweb-cb--dark .qweb-cb-lead-form__inner {
	background: #334155;
	border-color: #475569;
}
.qweb-cb--dark .qweb-cb-lead-form__title {
	color: #e2e8f0;
}
.qweb-cb--dark .qweb-cb-lead-input {
	background: #1e293b;
	border-color: #475569;
	color: #e2e8f0;
}
.qweb-cb--dark .qweb-cb-lead-input::placeholder {
	color: #64748b;
}
.qweb-cb--dark .qweb-cb-lead-consent {
	color: #94a3b8;
}
.qweb-cb--dark .qweb-cb-powered {
	background: #1e293b;
	color: #475569;
}
.qweb-cb--dark .qweb-cb-powered a {
	color: #64748b;
}
.qweb-cb--dark .qweb-cb-welcome__text {
	color: #94a3b8;
}
.qweb-cb--dark .qweb-cb-date-sep {
	color: #475569;
}
.qweb-cb--dark .qweb-cb-date-sep::before,
.qweb-cb--dark .qweb-cb-date-sep::after {
	background: #334155;
}
.qweb-cb--dark.qweb-cb-greeting {
	background: #334155;
	color: #e2e8f0;
	border: 1px solid #475569;
	box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.qweb-cb--dark .qweb-cb-greeting__close {
	background: #475569;
	color: #94a3b8;
}
.qweb-cb--dark .qweb-cb-greeting__chip {
	background: #475569;
	color: #e2e8f0;
	border-color: #64748b;
}
.qweb-cb--dark .qweb-cb-greeting__chip:hover {
	background: var(--qweb-cb-color, #ED1C24);
	color: #fff;
	border-color: var(--qweb-cb-color, #ED1C24);
}
.qweb-cb--dark .qweb-cb-rating__inner {
	background: #334155;
	border-color: #475569;
}
.qweb-cb--dark .qweb-cb-rating__label {
	color: #94a3b8;
}
.qweb-cb--dark .qweb-cb-star {
	color: #475569;
}
.qweb-cb--dark .qweb-cb-messages::-webkit-scrollbar-thumb {
	background: #334155;
}
.qweb-cb--dark .qweb-cb-messages::-webkit-scrollbar-thumb:hover {
	background: #475569;
}

/* ── Compact mode ─────────────────────────────────────── */
.qweb-cb--compact.qweb-cb-panel {
	width: 320px;
	height: 460px;
}
.qweb-cb--compact .qweb-cb-header {
	padding: 10px 14px;
}
.qweb-cb--compact .qweb-cb-header__name {
	font-size: 14px;
}
.qweb-cb--compact .qweb-cb-header__status {
	font-size: 11px;
}
.qweb-cb--compact .qweb-cb-avatar {
	width: 30px;
	height: 30px;
}
.qweb-cb--compact .qweb-cb-avatar__pulse {
	width: 8px;
	height: 8px;
}
.qweb-cb--compact .qweb-cb-messages {
	padding: 12px 10px;
	gap: 4px;
}
.qweb-cb--compact .qweb-cb-msg__bubble {
	padding: 8px 12px;
	font-size: 13px;
}
.qweb-cb--compact .qweb-cb-msg__time {
	font-size: 10px;
}
.qweb-cb--compact .qweb-cb-msg__avatar {
	width: 18px;
	height: 18px;
	min-width: 18px;
}
.qweb-cb--compact .qweb-cb-chip {
	font-size: 12px;
	padding: 5px 12px;
}
.qweb-cb--compact .qweb-cb-input-area {
	padding: 8px 10px;
	gap: 6px;
}
.qweb-cb--compact .qweb-cb-input {
	padding: 8px 12px;
	font-size: 13px;
}
.qweb-cb--compact .qweb-cb-powered {
	font-size: 10px;
	padding: 4px 10px;
}
.qweb-cb--compact .qweb-cb-close {
	width: 24px;
	height: 24px;
}
.qweb-cb--compact .qweb-cb-close svg {
	width: 12px;
	height: 12px;
}
.qweb-cb--compact .qweb-cb-prechat__input {
	padding: 8px 12px;
	font-size: 13px;
}
.qweb-cb--compact .qweb-cb-prechat__title {
	font-size: 15px;
}
.qweb-cb--compact .qweb-cb-prechat__subtitle {
	font-size: 12px;
}
.qweb-cb--compact .qweb-cb-prechat__start,
.qweb-cb--compact .qweb-cb-prechat__skip {
	font-size: 13px;
	padding: 8px 16px;
}
.qweb-cb--compact .qweb-cb-lead-form__title {
	font-size: 14px;
}
.qweb-cb--compact .qweb-cb-lead-input {
	padding: 8px 12px;
	font-size: 13px;
}
@media (max-width: 480px) {
	.qweb-cb--compact.qweb-cb-panel {
		width: 100%;
		height: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
}

/* ── Dark mode menu ────────────────────────────────── */
.qweb-cb--dark .qweb-cb-menu-btn {
	color: #64748b;
}
.qweb-cb--dark .qweb-cb-menu-btn:hover {
	color: #94a3b8;
	background: rgba(255,255,255,0.08);
}
.qweb-cb--dark .qweb-cb-menu-drop {
	background: #1e293b;
	border-color: #334155;
}
.qweb-cb--dark .qweb-cb-end-chat:hover {
	background: rgba(239,68,68,0.15);
}
