/* ==========================================================================
   Victor Chatbot — Messenger-style mobile layout
   v1.3.1 — Mobile-first, fits the screen perfectly
   ========================================================================== */

#victor-chatbot {
	position: static;
	width: 0;
	height: 0;
	overflow: visible;

	--vc-primary: #cf2027;
	--vc-primary-dark: #a8181e;
	--vc-primary-soft: rgba(207, 32, 39, 0.08);
	--vc-primary-glow: rgba(207, 32, 39, 0.28);
	--vc-bg: #ffffff;
	--vc-bg-soft: #f0f2f5;
	--vc-bg-chat: #ffffff;
	--vc-text: #050505;
	--vc-text-soft: #65676b;
	--vc-text-muted: #8a8d91;
	--vc-border: #e4e6eb;
	--vc-border-strong: #ced0d4;
	--vc-bubble-bot: #f0f2f5;
	--vc-bubble-user: var(--vc-primary);
	--vc-radius: 22px;
	--vc-radius-sm: 14px;
	--vc-shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.18), 0 8px 20px -6px rgba(0, 0, 0, 0.08);
	--vc-shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
	--vc-shadow-launcher: 0 14px 28px -8px rgba(207, 32, 39, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12);
	--vc-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
	--vc-easing: cubic-bezier(0.32, 0.72, 0, 1);
	--vc-header-h: 60px;
	--vc-composer-h: 60px;

	font-family: var(--vc-font);
	color: var(--vc-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.4;
}

#victor-chatbot,
#victor-chatbot *,
#victor-chatbot *::before,
#victor-chatbot *::after { box-sizing: border-box !important; }

#victor-chatbot button {
	font-family: inherit;
	margin: 0;
	cursor: pointer;
	border: none;
	background: transparent;
	color: inherit;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

#victor-chatbot input,
#victor-chatbot textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

#victor-chatbot a {
	color: var(--vc-primary);
	text-decoration: none;
}

/* ==========================================================================
   Launcher
   ========================================================================== */

.vc-launcher {
	position: fixed;
	bottom: calc(max(20px, env(safe-area-inset-bottom)) + 24px);
	right: max(20px, env(safe-area-inset-right));
	z-index: 2147483647;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	background: linear-gradient(135deg, var(--vc-primary) 0%, var(--vc-primary-dark) 100%);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 14px 30px -10px rgba(168, 24, 30, 0.7), 0 6px 16px rgba(15, 23, 42, 0.18);
	transition: transform 0.25s var(--vc-easing), box-shadow 0.25s var(--vc-easing), opacity 0.2s ease, background 0.25s var(--vc-easing);
	border: none;
	opacity: 1;
	overflow: hidden;
	user-select: none;
}

#victor-chatbot .vc-launcher,
#victor-chatbot .vc-launcher:hover,
#victor-chatbot .vc-launcher:focus,
#victor-chatbot .vc-launcher:focus-visible,
#victor-chatbot .vc-launcher:active {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: #cf2027 !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 0 !important;
	border-color: transparent !important;
	outline: none;
	opacity: 1 !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	isolation: isolate;
}

#victor-chatbot .vc-launcher::before,
#victor-chatbot .vc-launcher::after,
#victor-chatbot .vc-launcher__icon::before,
#victor-chatbot .vc-launcher__icon::after {
	content: none !important;
	display: none !important;
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	mask: none !important;
	-webkit-mask: none !important;
}

.vc-launcher:hover {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 18px 36px -10px rgba(168, 24, 30, 0.78), 0 8px 18px rgba(15, 23, 42, 0.2);
}

.vc-launcher:active { transform: translateY(0) scale(0.98); }

.vc-launcher__icon {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vc-launcher__icon svg { width: 100%; height: 100%; fill: currentColor; }

#victor-chatbot .vc-launcher__icon,
#victor-chatbot .vc-launcher__icon svg,
#victor-chatbot .vc-launcher__icon path {
	color: #ffffff !important;
	fill: #ffffff !important;
	stroke: none !important;
	filter: none !important;
	mix-blend-mode: normal !important;
}

