
/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.chat-notification-badge {
	animation: notification-pulse 2s infinite;
	box-shadow: 0 0 0 rgba(255, 68, 68, .4);
	transition: all .3s ease;
}

@keyframes notification-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 68, 68, .4);
	}
	
	70% {
		transform: scale(1.1);
		box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
	}
	
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
	}
}

/* ========================================
   EMAIL COLLECTION SYSTEM
   ======================================== */
.email-blocker {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	padding: 30px 20px;
	max-width: 100%;
	margin: auto;
	text-align: center;
	animation: fadeIn .5s ease-in-out;
}

.email-blocker-header {
	margin-bottom: 20px;
}

.email-blocker-logo {
	max-width: 80px;
	margin-bottom: 10px;
}

.email-blocker h2 {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	margin-bottom: 10px;
}

.email-blocker p {
	font-size: 16px;
	color: #555;
	margin-bottom: 20px;
}

.email-blocker input[type="email"], .email-blocker .mxchat-name-input {
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	color: #333;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
	transition: border-color .3s, box-shadow .3s;
}

.email-blocker input[type="email"]:focus, .email-blocker .mxchat-name-input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 8px rgba(0, 115, 170, .3);
	outline: none;
}

.email-blocker button {
	background-color: #0073aa;
	color: #fff;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	width: 100%;
	transition: background-color .3s, transform .2s;
}

.email-blocker button:hover {
	background-color: #005177;
	transform: translateY(-2px);
}

.email-blocker-footer {
	margin-top: 20px;
	font-size: 12px;
	color: #888;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#mxchat-chatbot-wrapper {
	display: none;
}

/* ========================================
   SEARCH RESULTS SYSTEM
   ======================================== */
.chatbot-title-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.wp-admin .mxchat-search-results, .wp-content .mxchat-search-results, .site-content .mxchat-search-results, .mxchat-search-results {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 15px 0;
	font-size: 14px !important;
}

.mxchat-search-intro {
	font-size: 16px !important;
	margin: 0 0 15px 0 !important;
	line-height: 1.4 !important;
	font-weight: normal !important;
}

.mxchat-search-item {
	padding: 15px !important;
	border-radius: 8px !important;
	background: #fff !important;
	border: 1px solid rgba(0, 0, 0, .1) !important;
}

.mxchat-search-header {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-bottom: 8px !important;
}

.mxchat-site-icon {
	width: 16px !important;
	height: 16px !important;
	flex-shrink: 0 !important;
}

.mxchat-site-url {
	font-size: 13px !important;
	color: #555 !important;
	line-height: 1 !important;
}

.mxchat-search-content {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

.mxchat-search-title {
	font-size: 16px !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 600 !important;
}

.mxchat-search-title a {
	text-decoration: none !important;
	color: #000 !important;
}

.mxchat-search-title a:hover {
	text-decoration: underline !important;
}

.mxchat-search-thumbnail {
	max-width: 200px !important;
	margin: 10px 0 !important;
}

.mxchat-search-thumbnail img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 4px !important;
}

.mxchat-search-description {
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #333 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ========================================
   ENHANCED HEADINGS & TEXT STYLING
   ======================================== */
.bot-message .chat-heading {
	color: inherit;
	margin: 16px 0 12px 0 !important;
	font-weight: bold !important;
	line-height: 1.3 !important;
}

.bot-message h1.chat-heading, .chat-heading-1 {
	font-size: 1.5em !important;
	border-bottom: 2px solid rgba(255, 255, 255, .3) !important;
	padding-bottom: 8px !important;
}

.bot-message h2.chat-heading, .chat-heading-2 {
	font-size: 1.25em !important;
	border-bottom: 1px solid rgba(255, 255, 255, .3) !important;
	padding-bottom: 6px !important;
}

.bot-message h3.chat-heading, .chat-heading-3 {
	font-size: 1.125em !important;
}

.bot-message h4.chat-heading, .chat-heading-4 {
	font-size: 1em !important;
}

.bot-message h5.chat-heading, .chat-heading-5 {
	font-size: .875em !important;
	text-transform: uppercase !important;
	letter-spacing: .5px !important;
}

.bot-message h6.chat-heading, .chat-heading-6 {
	font-size: .75em !important;
	text-transform: uppercase !important;
	letter-spacing: .5px !important;
}

.bot-message strong {
	font-weight: bold !important;
}

.bot-message em {
	font-style: italic !important;
}

.bot-message del {
	text-decoration: line-through !important;
	opacity: .7;
}

/* ========================================
   CODE BLOCKS & INLINE CODE
   ======================================== */
.mxchat-code-block-container {
	margin: 16px 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	overflow: hidden;
	font-family: "Monaco", "Menlo", "Ubuntu Mono", "Courier New", monospace;
}

.mxchat-code-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, .15);
	padding: 8px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
	font-size: 11px;
	min-height: 36px;
}

