/**
 * Public Front-End stylesheet for Rich-E Assistant Chatbot.
 * Implements high-end glassmorphic layouts, brand matching transitions, responsive mobile layers.
 */

.riche-chat-widget-wrapper {
	position: fixed;
	bottom: 25px;
	z-index: 999999;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	box-sizing: border-box;
}
.riche-chat-widget-wrapper,
.riche-chat-widget-wrapper * {
	box-sizing: border-box !important;
}

/* Screen Positions */
.riche-pos-right {
	right: 25px;
}
.riche-pos-left {
	left: 25px;
}

/* Floating Toggle Button */
.riche-chat-toggle-btn {
	width: 60px !important;
	height: 60px !important;
	border-radius: 50% !important;
	border: none !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	font-size: 24px !important;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
	outline: none !important;
	position: relative !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}
.riche-chat-toggle-btn:active {
	transform: scale(0.9);
}
.riche-chat-toggle-btn span {
	line-height: 1;
	display: inline-block;
}

/* Chat Window Container */
.riche-chat-window {
	position: absolute;
	bottom: 80px;
	width: 380px;
	height: 540px;
	max-height: calc(100vh - 110px);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform-origin: bottom right;
	animation: riche-chat-open 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	box-sizing: border-box;
}
.riche-pos-left .riche-chat-window {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}
.riche-pos-right .riche-chat-window {
	left: auto;
	right: 0;
}