#victor-chatbot .vc-launcher__icon svg {
	display: block !important;
	background: transparent !important;
	background-image: none !important;
}

.vc-launcher__avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.2);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.vc-launcher__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.vc-launcher__pulse {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff3b30;
	border: 2px solid #fff;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.2s var(--vc-easing), transform 0.2s var(--vc-easing);
}

.vc-launcher__pulse::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: rgba(255, 59, 48, 0.55);
	animation: vc-pulse 1.6s ease-out infinite;
}

.vc-launcher.has-unread .vc-launcher__pulse { opacity: 1; transform: scale(1); }
.vc-launcher.has-unread { animation: vc-launcher-bounce 2.2s var(--vc-easing) infinite; }

@keyframes vc-pulse {
	0%   { transform: scale(0.8); opacity: 0.7; }
	80%  { transform: scale(2.4); opacity: 0; }
	100% { transform: scale(2.4); opacity: 0; }
}

@keyframes vc-launcher-bounce {
	0%, 80%, 100% { transform: translateY(0); }
	85% { transform: translateY(-6px); }
	90% { transform: translateY(0); }
	95% { transform: translateY(-3px); }
}

.vc-launcher.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.7);
}

#victor-chatbot .vc-launcher.is-hidden,
#victor-chatbot .vc-launcher.is-hidden:hover,
#victor-chatbot .vc-launcher.is-hidden:focus,
#victor-chatbot .vc-launcher.is-hidden:focus-visible,
#victor-chatbot .vc-launcher.is-hidden:active {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: scale(0.7) !important;
}

/* ==========================================================================
   Proactive nudge
   ========================================================================== */

.vc-nudge {
	position: fixed;
	bottom: calc(max(20px, env(safe-area-inset-bottom)) + 28px);
	right: calc(max(20px, env(safe-area-inset-right)) + 82px);
	z-index: 2147482999;
	width: max-content;
	max-width: min(280px, calc(100vw - 128px));
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--vc-shadow-md);
	padding: 14px 30px 14px 14px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--vc-text);
	border: 1px solid var(--vc-border);
	transform: translateY(8px) scale(0.96);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s var(--vc-easing), transform 0.3s var(--vc-easing);
	cursor: pointer;
}

.vc-nudge.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.vc-nudge__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--vc-bg-soft);
}

.vc-nudge__text { flex: 1; line-height: 1.45; }

.vc-nudge__close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vc-text-muted);
	font-size: 14px;
	transition: background 0.15s var(--vc-easing);
}

.vc-nudge__close:hover { background: var(--vc-bg-soft); color: var(--vc-text); }

/* ==========================================================================
   Backdrop scrim (mobile bottom-sheet only)
   ========================================================================== */

.vc-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	z-index: 2147483000;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.28s var(--vc-easing), background 0.28s var(--vc-easing);
	display: none;
}

@media (max-width: 640px) {
	.vc-scrim { display: block; }
	.vc-scrim.is-open {
		background: rgba(0, 0, 0, 0.4);
		opacity: 1;
		pointer-events: auto;
	}
}

/* ==========================================================================
   Panel — DESKTOP (floating card)
   ========================================================================== */

.vc-panel {
	position: fixed;
	bottom: calc(max(20px, env(safe-area-inset-bottom)) + 80px);
	right: max(20px, env(safe-area-inset-right));
	z-index: 2147483001;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: 620px;
	max-height: calc(100vh - 110px);
	background: var(--vc-bg);
	border-radius: var(--vc-radius);
	box-shadow: var(--vc-shadow-lg);
	border: 1px solid var(--vc-border);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto auto 1fr auto auto auto;
	transform-origin: bottom right;
	transform: translateY(16px) scale(0.96);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.32s var(--vc-easing), opacity 0.24s var(--vc-easing);
}

.vc-panel.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* ==========================================================================
   Header (Messenger-style)
   ========================================================================== */

.vc-header {
	padding: 10px 8px 10px 12px;
	background: #fff;
	border-bottom: 1px solid var(--vc-border);
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--vc-header-h);
}

.vc-header__avatar-wrap { position: relative; flex-shrink: 0; }

.vc-header__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--vc-bg-soft);
	display: block;
}