.mxchat-code-language {
	color: rgba(255, 255, 255, .8);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: 10px;
}

.mxchat-copy-button {
	background: rgba(255, 255, 255, .2);
	color: white;
	border: 1px solid rgba(255, 255, 255, .3);
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 10px;
	cursor: pointer;
	transition: all .2s ease;
	min-height: 24px;
	line-height: 1;
}

.mxchat-copy-button:hover {
	background: rgba(255, 255, 255, .3);
	border-color: rgba(255, 255, 255, .4);
}

.mxchat-copy-button:active {
	background: rgba(255, 255, 255, .4);
}

.mxchat-code-block {
	margin: 0;
	padding: 16px;
	background: rgba(0, 0, 0, .3);
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.4;
	white-space: pre;
	border: none;
}

.mxchat-code-block code {
	font-family: inherit;
	font-size: inherit;
	background: none !important;
	padding: 0 !important;
	border: none !important;
	color: rgba(255, 255, 255, .95) !important;
	display: block;
}

.mxchat-inline-code {
	background: rgba(255, 255, 255, .2) !important;
	padding: 2px 6px !important;
	border-radius: 3px !important;
	font-family: "Monaco", "Menlo", "Ubuntu Mono", "Courier New", monospace !important;
	font-size: .85em !important;
	color: #81c784 !important;
	border: 1px solid rgba(255, 255, 255, .3) !important;
}

/* ========================================
   TOOLBAR SYSTEM
   ======================================== */
.active-pdf-container, .active-word-container {
	display: inline-flex;
	align-items: center;
	max-width: 200px;
	margin: 0;
	padding: 0;
	line-height: 13px;
}

.active-pdf-name, .active-word-name {
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.remove-pdf-btn, .remove-word-btn, .toolbar-perplexity {
	background: none;
	border: none;
	padding: 2px;
	margin-left: 4px;
	cursor: pointer;
	transition: opacity .2s;
	line-height: 13px;
}

.remove-pdf-btn:hover, .remove-word-btn:hover, .toolbar-perplexity:hover {
	opacity: 1;
	background: none;
}

#mxchat-chatbot .chat-toolbar {
	display: flex;
	gap: 10px;
	padding: 8px;
	background: none;
	align-items: end;
}

#mxchat-chatbot .toolbar-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	opacity: .6;
	transition: opacity .2s;
	margin: 0;
	min-width: 0;
	box-shadow: none;
}

#mxchat-chatbot .toolbar-btn svg {
	width: 100%;
	height: 100%;
}

#mxchat-chatbot .toolbar-btn:hover {
	opacity: 1;
	background: none;
	border: none;
	box-shadow: none;
}

#mxchat-chatbot .toolbar-btn:disabled {
	opacity: .3;
	cursor: not-allowed;
	background: none;
	border: none;
}

.toolbar-btn.active {
	background-color: rgba(120, 115, 245, .2);
	box-shadow: 0 0 0 2px rgba(120, 115, 245, .4);
}

#active-perplexity-container {
	display: flex;
	align-items: center;
	margin-left: 8px;
	font-size: 12px;
}

#perplexity-search-btn {
	display: none;
}