@keyframes riche-chat-open {
	from {
		opacity: 0;
		transform: scale(0.8) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Chat Header */
.riche-chat-header {
	padding: 16px 20px;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.riche-header-avatar-container {
	position: relative !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	width: 40px !important;
	height: 40px !important;
}
.riche-header-avatar-wrap {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.2) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	font-size: 20px !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}
.riche-header-avatar-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
}
.riche-header-avatar-wrap span {
	font-size: 20px !important;
	line-height: 1 !important;
	display: block !important;
}
.riche-header-status-dot {
	position: absolute !important;
	bottom: -1px !important;
	right: -1px !important;
	width: 10px !important;
	height: 10px !important;
	background-color: #22c55e !important; /* Vibrant green */
	border: 2px solid #ffffff !important;
	border-radius: 50% !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
	z-index: 2 !important;
}
.riche-header-text-wrap {
	flex-grow: 1 !important;
}
.riche-header-text-wrap h4 {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.2 !important;
	color: #ffffff !important;
	text-transform: none !important;
}
.riche-header-text-wrap p {
	margin: 2px 0 0 0 !important;
	padding: 0 !important;
	font-size: 11px !important;
	opacity: 0.9 !important;
	line-height: 1.2 !important;
	color: #ffffff !important;
	text-transform: none !important;
}
.riche-header-close-btn {
	background: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-size: 18px !important;
	cursor: pointer !important;
	opacity: 0.85 !important;
	transition: all 0.2s ease !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	line-height: 1 !important;
	text-transform: none !important;
}
.riche-header-close-btn:hover {
	opacity: 1 !important;
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Chat Body Messages */
.riche-chat-body {
	flex-grow: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
	background: rgba(249, 250, 251, 0.4);
}

/* Scrollbar Style */
.riche-chat-body::-webkit-scrollbar {
	width: 4px;
}
.riche-chat-body::-webkit-scrollbar-track {
	background: transparent;
}
.riche-chat-body::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 4px;
}

/* Chat Bubble Layouts */
.riche-chat-bubble {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 16px;
	font-size: 13.5px;
	line-height: 1.45;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
	position: relative;
	word-wrap: break-word;
	box-sizing: border-box;
	animation: riche-bubble-fade 0.25s ease-out;
}
@keyframes riche-bubble-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.riche-chat-bubble-bot {
	background: #ffffff;
	color: #1f2937;
	border: 1px solid rgba(229, 231, 235, 0.7);
	border-left: 4px solid #127f7a;
	align-self: flex-start;
	border-top-left-radius: 4px;
}
.riche-chat-bubble-user {
	align-self: flex-end;
	border-top-right-radius: 4px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Rich Response formatting inside chat bubbles */
.riche-chat-bubble-text p {
	margin: 0 0 10px 0;
	line-height: 1.5;
}
.riche-chat-bubble-text p:last-child {
	margin-bottom: 0;
}
.riche-chat-bubble-text ul, .riche-chat-bubble-text ol {
	margin: 10px 0;
	padding-left: 20px;
}
.riche-chat-bubble-text li {
	margin-bottom: 5px;
	line-height: 1.4;
}

/* Premium Markdown Styles for Headings */
.riche-chat-bubble-text h1, .riche-chat-bubble-text h2, .riche-chat-bubble-text h3, .riche-chat-bubble-text h4 {
	font-weight: 700 !important;
	color: #127f7a !important; /* Brand Teal */
	margin: 14px 0 6px 0 !important;
	line-height: 1.3 !important;
}
.riche-chat-bubble-text h1 { font-size: 15px !important; }
.riche-chat-bubble-text h2 { font-size: 14px !important; }
.riche-chat-bubble-text h3 { font-size: 13px !important; }
.riche-chat-bubble-text h4 { font-size: 12.5px !important; }

/* In a user bubble, render headings in white/light shade for readability */
.riche-chat-bubble-user .riche-chat-bubble-text h1,
.riche-chat-bubble-user .riche-chat-bubble-text h2,
.riche-chat-bubble-user .riche-chat-bubble-text h3,
.riche-chat-bubble-user .riche-chat-bubble-text h4 {
	color: #ffffff !important;
}

/* Premium Inline Code */
.riche-chat-inline-code {
	font-family: 'Courier New', Courier, monospace !important;
	background: rgba(18, 127, 122, 0.08) !important;
	border: 1px solid rgba(18, 127, 122, 0.15) !important;
	padding: 2px 6px !important;
	border-radius: 4px !important;
	font-size: 12px !important;
	color: #e11d48 !important; /* Premium reddish/rose accent color */
	font-weight: 600 !important;
}
.riche-chat-bubble-user .riche-chat-inline-code {
	background: rgba(255, 255, 255, 0.2) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #ffffff !important;
}

/* Premium Code Blocks */
.riche-chat-code-block {
	background: #1e293b !important; /* Premium dark slate slate-800 */
	color: #f1f5f9 !important; /* slate-100 */
	padding: 12px 14px !important;
	border-radius: 8px !important;
	font-family: 'Courier New', Courier, monospace !important;
	font-size: 12px !important;
	overflow-x: auto !important;
	margin: 12px 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
	text-align: left !important;
}
.riche-chat-code-block code {
	font-family: inherit !important;
	color: inherit !important;
	background: none !important;
	padding: 0 !important;
	border: none !important;
}

/* Premium Blockquotes */
.riche-chat-bubble-text blockquote {
	border-left: 3px solid #127f7a !important;
	background: rgba(18, 127, 122, 0.04) !important;
	margin: 10px 0 !important;
	padding: 6px 12px !important;
	color: #4b5563 !important;
	font-style: italic !important;
	border-radius: 0 6px 6px 0 !important;
}
.riche-chat-bubble-user blockquote {
	border-left-color: rgba(255, 255, 255, 0.6) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	color: #ffffff !important;
}
.riche-bubble-time {
	display: block;
	font-size: 9px;
	color: #9ca3af;
	margin-top: 5px;
	text-align: right;
}
.riche-chat-bubble-user .riche-bubble-time {
	color: rgba(255, 255, 255, 0.75);
}

/* Chat Input Footer */
.riche-chat-footer {
	display: flex;
	padding: 12px 15px;
	background: #ffffff;
	border-top: 1px solid rgba(243, 244, 246, 0.9);
	gap: 10px;
	align-items: center;
}
#riche-chat-input-field {
	flex-grow: 1 !important;
	border: 1px solid rgba(229, 231, 235, 0.8) !important;
	border-radius: 24px !important;
	padding: 8px 16px !important;
	font-size: 13.5px !important;
	outline: none !important;
	background: #f9fafb !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	line-height: normal !important;
	margin: 0 !important;
	color: #1f2937 !important;
}
#riche-chat-input-field:focus {
	border-color: rgba(0,0,0,0.2) !important;
	background: #ffffff !important;
}
.riche-msg-send-btn {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	border-radius: 50% !important;
	border: none !important;
	background-image: none !important;
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: transform 0.2s ease, background-color 0.2s ease !important;
	outline: none !important;
	flex-shrink: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
}
.riche-msg-send-btn:hover {
	transform: scale(1.05) !important;
}
.riche-send-arrow {
	font-size: 16px !important;
	line-height: 1 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
}
.riche-chat-link {
	text-decoration: none !important;
	border-bottom: 1.5px solid rgba(18, 127, 122, 0.4) !important;
	color: #127f7a !important;
	transition: all 0.2s ease !important;
	padding: 0 2px !important;
	font-weight: 600 !important;
}
.riche-chat-link:hover {
	color: #0c5a56 !important;
	border-bottom-color: #0c5a56 !important;
	background: rgba(18, 127, 122, 0.06) !important;
	border-radius: 2px !important;
}
.riche-chat-bubble-user .riche-chat-link {
	color: #ffffff !important;
	border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}