.vc-header__online {
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #31a24c;
	border: 2px solid #fff;
}

.vc-header__info { flex: 1; min-width: 0; }

.vc-header__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--vc-text);
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	line-height: 1.2;
}

.vc-header__verified { display: inline-flex; align-items: center; color: var(--vc-primary); }
.vc-header__verified svg { width: 13px; height: 13px; fill: currentColor; }

.vc-header__subtitle {
	font-size: 12px;
	color: var(--vc-text-soft);
	margin: 1px 0 0;
	display: flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}

.vc-header__status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #31a24c;
	flex-shrink: 0;
}

.vc-header__actions { display: flex; gap: 2px; flex-shrink: 0; }

.vc-header__btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vc-text-soft);
	transition: background 0.15s var(--vc-easing), color 0.15s var(--vc-easing);
}

.vc-header__btn:hover { background: var(--vc-bg-soft); color: var(--vc-text); }
.vc-header__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Trust strip — slim, doesn't eat vertical space */
.vc-trust-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 600;
	color: var(--vc-text-soft);
	background: var(--vc-bg-soft);
	border-bottom: 1px solid var(--vc-border);
	letter-spacing: 0.01em;
}

.vc-trust-strip span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.vc-trust-strip svg { width: 11px; height: 11px; fill: var(--vc-primary); }

/* ==========================================================================
   Messages (scrollable area — the only thing that scrolls)
   ========================================================================== */

.vc-messages {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 12px 12px 4px;
	background: var(--vc-bg-chat);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	min-height: 0;
}

.vc-messages::-webkit-scrollbar { width: 6px; }
.vc-messages::-webkit-scrollbar-track { background: transparent; }
.vc-messages::-webkit-scrollbar-thumb { background: var(--vc-border-strong); border-radius: 6px; }

.vc-msg {
	display: flex;
	margin-bottom: 4px;
	animation: vc-msg-in 0.22s var(--vc-easing);
	max-width: 100%;
	align-items: flex-end;
	gap: 6px;
}

.vc-msg--bot { justify-content: flex-start; }
.vc-msg--user { justify-content: flex-end; }

.vc-msg__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--vc-bg-soft);
	margin-bottom: 1px;
}

/* Hide consecutive bot avatars (Messenger does this) */
.vc-msg--bot.is-grouped .vc-msg__avatar { visibility: hidden; }

/* Spacing: tighter between consecutive same-side messages */
.vc-msg.is-grouped { margin-bottom: 2px; }
.vc-msg + .vc-msg.is-tail { margin-bottom: 10px; }

.vc-msg__bubble {
	max-width: 80%;
	padding: 9px 14px;
	font-size: 14.5px;
	line-height: 1.35;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
}

/* Bot bubble */
.vc-msg--bot .vc-msg__bubble {
	background: var(--vc-bubble-bot);
	color: var(--vc-text);
	border-radius: 18px;
	border-bottom-left-radius: 18px;
}

.vc-msg--bot.is-tail .vc-msg__bubble { border-bottom-left-radius: 4px; }
.vc-msg--bot.is-grouped:not(.is-tail) .vc-msg__bubble { border-radius: 18px; }
.vc-msg--bot.is-head .vc-msg__bubble { border-bottom-left-radius: 18px; }

/* User bubble */
.vc-msg--user .vc-msg__bubble {
	color: #fff;
	background: linear-gradient(135deg, var(--vc-primary) 0%, var(--vc-primary-dark) 100%);
	border-radius: 18px;
}

.vc-msg--user.is-tail .vc-msg__bubble { border-bottom-right-radius: 4px; }

.vc-msg__bubble strong, .vc-msg__bubble b { font-weight: 700; }
.vc-msg__bubble a { color: inherit; text-decoration: underline; }

@keyframes vc-msg-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.vc-typing {
	display: inline-flex;
	gap: 4px;
	padding: 12px 16px;
	background: var(--vc-bubble-bot);
	border-radius: 18px;
	border-bottom-left-radius: 4px;
}