#perplexity-search-btn.active {
	opacity: 1;
}

/* ========================================
   POPULAR QUESTIONS SYSTEM
   ======================================== */
#mxchat-popular-questions {
	padding: 0 10px 10px;
	transition: all .3s ease;
	margin-bottom: 12px;
	position: relative;
}

.mxchat-popular-questions-title {
	font-size: 14px;
	line-height: 24px;
	font-weight: bold;
	color: #212121;
	margin-bottom: 10px;
}

.mxchat-popular-questions-container {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: 200px;
	overflow-y: auto;
	padding: 0 10px 10px;
	scrollbar-width: thin;
	scrollbar-color: #212121 #f1f1f1;
	transition: all .3s ease;
	gap: 8px;
}

#mxchat-popular-questions.collapsed {
	padding: 0;
	margin: 0;
}

#mxchat-popular-questions.collapsed .mxchat-popular-questions-container {
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 0;
	max-height: 40px;
	overflow: visible;
}

#mxchat-popular-questions.collapsed .mxchat-popular-question {
	display: none;
}

#mxchat-popular-questions.collapsed .questions-collapse-btn {
	display: none;
}

/* MISSING - These need to be inside the container context: */
#mxchat-popular-questions .mxchat-popular-questions-container .questions-toggle-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	transition: all .2s ease;
	color: #212121;
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-shadow: none;
	outline: none;
}

#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0px;
	cursor: pointer;
	transition: all .2s ease;
	color: #212121;
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-shadow: none;
	outline: none;
	align-self: center;
	order: -1;
}

.questions-toggle-btn:hover, .questions-collapse-btn:hover, .questions-toggle-btn:focus, .questions-collapse-btn:focus, .questions-toggle-btn:active, .questions-collapse-btn:active {
	background: none;
	border: none;
	box-shadow: none;
	outline: none;
}

.questions-toggle-btn svg, .questions-collapse-btn svg {
	transition: transform .2s ease;
	fill: none;
	width: 25px;
	height: 25px;
}

.questions-toggle-btn:hover svg, .questions-collapse-btn:hover svg {
	opacity: .7;
}

#mxchat-popular-questions.collapsed .questions-toggle-btn {
	display: flex;
}

#mxchat-popular-questions.has-been-collapsed .questions-collapse-btn {
	display: flex;
	align-self: center;
	order: -1;
}

.mxchat-popular-question {
	padding: 12px 20px;
	background-color: #f5f5f5;
	border: 1px solid #bbb;
	border-radius: 8px;
	color: #212121;
	font-size: 14px;
	line-height: 24px;
	cursor: pointer;
	text-align: initial;
	transition: all .3s ease;
	margin-bottom: 0;
	box-shadow: none;
}

.mxchat-popular-question:hover {
	background-color: #eaeaea;
	border-color: #999;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	transform: translateY(-1px);
}

.mxchat-popular-question:focus {
	outline: none;
	background-color: #e0e0e0;
	border-color: #777;
	box-shadow: 0 0 0 3px rgba(100, 149, 237, .5);
}

.mxchat-popular-question:active {
	background-color: #d8d8d8;
	border-color: #666;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15);
	transform: translateY(0);
}

.mxchat-popular-questions-container::-webkit-scrollbar {
	width: 8px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
	border-radius: 4px;
}

.mxchat-popular-questions-container::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
}

/* ========================================
   CORE CHATBOT UI
   ======================================== */
.invisible {
	display: none;
	opacity: 0;
	pointer-events: none;
}

#mxchat-chatbot {
	background: #fff;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 500px;
	box-sizing: border-box;
	flex-grow: 1;
}

#chat-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#chat-box {
	flex-grow: 1;
	overflow-y: auto;
	padding: 10px;
	margin-bottom: 0;
	font-size: 1rem;
}

#chat-box::-webkit-scrollbar {
	width: 5px;
}

#chat-box::-webkit-scrollbar-thumb {
	background-color: #212121;
	border-radius: 20px;
}

