/* Background Backdrop Overlay — Fixed to Body, Independent Fullscreen Layer */
.bsa-overlay {
	display: none;
	position: fixed !important;
	top: -500px !important;
	bottom: -500px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	height: calc(100vh + 1000px) !important;
	height: calc(100dvh + 1000px) !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	z-index: 99998 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.25s ease !important;
}

@media (max-width: 600px) {
	html.bsa-locked {
		overflow: hidden !important;
		height: 100% !important;
	}

	body.bsa-locked {
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100% !important;
		touch-action: none !important;
	}

	.bsa-overlay {
		display: block !important;
	}

	.bsa-overlay.open {
		opacity: 1 !important;
		pointer-events: auto !important;
	}
}

/* Beplus Site Assistant — frontend chat widget styles */
#bsa-chat-root {
	position: fixed;
	z-index: 99999;
	bottom: 24px;
	right: 24px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* ==========================================================================
   Fluid Plasma AI Mascot Orb (100% Faithful to Reference Video)
   - 100% SINGLE PURE CIRCLE ORB (ZERO outer rings, ZERO halos, ZERO borders)
   - Multi-layer Ultra-smooth Fluid Mesh Gradient (Electric Cyan + Lime Glow drifting slowly)
   - Cute Pill/Stadium Eyes with WIDE Amplitude Travel (Looking far left/right/up/down)
/* Floating Action Button (FAB) Wrap & Orb */
.bsa-fab-wrap {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none;
}

.position-bottom-left .bsa-fab-wrap {
	right: auto;
	left: 24px;
	align-items: flex-start;
}

.bsa-fab {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: visible;
	outline: none;
	padding: 0;
	margin: 0;
	pointer-events: auto;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
	animation: bsa-orb-breath 5s ease-in-out infinite alternate;
}

.bsa-fab-wrap.hidden .bsa-fab {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.6);
}

.bsa-fab:hover {
	transform: scale(1.08) translateY(-2px);
}

/* Central Orb — SINGLE SOLID CIRCLE, 100% BORDERLESS */
.bsa-orb-core {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #30e8f8;
	overflow: hidden;
	box-shadow:
		0 10px 28px rgba(48, 232, 248, 0.4),
		0 2px 10px rgba(15, 23, 42, 0.15);
	pointer-events: none;
	z-index: 2;
}