.riche-chat-bubble-user .riche-chat-link:hover {
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Typing Indicator Animation */
.riche-typing-bubble {
	align-self: flex-start;
	background: #ffffff;
	border: 1px solid rgba(229, 231, 235, 0.7);
	padding: 12px 20px;
	border-radius: 16px;
	border-top-left-radius: 4px;
	display: flex;
	gap: 4px;
	align-items: center;
}
.riche-typing-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	animation: riche-dot-pulse 1.4s infinite ease-in-out both;
}
.riche-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.riche-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes riche-dot-pulse {
	0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
	40% { transform: scale(1.2); opacity: 1; }
}

/* ---------------------------------------------------- */
/* EMBEDDED SHORTCODE CHAT WINDOW                       */
/* ---------------------------------------------------- */
.riche-chat-window-embedded {
	width: 100%;
	max-width: 600px;
	height: 550px;
	background: #ffffff;
	border: 1px solid rgba(229, 231, 235, 0.8);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 20px auto;
	box-sizing: border-box;
}
.riche-chat-window-embedded .riche-chat-body {
	background: #f9fafb;
}

/* Mobile & Tablet Responsiveness and iOS Zoom Prevention */
@media (max-width: 768px) {
	#riche-chat-input-field,
	.riche-lead-field input,
	.riche-lead-field textarea {
		font-size: 16px !important;
	}
}

@media (max-width: 480px) {
	.riche-chat-widget-wrapper {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		height: 100% !important;
		pointer-events: none !important;
		z-index: 999999999 !important;
	}
	.riche-chat-toggle-btn {
		position: fixed !important;
		right: 20px !important;
		pointer-events: auto !important;
		z-index: 9999998 !important;
	}
	.riche-pos-left .riche-chat-toggle-btn {
		left: 20px !important;
		right: auto !important;
	}
	.riche-chat-window {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		height: 100% !important;
		height: -webkit-fill-available !important;
		border-radius: 0 !important;
		border: none !important;
		z-index: 9999999 !important;
		pointer-events: auto !important;
	}
	/* Make suggestions horizontally scrollable on mobile to save vertical screen space */
	.riche-chat-suggestions {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		padding: 10px 15px !important;
		gap: 8px !important;
		justify-content: flex-start !important;
		-ms-overflow-style: none !important; /* IE and Edge */
		scrollbar-width: none !important; /* Firefox */
	}
	.riche-chat-suggestions::-webkit-scrollbar {
		display: none !important; /* Chrome, Safari and Opera */
	}
	.riche-suggestion-chip {
		flex-shrink: 0 !important;
		white-space: nowrap !important;
	}
}

/* Predefined Suggestion Chips */
.riche-chat-suggestions {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	gap: 6px !important;
	padding: 10px 15px !important;
	background: #ffffff !important;
	border-top: 1px solid rgba(243, 244, 246, 0.4) !important;
	box-sizing: border-box !important;
	align-items: center !important;
	justify-content: flex-start !important;
	-ms-overflow-style: none !important; /* IE and Edge */
	scrollbar-width: none !important; /* Firefox */
}
.riche-chat-suggestions::-webkit-scrollbar {
	display: none !important; /* Chrome, Safari and Opera */
}
.riche-suggestion-chip {
	background: #f3f4f6 !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 20px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
	font-family: inherit !important;
	color: #4b5563 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	max-width: 100% !important;
	box-shadow: none !important;
	margin: 0 !important;
	height: auto !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	display: inline-block !important;
	text-align: left !important;
}
.riche-suggestion-chip:hover {
	transform: translateY(-1px) !important;
}

/* Header Controls & Action Buttons */
.riche-header-controls {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-left: auto !important;
	margin-right: 5px !important;
}
.riche-header-control-btn {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-style: none !important;
	border-width: 0 !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 15px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	line-height: 1 !important;
	text-transform: none !important;
}
.riche-header-control-btn:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.15) !important;
	transform: scale(1.05) !important;
}