.bot-message, .user-message {
	margin-bottom: 15px;
	padding: 10px;
	display: inline-block;
	max-width: 85%;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
	font-size: 14px;
	line-height: 24px;
}

.user-message {
	background: #fff;
	color: #212121;
	text-align: left;
	float: right;
	clear: both;
	border-radius: 18px 0 18px 18px;
	word-wrap: break-word;
	border: 1px solid rgba(226, 232, 255, .2);
}

.user-message p {
	margin: 0;
}

#mxchat-chatbot #chat-container #chat-box .bot-message {
	float: left;
	clear: both;
	border: 1px solid rgba(226, 232, 255, .2);
	border-radius: 0 18px 18px;
	background: #212121;
	color: #fff;
	overflow-x: hidden;
}

#mxchat-chatbot #chat-container #chat-box .agent-message {
	text-align: left;
	float: left;
	clear: both;
	border: 1px solid rgba(226, 232, 255, .2);
	border-radius: 0 18px 18px;
	background: #212121;
	color: #fff;
	overflow-x: hidden;
	margin-bottom: 15px;
	padding: 10px;
	display: inline-block;
	max-width: 85%;
	font-size: 14px;
	line-height: 24px;
	box-shadow: -2px 2px rgba(250, 115, 230, .6), -4px 4px rgba(120, 115, 245, .6);
}

.bot-message p {
	margin: 0 0 1em 0;
}

.bot-message p:last-child {
	margin-bottom: 0;
}

.bot-message {
	white-space: pre-line;
}

.bot-message a {
	color: #fff;
	text-decoration: underline !important;
}

.bot-message a:hover {
	color: #e0e0e0;
	text-decoration: underline;
}

.bot-message a:visited {
	color: #fff;
}

.system-message {
	padding: 8px 12px;
	margin: 8px 0;
	background-color: rgba(120, 115, 245, .1);
	border-radius: 8px;
	color: #555;
	font-style: italic;
	font-size: 14px;
	text-align: center;
}

#mxchat-chatbot-wrapper {
	box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

/* ========================================
   INPUT & CONTROLS
   ======================================== */
#mxchat-chatbot #chat-container #input-container {
	position: relative;
	display: flex;
	align-items: center;
	padding-right: 40px;
	border: 1px solid #ccc;
	border-radius: 10px;
	margin: 0 10px 10px;
}

#mxchat-chatbot #chat-container #input-container #chat-input {
	flex-grow: 1;
	color: #212121;
	line-height: 24px;
	background: transparent;
	margin-bottom: 0;
	width: 100%;
	min-height: 20px;
	max-height: 65px;
	resize: none;
	overflow-y: auto;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	border-radius: 10px;
	box-sizing: border-box;
	padding: .4em .5em;
	outline: none;
}

#chat-input::-webkit-scrollbar {
	width: 8px;
}

#chat-input::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

#chat-input::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
	border-radius: 4px;
}

#chat-input::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
}

#chat-input {
	scrollbar-width: thin;
	scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1;
}

#mxchat-chatbot #chat-container #input-container #send-button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	padding: 5px;
	margin: 0;
	transition: background-color .3s;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	font-weight: 700;
}

#send-button svg {
	width: 25px;
	height: 25px;
	pointer-events: none;
}

#send-button:hover {
	opacity: .8;
}

#mxchat-chatbot .spinner {
	animation: rotate 2s linear infinite;
	width: 20px;
	height: 20px;
}

#mxchat-chatbot .spinner circle {
	stroke: #212121;
	stroke-linecap: round;
	animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* ========================================
   FLOATING CHATBOT & CONTROLS
   ======================================== */
.chatbot-title-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.chatbot-title-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.chat-mode-indicator {
	font-size: 12px;
	margin-right: 8px;
	padding: 4px 8px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

#floating-chatbot {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 375px;
	height: 625px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .25);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	z-index: 100000;
	transition: transform .3s ease-in-out, opacity .3s ease-in-out;
	transform: translateY(20%);
	opacity: 0;
	pointer-events: none;
}

#floating-chatbot.visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