.vc-typing__dot {
	width: 7px;
	height: 7px;
	background: var(--vc-text-muted);
	border-radius: 50%;
	animation: vc-typing 1.2s ease-in-out infinite;
}

.vc-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.vc-typing__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes vc-typing {
	0%, 60%, 100% { transform: scale(0.85); opacity: 0.5; }
	30% { transform: scale(1.15); opacity: 1; }
}

/* ==========================================================================
   Quick replies and welcome actions
   ========================================================================== */

	.vc-quick-replies {
		padding: 8px 12px 10px;
		display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: var(--vc-bg-chat);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	align-items: flex-start;
		align-content: flex-start;
	}

	.vc-quick-main {
		width: 100%;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}

	.vc-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	height: auto;
	padding: 10px 14px;
	border-radius: 18px;
	background: #fff;
	color: var(--vc-text);
	border: 1px solid rgba(207, 32, 39, 0.14);
	font-size: 13.5px;
	font-weight: 700;
	transition: all 0.18s var(--vc-easing);
	white-space: normal;
	overflow: visible;
	text-align: center;
	overflow-wrap: anywhere;
	line-height: 1.15;
	box-sizing: border-box;
	box-shadow: 0 5px 14px -10px rgba(207, 32, 39, 0.7);
	flex: 0 1 calc(50% - 3px);
		max-width: calc(50% - 3px);
	}

	.vc-chip__icon {
		width: 16px;
		height: 16px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
	}

	.vc-chip__icon svg {
		width: 16px;
		height: 16px;
		fill: currentColor;
	}

	.vc-quick-replies--welcome {
		padding: 8px 12px 10px;
		gap: 8px;
		border-top: 1px solid var(--vc-border);
		background: #fff;
	}

	.vc-quick-replies--single {
		justify-content: center;
		align-items: center;
		padding: 10px 12px 12px;
		border-top: 1px solid var(--vc-border);
		background: #fff;
	}

	.vc-quick-replies--single .vc-chip {
		flex: 0 1 190px;
		width: 190px;
		max-width: min(190px, 78%);
		border-radius: 999px;
	}

	.vc-chip--skip {
		background: var(--vc-primary);
		border-color: var(--vc-primary);
		color: #fff;
		box-shadow: 0 8px 18px -8px rgba(207, 32, 39, 0.72);
	}

	.vc-quick-replies--welcome .vc-chip--main {
		width: 100%;
		max-width: none;
		flex: none;
		min-height: 44px;
		border-radius: 999px;
		padding: 10px 12px;
		gap: 7px;
		white-space: normal;
		line-height: 1.15;
		box-shadow: 0 5px 14px -10px rgba(15, 23, 42, 0.35);
	}

	.vc-chip--offer {
		background: var(--vc-primary);
		border-color: var(--vc-primary);
		color: #fff;
	}

	.vc-chip--faq.is-active {
		background: var(--vc-primary-soft);
		border-color: rgba(207, 32, 39, 0.28);
		color: var(--vc-primary-dark);
	}

	.vc-faq-panel {
		width: 100%;
		border: 1px solid rgba(207, 32, 39, 0.12);
		border-radius: 14px;
		background: #fff;
		padding: 10px;
		box-shadow: 0 6px 18px -16px rgba(15, 23, 42, 0.45);
		max-height: 190px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.vc-faq-panel__title {
		margin: 0 0 8px;
		font-size: 11px;
		font-weight: 800;
		color: var(--vc-text-soft);
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}

	.vc-faq-list {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		width: 100%;
	}

	.vc-faq-list .vc-chip--faq-question {
		width: 100%;
		max-width: none;
		flex: none;
		justify-content: flex-start;
		min-height: 38px;
		padding: 9px 11px;
		border-radius: 12px;
		text-align: left;
		font-size: 13px;
		font-weight: 700;
		box-shadow: none;
		white-space: normal;
	}

.vc-chip:hover, .vc-chip:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px -2px var(--vc-primary-glow);
	outline: none;
}

.vc-chip:active { transform: translateY(0); }

.vc-chip--primary {
	flex-basis: 100%;
	max-width: 100%;
	background: #fff;
	color: var(--vc-text);
	box-shadow: 0 4px 14px -2px var(--vc-primary-glow);
}