/* Multi-layer Fluid Mesh Plasma Gradient Animation (Drifting slowly & smoothly) with Smooth Color Morphing */
.bsa-orb-fluid-plasma {
	position: absolute;
	inset: -60%;
	width: 220%;
	height: 220%;
	background: var(--bsa-plasma-bg, radial-gradient(circle at 25% 65%, #a3f760 0%, rgba(163, 247, 96, 0) 50%), radial-gradient(circle at 80% 30%, #38bdf8 0%, rgba(56, 189, 248, 0) 45%), radial-gradient(circle at 40% 20%, #67e8f9 0%, rgba(103, 232, 249, 0) 50%), radial-gradient(circle at 75% 85%, #85f46a 0%, rgba(133, 244, 106, 0) 45%), #30e8f8);
	filter: blur(14px);
	animation: bsa-fluid-flow 12s ease-in-out infinite alternate;
	transition: background 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsa-orb-core {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: transparent;
	overflow: hidden;
	box-shadow: var(--bsa-plasma-shadow, 0 10px 28px rgba(48, 232, 248, 0.4)), 0 2px 10px rgba(15, 23, 42, 0.15);
	pointer-events: none;
	z-index: 2;
	transition: box-shadow 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimalist Deep Midnight Navy Oval Eyes */
.bsa-mascot-face {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	pointer-events: none;
	z-index: 3;
	margin-top: -3px;
	transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

.bsa-mascot-eye {
	width: 7.5px;
	height: 12px;
	background: #1a243f !important;
	border-radius: 50%;
	position: relative;
	transition: transform 0.12s ease-in-out, height 0.12s ease-in-out, border-radius 0.12s ease-in-out;
}

.bsa-avatar-plasma {
	position: absolute;
	inset: -50%;
	width: 200%;
	height: 200%;
	background: var(--bsa-plasma-bg, radial-gradient(circle at 30% 30%, #a3f760 0%, rgba(163, 247, 96, 0) 50%), radial-gradient(circle at 70% 70%, #06b6d4 0%, rgba(6, 182, 212, 0) 50%), #30e8f8);
	filter: blur(5px);
	animation: bsa-fluid-flow 8s ease-in-out infinite alternate;
	transition: background 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsa-avatar-eye {
	width: 5.5px;
	height: 9.5px;
	background: #1a243f !important;
	border-radius: 50%;
}

.bsa-mascot-eye.blinking {
	height: 5px !important;
	border-radius: 0 0 10px 10px !important;
	background: transparent !important;
	border-bottom: 3.2px solid #1a243f !important;
	border-left: 1.5px solid transparent !important;
	border-right: 1.5px solid transparent !important;
	border-top: none !important;
	transform: translateY(2px) !important;
}

@keyframes bsa-orb-breath {
	0% { transform: translateY(0px) scale(1); }
	100% { transform: translateY(-4px) scale(1.02); }
}

@keyframes bsa-fluid-flow {
	0% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
	35% { transform: translate(-12%, -8%) rotate(60deg) scale(1.1); }
	70% { transform: translate(8%, -12%) rotate(140deg) scale(1.05); }
	100% { transform: translate(-6%, 10%) rotate(220deg) scale(1.12); }
}

/* ==========================================================================
   Reference Model Speech Bubble (100% Exact to User Photo)
   - Rounded Rectangle Bubble with Soft Lavender White Background
   - Bold Dark Navy "Hi! 👋" + Regular Dark Navy "Need any help?"
   - Small Triangular Tail Pointing Downward to Mascot Orb
   ========================================================================== */

.bsa-teaser-bubble {
	position: relative;
	margin-bottom: 14px;
	background: #f8fafc;
	color: #0f172a;
	padding: 13px 20px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.35;
	box-shadow: 
		0 14px 34px rgba(15, 23, 42, 0.14),
		0 2px 8px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(203, 213, 225, 0.85);
	cursor: pointer;
	display: inline-flex;
	align-items: flex-start;
	opacity: 0;
	transform: scale(0.1) translateY(40px);
	transform-origin: bottom right;
	pointer-events: none;
	transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 100;
	user-select: none;
	text-align: left;
	will-change: transform, opacity;
}

.position-bottom-left .bsa-teaser-bubble {
	transform-origin: bottom left;
}

/* Precise Triangular Tail Pointing directly into Mascot Center (64px width => center 32px) */
.bsa-teaser-bubble::after {
	content: '';
	position: absolute;
	bottom: -6px;
	right: 26px;
	width: 12px;
	height: 12px;
	background: #f8fafc;
	border-right: 1px solid rgba(203, 213, 225, 0.85);
	border-bottom: 1px solid rgba(203, 213, 225, 0.85);
	transform: rotate(45deg);
	border-radius: 0 0 2px 0;
}

.position-bottom-left .bsa-teaser-bubble::after {
	right: auto;
	left: 26px;
	border-right: none;
	border-left: 1px solid rgba(203, 213, 225, 0.85);
}

.bsa-teaser-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	position: relative;
	z-index: 2;
}

.bsa-teaser-title-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.bsa-teaser-sub-row {
	font-size: 13.5px;
	font-weight: 500;
	color: #0f172a; /* Exact matching navy text */
	white-space: nowrap;
	line-height: 1.2;
}

.bsa-teaser-wave {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	transform-origin: 70% 70%;
	animation: bsaWaveHand 2.2s infinite ease-in-out;
}

@keyframes bsaWaveHand {
	0%, 60%, 100% { transform: rotate(0deg); }
	10%, 30% { transform: rotate(18deg); }
	20% { transform: rotate(-12deg); }
	40% { transform: rotate(12deg); }
	50% { transform: rotate(-6deg); }
}

/* Teaser speech bubble styles */

.bsa-teaser-bubble.visible {
	opacity: 1 !important;
	transform: scale(1) translateY(0) !important;
	pointer-events: auto !important;
	animation: bsaBubbleEntranceSpring 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, bsaBubbleFloat 4.5s ease-in-out 0.7s infinite alternate !important;
}

.bsa-teaser-bubble:not(.visible) {
	opacity: 0 !important;
	transform: scale(0.3) translateY(20px) !important;
	pointer-events: none !important;
	animation: none !important;
}

@media (hover: hover) and (pointer: fine) {
	.bsa-fab-wrap:hover .bsa-teaser-bubble {
		opacity: 1 !important;
		transform: scale(1) translateY(0) !important;
		pointer-events: auto !important;
	}
}

@keyframes bsaBubbleEntranceSpring {
	0% {
		opacity: 0;
		transform: scale(0.2) translateY(24px);
	}
	60% {
		opacity: 1;
		transform: scale(1.08) translateY(-4px);
	}
	80% {
		transform: scale(0.96) translateY(2px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes bsaBubbleFloat {
	0% { transform: translateY(0) scale(1); }
	100% { transform: translateY(-4px) scale(1.01); }
}
.bsa-panel {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 370px;
	max-width: calc(100vw - 32px);
	height: 540px;
	max-height: calc(100vh - 80px);
	background: var(--bsa-body-bg, #ffffff);
	border: none !important;
	border-radius: 18px;
	box-shadow: 0 12px 48px rgba(15, 23, 42, 0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	pointer-events: none;
	transition: opacity 0.22s, transform 0.22s;
}
.bsa-panel.open { opacity: 1; transform: none; pointer-events: auto; }
/* Beplus Assistant Header Style */
.bsa-header {
	background: var(--bsa-header-bg, #0f172a);
	color: var(--bsa-header-color, #ffffff);
	padding: 14px 16px;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bsa-header-inner { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bsa-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: transparent !important;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: var(--bsa-plasma-shadow, 0 0 12px rgba(48, 232, 248, 0.5));
	overflow: visible; /* Allow emotion icons / lightbulbs to pop out */
}
.bsa-avatar-orb {
	width: 100%;
	height: 100%;
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	background: transparent !important;
}
.bsa-avatar-plasma {
	position: absolute;
	inset: -60%;
	width: 220%;
	height: 220%;
	background: var(--bsa-plasma-bg, radial-gradient(circle at 30% 30%, #a3f760 0%, rgba(163, 247, 96, 0) 50%),
	            radial-gradient(circle at 70% 70%, #06b6d4 0%, rgba(6, 182, 212, 0) 50%),
	            #30e8f8);
	filter: blur(8px);
	animation: bsa-fluid-flow 8s ease-in-out infinite alternate;
	transition: background 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bsa-avatar-face {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	z-index: 2;
	margin-top: -1.5px;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bsa-avatar-eye {
	width: 5.5px;
	height: 9.5px;
	background: #1a243f;
	border-radius: 50%;
	transition: all 0.2s ease-in-out;
}

/* Avatar Emotions: Thinking (cloud/bulb), Attentive (look down), Happy (praise), Searching, Sad (criticism) */
.bsa-avatar-emotion-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	border: 1px solid #e2e8f0;
	opacity: 0;
	transform: scale(0) rotate(-15deg);
	transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 10;
	pointer-events: none;
}
.bsa-avatar-emotion-badge.active {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

.bsa-avatar.emotion-attentive .bsa-avatar-face {
	transform: translateY(2px);
}
.bsa-avatar.emotion-thinking .bsa-avatar-face {
	transform: translate(4.5px, -5px) scale(1.05); /* Look directly up towards the thought bubble */
}
.bsa-avatar.emotion-restricted .bsa-avatar-eye {
	height: 4px;
	border-radius: 50% !important;
	background: #1a243f !important;
	transform: scaleX(1.2);
}
.bsa-avatar.emotion-restricted .bsa-avatar-face {
	transform: scale(0.95);
}
.bsa-avatar.emotion-sad .bsa-avatar-eye {
	height: 5px;
	border-radius: 10px 10px 0 0 !important; /* Inverted arc ∩ ∩ (sad droop) */
	background: transparent !important;
	border-top: 2.8px solid #1a243f !important;
	border-left: 1.2px solid transparent !important;
	border-right: 1.2px solid transparent !important;
	transform: translateY(1.5px);
}
.bsa-avatar.emotion-sad .bsa-avatar-face {
	transform: translateY(3px);
}
.bsa-avatar.emotion-happy .bsa-avatar-eye {
	height: 5px;
	border-radius: 0 0 10px 10px !important; /* Crescent smile arc ◡ ◡ */
	background: transparent !important;
	border-bottom: 2.8px solid #1a243f !important;
	border-left: 1.2px solid transparent !important;
	border-right: 1.2px solid transparent !important;
	transform: translateY(-1px);
}
.bsa-avatar.emotion-happy .bsa-avatar-face {
	animation: bsa-happy-bounce 0.5s ease-in-out infinite alternate;
}
@keyframes bsa-happy-bounce {
	0% { transform: translateY(0px) scale(1); }
	100% { transform: translateY(-2.5px) scale(1.05); }
}

/* Pre-chat Lead Capture Gate (Ultra-modern borderless soft card style) */
.bsa-lead-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	height: calc(100% - 64px);
	background: var(--bsa-body-bg, #ffffff);
	color: var(--bsa-body-text, #0f172a);
	box-sizing: border-box;
	overflow-y: auto;
}
.bsa-lead-box {
	width: 100%;
	max-width: 330px;
	text-align: center;
	background: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	border: none;
}
.bsa-lead-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--bsa-body-text, #0f172a);
	margin-bottom: 8px;
	letter-spacing: -0.3px;
}
.bsa-lead-desc {
	font-size: 14.5px;
	color: var(--bsa-body-text, #64748b);
	opacity: 0.8;
	margin-bottom: 24px;
	line-height: 1.5;
}
/* Clean borderless input surface with rounded pill corners (No box-shadow, No border) */
.bsa-lead-input {
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 1px solid var(--bsa-input-border, transparent) !important;
	border-radius: 26px !important; /* Full pill rounded */
	font-size: 15px;
	margin-bottom: 14px;
	box-sizing: border-box;
	background: var(--bsa-input-bg, #f1f5f9) !important;
	color: var(--bsa-input-text, #0f172a) !important;
	outline: none !important;
	box-shadow: none !important;
	transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.bsa-lead-input::placeholder {
	color: var(--bsa-input-text, #94a3b8);
	opacity: 0.6;
}
.bsa-lead-input:focus {
	background: var(--bsa-input-bg, #e2e8f0) !important;
	border: 1px solid var(--bsa-accent, #0d9488) !important;
	box-shadow: none !important;
	outline: none !important;
}
/* CSS Isolation to prevent Theme/Elementor global resets from affecting Chatbox and FAB */
#bsa-chat-root button,
#bsa-chat-root input,
#bsa-chat-root textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	box-sizing: border-box !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* Absolute CSS reset for FAB Mascot Button to eliminate red/pink theme hover borders */
#bsa-chat-root .bsa-fab,
#bsa-chat-root .bsa-fab:hover,
#bsa-chat-root .bsa-fab:focus,
#bsa-chat-root .bsa-fab:active {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Matching full pill button with primary teal theme */
.bsa-lead-submit {
	width: 100% !important;
	height: 52px !important;
	padding: 0 20px !important;
	background: var(--bsa-accent, #0d9488) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 26px !important; /* Full pill rounded */
	font-size: 15.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease-in-out !important;
	margin-top: 6px !important;
	letter-spacing: 0.2px !important;
}
.bsa-lead-submit:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.bsa-lead-submit:active {
	transform: translateY(0);
}
.bsa-header-text { min-width: 0; }
.bsa-header-text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--bsa-header-color, #ffffff); letter-spacing: 0.2px; }
.bsa-header-sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--bsa-header-sub, #94a3b8); margin-top: 2px; }
.bsa-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 6px #22c55e;
	display: inline-block;
}
.bsa-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	margin-left: 8px;
}

/* WordPress emoji resets inside chat widget */
#bsa-chat-root img.emoji,
.bsa-panel img.emoji {
	display: inline-block !important;
	border: none !important;
	box-shadow: none !important;
	height: 1em !important;
	width: 1em !important;
	margin: 0 0.15em !important;
	vertical-align: -0.15em !important;
	background: none !important;
	padding: 0 !important;
}

/* ==========================================================================
   Modern Welcome Hero & FAQ Quick Actions
   ========================================================================== */
.bsa-welcome-hero {
	padding: 18px 16px 16px;
	background: #ffffff;
	border-radius: 16px;
	margin-bottom: 14px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
	border: 1px solid rgba(226, 232, 240, 0.8);
	width: 100%;
	box-sizing: border-box;
	overflow: visible;
	flex-shrink: 0;
}
.bsa-welcome-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
	word-break: break-word;
	line-height: 1.4;
}
.bsa-welcome-desc {
	font-size: 13.5px;
	color: #64748b;
	line-height: 1.55;
	margin-bottom: 14px;
	word-break: break-word;
}
.bsa-faq-label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 8px;
}
.bsa-faq-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
	width: 100%;
	box-sizing: border-box;
}
.bsa-faq-btn {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	padding: 10px 14px !important;
	border-radius: 12px !important;
	color: #1e293b !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 8px !important;
	cursor: pointer !important;
	text-align: left !important;
	transition: all 0.18s ease-in-out !important;
	width: 100% !important;
	box-sizing: border-box !important;
	white-space: normal !important;
	word-break: break-word !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

.bsa-faq-btn:hover {
	background: #ffffff !important;
	border-color: #0284c7 !important;
	color: #0284c7 !important;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;
	transform: translateY(-1px) !important;
}
	font-size: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}
.bsa-faq-text {
	flex: 1;
	min-width: 0;
	word-break: break-word;
	line-height: 1.4;
}
.bsa-clear {
	background: none;
	border: none;
	color: var(--bsa-header-color, #ffffff);
	font-size: 15px;
	cursor: pointer;
	opacity: 0.75;
	padding: 6px 7px;
	line-height: 1;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, opacity 0.15s;
}
.bsa-clear svg { display: block; }
.bsa-clear:hover { opacity: 1; background: rgba(125, 125, 125, 0.15); }
.bsa-close {
	background: none;
	border: none;
	color: var(--bsa-header-color, #ffffff);
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
	opacity: 0.85;
	border-radius: 6px;
	transition: background 0.15s, opacity 0.15s;
}
.bsa-close:hover { opacity: 1; background: rgba(125, 125, 125, 0.15); }
.bsa-chat-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.bsa-messages {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 20px 14px 16px;
	background: var(--bsa-body-bg, #f5f7fa);
	color: var(--bsa-body-text, #1e293b);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bsa-msg {
	display: flex;
	flex-shrink: 0;
}
.bsa-msg:first-child {
	margin-top: 4px;
}
.bsa-msg.user { justify-content: flex-end; }
.bsa-msg.bot { justify-content: flex-start; }
.bsa-bubble {
	max-width: 82%;
	padding: 12px 15px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-wrap: break-word;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
	overflow: visible;
	position: relative;
}
.bsa-bubble-content {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}
.bsa-bubble.bsa-collapsible.bsa-collapsed .bsa-bubble-content {
	max-height: 200px;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
	-webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}
.bsa-bubble.bsa-collapsible.bsa-collapsed::after {
	display: none;
}
.bsa-show-more-wrap {
	display: flex !important;
	justify-content: center !important;
	margin-top: 8px !important;
	padding-top: 4px !important;
	position: relative !important;
	z-index: 5 !important;
}
#bsa-chat-root button.bsa-show-more-btn,
.bsa-show-more-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 6px 18px !important;
	font-size: 12.5px !important;
	line-height: 1.2 !important;
	font-weight: 600 !important;
	color: var(--bsa-accent, #0d9488) !important;
	background: var(--bsa-bot-bubble-bg, #ffffff) !important;
	border: 1px solid var(--bsa-border, #cbd5e1) !important;
	border-radius: 9999px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	width: auto !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	outline: none !important;
}
#bsa-chat-root button.bsa-show-more-btn span,
.bsa-show-more-btn span {
	color: inherit !important;
	text-decoration: none !important;
}
#bsa-chat-root button.bsa-show-more-btn:hover,
#bsa-chat-root button.bsa-show-more-btn:focus,
#bsa-chat-root button.bsa-show-more-btn:active,
.bsa-show-more-btn:hover,
.bsa-show-more-btn:focus,
.bsa-show-more-btn:active {
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-color: var(--bsa-accent, #0d9488) !important;
	color: var(--bsa-accent, #0d9488) !important;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25) !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}
#bsa-chat-root button.bsa-show-more-btn:hover span,
#bsa-chat-root button.bsa-show-more-btn:focus span,
#bsa-chat-root button.bsa-show-more-btn:active span,
.bsa-show-more-btn:hover span {
	color: var(--bsa-accent, #0d9488) !important;
}
#bsa-chat-root button.bsa-show-more-btn svg,
.bsa-show-more-btn svg {
	stroke: var(--bsa-accent, #0d9488) !important;
	color: var(--bsa-accent, #0d9488) !important;
}
#bsa-chat-root button.bsa-show-more-btn:hover svg,
.bsa-show-more-btn:hover svg {
	stroke: var(--bsa-accent, #0d9488) !important;
	color: var(--bsa-accent, #0d9488) !important;
}
.bsa-show-more-icon {
	transition: transform 0.2s ease !important;
	flex-shrink: 0 !important;
}
.bsa-bubble > div {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}
.bsa-bubble > div + div {
	margin-top: 6px;
}
.bsa-msg.user .bsa-bubble {
	background: var(--bsa-user-bubble-bg, linear-gradient(135deg, #0d9488, #14b8a6));
	color: #fff;
	border-bottom-right-radius: 4px;
}
.bsa-msg.bot .bsa-bubble {
	background: var(--bsa-bot-bubble-bg, #ffffff);
	color: var(--bsa-bot-bubble-text, #1d2327);
	border: 1px solid var(--bsa-bot-bubble-border, #e5e9f0);
	border-bottom-left-radius: 4px;
}
.bsa-bubble a {
	color: var(--bsa-accent, #0d9488);
	text-decoration: underline;
}
.bsa-typing { color: var(--bsa-body-text, #8a919c); font-style: normal; }
.bsa-typing .bsa-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-radius: 50%;
	background: var(--bsa-accent, #14b8a6);
	animation: bsa-bounce 1.2s infinite ease-in-out;
}
.bsa-typing .bsa-dot:nth-child(1) { animation-delay: 0s; }
.bsa-typing .bsa-dot:nth-child(2) { animation-delay: 0.15s; }
.bsa-typing .bsa-dot:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
@keyframes bsa-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-5px); opacity: 1; }
}
.bsa-waiting {
	text-align: center;
	font-size: 12px;
	color: #8d8f94;
	padding: 2px 0 0;
	font-style: italic;
}
.bsa-send:disabled { cursor: not-allowed; opacity: 0.6; }
.bsa-sources {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed var(--bsa-border, #e2e8f0);
}
.bsa-src-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: #8d8f94; margin-bottom: 5px; font-weight: 600; }
.bsa-src-card {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--bsa-bot-bubble-bg, #f8fafc);
	border: 1px solid var(--bsa-bot-bubble-border, #e5e9f0);
	border-radius: 8px;
	padding: 7px 10px;
	margin-top: 5px;
	text-decoration: none;
	color: var(--bsa-body-text, #1d2327);
	font-size: 12.5px;
	transition: border-color 0.15s, background 0.15s;
}
.bsa-src-card:hover { border-color: var(--bsa-accent, #0d9488); background: var(--bsa-body-bg, #eff8f7); }
.bsa-src-ico { font-size: 13px; flex-shrink: 0; }
.bsa-src-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsa-input-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 14px 8px 14px;
	background: var(--bsa-input-wrap-bg, #ffffff);
	border-top: 1px solid var(--bsa-input-wrap-border, #e7eaef);
	position: relative;
}
.bsa-input-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	width: 100%;
}
.bsa-input-tip {
	display: flex;
	align-items: center;
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.2;
	padding-left: 2px;
	user-select: none;
	transition: opacity 0.15s;
}
.bsa-input-tip strong {
	color: #0d9488;
	font-weight: 600;
}

/* Slash/Hash Hints & Realtime FAQ Suggestion Menu (Spotlight Command Palette) */
.bsa-slash-hints {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: calc(100% + 6px);
	background: var(--bsa-card-bg, #ffffff);
	border: 1px solid var(--bsa-input-border, #e2e8f0);
	border-radius: 12px;
	box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	max-height: 210px;
	overflow: hidden;
	z-index: 100;
	animation: bsa-slide-up-hints 0.15s ease-out;
}
@keyframes bsa-slide-up-hints {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.bsa-slash-hints-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 12px;
	background: #f8fafc;
	border-bottom: 1px solid #edf2f7;
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-weight: 600;
}
.bsa-slash-hints-tip {
	font-size: 10px;
	color: #94a3b8;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
}
.bsa-slash-hints-list {
	overflow-y: auto;
	padding: 4px;
	max-height: 170px;
}
.bsa-slash-hint-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
	font-size: 12.5px;
	color: #1e293b;
	line-height: 1.35;
}
.bsa-slash-hint-item:hover,
.bsa-slash-hint-item.active {
	background: #f0fdfa;
	color: #0f766e;
}
.bsa-slash-hint-icon {
	font-size: 14px;
	flex-shrink: 0;
}
.bsa-slash-hint-title {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}
.bsa-slash-hint-enter {
	font-size: 11px;
	color: #94a3b8;
	font-family: monospace;
	padding: 1px 5px;
	border-radius: 4px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	opacity: 0.7;
	transition: opacity 0.12s, background 0.12s;
}
.bsa-slash-hint-item:hover .bsa-slash-hint-enter,
.bsa-slash-hint-item.active .bsa-slash-hint-enter {
	opacity: 1;
	background: #ccfbf1;
	color: #0f766e;
	border-color: #99f6e4;
}
.bsa-slash-empty-hint {
	padding: 14px 12px;
	font-size: 12px;
	color: #64748b;
	text-align: center;
	line-height: 1.45;
}
.bsa-input-row {
	display: flex;
	gap: 8px;
	align-items: center;
	width: 100%;
}
	.bsa-input {
		flex: 1;
		min-width: 0;
		background: var(--bsa-input-bg, #ffffff);
		color: var(--bsa-input-text, #0f172a);
		border: 1px solid var(--bsa-input-border, #d3d8e0);
		border-radius: 12px;
		padding: 9px 12px;
		font-size: 13.5px;
		line-height: 1.4;
		resize: none;
		height: 42px;
		max-height: 120px;
		box-sizing: border-box !important;
		font-family: inherit;
		transition: border-color 0.15s, box-shadow 0.15s;
	}
	.bsa-input:focus { outline: none; border-color: var(--bsa-accent, #0d9488); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14); }
	#bsa-chat-root button.bsa-send,
	.bsa-send {
		background: var(--bsa-accent, #0d9488) !important;
		color: #ffffff !important;
		border: none !important;
		outline: none !important;
		border-radius: 10px !important;
		width: 42px !important;
		min-width: 42px !important;
		height: 42px !important;
		min-height: 42px !important;
		padding: 0 !important;
		box-sizing: border-box !important;
		cursor: pointer;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex-shrink: 0 !important;
		box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
		transition: transform 0.12s, box-shadow 0.12s, filter 0.15s;
	}
	#bsa-chat-root button.bsa-send svg,
	.bsa-send svg {
		width: 18px !important;
		height: 18px !important;
		stroke: #ffffff !important;
		display: block !important;
		margin: 0 !important;
	}
	#bsa-chat-root button.bsa-send:hover,
	.bsa-send:hover { filter: brightness(1.1); transform: translateY(-1px); }
	#bsa-chat-root button.bsa-send:active,
	.bsa-send:active { transform: translateY(0); }
@media (max-width: 600px) {
	.bsa-fab-wrap {
		bottom: calc(16px + env(safe-area-inset-bottom));
		right: 16px;
	}
	.position-bottom-left .bsa-fab-wrap {
		right: auto;
		left: 16px;
	}
	.bsa-fab {
		width: 54px;
		height: 54px;
		box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
	}
	.bsa-panel {
		position: fixed !important;
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100% !important;
		height: -webkit-fill-available !important;
		height: 100dvh !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		border: none !important;
		z-index: 999999 !important;
		display: flex !important;
		flex-direction: column !important;
		transform: translateY(100%) !important;
		transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s !important;
		overflow: hidden !important;
	}
	.bsa-panel.open {
		transform: translateY(0) !important;
	}
	.bsa-header {
		padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
		min-height: 54px;
		border-bottom: 1px solid rgba(255,255,255,0.15);
		flex-shrink: 0 !important;
	}
	.bsa-header-text strong {
		font-size: 15px;
	}
	.bsa-chat-body {
		display: flex !important;
		flex-direction: column !important;
		flex: 1 1 0% !important;
		min-height: 0 !important;
		height: auto !important;
		overflow: hidden !important;
	}
	.bsa-messages {
		flex: 1 1 0% !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 16px 12px !important;
		gap: 10px;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	.bsa-msg {
		margin-bottom: 2px;
	}
	.bsa-msg:first-child {
		margin-top: 4px !important;
	}
	.bsa-bubble {
		font-size: 15px;
		line-height: 1.5;
		padding: 12px 14px;
		max-width: 90%;
		border-radius: 14px;
		box-shadow: 0 1px 2px rgba(0,0,0,0.05);
		box-sizing: border-box;
		overflow: visible;
	}
	.bsa-bubble > div {
		margin: 0;
		padding: 0;
		line-height: 1.5;
	}
	.bsa-bubble > div + div {
		margin-top: 6px;
	}
	.bsa-msg.user .bsa-bubble {
		border-bottom-right-radius: 4px;
	}
	.bsa-msg.bot .bsa-bubble {
		border-bottom-left-radius: 4px;
	}
	.bsa-src-card {
		padding: 9px 11px;
		font-size: 13px;
		border-radius: 8px;
	}
	.bsa-input-wrap {
		flex-shrink: 0 !important;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
		background: #ffffff !important;
		border-top: 1px solid #e2e8f0 !important;
		gap: 8px;
		display: flex !important;
		align-items: center !important;
		position: relative !important;
		z-index: 10 !important;
		width: 100% !important;
		box-sizing: border-box !important;
		margin: 0 !important;
	}
	.bsa-input {
		font-size: 16px !important; /* Strictly prevents iOS Safari zoom */
		line-height: 1.35;
		padding: 10px 14px;
		border-radius: 20px;
		min-height: 42px;
		max-height: 90px;
		background: #f1f5f9;
		border: 1px solid #cbd5e1;
		flex: 1 1 0% !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.bsa-input:focus {
		background: #ffffff;
		border-color: #0d9488;
	}
	.bsa-send {
		min-width: 42px;
		min-height: 42px;
		width: 42px;
		height: 42px;
		padding: 0;
		font-size: 15px;
		border-radius: 50%;
		flex-shrink: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	.bsa-clear, .bsa-close {
		padding: 8px;
		border-radius: 8px;
	}
	.bsa-close {
		font-size: 26px;
	}
	.bsa-lead-gate {
		height: calc(100% - 64px) !important;
		padding: 32px 24px !important;
	}
	.bsa-lead-input {
		font-size: 16px !important; /* Strictly prevents iOS Safari zoom */
		height: 52px !important;
		border: none !important;
		outline: none !important;
		box-shadow: none !important;
		background: #f1f5f9 !important;
		border-radius: 26px !important;
		-webkit-appearance: none !important;
	}
	.bsa-lead-submit {
		height: 52px !important;
		border-radius: 26px !important;
		-webkit-appearance: none !important;
	}
}

.bsa-chat-body {
	display: flex;
	flex-direction: column;
	height: calc(100% - 64px);
}