#floating-chatbot-button.hidden, .exit-chat span {
	display: none !important;
}

.visible {
	display: flex;
}

#floating-chatbot-button {
	transition: opacity 1s ease-in-out;
	transition: .3s;
	font-size: 1.25rem;
	position: fixed;
	bottom: 30px;
	right: 25px;
	background-color: #212121;
	color: #fff;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2) !important;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 100000;
	display: flex;
}

#floating-chatbot-button img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.chatbot-top-bar {
	background: #212121;
}

#mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat {
	background: transparent;
	border: none;
	opacity: .8;
	padding: 0;
	min-width: 20px;
}

#mxchat-chatbot-wrapper .chatbot-top-bar {
	cursor: pointer;
	color: #fff;
	padding: 10px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: start;
}

#mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title {
	font-size: 16px;
	line-height: 25px;
	padding: 10px;
	margin: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: bold;
}

.exit-chat {
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	margin-left: auto;
	opacity: .8;
	min-width: 20px;
}

.exit-chat svg {
	fill: white;
	width: 24px;
	height: 24px;
	transform: rotate(270deg);
}

#mxchat-chatbot-wrapper .chatbot-footer {
	text-align: center;
	padding-bottom: 10px;
	font-size: .85em;
}

#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice {
	font-size: 12px;
	margin: 0;
	color: #71717a;
}

#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a {
	color: #0073aa;
	text-decoration: underline;
	font-size: 12px;
}

#mxchat-chatbot-wrapper .chatbot-footer .powered-by {
	text-decoration: none;
	color: inherit;
	font-weight: 700;
}

#mxchat-chatbot-wrapper .chatbot-footer .powered-by span {
	text-decoration: underline;
}

/* ========================================
   THINKING DOTS ANIMATION
   ======================================== */
#chat-box .bot-message.temporary-message .thinking-dots-container {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	height: 20px;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

#chat-box .bot-message.temporary-message .thinking-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 90%;
	gap: 5px;
	flex-shrink: 0;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot {
	height: 6px;
	width: 6px;
	margin: 0 3px;
	background-color: #fff;
	border-radius: 50%;
	display: inline-block;
	animation: bounce 1.4s ease-in-out infinite both;
	vertical-align: middle;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot:first-child {
	animation-delay: -.32s;
}

#chat-box .bot-message.temporary-message .thinking-dots .dot:nth-child(2) {
	animation-delay: -.16s;
}

@keyframes bounce {
	0%, 100%, 80% {
		transform: scale(1);
	}
	
	40% {
		transform: scale(1.5);
	}
}

/* ========================================
   PRE-CHAT MESSAGE
   ======================================== */
#pre-chat-message {
	position: fixed;
	bottom: 85px;
	right: 30px;
	background-color: #fff;
	color: #212121;
	padding: 10px;
	box-shadow: 0px 0px 10px rgba(150, 150, 150, .3);
	border-radius: 5px;
	z-index: 1000;
	cursor: pointer;
	max-width: 325px;
	font-size: 14px;
	display: none;
	margin-bottom: 10px;
}

#pre-chat-message .close-pre-chat-message {
	position: absolute;
	top: -6px;
	right: -6px;
	background-color: #ccc;
	border: none;
	color: #212121;
	font-size: 14px;
	cursor: pointer;
	border-radius: 50%;
	width: 20px;
	min-width: 20px;
	min-height: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media screen and (max-width: 782px) {
	.mxchat-search-results {
		gap: 15px !important;
	}
	
	.mxchat-search-intro {
		font-size: 15px !important;
	}
	
	.mxchat-search-title {
		font-size: 15px !important;
	}
	
	.mxchat-search-description {
		font-size: 13px !important;
	}
}