.vc-chip--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -2px var(--vc-primary-glow);
}

/* ==========================================================================
   Sticky CTA bar (single line, doesn't dominate)
   ========================================================================== */

.vc-cta-bar {
	padding: 6px 12px 8px;
	background: var(--vc-bg);
	border-top: 1px solid var(--vc-border);
	display: none;
}

.vc-cta-bar.is-visible {
	display: block;
	animation: vc-msg-in 0.32s var(--vc-easing);
}

.vc-cta-bar__btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--vc-primary) 0%, var(--vc-primary-dark) 100%);
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 18px -4px var(--vc-primary-glow);
	transition: transform 0.2s var(--vc-easing), box-shadow 0.2s var(--vc-easing);
	min-height: 44px;
}

.vc-cta-bar__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px var(--vc-primary-glow); }
.vc-cta-bar__btn:active { transform: translateY(0); }
.vc-cta-bar__btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Composer (sticky bottom — Messenger style)
   ========================================================================== */

.vc-composer {
	padding: 8px 10px;
	background: #fff;
	border-top: 1px solid var(--vc-border);
}

.vc-composer__row {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	background: var(--vc-bg-soft);
	border-radius: 22px;
	padding: 4px 4px 4px 14px;
	min-height: 44px;
	transition: background 0.18s var(--vc-easing);
}

.vc-composer__row:focus-within {
	background: var(--vc-bg-soft);
	box-shadow: none;
}

.vc-composer__input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	resize: none;
	font-size: 15px;
	line-height: 1.35;
	padding: 8px 0;
	max-height: 100px;
	color: var(--vc-text);
}

.vc-composer__input:focus,
.vc-composer__input:focus-visible {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.vc-composer__input::placeholder { color: var(--vc-text-muted); }

.vc-composer__btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vc-text-soft);
	flex-shrink: 0;
	transition: all 0.18s var(--vc-easing);
}

.vc-composer__btn:hover { background: rgba(0, 0, 0, 0.05); color: var(--vc-text); }
.vc-composer__btn svg { width: 18px; height: 18px; fill: currentColor; }

.vc-composer__send {
	background: linear-gradient(135deg, var(--vc-primary) 0%, var(--vc-primary-dark) 100%);
	color: #fff;
	box-shadow: 0 4px 12px -2px var(--vc-primary-glow);
}

.vc-composer__send:hover {
	color: #fff;
	transform: scale(1.05);
}

.vc-composer__send:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.vc-composer__send svg { width: 17px; height: 17px; transform: translateX(1px); }

/* ==========================================================================
   Footer (extremely slim attribution)
   ========================================================================== */

.vc-footer {
	padding: 4px 12px 6px;
	font-size: 10.5px;
	color: var(--vc-text-muted);
	text-align: center;
	background: #fff;
	letter-spacing: 0.02em;
}

.vc-footer strong { color: var(--vc-text-soft); font-weight: 600; }

/* ==========================================================================
   MOBILE — Messenger-style full-screen layout
   Uses dynamic-viewport units + a JS-set CSS var for true keyboard handling
   ========================================================================== */