/* Lead Form Overlay */
.riche-lead-form-overlay {
	position: absolute !important;
	top: 72px !important; /* Matches header height */
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	background: #ffffff !important;
	z-index: 100 !important;
	display: none !important;
	flex-direction: column !important;
	animation: riche-fade-in 0.25s ease-out !important;
	box-sizing: border-box !important;
}
.riche-lead-form-overlay.is-active {
	display: flex !important;
}
.riche-chat-window-embedded .riche-lead-form-overlay {
	top: 72px !important;
}
@keyframes riche-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.riche-lead-form-container {
	padding: 20px !important;
	overflow-y: auto !important;
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
}
.riche-lead-form-container h4 {
	margin: 0 0 5px 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	text-transform: none !important;
}
.riche-lead-form-container p {
	margin: 0 0 15px 0 !important;
	font-size: 12px !important;
	color: #6b7280 !important;
	line-height: 1.4 !important;
}
.riche-lead-field {
	margin-bottom: 12px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
}
.riche-lead-field label {
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #4b5563 !important;
	margin-bottom: 4px !important;
}
.riche-lead-field input, .riche-lead-field textarea {
	width: 100% !important;
	border: 1px solid rgba(229, 231, 235, 0.8) !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 13px !important;
	outline: none !important;
	background: #f9fafb !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	color: #1f2937 !important;
	margin: 0 !important;
}
.riche-lead-field input:focus, .riche-lead-field textarea:focus {
	background: #ffffff !important;
}
.riche-lead-actions {
	display: flex !important;
	gap: 10px !important;
	margin-top: 10px !important;
	margin-bottom: 15px !important;
}
.riche-lead-cancel-btn {
	flex: 1 !important;
	background: #f3f4f6 !important;
	border: 1px solid #e5e7eb !important;
	color: #4b5563 !important;
	border-radius: 8px !important;
	padding: 10px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
	outline: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	text-transform: none !important;
	height: auto !important;
}
.riche-lead-cancel-btn:hover {
	background: #e5e7eb !important;
}
.riche-lead-submit-btn {
	flex: 1.5 !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	padding: 10px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: opacity 0.2s !important;
	outline: none !important;
	border: none !important;
	margin: 0 !important;
	text-transform: none !important;
	height: auto !important;
}
.riche-lead-submit-btn:hover {
	opacity: 0.9 !important;
}

/* ---------------------------------------------------- */
/* TAMAGOTCHI AVATAR ANIMATIONS & WELCOME NUDGE         */
/* ---------------------------------------------------- */

/* 1. Idle Floating & Greeting Wave (Applied to the open icon wrapper) */
@keyframes riche-robot-tamagotchi {
	/* 0% to 30%: Gentle floating (idle breathing) */
	0%, 100% {
		transform: translateY(0) rotate(0deg);
	}
	15% {
		transform: translateY(-5px) rotate(0deg);
	}
	30% {
		transform: translateY(0) rotate(0deg);
	}
	/* 35% to 55%: Waving hello side-to-side (Tamagotchi greeting) */
	35% {
		transform: translateY(-2px) rotate(-8deg);
	}
	40% {
		transform: translateY(-4px) rotate(8deg);
	}
	45% {
		transform: translateY(-2px) rotate(-8deg);
	}
	50% {
		transform: translateY(-4px) rotate(8deg);
	}
	55% {
		transform: translateY(0) rotate(0deg);
	}
	/* 55% to 100%: Calm float cycle */
	70% {
		transform: translateY(-5px) rotate(0deg);
	}
	85% {
		transform: translateY(0) rotate(0deg);
	}
}

.riche-toggle-icon-open {
	animation: riche-robot-tamagotchi 8s ease-in-out infinite !important;
	transform-origin: bottom center !important;
}

/* 2. Periodic Blink Animation (Applied to the actual avatar image or emoji) */
@keyframes riche-robot-blink {
	0%, 90%, 94%, 98%, 100% {
		transform: scaleY(1) scaleX(1);
	}
	92%, 96% {
		transform: scaleY(0.15) scaleX(1.1);
	}
}

.riche-toggle-avatar,
.riche-toggle-emoji {
	animation: riche-robot-blink 5s linear infinite !important;
	transform-origin: center center !important;
	display: inline-block !important;
}

/* 3. Hover Joy Bounce (Squash and Stretch) */
@keyframes riche-robot-hover-joy {
	0%, 100% {
		transform: scale(1) translateY(0);
	}
	20% {
		transform: scale(1.2, 0.8) translateY(0);
	}
	40% {
		transform: scale(0.9, 1.2) translateY(-12px);
	}
	60% {
		transform: scale(1.1, 0.9) translateY(2px);
	}
	80% {
		transform: scale(1) translateY(-2px);
	}
}

.riche-chat-toggle-btn:hover .riche-toggle-icon-open {
	animation: riche-robot-hover-joy 0.8s ease-in-out infinite !important;
}

/* 4. Chat Header Thinking Wiggle */
@keyframes riche-robot-thinking {
	0%, 100% {
		transform: rotate(0deg) scale(1);
	}
	25% {
		transform: rotate(-12deg) scale(1.08);
	}
	75% {
		transform: rotate(12deg) scale(1.08);
	}
}

.riche-header-avatar-wrap.is-typing img,
.riche-header-avatar-wrap.is-typing span {
	animation: riche-robot-thinking 0.5s ease-in-out infinite !important;
}