@media (max-width: 550px) {
	.questions-toggle-btn, .questions-collapse-btn {
		width: 28px;
		height: 28px;
	}
	
	.questions-toggle-btn svg, .questions-collapse-btn svg {
		width: 22px;
		height: 22px;
	}
	
	#pre-chat-message {
		bottom: 70px;
		right: 15px;
	}
	
	#chat-input {
		width: calc(100% - 70px);
	}
	
	.bot-message, .user-message {
		padding: 10px;
		max-width: 95%;
	}
	
	#floating-chatbot-button {
		bottom: 15px;
		right: 10px;
	}
	
	#floating-chatbot {
		width: 100vw;
		height: calc(var(--vh, 1vh) * 100);
		margin: 0;
		padding: 0;
		position: fixed;
		bottom: 0;
		top: 0;
		left: 0;
		right: 0;
		border-radius: 0;
	}
	
	#mxchat-chatbot-wrapper .chatbot-top-bar {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}
}

pre {
	background-color: #000;
	border: 1px solid #ddd;
	border-radius: 20px;
	border-left: 3px solid #9e7aff;
	color: #fff;
	page-break-inside: avoid;
	font-family: monospace;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1em 1.5em;
	display: block;
	word-wrap: break-word;
}

.copy-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	background-color: #9e7aff;
	transition: background-color .3s;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	font-weight: 700;
	margin-bottom: 10px;
}

.copy-btn:hover {
	opacity: .8;
}

.mxchat-product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 10px 0;
	padding: 10px;
	border-radius: 5px;
	background-color: inherit;
}

.mxchat-product-card img.mxchat-product-image {
	max-width: 100%;
	height: auto;
	margin-bottom: 5px;
	border-radius: 4px;
}

.mxchat-product-card h3.mxchat-product-name {
	font-size: 16px;
	font-weight: bold;
	margin: 5px 0;
	text-align: center;
	color: inherit;
}

.mxchat-product-card .mxchat-product-price {
	color: inherit;
	font-weight: bold;
	margin-bottom: 5px;
}

.mxchat-product-card .mxchat-product-description {
	font-size: 14px;
	text-align: center;
	margin-bottom: 10px;
	color: inherit;
}

.mxchat-product-card .mxchat-add-to-cart-button {
	background-color: #212121;
	color: #fff;
	padding: 8px 12px;
	border: none;
	cursor: pointer;
	border-radius: 12px;
	transition: background-color .3s ease;
}

.mxchat-product-card .mxchat-add-to-cart-button:hover {
	background-color: #212121;
}

.mxchat-image-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.mxchat-image-item {
	text-align: center;
	overflow: hidden;
	word-wrap: break-word;
}

.mxchat-image-title {
	display: block;
	font-size: 14px;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.mxchat-image-link {
	text-decoration: none;
}

.mxchat-image-thumbnail {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
	transition: transform .3s;
}

.mxchat-image-thumbnail:hover {
	transform: scale(1.05);
}

.mxchat-generated-image {
	max-width: 100%;
	height: auto;
	border-radius: 0 0 8px 8px;
}

#widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 {
	padding: 10px;
}

#widget_icon_10 {
	fill: #fff;
}

/* This selector with more context - showing the collapse button in certain states */
#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0px;
	cursor: pointer;
	transition: all .2s ease;
	color: #212121;
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	box-shadow: none;
	outline: none;
	align-self: center;
	order: -1;
}

/* ALL hover states - these are MISSING from your new CSS */
#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn:hover {
	background: none;
	border: none;
	box-shadow: none;
}

#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn:focus {
	outline: none;
	background: none;
	border: none;
	box-shadow: none;
}

#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn:active {
	background: none;
	border: none;
	box-shadow: none;
}

/* SVG styles - these are MISSING */
#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn svg {
	fill: none;
	transition: transform .2s ease;
	width: 25px;
	height: 25px;
}

#mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn:hover svg {
	opacity: .7;
}

/* THE CRITICAL DISPLAY RULE - this shows when it's been collapsed before */
#mxchat-popular-questions.has-been-collapsed .mxchat-popular-questions-container .questions-collapse-btn {
	display: flex;
}

/* Hide when actually collapsed */
#mxchat-popular-questions.collapsed .mxchat-popular-questions-container .questions-collapse-btn {
	display: none;
}