@media (max-width: 640px) {
	.vc-launcher {
		bottom: calc(max(16px, env(safe-area-inset-bottom)) + 22px);
		right: max(16px, env(safe-area-inset-right));
		width: 58px;
		height: 58px;
		padding: 0;
	}

	.vc-nudge {
		left: 16px;
		right: calc(max(16px, env(safe-area-inset-right)) + 74px);
		bottom: calc(max(16px, env(safe-area-inset-bottom)) + 24px);
		width: auto;
		max-width: none;
		min-height: 58px;
		align-items: center;
		padding: 12px 30px 12px 12px;
	}

		.vc-panel {
			position: fixed;
			top: var(--vc-vv-top, 0px) !important;
			left: var(--vc-vv-left, 0px) !important;
			right: auto !important;
			bottom: auto !important;
			width: var(--vc-vw, 100%) !important;
			max-width: var(--vc-vw, 100%) !important;
			box-sizing: border-box;
			overflow: hidden;
			/* Full mobile screen, using the JS-set visible viewport when the keyboard is open. */
			height: var(--vc-vh, 100vh);
			height: var(--vc-vh, 100dvh);
		max-height: none;
		min-height: 0;
		border-radius: 0;
		border: none;
		box-shadow: none;
		transform-origin: bottom center;
		transform: translateY(100%);
		/* Grid: header / trust / messages(flex) / quick replies / cta / composer */
		grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
	}

	.vc-panel > * { min-width: 0; max-width: 100%; }

	.vc-panel.is-open { transform: translateY(0); }

	/* No drag handle in full-screen mobile mode. */
	.vc-panel::before {
		content: none;
	}


	/* Header — Messenger-style */
	.vc-header {
		padding: max(8px, env(safe-area-inset-top)) 6px 8px 8px;
		min-height: 56px;
	}

	.vc-header__avatar { width: 34px; height: 34px; }
	.vc-header__title { font-size: 14.5px; }
	.vc-header__subtitle { font-size: 11.5px; }
	.vc-header__btn { width: 38px; height: 38px; }
	.vc-header__btn svg { width: 20px; height: 20px; }

	/* Trust strip even slimmer on mobile */
	.vc-trust-strip {
		font-size: 10.5px;
		gap: 10px;
		padding: 5px 10px;
	}

	/* Bigger, more readable bubbles */
	.vc-msg__bubble {
		max-width: 78%;
		font-size: 15px;
		padding: 9px 14px;
	}

	.vc-messages {
		padding: 10px 10px 4px;
	}

		.vc-quick-replies {
			padding: 8px 10px 10px;
			gap: 6px;
		}

		.vc-quick-replies--single {
			padding: 10px 10px 12px;
			justify-content: center;
		}

		.vc-quick-replies--single .vc-chip {
			width: min(190px, 72vw);
			max-width: min(190px, 72vw);
			flex-basis: min(190px, 72vw);
		}

		.vc-quick-main {
			gap: 7px;
		}

		.vc-chip {
			min-height: 40px;
			padding: 10px 10px;
			font-size: 13px;
		}

		.vc-quick-replies--welcome .vc-chip--main {
			font-size: 12.5px;
			padding: 10px 8px;
			gap: 5px;
		}

		.vc-faq-panel {
			padding: 9px;
		}

	.vc-cta-bar { padding: 6px 10px 6px; }
	.vc-cta-bar__btn { padding: 11px 14px; font-size: 14.5px; min-height: 44px; }

	/* Composer at the very bottom with safe-area */
		.vc-composer {
			padding: 6px 8px;
			padding-left: max(8px, env(safe-area-inset-left));
			padding-right: max(8px, env(safe-area-inset-right));
			padding-bottom: max(6px, env(safe-area-inset-bottom));
			width: 100%;
			max-width: 100%;
		}

	.vc-composer__input {
		font-size: 16px; /* prevents iOS zoom-on-focus */
	}

		.vc-composer__row {
			min-height: 42px;
			padding: 4px 4px 4px 12px;
			width: 100%;
			max-width: 100%;
			overflow: hidden;
		}

		.vc-composer__btn {
			width: 34px;
			height: 34px;
			min-width: 34px;
		}

	.vc-footer {
		display: none; /* hide tiny footer on mobile so composer hugs bottom */
	}
}

@media (max-width: 360px) {
	.vc-nudge {
		left: 12px;
		right: calc(max(14px, env(safe-area-inset-right)) + 68px);
		font-size: 13px;
		gap: 8px;
	}

	.vc-nudge__avatar {
		width: 28px;
		height: 28px;
	}
}

/* Body scroll lock when panel is open on mobile only */
body.vc-panel-open-mobile {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

/* ==========================================================================
   Embedded mode
   ========================================================================== */

.vc-panel--embedded {
	position: relative;
	bottom: auto;
	right: auto;
	width: 100%;
	max-width: 100%;
	height: 600px;
	max-height: 80vh;
	transform: none;
	opacity: 1;
	pointer-events: auto;
	transition: none;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	#victor-chatbot *,
	#victor-chatbot *::before,
	#victor-chatbot *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
