PluginProbe ʕ •ᴥ•ʔ
AI Engine – The Chatbot, AI Framework & MCP for WordPress / 3.5.8
AI Engine – The Chatbot, AI Framework & MCP for WordPress v3.5.8
3.5.8 3.5.7 3.5.6 3.5.5 3.5.4 3.5.3 3.5.2 3.5.1 3.5.0 3.4.9 3.4.8 3.4.7 0.2.1 1.6.91 0.2.2 1.6.92 0.2.3 1.6.93 0.2.4 1.6.94 0.2.5 1.6.95 0.2.6 1.6.96 0.2.7 1.6.97 0.2.8 1.6.98 0.2.9 1.6.99 0.3.0 1.7.0 0.3.1 1.7.1 0.3.2 1.7.2 0.3.3 1.7.3 0.3.4 1.7.4 0.3.5 1.7.5 0.3.6 1.7.6 0.4.0 1.7.7 0.4.1 1.7.8 0.4.2 1.7.9 0.4.3 1.8.0 0.4.4 1.8.1 0.4.5 1.8.2 0.4.6 1.8.3 0.4.7 1.8.4 0.4.8 1.8.5 0.4.9 1.8.6 0.5.0 1.8.7 0.5.1 1.8.8 0.5.2 1.8.9 0.5.3 1.9.0 0.5.4 1.9.1 0.5.5 1.9.2 0.5.6 1.9.3 0.5.7 1.9.4 0.5.8 1.9.5 0.5.9 1.9.6 0.6.0 1.9.7 0.6.1 1.9.8 0.6.2 1.9.81 0.6.3 1.9.82 0.6.4 1.9.83 0.6.5 1.9.84 0.6.6 1.9.85 0.6.7 1.9.86 0.6.8 1.9.87 0.6.9 1.9.88 0.7.0 1.9.89 0.7.1 1.9.90 0.7.2 1.9.91 0.7.3 1.9.92 0.7.4 1.9.93 0.7.5 1.9.94 0.7.6 1.9.95 0.7.7 1.9.96 0.7.8 1.9.97 0.7.9 1.9.98 0.8.0 1.9.99 0.8.1 2.0.0 0.8.2 2.0.1 0.8.3 2.0.2 0.8.4 2.0.3 0.8.5 2.0.4 0.8.6 2.0.5 0.8.7 2.0.6 0.8.8 2.0.7 0.8.9 2.0.8 0.9.0 2.0.9 0.9.2 2.1.0 0.9.3 2.1.1 0.9.4 2.1.2 0.9.5 2.1.3 0.9.6 2.1.4 0.9.7 2.1.5 0.9.8 2.1.6 0.9.81 2.1.7 0.9.82 2.1.8 0.9.83 2.1.9 0.9.84 2.2.0 0.9.85 2.2.1 0.9.86 2.2.2 0.9.87 2.2.3 0.9.88 2.2.4 0.9.89 2.2.5 0.9.9 2.2.51 0.9.91 2.2.52 0.9.92 2.2.53 0.9.93 2.2.54 0.9.94 2.2.56 0.9.95 2.2.57 0.9.96 2.2.6 0.9.97 2.2.60 0.9.98 2.2.61 0.9.99 2.2.62 1.0.0 2.2.63 1.0.01 2.2.70 1.0.1 2.2.80 1.0.2 2.2.81 1.0.3 2.2.90 1.0.4 2.2.91 1.0.5 2.2.92 1.0.6 2.2.93 1.0.7 2.2.94 1.0.8 2.2.95 1.0.9 2.3.0 1.1.0 2.3.1 1.1.1 2.3.2 1.1.2 2.3.3 1.1.3 2.3.4 1.1.4 2.3.5 1.1.5 2.3.6 1.1.6 2.3.7 1.1.7 2.3.8 1.1.8 2.3.9 1.1.9 2.4.0 1.2.0 2.4.1 1.2.1 2.4.2 1.2.2 2.4.3 1.2.21 2.4.4 1.2.3 2.4.5 1.2.30 2.4.6 1.3.0 2.4.7 1.3.1 2.4.8 1.3.2 2.4.9 1.3.3 2.5.0 1.3.31 2.5.1 1.3.32 2.5.2 1.3.33 2.5.3 1.3.34 2.5.4 1.3.35 2.5.5 1.3.36 2.5.6 1.3.37 2.5.7 1.3.38 2.5.8 1.3.39 2.5.9 1.3.40 2.6.0 1.3.41 2.6.1 1.3.42 2.6.2 1.3.43 2.6.3 1.3.44 2.6.5 1.3.45 2.6.6 1.3.46 2.6.7 1.3.47 2.6.8 1.3.48 2.6.9 1.3.49 2.7.0 1.3.50 2.7.1 1.3.51 2.7.2 1.3.52 2.7.3 1.3.53 2.7.4 1.3.54 2.7.5 1.3.56 2.7.6 1.3.57 2.7.7 1.3.58 2.7.8 1.3.59 2.7.9 1.3.60 2.8.0 1.3.61 2.8.1 1.3.62 2.8.2 1.3.63 2.8.3 1.3.64 2.8.4 1.3.65 2.8.5 1.3.66 2.8.6 1.3.67 2.8.7 1.3.68 2.8.8 1.3.69 2.8.9 1.3.70 2.9.0 1.3.71 2.9.1 1.3.72 2.9.2 1.3.73 2.9.3 1.3.74 2.9.4 1.3.75 2.9.5 1.3.76 2.9.6 1.3.77 2.9.7 1.3.78 2.9.8 1.3.79 2.9.9 1.3.80 3.0.0 1.3.81 3.0.1 1.3.82 3.0.2 1.3.83 3.0.3 1.3.84 3.0.4 1.3.85 3.0.5 1.3.86 3.0.6 1.3.87 3.0.7 1.3.88 3.0.8 1.3.89 3.0.9 1.3.90 3.1.0 1.3.91 3.1.1 1.3.92 3.1.2 1.3.93 3.1.3 1.3.94 3.1.4 1.3.95 3.1.5 1.3.96 3.1.6 1.3.97 3.1.7 1.3.98 3.1.8 1.3.99 3.1.9 1.4.0 3.2.0 1.4.1 3.2.1 1.4.2 3.2.2 1.4.3 3.2.3 1.4.4 3.2.4 1.4.5 3.2.5 1.4.6 3.2.6 1.4.7 3.2.7 1.4.8 3.2.8 1.4.9 3.2.9 1.5.0 3.3.0 1.5.1 3.3.1 1.5.2 3.3.2 1.5.3 3.3.3 1.5.4 3.3.4 1.5.5 3.3.5 1.5.6 3.3.6 1.5.7 3.3.7 1.5.8 3.3.8 1.5.9 3.3.9 1.6.0 3.4.0 1.6.1 3.4.1 1.6.2 3.4.2 1.6.3 3.4.3 1.6.5 3.4.4 1.6.51 3.4.5 1.6.52 3.4.6 1.6.53 1.6.54 1.6.55 1.6.56 1.6.57 1.6.58 1.6.59 1.6.60 1.6.61 1.6.62 1.6.63 1.6.64 1.6.65 1.6.66 1.6.67 1.6.68 trunk 1.6.69 0.0.1 1.6.70 0.0.2 1.6.71 0.0.3 1.6.72 0.0.4 1.6.73 0.0.5 1.6.74 0.0.6 1.6.75 0.0.7 1.6.76 0.0.8 1.6.77 0.0.9 1.6.78 0.1.0 1.6.79 0.1.1 1.6.81 0.1.2 1.6.82 0.1.3 1.6.83 0.1.4 1.6.84 0.1.5 1.6.85 0.1.6 1.6.86 0.1.7 1.6.87 0.1.8 1.6.88 0.1.9 1.6.89 0.2.0 1.6.90
ai-engine / themes / messages.css
ai-engine / themes Last commit date
icons 2 years ago chatgpt.css 11 hours ago foundation.css 11 hours ago messages.css 11 hours ago timeless.css 11 hours ago
messages.css
3041 lines
1 @charset "UTF-8";
2 /*
3 MESSAGES THEME — SPACING, INPUT, AND SAFE-AREA DOCS
4
5 Overview
6 - Messenger-like look with compact spacing and a full-width submit on mobile.
7 - Desktop uses an in-field absolute submit button, vertically centered.
8
9 Spacing Strategy
10 - Bottom spacing is controlled at the input/footer level (not the shell) to avoid double padding
11 when browser toolbars appear/disappear. The shell does NOT add bottom safe-area padding.
12 - When a footer exists, input sits just above it; when no footer exists, we add a baseline under
13 the input (theme-specific, via shared mixin) so it doesn’t feel glued to the edge.
14
15 Submit Button Strategy
16 - Desktop: absolute, vertically centered with a small optical offset to compensate for border
17 rendering and subpixel rounding; hover scaling preserves the same translate to avoid drift.
18 - Mobile: the submit becomes a full-width block under the input text area (stacked layout).
19
20 Safe Areas & Viewport
21 - No bottom safe-area on the shell. Respect safe-area only where necessary (e.g., no-footer mobile
22 case) using env(safe-area-inset-bottom). Triggers also respect safe-area when anchored.
23 - Use dvh (100dvh) in common fullscreen scenarios; avoid hard height locks that fight the keyboard.
24
25 Important
26 - Keep this documentation updated as we refine tricks and spacing rules across platforms.
27 */
28 @keyframes mwai-cursor-blink {
29 0%, 49.9% {
30 background: var(--mwai-terminal-active-color);
31 color: var(--mwai-backgroundPrimaryColor);
32 }
33 50%, 100% {
34 background: transparent;
35 color: var(--mwai-terminal-active-color);
36 }
37 }
38 .mwai-context-menu-portal .mwai-context-menu {
39 background: var(--mwai-backgroundHeaderColor);
40 border: 1px solid rgba(0, 0, 0, 0.1);
41 border-radius: var(--mwai-borderRadius);
42 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
43 font-size: 13px;
44 color: var(--mwai-fontColor);
45 }
46 .mwai-context-menu-portal .mwai-context-menu .mwai-menu-item {
47 display: flex;
48 align-items: center;
49 gap: 8px;
50 padding: 8px 12px;
51 cursor: pointer;
52 transition: background-color 0.2s;
53 }
54 .mwai-context-menu-portal .mwai-context-menu .mwai-menu-item:hover {
55 background-color: rgba(0, 0, 0, 0.05);
56 }
57 .mwai-context-menu-portal .mwai-context-menu .mwai-menu-item.mwai-danger {
58 color: #dc3545;
59 }
60 .mwai-context-menu-portal .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
61 background-color: rgba(220, 53, 69, 0.1);
62 }
63 .mwai-context-menu-portal .mwai-context-menu .mwai-menu-item svg {
64 flex-shrink: 0;
65 }
66
67 .mwai-chunks {
68 padding: 8px;
69 background: rgba(0, 0, 0, 0.03);
70 font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
71 font-size: 11px;
72 border-top: 1px solid rgba(0, 0, 0, 0.06);
73 }
74 .mwai-chunks.mwai-chunks-collapsed .mwai-chunks-header {
75 margin-bottom: 0 !important;
76 }
77 .mwai-chunks .mwai-chunks-header {
78 display: flex;
79 align-items: center;
80 gap: 2px;
81 margin-bottom: 8px;
82 color: #6b7280;
83 font-size: 10px;
84 text-transform: uppercase;
85 letter-spacing: 0.05em;
86 }
87 .mwai-chunks .mwai-chunks-header .mwai-chunks-title {
88 flex: 1;
89 overflow: hidden;
90 text-overflow: ellipsis;
91 white-space: nowrap;
92 }
93 .mwai-chunks .mwai-chunks-header .mwai-chunks-status {
94 margin-left: 4px;
95 font-weight: 500;
96 }
97 .mwai-chunks .mwai-chunks-header .mwai-chunks-toggle {
98 background: none;
99 border: 1px solid rgba(0, 0, 0, 0.1);
100 border-radius: 3px;
101 padding: 2px;
102 width: 30px;
103 height: 20px;
104 cursor: pointer;
105 color: #6b7280;
106 display: flex;
107 align-items: center;
108 justify-content: center;
109 transition: all 0.2s ease;
110 margin-left: 4px;
111 }
112 .mwai-chunks .mwai-chunks-header .mwai-chunks-toggle:hover {
113 background: rgba(0, 0, 0, 0.05);
114 color: #374151;
115 }
116 .mwai-chunks .mwai-chunks-list {
117 max-height: 240px;
118 overflow-y: auto;
119 }
120 .mwai-chunks .mwai-chunk {
121 margin-bottom: 4px;
122 padding: 6px 8px;
123 background: white;
124 border-radius: 4px;
125 border: 1px solid rgba(0, 0, 0, 0.06);
126 transition: all 0.2s ease;
127 }
128 .mwai-chunks .mwai-chunk .mwai-chunk-header {
129 display: flex;
130 align-items: center;
131 gap: 8px;
132 cursor: pointer;
133 user-select: none;
134 }
135 .mwai-chunks .mwai-chunk .mwai-chunk-header .mwai-chunk-time {
136 color: #9ca3af;
137 font-size: 10px;
138 font-variant-numeric: tabular-nums;
139 }
140 .mwai-chunks .mwai-chunk .mwai-chunk-header .mwai-chunk-type {
141 display: flex;
142 align-items: center;
143 gap: 4px;
144 padding: 2px 6px;
145 border-radius: 3px;
146 font-size: 10px;
147 font-weight: 500;
148 color: white;
149 }
150 .mwai-chunks .mwai-chunk .mwai-chunk-header .mwai-chunk-data {
151 flex: 1;
152 color: #374151;
153 overflow: hidden;
154 text-overflow: ellipsis;
155 white-space: nowrap;
156 }
157 .mwai-chunks .mwai-chunk .mwai-chunk-header .mwai-chunk-expand {
158 color: #9ca3af;
159 transition: transform 0.2s ease;
160 }
161 .mwai-chunks .mwai-chunk .mwai-chunk-details {
162 margin-top: 8px;
163 padding: 8px;
164 background: rgba(0, 0, 0, 0.02);
165 border-radius: 3px;
166 overflow-x: auto;
167 }
168 .mwai-chunks .mwai-chunk .mwai-chunk-details pre {
169 margin: 0;
170 white-space: pre-wrap;
171 word-break: break-word;
172 color: #4b5563;
173 }
174
175 .mwai-user-images {
176 display: flex;
177 flex-direction: column;
178 gap: 4px;
179 flex: 1 1 100%;
180 min-width: 0;
181 }
182 .mwai-user-images .mwai-user-image {
183 display: block;
184 width: 100%;
185 height: auto;
186 border-radius: var(--mwai-borderRadius);
187 }
188
189 /*
190 MESSAGES THEME — SPACING, INPUT, AND SAFE-AREA DOCS
191
192 Overview
193 - Messenger-like look with compact spacing and a full-width submit on mobile.
194 - Desktop uses an in-field absolute submit button, vertically centered.
195
196 Spacing Strategy
197 - Bottom spacing is controlled at the input/footer level (not the shell) to avoid double padding
198 when browser toolbars appear/disappear. The shell does NOT add bottom safe-area padding.
199 - When a footer exists, input sits just above it; when no footer exists, we add a baseline under
200 the input (theme-specific, via shared mixin) so it doesn’t feel glued to the edge.
201
202 Submit Button Strategy
203 - Desktop: absolute, vertically centered with a small optical offset to compensate for border
204 rendering and subpixel rounding; hover scaling preserves the same translate to avoid drift.
205 - Mobile: the submit becomes a full-width block under the input text area (stacked layout).
206
207 Safe Areas & Viewport
208 - No bottom safe-area on the shell. Respect safe-area only where necessary (e.g., no-footer mobile
209 case) using env(safe-area-inset-bottom). Triggers also respect safe-area when anchored.
210 - Use dvh (100dvh) in common fullscreen scenarios; avoid hard height locks that fight the keyboard.
211
212 Important
213 - Keep this documentation updated as we refine tricks and spacing rules across platforms.
214 */
215 @keyframes mwaiIconTextZoomIn {
216 0% {
217 transform: scale(0.92);
218 opacity: 0;
219 }
220 100% {
221 transform: scale(1);
222 opacity: 1;
223 }
224 }
225 @keyframes mwaiIconTextSlideIn {
226 0% {
227 transform: translateY(28px);
228 opacity: 0;
229 }
230 70% {
231 transform: translateY(-3px);
232 opacity: 1;
233 }
234 100% {
235 transform: translateY(0);
236 opacity: 1;
237 }
238 }
239 @keyframes mwaiIconTextSlideUp {
240 0% {
241 transform: translateY(24px);
242 opacity: 0;
243 }
244 100% {
245 transform: translateY(0);
246 opacity: 1;
247 }
248 }
249 @keyframes mwaiIconTextFadeOpacity {
250 0% {
251 opacity: 0;
252 }
253 100% {
254 opacity: 1;
255 }
256 }
257 @keyframes mwaiIconTextFadeTransform {
258 0% {
259 transform: translateY(8px) scale(0.98);
260 }
261 100% {
262 transform: translateY(0) scale(1);
263 }
264 }
265 .mwai-messages-theme {
266 font-family: var(--mwai-fontFamily, inherit);
267 --mwai-spacing: 10px;
268 --mwai-fontSize: 13px;
269 --mwai-lineHeight: 1.5;
270 --mwai-borderRadius: 10px;
271 --mwai-borderColor: #c5c5c5;
272 --mwai-width: 460px;
273 --mwai-maxHeight: 40vh;
274 /* Theme size tokens (reduce hard-coded sizes) */
275 --mwai-submitWidth: 70px; /* desktop in-field submit width */
276 --mwai-submitHeight: 32px; /* desktop in-field submit height */
277 --mwai-submitRight: calc(var(--mwai-spacing) + 5px); /* right offset for in-field submit */
278 --mwai-iconTextColor: black;
279 --mwai-iconTextBackgroundColor: white;
280 --mwai-fontColor: black;
281 --mwai-backgroundPrimaryColor: #fafafa;
282 --mwai-backgroundHeaderColor: #0084ff;
283 --mwai-bubbleColor: #0084ff;
284 --mwai-iconSize: 60px;
285 --mwai-headerColor: white;
286 --mwai-conversationsBackgroundColor: white;
287 --mwai-backgroundUserColor: #0084ff;
288 --mwai-backgroundAiColor: #eee;
289 --mwai-backgroundAiSecondaryColor: #ddd;
290 --mwai-errorBackgroundColor: #6d2f2a;
291 --mwai-errorTextColor: #FFFFFF;
292 }
293 .mwai-messages-theme * {
294 box-sizing: border-box;
295 }
296 .mwai-messages-theme .mwai-body {
297 display: flex;
298 background: var(--mwai-backgroundPrimaryColor);
299 font-size: var(--mwai-fontSize);
300 color: var(--mwai-fontColor);
301 border-radius: var(--mwai-borderRadius);
302 flex-direction: column;
303 }
304 .mwai-messages-theme .mwai-shortcuts {
305 display: flex;
306 flex-direction: column;
307 align-items: flex-end;
308 }
309 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut {
310 margin-bottom: 5px;
311 font-size: var(--mwai-fontSize);
312 height: inherit;
313 min-height: inherit;
314 width: inherit;
315 min-width: 90px;
316 border-radius: var(--mwai-borderRadius);
317 padding: 7px 12px;
318 cursor: pointer;
319 display: flex;
320 align-items: center;
321 justify-content: end;
322 }
323 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-success {
324 background: #4caf50;
325 color: white;
326 box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
327 }
328 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-danger {
329 background: #f44336;
330 color: white;
331 box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
332 }
333 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-warning {
334 background: #ff9800;
335 color: white;
336 box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
337 }
338 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut.mwai-info {
339 background: #2196f3;
340 color: white;
341 box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
342 }
343 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut .mwai-icon {
344 margin-right: 5px;
345 }
346 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut .mwai-icon img {
347 max-height: 16px;
348 width: auto;
349 }
350 .mwai-messages-theme .mwai-shortcuts .mwai-shortcut:hover {
351 filter: brightness(1.1);
352 }
353 .mwai-messages-theme .mwai-blocks {
354 display: flex;
355 flex-direction: column;
356 padding: var(--mwai-spacing);
357 }
358 .mwai-messages-theme .mwai-blocks .mwai-block p:first-child {
359 margin-top: 0;
360 }
361 .mwai-messages-theme .mwai-blocks button {
362 cursor: pointer;
363 }
364 .mwai-messages-theme .mwai-conversation {
365 display: flex;
366 flex-direction: column;
367 overflow: auto;
368 max-height: var(--mwai-maxHeight);
369 padding: var(--mwai-spacing) var(--mwai-spacing) 0;
370 }
371 .mwai-messages-theme .mwai-conversation::-webkit-scrollbar {
372 width: 8px;
373 background: transparent;
374 }
375 .mwai-messages-theme .mwai-conversation::-webkit-scrollbar-track {
376 background: rgba(0, 0, 0, 0.05);
377 border-radius: 4px;
378 }
379 .mwai-messages-theme .mwai-conversation::-webkit-scrollbar-thumb {
380 background: rgba(0, 0, 0, 0.15);
381 border-radius: 4px;
382 transition: background 0.2s ease;
383 }
384 .mwai-messages-theme .mwai-conversation::-webkit-scrollbar-thumb:hover {
385 background: rgba(0, 0, 0, 0.25);
386 }
387 .mwai-messages-theme .mwai-conversation::-webkit-scrollbar-thumb:active {
388 background: rgba(0, 0, 0, 0.3);
389 }
390 .mwai-messages-theme .mwai-conversation {
391 scrollbar-width: thin;
392 scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
393 }
394 .mwai-messages-theme .mwai-conversation .mwai-reply {
395 margin-bottom: var(--mwai-spacing);
396 padding: 7px 12px;
397 border-radius: 15px;
398 font-size: var(--mwai-fontSize);
399 color: var(--mwai-fontColor);
400 position: relative;
401 max-width: 85%;
402 }
403 .mwai-messages-theme .mwai-conversation .mwai-reply .mwai-name,
404 .mwai-messages-theme .mwai-conversation .mwai-reply .mwai-name-text {
405 display: none;
406 }
407 .mwai-messages-theme .mwai-conversation .mwai-reply * > p:first-child {
408 margin-top: 0;
409 }
410 .mwai-messages-theme .mwai-conversation .mwai-reply * > p:last-child {
411 margin-bottom: 0;
412 }
413 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error {
414 align-self: flex-start;
415 background: var(--mwai-backgroundAiColor);
416 margin-left: 5px;
417 }
418 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::after, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::after {
419 content: "";
420 position: absolute;
421 z-index: 1;
422 bottom: 0;
423 left: -10px;
424 width: 10px;
425 height: 20px;
426 background: var(--mwai-backgroundPrimaryColor);
427 border-bottom-right-radius: 10px;
428 }
429 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::before {
430 z-index: 0;
431 left: -7px;
432 height: 20px;
433 width: 20px;
434 background: var(--mwai-backgroundAiColor);
435 border-bottom-right-radius: 15px;
436 }
437 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user {
438 align-self: flex-end;
439 background: var(--mwai-backgroundUserColor);
440 color: white;
441 margin-right: 10px;
442 }
443 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::after {
444 content: "";
445 position: absolute;
446 z-index: 1;
447 bottom: 0;
448 right: -10px;
449 width: 10px;
450 height: 20px;
451 background: var(--mwai-backgroundPrimaryColor);
452 border-bottom-left-radius: 10px;
453 }
454 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::before {
455 z-index: 0;
456 right: -10px;
457 height: 20px;
458 width: 20px;
459 background: var(--mwai-backgroundUserColor);
460 background-attachment: fixed;
461 border-bottom-left-radius: 15px;
462 }
463 .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user .mwai-text a {
464 color: white;
465 text-decoration: underline;
466 }
467 .mwai-messages-theme .mwai-conversation.mwai-terminal {
468 --mwai-terminal-active-color: var(--mwai-backgroundUserColor);
469 }
470 .mwai-messages-theme .mwai-text {
471 flex: auto;
472 }
473 .mwai-messages-theme .mwai-text .mwai-image {
474 display: block;
475 max-width: 250px;
476 height: auto;
477 margin: 0 0 10px 0;
478 border-radius: var(--mwai-borderRadius);
479 }
480 .mwai-messages-theme .mwai-text .mwai-filename {
481 display: flex;
482 text-decoration: none;
483 border: 1px solid var(--mwai-backgroundPrimaryColor);
484 border-radius: var(--mwai-borderRadius);
485 color: white;
486 padding: 5px 10px;
487 margin-bottom: 10px;
488 }
489 .mwai-messages-theme .mwai-text > span > p > *:first-child {
490 margin-top: 0;
491 }
492 .mwai-messages-theme .mwai-text a {
493 color: #2196f3;
494 }
495 .mwai-messages-theme .mwai-text h1, .mwai-messages-theme .mwai-text h2, .mwai-messages-theme .mwai-text h3, .mwai-messages-theme .mwai-text h4, .mwai-messages-theme .mwai-text h5, .mwai-messages-theme .mwai-text h6 {
496 margin: 0px;
497 line-height: 1.2;
498 }
499 .mwai-messages-theme .mwai-text h1 {
500 font-size: 150%;
501 }
502 .mwai-messages-theme .mwai-text h2 {
503 font-size: 130%;
504 }
505 .mwai-messages-theme .mwai-text h3 {
506 font-size: 115%;
507 }
508 .mwai-messages-theme .mwai-text h4 {
509 font-size: 105%;
510 }
511 .mwai-messages-theme .mwai-text h5 {
512 font-size: 100%;
513 }
514 .mwai-messages-theme .mwai-text h6 {
515 font-size: 95%;
516 font-weight: bold;
517 }
518 .mwai-messages-theme .mwai-text p {
519 font-size: var(--mwai-fontSize);
520 line-height: var(--mwai-lineHeight);
521 }
522 .mwai-messages-theme .mwai-text p code {
523 background: var(--mwai-backgroundAiSecondaryColor);
524 padding: 2px 6px;
525 border-radius: 8px;
526 font-size: calc(var(--mwai-fontSize) * 0.9);
527 font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
528 }
529 .mwai-messages-theme .mwai-text pre {
530 color: var(--mwai-fontColor);
531 border-radius: var(--mwai-borderRadius);
532 break-after: auto;
533 white-space: pre-wrap;
534 max-width: 100%;
535 width: 100%;
536 font-size: calc(var(--mwai-fontSize) * 0.9);
537 font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
538 background: var(--mwai-backgroundAiSecondaryColor);
539 padding: var(--mwai-spacing);
540 }
541 .mwai-messages-theme .mwai-text pre code {
542 padding: 0 !important;
543 font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
544 background: transparent;
545 }
546 .mwai-messages-theme .mwai-text ul {
547 list-style: disc;
548 padding: 0;
549 margin: 0 0 0 15px;
550 }
551 .mwai-messages-theme .mwai-text ol {
552 list-style: decimal;
553 padding: 0;
554 margin: 0 0 0 15px;
555 }
556 .mwai-messages-theme .mwai-text table {
557 width: 100%;
558 border: 2px solid var(--mwai-backgroundAiSecondaryColor);
559 border-collapse: collapse;
560 }
561 .mwai-messages-theme .mwai-text thead {
562 background: var(--mwai-backgroundAiSecondaryColor);
563 }
564 .mwai-messages-theme .mwai-text tr,
565 .mwai-messages-theme .mwai-text td {
566 padding: 2px 5px;
567 }
568 .mwai-messages-theme .mwai-text td {
569 border: 2px solid var(--mwai-backgroundAiSecondaryColor);
570 }
571 .mwai-messages-theme .mwai-text .mwai-typewriter {
572 display: inline-block;
573 }
574 .mwai-messages-theme .mwai-text .mwai-typewriter > :first-child {
575 margin-top: 0;
576 }
577 .mwai-messages-theme .mwai-text > *:first-child {
578 margin-top: 0;
579 }
580 .mwai-messages-theme .mwai-text > *:last-child {
581 margin-bottom: 0;
582 }
583 .mwai-messages-theme .mwai-input {
584 display: flex;
585 align-items: center;
586 position: relative;
587 padding: var(--mwai-spacing);
588 position: relative;
589 position: relative;
590 }
591 .mwai-messages-theme .mwai-input .mwai-input-text {
592 flex: auto;
593 position: relative;
594 display: flex;
595 overflow: hidden;
596 border-radius: var(--mwai-borderRadius);
597 background: var(--mwai-backgroundPrimaryColor);
598 border-radius: var(--mwai-borderRadius);
599 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
600 overflow: hidden;
601 transition: border-color 0.2s ease;
602 }
603 .mwai-messages-theme .mwai-input .mwai-input-text:focus-within {
604 border-color: var(--mwai-borderColor);
605 border-color: color-mix(in srgb, var(--mwai-backgroundUserColor) 45%, transparent);
606 }
607 .mwai-messages-theme .mwai-input .mwai-input-text.mwai-blocked img {
608 filter: grayscale(100%);
609 opacity: 0.5;
610 }
611 .mwai-messages-theme .mwai-input .mwai-input-text.mwai-dragging {
612 border: 1px dashed var(--mwai-backgroundAiSecondaryColor);
613 }
614 .mwai-messages-theme .mwai-input .mwai-input-text textarea {
615 background: var(--mwai-backgroundPrimaryColor);
616 color: var(--mwai-fontColor);
617 flex: auto;
618 border: none;
619 font-size: var(--mwai-fontSize);
620 resize: none;
621 font-family: inherit;
622 margin: 0;
623 overflow: hidden;
624 min-height: inherit;
625 }
626 .mwai-messages-theme .mwai-input .mwai-input-text textarea:focus {
627 outline: none;
628 box-shadow: none;
629 }
630 .mwai-messages-theme .mwai-input .mwai-input-text textarea {
631 padding: var(--mwai-spacing);
632 padding-right: calc(70px + var(--mwai-spacing) + 6px);
633 }
634 .mwai-messages-theme .mwai-input .mwai-input-text textarea:focus {
635 outline: none;
636 box-shadow: none;
637 }
638 .mwai-messages-theme .mwai-input .mwai-input-text textarea::placeholder {
639 color: var(--mwai-fontColor);
640 opacity: 0.5;
641 }
642 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone {
643 display: flex;
644 justify-content: center;
645 align-items: center;
646 }
647 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone svg {
648 opacity: 0.5;
649 filter: grayscale(100%);
650 transition: opacity 0.3s ease-out;
651 cursor: pointer;
652 }
653 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone[active=true] svg {
654 opacity: 1;
655 }
656 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone[disabled] svg {
657 opacity: 0;
658 cursor: not-allowed;
659 }
660 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-microphone {
661 margin-right: 5px;
662 }
663 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon {
664 background: url(icons/white-icons.svg);
665 background-size: 500%;
666 background-position: 0px -96px;
667 width: 32px;
668 height: 32px;
669 z-index: 100;
670 margin-top: calc(var(--mwai-spacing) / 2);
671 margin-left: 5px;
672 }
673 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-idle-add {
674 background-position: -32px -96px;
675 }
676 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-add {
677 background-position: -32px 0px;
678 }
679 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-up {
680 background-position: -64px 0px;
681 }
682 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-del {
683 background-position: -96px 0px;
684 }
685 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-ok {
686 background-position: -128px 0px;
687 }
688 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-add {
689 background-position: -32px -64px;
690 }
691 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-up {
692 background-position: -64px -64px;
693 }
694 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-del {
695 background-position: -96px -64px;
696 }
697 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-ok {
698 background-position: -128px -64px;
699 }
700 .mwai-messages-theme .mwai-input .mwai-input-text .mwai-file-upload-icon .mwai-file-upload-progress {
701 position: absolute;
702 font-size: 8px;
703 width: 21px;
704 top: 24px;
705 left: 23px;
706 overflow: hidden;
707 text-align: center;
708 font-weight: bold;
709 color: white;
710 }
711 .mwai-messages-theme .mwai-input .mwai-input-submit {
712 position: absolute;
713 right: var(--mwai-submitRight);
714 top: 50%;
715 transform: translateY(calc(-50% - 2px));
716 width: var(--mwai-submitWidth);
717 height: var(--mwai-submitHeight);
718 min-width: var(--mwai-submitWidth);
719 min-height: var(--mwai-submitHeight);
720 transition: transform 0.15s ease-out;
721 }
722 .mwai-messages-theme .mwai-input .mwai-input-submit:hover {
723 transform: translateY(calc(-50% - 2px)) scale(1.03);
724 }
725 .mwai-messages-theme .mwai-input .mwai-input-submit {
726 margin: 0;
727 display: inline-flex;
728 align-items: center;
729 justify-content: center;
730 z-index: 2;
731 }
732 .mwai-messages-theme button {
733 margin-left: var(--mwai-spacing);
734 padding: 5px 15px;
735 background-color: var(--mwai-backgroundUserColor);
736 color: white;
737 border: none;
738 border-radius: var(--mwai-borderRadius);
739 cursor: pointer;
740 height: 32px;
741 display: flex;
742 justify-content: center;
743 align-items: center;
744 transition: background 0.15s ease, filter 0.15s ease;
745 }
746 .mwai-messages-theme button .mwai-timer {
747 margin-left: 5px;
748 margin-right: 5px;
749 font-size: 11px;
750 }
751 .mwai-messages-theme button:hover {
752 filter: brightness(1.2);
753 }
754 .mwai-messages-theme button[disabled] {
755 cursor: not-allowed;
756 }
757 .mwai-messages-theme button[disabled] span {
758 opacity: 0.5;
759 }
760 .mwai-messages-theme button[disabled].mwai-busy span {
761 display: none;
762 }
763 .mwai-messages-theme button[disabled].mwai-busy .mwai-timer {
764 display: none;
765 }
766 .mwai-messages-theme button[disabled].mwai-busy:before {
767 content: "";
768 width: 12px;
769 height: 12px;
770 display: inline-block;
771 align-self: center;
772 border: 2px solid rgba(255, 255, 255, 0.35);
773 border-top-color: #fff;
774 border-radius: 50%;
775 animation: mwai-button-spinner 1s ease infinite;
776 }
777 .mwai-messages-theme .mwai-compliance {
778 opacity: 0.5;
779 margin-top: calc(-1 * var(--mwai-spacing));
780 padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing);
781 font-size: smaller;
782 color: var(--mwai-fontColor);
783 text-align: left;
784 }
785 .mwai-messages-theme .mwai-gallery {
786 display: grid;
787 grid-template-columns: repeat(3, 1fr);
788 grid-gap: 5px;
789 }
790 .mwai-messages-theme .mwai-gallery img {
791 width: 100%;
792 }
793 .mwai-messages-theme.mwai-animation-zoom.mwai-window {
794 filter: none;
795 }
796 @media (max-width: 760px) {
797 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-header {
798 display: none !important;
799 }
800 }
801 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-window-box {
802 display: flex;
803 flex-direction: column;
804 filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.15));
805 opacity: 0;
806 transform: scale(0.5);
807 transform-origin: bottom right;
808 transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
809 }
810 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-fullscreen .mwai-window-box {
811 width: 100%;
812 height: 100%;
813 }
814 @media (min-width: 761px) {
815 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-opening .mwai-header {
816 display: flex !important;
817 }
818 }
819 @media (max-width: 760px) {
820 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-opening .mwai-header {
821 display: none !important;
822 }
823 }
824 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-opening .mwai-body {
825 display: flex !important;
826 }
827 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-opening .mwai-window-box {
828 opacity: 1;
829 transform: scale(0.92);
830 }
831 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-open .mwai-window-box {
832 opacity: 1;
833 transform: scale(1);
834 }
835 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-closing .mwai-window-box {
836 opacity: 0;
837 transform: scale(0.85);
838 transition: opacity 180ms cubic-bezier(0.4, 0, 1, 1), transform 180ms cubic-bezier(0.4, 0, 1, 1);
839 }
840 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-closing .mwai-trigger {
841 display: none !important;
842 }
843 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-closing.mwai-open .mwai-trigger .mwai-icon-container {
844 transform: scale(1);
845 opacity: 1;
846 }
847 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-bottom-right .mwai-window-box {
848 transform-origin: calc(100% - 32px) calc(100% - 32px);
849 }
850 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-bottom-left .mwai-window-box {
851 transform-origin: 32px calc(100% - 32px);
852 }
853 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-top-right .mwai-window-box {
854 transform-origin: calc(100% - 32px) 32px;
855 }
856 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-top-left .mwai-window-box {
857 transform-origin: 32px 32px;
858 }
859 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-center-open .mwai-window-box {
860 transform-origin: center center;
861 }
862 @media (max-width: 760px) {
863 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-open .mwai-window-box {
864 transform-origin: center center !important;
865 }
866 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-header {
867 display: none !important;
868 }
869 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-trigger {
870 position: fixed !important;
871 z-index: 9999 !important;
872 }
873 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-bottom-right .mwai-trigger {
874 bottom: calc(20px + env(safe-area-inset-bottom, 0)) !important;
875 right: 20px !important;
876 left: auto !important;
877 top: auto !important;
878 }
879 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-bottom-left .mwai-trigger {
880 bottom: calc(20px + env(safe-area-inset-bottom, 0)) !important;
881 left: 20px !important;
882 right: auto !important;
883 top: auto !important;
884 }
885 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-top-right .mwai-trigger {
886 top: 20px !important;
887 right: 20px !important;
888 left: auto !important;
889 bottom: auto !important;
890 }
891 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-top-left .mwai-trigger {
892 top: 20px !important;
893 left: 20px !important;
894 right: auto !important;
895 bottom: auto !important;
896 }
897 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-open:not(.mwai-closing) .mwai-trigger {
898 display: none !important;
899 }
900 }
901 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-trigger .mwai-icon-container {
902 transition: transform 0.2s ease-out, opacity 0.2s ease-out;
903 }
904 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-trigger .mwai-icon-container .mwai-icon {
905 transition: transform 0.2s ease-out;
906 }
907 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-trigger .mwai-icon-container:hover .mwai-icon {
908 transform: scale(1.1);
909 }
910 .mwai-messages-theme.mwai-animation-zoom.mwai-window .mwai-trigger .mwai-icon-container:active .mwai-icon {
911 transform: scale(0.9);
912 }
913 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-opening .mwai-trigger .mwai-icon-container {
914 transform: scale(0.8);
915 opacity: 0.3;
916 }
917 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-open:not(.mwai-opening) .mwai-trigger {
918 display: none;
919 }
920 .mwai-messages-theme.mwai-animation-zoom.mwai-window.mwai-center-open.mwai-closing .mwai-trigger {
921 display: none !important;
922 }
923 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
924 opacity: 1 !important;
925 transition: none !important;
926 }
927 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
928 will-change: transform, opacity;
929 transform: none;
930 }
931 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger.mwai-bottom-right .mwai-icon-text {
932 transform-origin: right bottom;
933 }
934 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger.mwai-bottom-left .mwai-icon-text {
935 transform-origin: left bottom;
936 }
937 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger.mwai-top-right .mwai-icon-text {
938 transform-origin: right top;
939 }
940 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger.mwai-top-left .mwai-icon-text {
941 transform-origin: left top;
942 }
943 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger.mwai-center-open .mwai-icon-text {
944 transform-origin: center center;
945 }
946 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
947 animation: mwaiIconTextZoomIn 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms 1 both;
948 }
949 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger:hover .mwai-icon-text {
950 transform: scale(1.02);
951 }
952 @media (prefers-reduced-motion: reduce) {
953 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
954 animation: none !important;
955 transform: none !important;
956 }
957 .mwai-messages-theme.mwai-animation-zoom.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
958 opacity: 1 !important;
959 transition: none !important;
960 }
961 }
962 .mwai-messages-theme.mwai-animation-slide.mwai-window {
963 filter: none;
964 }
965 @media (max-width: 760px) {
966 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-header {
967 display: none !important;
968 }
969 }
970 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-window-box {
971 display: flex;
972 flex-direction: column;
973 filter: drop-shadow(0 -5px 20px rgba(0, 0, 0, 0.15));
974 opacity: 0;
975 transform: translateY(100%);
976 transition: opacity 250ms ease-out, transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
977 }
978 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-fullscreen .mwai-window-box {
979 width: 100%;
980 height: 100%;
981 }
982 @media (min-width: 761px) {
983 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-opening .mwai-header {
984 display: flex !important;
985 }
986 }
987 @media (max-width: 760px) {
988 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-opening .mwai-header {
989 display: none !important;
990 }
991 }
992 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-opening .mwai-body {
993 display: flex !important;
994 }
995 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-opening .mwai-window-box {
996 opacity: 0.5;
997 transform: translateY(20px);
998 }
999 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-open .mwai-window-box {
1000 opacity: 1;
1001 transform: translateY(0);
1002 }
1003 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-closing .mwai-window-box {
1004 opacity: 0;
1005 transform: translateY(100%);
1006 transition: opacity 200ms ease-in, transform 200ms ease-in;
1007 }
1008 @media (max-width: 760px) {
1009 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-header {
1010 display: none !important;
1011 }
1012 }
1013 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-trigger .mwai-icon-container {
1014 transition: transform 0.2s ease-out, opacity 0.2s ease-out;
1015 }
1016 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-trigger .mwai-icon-container .mwai-icon {
1017 transition: transform 0.2s ease-out;
1018 }
1019 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-trigger .mwai-icon-container:hover .mwai-icon {
1020 transform: scale(1.1);
1021 }
1022 .mwai-messages-theme.mwai-animation-slide.mwai-window .mwai-trigger .mwai-icon-container:active .mwai-icon {
1023 transform: scale(0.9);
1024 }
1025 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-opening .mwai-trigger .mwai-icon-container {
1026 opacity: 0;
1027 }
1028 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-closing .mwai-trigger {
1029 display: none !important;
1030 }
1031 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-center-open.mwai-closing .mwai-trigger {
1032 display: none !important;
1033 }
1034 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-window-dragging.mwai-closing .mwai-trigger {
1035 display: none !important;
1036 }
1037 .mwai-messages-theme.mwai-animation-slide.mwai-window.mwai-open:not(.mwai-opening) .mwai-trigger {
1038 display: none;
1039 }
1040 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
1041 opacity: 1 !important;
1042 transition: none !important;
1043 }
1044 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1045 will-change: transform, opacity;
1046 transform: none;
1047 }
1048 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1049 animation: mwaiIconTextSlideUp 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms 1 both;
1050 backface-visibility: hidden;
1051 }
1052 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger:hover .mwai-icon-text {
1053 transform: translateY(-2px);
1054 }
1055 @media (prefers-reduced-motion: reduce) {
1056 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1057 animation: none !important;
1058 transform: none !important;
1059 }
1060 .mwai-messages-theme.mwai-animation-slide.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
1061 opacity: 1 !important;
1062 transition: none !important;
1063 }
1064 }
1065 @media (max-width: 760px) {
1066 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-header {
1067 display: none !important;
1068 }
1069 }
1070 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-window-box {
1071 display: flex;
1072 flex-direction: column;
1073 filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.15));
1074 opacity: 0;
1075 transform: translateY(8px) scale(0.98);
1076 transform-origin: center bottom;
1077 will-change: opacity, transform;
1078 transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.2, 0, 0, 1);
1079 }
1080 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-fullscreen .mwai-window-box {
1081 width: 100%;
1082 height: 100%;
1083 }
1084 @media (min-width: 761px) {
1085 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-header {
1086 display: flex !important;
1087 }
1088 }
1089 @media (max-width: 760px) {
1090 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-header {
1091 display: none !important;
1092 }
1093 }
1094 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-body {
1095 display: flex !important;
1096 opacity: 1 !important;
1097 transition: none !important;
1098 }
1099 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-header {
1100 opacity: 1 !important;
1101 transition: none !important;
1102 }
1103 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-window-box {
1104 opacity: 1;
1105 transform: translateY(0) scale(1);
1106 }
1107 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-open .mwai-header, .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-open .mwai-body {
1108 opacity: 1 !important;
1109 transition: none !important;
1110 }
1111 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-open .mwai-window-box {
1112 opacity: 1;
1113 transform: translateY(0) scale(1);
1114 }
1115 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-closing .mwai-window-box {
1116 opacity: 0;
1117 transform: translateY(8px) scale(0.98);
1118 transition: opacity 160ms ease-in, transform 180ms cubic-bezier(0.4, 0, 1, 1);
1119 }
1120 @media (prefers-reduced-motion: reduce) {
1121 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-window-box {
1122 transition: opacity 120ms linear !important;
1123 transform: none !important;
1124 }
1125 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-window-box, .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-open .mwai-window-box {
1126 opacity: 1;
1127 }
1128 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-closing .mwai-window-box {
1129 opacity: 0;
1130 }
1131 }
1132 @media (max-width: 760px) {
1133 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-header {
1134 display: none !important;
1135 }
1136 }
1137 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-trigger .mwai-icon-container {
1138 transition: transform 0.2s ease-out, opacity 0.2s ease-out;
1139 }
1140 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-trigger .mwai-icon-container .mwai-icon {
1141 transition: transform 0.2s ease-out;
1142 }
1143 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-trigger .mwai-icon-container:hover .mwai-icon {
1144 transform: scale(1.1);
1145 }
1146 .mwai-messages-theme.mwai-animation-fade.mwai-window .mwai-trigger .mwai-icon-container:active .mwai-icon {
1147 transform: scale(0.9);
1148 }
1149 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-opening .mwai-trigger .mwai-icon-container {
1150 opacity: 0;
1151 }
1152 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-closing .mwai-trigger {
1153 display: none !important;
1154 }
1155 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-center-open.mwai-closing .mwai-trigger {
1156 display: none !important;
1157 }
1158 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-window-dragging.mwai-closing .mwai-trigger {
1159 display: none !important;
1160 }
1161 .mwai-messages-theme.mwai-animation-fade.mwai-window.mwai-open:not(.mwai-opening) .mwai-trigger {
1162 display: none;
1163 }
1164 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
1165 opacity: 1 !important;
1166 transition: none !important;
1167 }
1168 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1169 will-change: transform, opacity;
1170 transform: none;
1171 }
1172 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1173 animation: mwaiIconTextFadeOpacity 180ms ease-out 0ms 1 both, mwaiIconTextFadeTransform 220ms cubic-bezier(0.2, 0, 0, 1) 0ms 1 both;
1174 }
1175 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger:hover .mwai-icon-text {
1176 transform: scale(1.01);
1177 }
1178 @media (prefers-reduced-motion: reduce) {
1179 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text {
1180 animation: none !important;
1181 transform: none !important;
1182 }
1183 .mwai-messages-theme.mwai-animation-fade.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger .mwai-icon-text-container {
1184 opacity: 1 !important;
1185 transition: none !important;
1186 }
1187 }
1188 .mwai-messages-theme:not(.mwai-animation-zoom):not(.mwai-animation-slide):not(.mwai-animation-fade).mwai-window .mwai-window-box {
1189 display: flex;
1190 flex-direction: column;
1191 filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
1192 }
1193 .mwai-messages-theme:not(.mwai-animation-zoom):not(.mwai-animation-slide):not(.mwai-animation-fade).mwai-window .mwai-trigger .mwai-icon-text-container {
1194 opacity: 1 !important;
1195 transition: none !important;
1196 }
1197 .mwai-messages-theme:not(.mwai-animation-zoom):not(.mwai-animation-slide):not(.mwai-animation-fade).mwai-window .mwai-trigger .mwai-icon-text {
1198 animation: none !important;
1199 transition: none !important;
1200 opacity: 1 !important;
1201 transform: none !important;
1202 }
1203 .mwai-messages-theme:not(.mwai-animation-zoom):not(.mwai-animation-slide):not(.mwai-animation-fade).mwai-window.mwai-fullscreen .mwai-window-box {
1204 width: 100%;
1205 height: 100%;
1206 }
1207
1208 .mwai-messages-theme .mwai-input .mwai-input-submit::before {
1209 content: "" !important;
1210 display: inline-block !important;
1211 z-index: 3;
1212 animation: mwai-button-spinner 1s linear infinite !important;
1213 }
1214
1215 .mwai-messages-theme .mwai-reply-actions svg {
1216 width: 16px;
1217 height: 16px;
1218 display: block;
1219 }
1220
1221 .mwai-messages-theme .mwai-files {
1222 display: flex;
1223 flex-direction: column;
1224 gap: 8px;
1225 padding: var(--mwai-spacing);
1226 background: var(--mwai-backgroundSecondaryColor);
1227 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
1228 }
1229 .mwai-messages-theme .mwai-files::-webkit-scrollbar {
1230 width: 6px;
1231 }
1232 .mwai-messages-theme .mwai-files::-webkit-scrollbar-track {
1233 background: var(--mwai-backgroundPrimaryColor);
1234 border-radius: 3px;
1235 }
1236 .mwai-messages-theme .mwai-files::-webkit-scrollbar-thumb {
1237 background: var(--mwai-backgroundHeaderColor);
1238 border-radius: 3px;
1239 }
1240 .mwai-messages-theme .mwai-files::-webkit-scrollbar-thumb:hover {
1241 background: var(--mwai-primaryColor);
1242 }
1243 .mwai-messages-theme .mwai-files .mwai-file-preview {
1244 position: relative;
1245 }
1246 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-content {
1247 display: flex;
1248 align-items: center;
1249 gap: 8px;
1250 }
1251 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-thumbnail {
1252 width: 32px;
1253 height: 32px;
1254 object-fit: cover;
1255 border-radius: 4px;
1256 border: 1px solid var(--mwai-backgroundHeaderColor);
1257 display: block;
1258 flex-shrink: 0;
1259 }
1260 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-icon {
1261 width: 32px;
1262 height: 32px;
1263 display: flex;
1264 align-items: center;
1265 justify-content: center;
1266 background: var(--mwai-backgroundSecondaryColor);
1267 border-radius: 4px;
1268 color: var(--mwai-fontColor);
1269 opacity: 0.6;
1270 flex-shrink: 0;
1271 }
1272 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-icon svg {
1273 width: 18px;
1274 height: 18px;
1275 }
1276 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-info {
1277 flex: 1;
1278 min-width: 0;
1279 display: flex;
1280 flex-direction: column;
1281 gap: 2px;
1282 }
1283 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-name {
1284 font-size: calc(var(--mwai-fontSize) * 0.85);
1285 color: var(--mwai-fontColor);
1286 white-space: nowrap;
1287 overflow: hidden;
1288 text-overflow: ellipsis;
1289 line-height: 1.2;
1290 }
1291 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-size {
1292 font-size: calc(var(--mwai-fontSize) * 0.7);
1293 color: var(--mwai-fontColor);
1294 opacity: 0.5;
1295 line-height: 1;
1296 }
1297 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-progress {
1298 position: absolute;
1299 bottom: 0;
1300 left: 0;
1301 right: 0;
1302 height: 2px;
1303 background: var(--mwai-backgroundHeaderColor);
1304 border-radius: 0 0 calc(var(--mwai-borderRadius) / 2) calc(var(--mwai-borderRadius) / 2);
1305 overflow: hidden;
1306 }
1307 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-progress .mwai-file-progress-bar {
1308 height: 100%;
1309 background: var(--mwai-primaryColor);
1310 transition: width 0.3s ease;
1311 }
1312 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-remove {
1313 display: flex;
1314 align-items: center;
1315 justify-content: center;
1316 background: none;
1317 cursor: pointer;
1318 color: var(--mwai-fontColor);
1319 padding: 4px;
1320 border: none;
1321 line-height: 0;
1322 min-width: inherit;
1323 margin-left: auto;
1324 opacity: 0.6;
1325 transition: opacity 0.2s ease;
1326 }
1327 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-remove:hover {
1328 opacity: 1;
1329 }
1330 .mwai-messages-theme .mwai-files .mwai-file-preview .mwai-file-remove svg {
1331 width: 20px;
1332 height: 20px;
1333 }
1334 .mwai-messages-theme .mwai-files:empty {
1335 display: none;
1336 }
1337 .mwai-messages-theme .mwai-file-upload-icon {
1338 margin-bottom: -3px;
1339 }
1340 .mwai-messages-theme .mwai-spin {
1341 animation: mwai-spin 1s linear infinite;
1342 }
1343 @keyframes mwai-spin {
1344 from {
1345 transform: rotate(0deg);
1346 }
1347 to {
1348 transform: rotate(360deg);
1349 }
1350 }
1351 .mwai-messages-theme .mwai-terminal {
1352 --mwai-terminal-active-color: var(--mwai-fontColor);
1353 font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
1354 font-size: 12px;
1355 background: var(--mwai-backgroundPrimaryColor);
1356 color: var(--mwai-fontColor);
1357 padding: var(--mwai-spacing);
1358 height: 100%;
1359 overflow-y: auto;
1360 cursor: text;
1361 display: flex;
1362 flex-direction: column;
1363 flex: 1 1 auto;
1364 min-height: 0;
1365 padding-bottom: calc(var(--mwai-spacing) * 1.25);
1366 }
1367 .mwai-messages-theme .mwai-terminal:focus {
1368 outline: none;
1369 }
1370 .mwai-messages-theme .mwai-terminal .mwai-terminal-line {
1371 display: flex;
1372 align-items: flex-start;
1373 margin: calc(var(--mwai-spacing) / 2) 0;
1374 white-space: pre-wrap;
1375 word-wrap: break-word;
1376 word-break: break-word;
1377 }
1378 .mwai-messages-theme .mwai-terminal .mwai-terminal-line.mwai-terminal-user {
1379 color: var(--mwai-fontColor);
1380 opacity: 0.35;
1381 }
1382 .mwai-messages-theme .mwai-terminal .mwai-terminal-line.mwai-terminal-user-typing {
1383 color: var(--mwai-terminal-active-color);
1384 opacity: 1;
1385 }
1386 .mwai-messages-theme .mwai-terminal .mwai-terminal-line.mwai-terminal-user-typing .mwai-terminal-prompt {
1387 color: var(--mwai-terminal-active-color);
1388 }
1389 .mwai-messages-theme .mwai-terminal .mwai-terminal-line.mwai-terminal-assistant {
1390 color: var(--mwai-fontColor);
1391 }
1392 .mwai-messages-theme .mwai-terminal .mwai-terminal-line.mwai-terminal-system {
1393 color: #608b4e;
1394 font-style: italic;
1395 }
1396 .mwai-messages-theme .mwai-terminal .mwai-terminal-prompt {
1397 color: var(--mwai-terminal-active-color);
1398 margin-left: -4px;
1399 margin-right: 4px;
1400 display: inline-flex;
1401 align-items: center;
1402 height: 1.5em;
1403 line-height: 1.2;
1404 flex-shrink: 0;
1405 align-self: flex-start;
1406 }
1407 .mwai-messages-theme .mwai-terminal .mwai-terminal-prompt svg {
1408 display: block;
1409 width: 1.4em;
1410 height: 1.4em;
1411 }
1412 .mwai-messages-theme .mwai-terminal .mwai-terminal-text {
1413 color: inherit;
1414 }
1415 .mwai-messages-theme .mwai-terminal .mwai-terminal-input-wrapper {
1416 flex: 1;
1417 display: inline;
1418 white-space: pre-wrap;
1419 word-wrap: break-word;
1420 word-break: break-word;
1421 }
1422 .mwai-messages-theme .mwai-terminal .mwai-terminal-typed {
1423 color: var(--mwai-terminal-active-color);
1424 white-space: pre-wrap;
1425 word-wrap: break-word;
1426 word-break: break-word;
1427 }
1428 .mwai-messages-theme .mwai-terminal .mwai-terminal-cursor {
1429 display: inline-block;
1430 min-width: 8px;
1431 height: 1.35em;
1432 color: var(--mwai-terminal-active-color);
1433 background: var(--mwai-terminal-active-color);
1434 opacity: 0.35;
1435 vertical-align: text-bottom;
1436 line-height: inherit;
1437 }
1438 .mwai-messages-theme .mwai-terminal .mwai-terminal-cursor.mwai-terminal-cursor-active {
1439 opacity: 1;
1440 color: var(--mwai-backgroundPrimaryColor);
1441 animation: mwai-cursor-blink 1s infinite;
1442 }
1443 .mwai-messages-theme .mwai-terminal .mwai-terminal-cursor.mwai-terminal-cursor-typing {
1444 opacity: 1;
1445 color: var(--mwai-backgroundPrimaryColor);
1446 }
1447 .mwai-messages-theme .mwai-terminal .mwai-terminal-cursor.mwai-terminal-cursor-inactive {
1448 opacity: 0.35;
1449 }
1450 .mwai-messages-theme .mwai-terminal {
1451 scrollbar-width: thin;
1452 scrollbar-color: rgba(128, 128, 128, 0.3) transparent;
1453 }
1454 .mwai-messages-theme .mwai-terminal::-webkit-scrollbar {
1455 width: 8px;
1456 background: transparent;
1457 }
1458 .mwai-messages-theme .mwai-terminal::-webkit-scrollbar-track {
1459 background: transparent;
1460 }
1461 .mwai-messages-theme .mwai-terminal::-webkit-scrollbar-thumb {
1462 background: rgba(128, 128, 128, 0.3);
1463 border-radius: 4px;
1464 }
1465 .mwai-messages-theme .mwai-terminal::-webkit-scrollbar-thumb:hover {
1466 background: rgba(128, 128, 128, 0.5);
1467 }
1468 .mwai-messages-theme .mwai-terminal + .mwai-compliance {
1469 margin-top: 0;
1470 }
1471 .mwai-messages-theme.mwai-transition, .mwai-messages-theme .mwai-transition {
1472 opacity: 0;
1473 transition: opacity 350ms ease-in-out;
1474 }
1475 .mwai-messages-theme.mwai-transition-visible, .mwai-messages-theme .mwai-transition-visible {
1476 opacity: 1;
1477 }
1478 .mwai-messages-theme .mwai-text {
1479 overflow-wrap: anywhere;
1480 }
1481 .mwai-messages-theme .mwai-text img, .mwai-messages-theme .mwai-text svg {
1482 max-width: 100%;
1483 }
1484 .mwai-messages-theme .mwai-text div p:first-child {
1485 margin-top: 0;
1486 }
1487 .mwai-messages-theme .mwai-text div p:last-child {
1488 margin-bottom: 0;
1489 }
1490 .mwai-messages-theme .mwai-trigger {
1491 position: absolute;
1492 right: 0;
1493 bottom: 0;
1494 transition: all 0.2s ease-out;
1495 z-index: 9999;
1496 display: flex;
1497 flex-direction: column;
1498 align-items: end;
1499 }
1500 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container {
1501 display: flex;
1502 flex-direction: column;
1503 align-items: flex-end;
1504 position: relative;
1505 z-index: 2;
1506 }
1507 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text {
1508 background: var(--mwai-iconTextBackgroundColor);
1509 color: var(--mwai-iconTextColor);
1510 box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
1511 max-width: 200px;
1512 font-size: 13px;
1513 margin-bottom: 15px;
1514 padding: 10px 15px;
1515 border-radius: 8px;
1516 position: relative;
1517 user-select: none;
1518 -webkit-user-select: none;
1519 -ms-user-select: none;
1520 }
1521 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close {
1522 --mwai-icon-close-size: 28px;
1523 color: var(--mwai-iconTextColor);
1524 background: var(--mwai-iconTextBackgroundColor);
1525 font-size: 13px;
1526 line-height: 1;
1527 width: var(--mwai-icon-close-size);
1528 height: var(--mwai-icon-close-size);
1529 min-width: var(--mwai-icon-close-size);
1530 min-height: var(--mwai-icon-close-size);
1531 border-radius: 50%;
1532 display: flex;
1533 opacity: 0;
1534 visibility: hidden;
1535 pointer-events: none;
1536 transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
1537 justify-content: center;
1538 align-items: center;
1539 position: absolute;
1540 right: 0;
1541 top: 0;
1542 transform: translate(40%, -40%);
1543 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
1544 z-index: 2;
1545 cursor: pointer;
1546 pointer-events: auto;
1547 -webkit-tap-highlight-color: transparent;
1548 user-select: none;
1549 -webkit-user-select: none;
1550 -ms-user-select: none;
1551 }
1552 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover {
1553 cursor: pointer;
1554 }
1555 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close {
1556 opacity: 1;
1557 visibility: visible;
1558 pointer-events: auto;
1559 transform: translate(40%, -40%) scale(1);
1560 transition: opacity 120ms ease, transform 120ms ease, visibility 0s;
1561 }
1562 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close:hover {
1563 filter: brightness(1.1);
1564 transform: translate(40%, -40%) scale(1.06);
1565 }
1566 @media (max-width: 760px) {
1567 .mwai-messages-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close {
1568 opacity: 1;
1569 visibility: visible;
1570 pointer-events: auto;
1571 transform: translate(40%, -40%) scale(1);
1572 transition: opacity 120ms ease, transform 120ms ease, visibility 0s;
1573 }
1574 }
1575 .mwai-messages-theme .mwai-trigger .mwai-icon-container {
1576 position: relative;
1577 z-index: 1;
1578 }
1579 .mwai-messages-theme .mwai-trigger .mwai-icon-container .mwai-icon {
1580 filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.15));
1581 transition: all 0.2s ease-out;
1582 }
1583 .mwai-messages-theme .mwai-trigger .mwai-icon-container .mwai-icon:hover {
1584 cursor: pointer;
1585 transform: scale(1.05);
1586 }
1587 .mwai-messages-theme.mwai-window {
1588 position: fixed;
1589 right: 30px;
1590 bottom: 30px;
1591 width: var(--mwai-width);
1592 z-index: 9999;
1593 }
1594 .mwai-messages-theme.mwai-window .mwai-window-box {
1595 position: relative;
1596 z-index: 1;
1597 }
1598 .mwai-messages-theme.mwai-window .mwai-header {
1599 display: none;
1600 justify-content: space-between;
1601 align-items: center;
1602 padding: 0 0 0 15px;
1603 border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0;
1604 background: var(--mwai-backgroundHeaderColor);
1605 }
1606 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons {
1607 display: flex;
1608 align-items: center;
1609 margin-left: auto;
1610 }
1611 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button {
1612 justify-content: center;
1613 height: 32px;
1614 width: 32px;
1615 cursor: pointer;
1616 display: flex;
1617 justify-content: center;
1618 align-items: center;
1619 }
1620 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before {
1621 transition: all 0.2s ease-out;
1622 content: " ";
1623 cursor: pointer;
1624 position: absolute;
1625 height: 20px;
1626 width: 20px;
1627 background-color: var(--mwai-headerColor);
1628 -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M3 9V3h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M21 15v6h-6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") no-repeat center/contain;
1629 mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M3 9V3h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M21 15v6h-6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") no-repeat center/contain;
1630 }
1631 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1632 width: 22px;
1633 height: 22px;
1634 }
1635 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button {
1636 justify-content: center;
1637 height: 32px;
1638 width: 32px;
1639 cursor: pointer;
1640 border-radius: var(--mwai-borderRadius);
1641 margin-left: -10px;
1642 }
1643 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before {
1644 transition: all 0.2s ease-out;
1645 transform: translate(16px, 5px) rotate(45deg);
1646 }
1647 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
1648 transition: all 0.2s ease-out;
1649 transform: translate(16px, 5px) rotate(-45deg);
1650 }
1651 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
1652 content: " ";
1653 cursor: pointer;
1654 position: absolute;
1655 height: 22px;
1656 width: 1.2px;
1657 background-color: var(--mwai-headerColor);
1658 }
1659 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before {
1660 opacity: 1;
1661 transform: translate(16px, 5px) rotate(135deg);
1662 }
1663 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after {
1664 opacity: 1;
1665 transform: translate(16px, 5px) rotate(45deg);
1666 }
1667 .mwai-messages-theme.mwai-window.mwai-opening, .mwai-messages-theme.mwai-window.mwai-closing {
1668 cursor: default !important;
1669 }
1670 .mwai-messages-theme.mwai-window.mwai-opening .mwai-header, .mwai-messages-theme.mwai-window.mwai-closing .mwai-header {
1671 cursor: default !important;
1672 }
1673 .mwai-messages-theme.mwai-window .mwai-body {
1674 display: none;
1675 opacity: 0;
1676 max-height: var(--mwai-maxHeight);
1677 border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius);
1678 }
1679 .mwai-messages-theme.mwai-window.mwai-bottom-left {
1680 bottom: 30px;
1681 right: inherit;
1682 left: 30px;
1683 }
1684 .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1685 right: inherit;
1686 left: 0;
1687 }
1688 .mwai-messages-theme.mwai-window.mwai-top-right {
1689 top: 30px;
1690 bottom: inherit;
1691 right: 30px;
1692 }
1693 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger {
1694 top: 0;
1695 bottom: inherit;
1696 }
1697 .mwai-messages-theme.mwai-window.mwai-top-left {
1698 top: 30px;
1699 bottom: inherit;
1700 right: inherit;
1701 left: 30px;
1702 }
1703 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1704 top: 0;
1705 bottom: inherit;
1706 right: inherit;
1707 left: 0;
1708 }
1709 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1710 top: 50%;
1711 left: 50%;
1712 transform: translate(-50%, -50%);
1713 right: auto;
1714 bottom: auto;
1715 }
1716 @media (max-width: 760px) {
1717 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1718 width: calc(100% - 40px);
1719 max-width: var(--mwai-width);
1720 }
1721 }
1722 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1723 align-items: flex-start;
1724 }
1725 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1726 flex-direction: column-reverse;
1727 }
1728 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger .mwai-icon-text, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger .mwai-icon-text {
1729 margin-bottom: 0;
1730 margin-top: 15px;
1731 }
1732 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons {
1733 margin-bottom: 0px;
1734 }
1735 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before {
1736 width: 20px;
1737 height: 20px;
1738 -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M8 3V8H3'/%3E%3Cpath d='M21 8H16V3'/%3E%3Cpath d='M3 16H8V21'/%3E%3Cpath d='M16 21V16H21'/%3E%3C/svg%3E");
1739 mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M8 3V8H3'/%3E%3Cpath d='M21 8H16V3'/%3E%3Cpath d='M3 16H8V21'/%3E%3Cpath d='M16 21V16H21'/%3E%3C/svg%3E");
1740 }
1741 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1742 width: 22px;
1743 height: 22px;
1744 }
1745 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) {
1746 position: fixed;
1747 left: 0 !important;
1748 right: 0 !important;
1749 bottom: 0 !important;
1750 top: 0 !important;
1751 width: 100%;
1752 height: 100%;
1753 height: 100vh;
1754 height: 100dvh;
1755 max-height: 100dvh;
1756 max-width: 100%;
1757 display: flex;
1758 flex-direction: column;
1759 margin: 0;
1760 z-index: 999999;
1761 background-color: var(--mwai-backgroundSecondaryColor);
1762 }
1763 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1764 border-radius: 0;
1765 }
1766 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1767 flex: 1;
1768 min-height: 0;
1769 max-height: inherit;
1770 border-radius: 0;
1771 display: flex !important;
1772 flex-direction: column !important;
1773 }
1774 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-conversation {
1775 flex: 0 1 auto !important;
1776 max-height: none;
1777 overflow-y: auto;
1778 min-height: 0;
1779 }
1780 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-fullscreen-spacer {
1781 flex: 1 1 auto !important;
1782 min-height: 0;
1783 }
1784 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-input {
1785 flex: 0 0 auto;
1786 }
1787 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-footer {
1788 flex: 0 0 auto;
1789 }
1790 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-files {
1791 flex: 0 0 auto;
1792 }
1793 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) {
1794 display: flex !important;
1795 visibility: visible !important;
1796 opacity: 1 !important;
1797 }
1798 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-window-box {
1799 width: 100%;
1800 height: 100%;
1801 display: flex;
1802 flex-direction: column;
1803 }
1804 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1805 display: flex !important;
1806 visibility: visible !important;
1807 opacity: 1 !important;
1808 flex: 0 0 auto;
1809 }
1810 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1811 display: flex !important;
1812 visibility: visible !important;
1813 opacity: 1 !important;
1814 flex: 1 1 auto;
1815 flex-direction: column;
1816 min-height: 0;
1817 height: 100%;
1818 }
1819 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open {
1820 position: fixed;
1821 left: 0 !important;
1822 right: 0 !important;
1823 bottom: 0 !important;
1824 top: 0 !important;
1825 width: 100%;
1826 height: 100%;
1827 height: 100vh;
1828 height: 100dvh;
1829 max-height: 100dvh;
1830 max-width: 100%;
1831 display: flex;
1832 flex-direction: column;
1833 margin: 0;
1834 z-index: 999999;
1835 background-color: var(--mwai-backgroundSecondaryColor);
1836 }
1837 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-header {
1838 border-radius: 0;
1839 }
1840 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1841 flex: 1;
1842 min-height: 0;
1843 max-height: inherit;
1844 border-radius: 0;
1845 display: flex !important;
1846 flex-direction: column !important;
1847 }
1848 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-conversation {
1849 flex: 0 1 auto !important;
1850 max-height: none;
1851 overflow-y: auto;
1852 min-height: 0;
1853 }
1854 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-fullscreen-spacer {
1855 flex: 1 1 auto !important;
1856 min-height: 0;
1857 }
1858 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-input {
1859 flex: 0 0 auto;
1860 }
1861 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-footer {
1862 flex: 0 0 auto;
1863 }
1864 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-files {
1865 flex: 0 0 auto;
1866 }
1867 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open {
1868 transform: none !important;
1869 }
1870 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-window-box {
1871 width: 100%;
1872 height: 100%;
1873 display: flex;
1874 flex-direction: column;
1875 }
1876 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1877 flex: 1 1 auto;
1878 min-height: 0;
1879 }
1880 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1881 display: flex;
1882 }
1883 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
1884 display: flex;
1885 transition: opacity 200ms ease-in-out 0s;
1886 opacity: 1;
1887 }
1888 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
1889 display: none;
1890 }
1891 .mwai-messages-theme .mwai-body > .mwai-error {
1892 margin: var(--mwai-spacing);
1893 color: white;
1894 background: rgba(180, 55, 55, 0.55);
1895 padding: var(--mwai-spacing);
1896 border-radius: var(--mwai-borderRadius);
1897 }
1898 .mwai-messages-theme .mwai-body > .mwai-error:hover {
1899 cursor: pointer;
1900 background: rgba(180, 44, 44, 0.85);
1901 }
1902 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text {
1903 color: #ff5656;
1904 }
1905 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text a {
1906 color: #ff5656;
1907 text-decoration: underline;
1908 }
1909 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button {
1910 fill: var(--mwai-fontColor);
1911 padding: 3px 5px;
1912 width: 24px;
1913 height: 24px;
1914 background: var(--mwai-backgroundPrimaryColor);
1915 cursor: pointer;
1916 border-radius: 5px;
1917 }
1918 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
1919 filter: brightness(1.2);
1920 }
1921 .mwai-messages-theme .mwai-reply-actions {
1922 opacity: 0;
1923 transition: opacity 0.2s ease-in-out;
1924 }
1925 .mwai-messages-theme .mwai-reply:hover .mwai-reply-actions {
1926 opacity: 1 !important;
1927 }
1928 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions {
1929 opacity: 1 !important;
1930 }
1931 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions.mwai-hidden {
1932 opacity: 1 !important;
1933 }
1934 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container {
1935 background: var(--mwai-bubbleColor);
1936 width: var(--mwai-iconSize, 60px);
1937 height: var(--mwai-iconSize, 60px);
1938 border-radius: 100%;
1939 transition: all 0.2s ease-out;
1940 display: flex;
1941 justify-content: center;
1942 align-items: center;
1943 }
1944 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon {
1945 max-width: 50%;
1946 max-height: 50%;
1947 filter: none;
1948 }
1949 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon:hover {
1950 transform: none;
1951 }
1952 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-emoji {
1953 font-size: calc(var(--mwai-iconSize, 60px) / 2);
1954 }
1955 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container:hover {
1956 cursor: pointer;
1957 filter: brightness(1.1);
1958 }
1959 @media (max-width: 760px) {
1960 .mwai-messages-theme.mwai-window.mwai-open {
1961 position: fixed;
1962 top: var(--mwai-vv-offset-top, 0) !important;
1963 left: 0 !important;
1964 right: 0 !important;
1965 bottom: var(--mwai-vv-offset-bottom, 0) !important;
1966 width: 100%;
1967 min-height: 100%;
1968 min-height: 100vh;
1969 min-height: var(--mwai-vv-height, 100dvh);
1970 height: var(--mwai-vv-height, 100dvh);
1971 max-height: var(--mwai-vv-height, 100dvh);
1972 max-width: 100%;
1973 margin: 0;
1974 z-index: 999999;
1975 background-color: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
1976 border-radius: 0 !important;
1977 box-shadow: none !important;
1978 border: none !important;
1979 padding-top: env(safe-area-inset-top, 0);
1980 padding-left: env(safe-area-inset-left, 0);
1981 padding-right: env(safe-area-inset-right, 0);
1982 box-sizing: border-box;
1983 }
1984 .mwai-messages-theme.mwai-window.mwai-open .mwai-window-box {
1985 width: 100%;
1986 height: 100%;
1987 flex: 1;
1988 display: flex;
1989 flex-direction: column;
1990 border-radius: 0 !important;
1991 box-shadow: none !important;
1992 border: none !important;
1993 background: transparent !important;
1994 min-height: 0;
1995 }
1996 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1997 display: none !important;
1998 }
1999 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
2000 flex: 1;
2001 min-height: 0;
2002 display: flex;
2003 flex-direction: column;
2004 border-radius: 0 !important;
2005 overflow: hidden;
2006 background: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
2007 }
2008 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
2009 flex: 1;
2010 overflow-y: auto;
2011 max-height: none;
2012 min-height: 0;
2013 }
2014 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-input {
2015 flex-shrink: 0;
2016 position: relative;
2017 }
2018 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-footer {
2019 flex-shrink: 0;
2020 position: relative;
2021 }
2022 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-body:last-child .mwai-input {
2023 padding-bottom: env(safe-area-inset-bottom, 0);
2024 }
2025 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header {
2026 display: flex;
2027 position: sticky;
2028 top: 0;
2029 left: 0;
2030 right: 0;
2031 min-height: 50px;
2032 background: var(--mwai-backgroundHeaderColor);
2033 border-bottom: 1px solid var(--mwai-lineColor);
2034 padding: 0 15px;
2035 padding-top: env(safe-area-inset-top, 0);
2036 padding-left: calc(15px + env(safe-area-inset-left, 0));
2037 padding-right: calc(15px + env(safe-area-inset-right, 0));
2038 align-items: center;
2039 justify-content: space-between;
2040 z-index: 10;
2041 flex-shrink: 0;
2042 }
2043 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-title {
2044 font-size: 16px;
2045 font-weight: 600;
2046 color: var(--mwai-headerColor);
2047 flex: 1;
2048 overflow: hidden;
2049 text-overflow: ellipsis;
2050 white-space: nowrap;
2051 }
2052 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close {
2053 all: unset;
2054 display: flex;
2055 align-items: center;
2056 justify-content: center;
2057 width: 32px;
2058 height: 32px;
2059 min-width: 32px;
2060 cursor: pointer;
2061 border-radius: 6px;
2062 transition: background-color 0.2s ease;
2063 -webkit-tap-highlight-color: transparent;
2064 }
2065 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close:hover, .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close:active {
2066 background-color: var(--mwai-backgroundSecondaryColor);
2067 }
2068 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg {
2069 width: 20px;
2070 height: 20px;
2071 }
2072 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg path {
2073 stroke: var(--mwai-headerColor);
2074 }
2075 .mwai-messages-theme.mwai-window.mwai-open.mwai-center-open {
2076 top: var(--mwai-vv-offset-top, 0) !important;
2077 left: 0 !important;
2078 transform: none !important;
2079 right: 0 !important;
2080 bottom: var(--mwai-vv-offset-bottom, 0) !important;
2081 width: 100% !important;
2082 max-width: 100% !important;
2083 height: var(--mwai-vv-height, 100dvh) !important;
2084 }
2085 .mwai-messages-theme.mwai-window.mwai-open .mwai-input {
2086 flex-direction: column;
2087 }
2088 .mwai-messages-theme.mwai-window.mwai-open .mwai-input button:not(.mwai-input-submit) {
2089 font-size: 16px;
2090 margin-left: 0;
2091 width: 100%;
2092 }
2093 .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text {
2094 width: 100%;
2095 }
2096 .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text input, .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text textarea {
2097 font-size: 16px;
2098 }
2099 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
2100 display: flex;
2101 transition: opacity 200ms ease-in-out 0s;
2102 opacity: 1;
2103 flex: 1;
2104 min-height: 0;
2105 max-height: inherit;
2106 }
2107 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
2108 flex: 1;
2109 max-height: none;
2110 min-height: 0;
2111 }
2112 .mwai-messages-theme.mwai-window.mwai-open .mwai-resize-button {
2113 display: none !important;
2114 }
2115 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
2116 display: none;
2117 }
2118 }
2119 @keyframes mwai-button-spinner {
2120 from {
2121 transform: rotate(0turn);
2122 }
2123 to {
2124 transform: rotate(1turn);
2125 }
2126 }
2127 .mwai-messages-theme button:not(.mwai-busy):before {
2128 content: none !important;
2129 display: none !important;
2130 animation: none !important;
2131 }
2132 .mwai-messages-theme .admin-bar .mwai-fullscreen:not(.mwai-window),
2133 .mwai-messages-theme .admin-bar .mwai-fullscreen.mwai-window.mwai-open {
2134 top: 32px;
2135 }
2136 .mwai-messages-theme .mwai-input .mwai-terminal-line {
2137 display: flex;
2138 align-items: flex-start;
2139 color: var(--mwai-terminal-active-color, var(--mwai-fontColor));
2140 }
2141 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt {
2142 color: var(--mwai-terminal-active-color, currentColor);
2143 margin-left: -4px;
2144 margin-right: 4px;
2145 display: inline-flex;
2146 align-items: center;
2147 height: 1.5em;
2148 line-height: 1.2;
2149 flex-shrink: 0;
2150 align-self: flex-start;
2151 }
2152 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt svg {
2153 display: block;
2154 width: 1.4em;
2155 height: 1.4em;
2156 }
2157 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-input-wrapper {
2158 flex: 1;
2159 display: inline;
2160 white-space: pre-wrap;
2161 word-wrap: break-word;
2162 word-break: break-word;
2163 }
2164 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-typed {
2165 white-space: pre-wrap;
2166 word-wrap: break-word;
2167 word-break: break-word;
2168 }
2169 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor {
2170 display: inline-block;
2171 min-width: 8px;
2172 height: 1.35em;
2173 color: currentColor;
2174 background: currentColor;
2175 opacity: 0.35;
2176 vertical-align: text-bottom;
2177 line-height: inherit;
2178 }
2179 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-active {
2180 opacity: 1;
2181 color: var(--mwai-backgroundPrimaryColor, #1a1a2e);
2182 animation: mwai-cursor-blink 1s infinite;
2183 }
2184 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-typing {
2185 opacity: 1;
2186 color: var(--mwai-backgroundPrimaryColor, #1a1a2e);
2187 }
2188 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-inactive {
2189 opacity: 0.35;
2190 }
2191 .mwai-messages-theme pre code.hljs {
2192 display: block;
2193 overflow-x: auto;
2194 padding: 1em;
2195 }
2196 .mwai-messages-theme code.hljs {
2197 padding: 3px 5px;
2198 }
2199 .mwai-messages-theme .hljs {
2200 color: #333;
2201 background: #f0f0f0;
2202 }
2203 .mwai-messages-theme .hljs-subst {
2204 color: #333;
2205 }
2206 .mwai-messages-theme .hljs-comment {
2207 color: #888;
2208 }
2209 .mwai-messages-theme .hljs-attr, .mwai-messages-theme .hljs-doctag, .mwai-messages-theme .hljs-keyword, .mwai-messages-theme .hljs-meta .hljs-keyword, .mwai-messages-theme .hljs-section, .mwai-messages-theme .hljs-selector-tag {
2210 color: #0077cc;
2211 }
2212 .mwai-messages-theme .hljs-attribute {
2213 color: #aa3377;
2214 }
2215 .mwai-messages-theme .hljs-name, .mwai-messages-theme .hljs-number, .mwai-messages-theme .hljs-quote, .mwai-messages-theme .hljs-selector-id, .mwai-messages-theme .hljs-template-tag, .mwai-messages-theme .hljs-type {
2216 color: #c18401;
2217 }
2218 .mwai-messages-theme .hljs-selector-class {
2219 color: #0077cc;
2220 }
2221 .mwai-messages-theme .hljs-link, .mwai-messages-theme .hljs-regexp, .mwai-messages-theme .hljs-selector-attr, .mwai-messages-theme .hljs-string, .mwai-messages-theme .hljs-symbol, .mwai-messages-theme .hljs-template-variable, .mwai-messages-theme .hljs-variable {
2222 color: #689700;
2223 }
2224 .mwai-messages-theme .hljs-meta, .mwai-messages-theme .hljs-selector-pseudo {
2225 color: #0077cc;
2226 }
2227 .mwai-messages-theme .hljs-built_in, .mwai-messages-theme .hljs-literal, .mwai-messages-theme .hljs-title {
2228 color: #c18401;
2229 }
2230 .mwai-messages-theme .hljs-bullet, .mwai-messages-theme .hljs-code {
2231 color: #555;
2232 }
2233 .mwai-messages-theme .hljs-meta .hljs-string {
2234 color: #689700;
2235 }
2236 .mwai-messages-theme .hljs-deletion {
2237 color: #b71c1c;
2238 }
2239 .mwai-messages-theme .hljs-addition {
2240 color: #1b5e20;
2241 }
2242 .mwai-messages-theme .hljs-emphasis {
2243 font-style: italic;
2244 }
2245 .mwai-messages-theme .hljs-strong {
2246 font-weight: 700;
2247 }
2248 .mwai-messages-theme .mwai-reply-actions {
2249 position: absolute;
2250 border-radius: 5px;
2251 top: 10px;
2252 right: 10px;
2253 display: flex;
2254 align-items: center;
2255 padding: 2px 2px;
2256 z-index: 100;
2257 background: var(--mwai-backgroundPrimaryColor);
2258 box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
2259 z-index: 100;
2260 }
2261 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button,
2262 .mwai-messages-theme .mwai-reply-actions .mwai-download-button,
2263 .mwai-messages-theme .mwai-reply-actions .mwai-pdf-button {
2264 fill: var(--mwai-fontColor);
2265 padding: 3px 5px;
2266 width: 24px;
2267 height: 24px;
2268 background: var(--mwai-backgroundPrimaryColor);
2269 cursor: pointer;
2270 border-radius: 5px;
2271 }
2272 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover,
2273 .mwai-messages-theme .mwai-reply-actions .mwai-download-button:hover,
2274 .mwai-messages-theme .mwai-reply-actions .mwai-pdf-button:hover {
2275 filter: brightness(1.2);
2276 }
2277 .mwai-messages-theme .mwai-reply-actions.mwai-hidden {
2278 opacity: 0;
2279 }
2280 .mwai-messages-theme .mwai-realtime {
2281 padding: var(--mwai-spacing);
2282 }
2283 .mwai-messages-theme .mwai-realtime .mwai-visualizer {
2284 display: flex;
2285 justify-content: center;
2286 align-items: center;
2287 }
2288 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2289 width: 100px;
2290 margin-right: var(--mwai-spacing);
2291 margin-left: var(--mwai-spacing);
2292 border: 1px solid var(--mwai-backgroundPrimaryColor);
2293 }
2294 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2295 background: var(--mwai-backgroundPrimaryColor);
2296 }
2297 .mwai-messages-theme .mwai-realtime .mwai-controls {
2298 display: flex;
2299 justify-content: center;
2300 align-items: center;
2301 margin-bottom: var(--mwai-spacing);
2302 }
2303 .mwai-messages-theme .mwai-realtime .mwai-controls > * + * {
2304 margin-left: 10px;
2305 }
2306 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2307 border-radius: 100%;
2308 width: 50px;
2309 height: 50px;
2310 margin: 5px;
2311 padding: 5px;
2312 display: flex;
2313 align-items: center;
2314 justify-content: center;
2315 color: var(--mwai-fontColor);
2316 border: 2px solid var(--mwai-backgroundPrimaryColor);
2317 background: none;
2318 cursor: pointer;
2319 transition: all 0.2s ease-out;
2320 min-width: inherit;
2321 max-width: inherit;
2322 }
2323 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover:not(:disabled) {
2324 background: var(--mwai-backgroundPrimaryColor);
2325 }
2326 .mwai-messages-theme .mwai-realtime .mwai-controls button:disabled {
2327 opacity: 0.5;
2328 cursor: not-allowed;
2329 background: none;
2330 }
2331 .mwai-messages-theme .mwai-realtime .mwai-controls button.mwai-active {
2332 border: 2px solid var(--mwai-fontColor);
2333 }
2334 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode {
2335 flex-direction: column;
2336 gap: 8px;
2337 }
2338 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk {
2339 border-radius: calc(var(--mwai-borderRadius) * 0.8);
2340 width: auto;
2341 min-width: 120px;
2342 padding: 12px 24px;
2343 margin: 5px;
2344 display: flex;
2345 align-items: center;
2346 justify-content: center;
2347 gap: 8px;
2348 color: var(--mwai-fontColor);
2349 border: 2px solid var(--mwai-backgroundPrimaryColor);
2350 background: none;
2351 cursor: pointer;
2352 transition: all 0.2s ease-out;
2353 font-family: inherit;
2354 font-size: var(--mwai-fontSize);
2355 line-height: 1.2;
2356 font-weight: 500;
2357 height: auto;
2358 user-select: none;
2359 -webkit-user-select: none;
2360 -webkit-touch-callout: none;
2361 touch-action: manipulation;
2362 }
2363 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:hover:not(:disabled) {
2364 background: var(--mwai-backgroundPrimaryColor);
2365 }
2366 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:disabled {
2367 opacity: 0.5;
2368 cursor: not-allowed;
2369 background: none;
2370 }
2371 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk.mwai-active {
2372 border: 2px solid var(--mwai-fontColor);
2373 background: var(--mwai-backgroundPrimaryColor);
2374 }
2375 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk svg {
2376 width: 18px;
2377 height: 18px;
2378 }
2379 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-talk-hint {
2380 font-size: 12px;
2381 color: var(--mwai-fontColor);
2382 opacity: 0.6;
2383 text-align: center;
2384 margin: 0;
2385 }
2386 .mwai-messages-theme .mwai-realtime .mwai-last-transcript {
2387 margin: var(--mwai-spacing);
2388 margin-top: 0;
2389 border: 2px solid var(--mwai-backgroundPrimaryColor);
2390 padding: calc(var(--mwai-spacing) / 2);
2391 padding-right: calc(var(--mwai-spacing) / 2 + 10px);
2392 border-radius: var(--mwai-borderRadius);
2393 font-size: 80%;
2394 text-align: center;
2395 max-height: 120px;
2396 overflow-y: auto;
2397 overflow-x: hidden;
2398 word-wrap: break-word;
2399 overflow-wrap: break-word;
2400 }
2401 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar {
2402 width: 6px;
2403 }
2404 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-track {
2405 background: transparent;
2406 margin: 4px 0;
2407 }
2408 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-thumb {
2409 background: var(--mwai-backgroundHeaderColor);
2410 border-radius: 10px;
2411 }
2412 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-thumb:hover {
2413 background: var(--mwai-primaryColor);
2414 }
2415 .mwai-messages-theme .mwai-realtime .mwai-last-transcript {
2416 scrollbar-width: thin;
2417 scrollbar-color: var(--mwai-backgroundHeaderColor) transparent;
2418 }
2419 .mwai-messages-theme .mwai-realtime .mwai-statistics {
2420 display: grid;
2421 grid-template-columns: 1fr 1fr 1fr;
2422 grid-row-gap: 10px;
2423 font-size: 14px;
2424 }
2425 .mwai-messages-theme .mwai-realtime .mwai-statistics div {
2426 display: flex;
2427 flex-direction: column;
2428 align-items: center;
2429 }
2430 .mwai-messages-theme .mwai-realtime .mwai-statistics label {
2431 font-size: 11px;
2432 opacity: 0.5;
2433 text-transform: uppercase;
2434 }
2435 .mwai-messages-theme .mwai-realtime .mwai-options {
2436 margin-top: var(--mwai-spacing);
2437 display: flex;
2438 align-items: center;
2439 }
2440 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option {
2441 cursor: pointer;
2442 opacity: 0.5;
2443 margin-right: 2px;
2444 }
2445 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option.mwai-active {
2446 opacity: 1;
2447 }
2448 .mwai-messages-theme.mwai-discussions {
2449 border-radius: var(--mwai-borderRadius);
2450 background: var(--mwai-backgroundHeaderColor);
2451 overflow: hidden;
2452 }
2453 .mwai-messages-theme.mwai-discussions * {
2454 box-sizing: border-box;
2455 }
2456 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2457 display: flex;
2458 position: relative;
2459 padding-left: calc(var(--mwai-spacing) / 2);
2460 padding-right: calc(var(--mwai-spacing) / 2);
2461 padding-bottom: calc(var(--mwai-spacing) / 2);
2462 color: var(--mwai-conversationsTextColor);
2463 opacity: 0.65;
2464 align-items: center;
2465 }
2466 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2467 flex: 1;
2468 padding: 5px 10px;
2469 overflow: hidden;
2470 }
2471 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2472 display: block;
2473 overflow: hidden;
2474 text-overflow: ellipsis;
2475 white-space: nowrap;
2476 font-size: var(--mwai-fontSize);
2477 margin-bottom: 4px;
2478 }
2479 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2480 display: flex;
2481 gap: 12px;
2482 font-size: calc(var(--mwai-fontSize) * 0.85);
2483 opacity: 0.7;
2484 }
2485 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item {
2486 display: flex;
2487 align-items: center;
2488 gap: 4px;
2489 }
2490 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item svg {
2491 opacity: 0.6;
2492 }
2493 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2494 position: absolute;
2495 top: 50%;
2496 right: calc(var(--mwai-spacing) / 2);
2497 transform: translateY(-50%);
2498 opacity: 0;
2499 transition: opacity 0.2s ease-out;
2500 z-index: 100;
2501 }
2502 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2503 width: 28px;
2504 height: 28px;
2505 display: flex;
2506 align-items: center;
2507 justify-content: center;
2508 cursor: pointer;
2509 color: var(--mwai-conversationsTextColor);
2510 }
2511 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active {
2512 cursor: pointer;
2513 }
2514 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2515 background: var(--mwai-backgroundPrimaryColor);
2516 border-radius: var(--mwai-borderRadius);
2517 opacity: 1;
2518 }
2519 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover {
2520 cursor: pointer;
2521 }
2522 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2523 background: var(--mwai-backgroundPrimaryColor);
2524 border-radius: var(--mwai-borderRadius);
2525 opacity: 1;
2526 }
2527 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-actions {
2528 opacity: 1;
2529 }
2530 .mwai-messages-theme.mwai-discussions .mwai-discussion:has(.mwai-context-menu) .mwai-discussion-actions {
2531 opacity: 1;
2532 }
2533 .mwai-messages-theme.mwai-discussions .mwai-discussion:first-child {
2534 margin-top: calc(var(--mwai-spacing) / 2);
2535 }
2536 .mwai-messages-theme.mwai-discussions .mwai-header {
2537 color: var(--mwai-headerColor);
2538 padding: var(--mwai-spacing);
2539 display: flex;
2540 justify-content: space-between;
2541 align-items: center;
2542 gap: 10px;
2543 }
2544 .mwai-messages-theme.mwai-discussions .mwai-header button {
2545 background: var(--mwai-backgroundPrimaryColor);
2546 color: var(--mwai-fontColor);
2547 border: none;
2548 padding: 8px 16px;
2549 border-radius: var(--mwai-borderRadius);
2550 cursor: pointer;
2551 transition: all 0.2s ease-out;
2552 }
2553 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2554 background: var(--mwai-iconTextBackgroundColor);
2555 }
2556 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2557 opacity: 0.5;
2558 cursor: not-allowed;
2559 }
2560 .mwai-messages-theme.mwai-discussions .mwai-header .mwai-refresh-btn {
2561 padding: 8px;
2562 display: flex;
2563 align-items: center;
2564 justify-content: center;
2565 }
2566 .mwai-messages-theme.mwai-discussions .mwai-body {
2567 background: var(--mwai-conversationsBackgroundColor);
2568 list-style: none;
2569 padding: 0;
2570 margin: 0;
2571 position: relative;
2572 min-height: 200px;
2573 display: flex;
2574 flex-direction: column;
2575 border-radius: 0;
2576 z-index: 1;
2577 }
2578 .mwai-messages-theme.mwai-discussions .mwai-loading-overlay {
2579 position: absolute;
2580 top: 0;
2581 left: 0;
2582 right: 0;
2583 bottom: 0;
2584 background: var(--mwai-conversationsBackgroundColor);
2585 opacity: 0.9;
2586 display: flex;
2587 align-items: center;
2588 justify-content: center;
2589 z-index: 10;
2590 }
2591 .mwai-messages-theme.mwai-discussions .mwai-spinner {
2592 animation: spin 1s linear infinite;
2593 color: var(--mwai-fontColor);
2594 }
2595 @keyframes spin {
2596 from {
2597 transform: rotate(0deg);
2598 }
2599 to {
2600 transform: rotate(360deg);
2601 }
2602 }
2603 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2604 background: var(--mwai-backgroundHeaderColor);
2605 padding: var(--mwai-spacing);
2606 display: flex;
2607 justify-content: space-between;
2608 align-items: center;
2609 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2610 }
2611 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2612 background: var(--mwai-backgroundPrimaryColor);
2613 color: var(--mwai-fontColor);
2614 border: none;
2615 padding: 8px 12px;
2616 border-radius: var(--mwai-borderRadius);
2617 cursor: pointer;
2618 transition: all 0.2s ease-out;
2619 display: flex;
2620 align-items: center;
2621 justify-content: center;
2622 }
2623 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2624 background: var(--mwai-iconTextBackgroundColor);
2625 }
2626 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2627 opacity: 0.3;
2628 cursor: not-allowed;
2629 }
2630 .mwai-messages-theme.mwai-discussions .mwai-pagination span {
2631 color: var(--mwai-headerColor);
2632 font-size: var(--mwai-fontSize);
2633 font-weight: 500;
2634 }
2635 .mwai-messages-theme.mwai-discussions .mwai-pagination .mwai-page-indicator {
2636 color: var(--mwai-headerColor);
2637 font-size: calc(var(--mwai-fontSize) * 0.85);
2638 font-weight: 400;
2639 opacity: 0.8;
2640 }
2641 .mwai-messages-theme.mwai-discussions {
2642 background: var(--mwai-backgroundPrimaryColor);
2643 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2644 }
2645 .mwai-messages-theme.mwai-discussions .mwai-header {
2646 background: var(--mwai-backgroundAiColor);
2647 color: var(--mwai-fontColor);
2648 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2649 }
2650 .mwai-messages-theme.mwai-discussions .mwai-header button {
2651 background: var(--mwai-backgroundUserColor);
2652 color: white;
2653 padding: 8px 16px;
2654 border: none;
2655 border-radius: var(--mwai-borderRadius);
2656 cursor: pointer;
2657 transition: transform 0.15s ease-out;
2658 margin-left: 0;
2659 }
2660 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2661 background: var(--mwai-backgroundUserColor);
2662 transform: scale(1.03);
2663 }
2664 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2665 opacity: 0.5;
2666 cursor: not-allowed;
2667 transform: none;
2668 }
2669 .mwai-messages-theme.mwai-discussions .mwai-discussions-header {
2670 background: var(--mwai-backgroundAiColor);
2671 color: var(--mwai-fontColor);
2672 padding: var(--mwai-spacing);
2673 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2674 }
2675 .mwai-messages-theme.mwai-discussions .mwai-discussions-header .mwai-discussions-title {
2676 font-size: calc(var(--mwai-fontSize) * 1.2);
2677 font-weight: 600;
2678 }
2679 .mwai-messages-theme.mwai-discussions .mwai-discussions-list {
2680 background: var(--mwai-backgroundPrimaryColor);
2681 max-height: 300px;
2682 overflow-y: auto;
2683 }
2684 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar {
2685 width: 8px;
2686 background: transparent;
2687 }
2688 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-track {
2689 background: rgba(0, 0, 0, 0.05);
2690 border-radius: 4px;
2691 }
2692 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb {
2693 background: rgba(0, 0, 0, 0.15);
2694 border-radius: 4px;
2695 }
2696 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb:hover {
2697 background: rgba(0, 0, 0, 0.25);
2698 }
2699 .mwai-messages-theme.mwai-discussions .mwai-discussions-list {
2700 scrollbar-width: thin;
2701 scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
2702 }
2703 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2704 padding: 0;
2705 color: var(--mwai-fontColor);
2706 opacity: 1;
2707 border-bottom: none;
2708 transition: background 0.2s ease;
2709 }
2710 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2711 background: transparent;
2712 padding: 8px 12px;
2713 margin: 4px 8px;
2714 transition: all 0.2s ease;
2715 }
2716 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2717 color: var(--mwai-fontColor);
2718 font-weight: 500;
2719 }
2720 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2721 opacity: 0.6;
2722 color: var(--mwai-fontColor);
2723 }
2724 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2725 background: var(--mwai-backgroundAiColor);
2726 border-radius: 15px;
2727 }
2728 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2729 background: var(--mwai-backgroundUserColor);
2730 color: white;
2731 border-radius: 15px;
2732 opacity: 1;
2733 }
2734 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-title {
2735 color: white;
2736 }
2737 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-info {
2738 color: white;
2739 opacity: 0.8;
2740 }
2741 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2742 right: 18px;
2743 }
2744 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2745 color: var(--mwai-fontColor);
2746 background: var(--mwai-backgroundAiColor);
2747 border-radius: 50%;
2748 width: 24px;
2749 height: 24px;
2750 }
2751 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon:hover {
2752 background: var(--mwai-backgroundUserColor);
2753 color: white;
2754 }
2755 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-actions .mwai-menu-icon:hover {
2756 background: var(--mwai-backgroundAiColor);
2757 color: var(--mwai-backgroundUserColor);
2758 }
2759 .mwai-messages-theme.mwai-discussions .mwai-context-menu {
2760 background: var(--mwai-backgroundUserColor);
2761 border: 1px solid var(--mwai-backgroundUserColor);
2762 border-radius: 15px;
2763 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
2764 padding: 4px;
2765 }
2766 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item {
2767 padding: 8px 12px;
2768 color: white;
2769 border-radius: 12px;
2770 transition: all 0.2s ease;
2771 }
2772 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item:hover {
2773 background: rgba(255, 255, 255, 0.2);
2774 transform: translateX(2px);
2775 }
2776 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger {
2777 color: #ffcdd2;
2778 }
2779 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
2780 background: rgba(255, 100, 100, 0.2);
2781 color: white;
2782 }
2783 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2784 background: var(--mwai-backgroundAiColor);
2785 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2786 }
2787 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2788 background: var(--mwai-backgroundUserColor);
2789 color: white;
2790 padding: 8px 12px;
2791 border: none;
2792 border-radius: var(--mwai-borderRadius);
2793 cursor: pointer;
2794 transition: transform 0.15s ease-out;
2795 margin-left: 0;
2796 }
2797 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2798 background: var(--mwai-backgroundUserColor);
2799 transform: scale(1.03);
2800 }
2801 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2802 opacity: 0.5;
2803 cursor: not-allowed;
2804 transform: none;
2805 }
2806 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer,
2807 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination {
2808 padding: var(--mwai-spacing);
2809 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2810 background: var(--mwai-backgroundAiColor);
2811 }
2812 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button,
2813 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button {
2814 width: 100%;
2815 padding: 8px 16px;
2816 background: var(--mwai-backgroundUserColor);
2817 color: white;
2818 border: none;
2819 border-radius: var(--mwai-borderRadius);
2820 font-size: var(--mwai-fontSize);
2821 cursor: pointer;
2822 transition: transform 0.15s ease-out;
2823 }
2824 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:hover,
2825 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:hover {
2826 transform: scale(1.02);
2827 }
2828 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:disabled,
2829 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:disabled {
2830 opacity: 0.5;
2831 cursor: not-allowed;
2832 transform: none;
2833 }
2834
2835 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2836 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2837 }
2838 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2839 background: var(--mwai-backgroundAiSecondaryColor);
2840 }
2841 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2842 color: var(--mwai-backgroundPrimaryColor);
2843 background: var(--mwai-backgroundUserColor);
2844 }
2845 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover {
2846 color: var(--mwai-backgroundPrimaryColor) !important;
2847 background: var(--mwai-backgroundUserColor) !important;
2848 opacity: 0.8;
2849 }
2850 .mwai-messages-theme .mwai-realtime .mwai-controls button[disabled] {
2851 color: var(--mwai-backgroundPrimaryColor) !important;
2852 background: var(--mwai-backgroundUserColor) !important;
2853 opacity: 0.5;
2854 }
2855 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk {
2856 color: var(--mwai-backgroundPrimaryColor);
2857 background: var(--mwai-backgroundUserColor);
2858 }
2859 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:hover:not(:disabled) {
2860 color: var(--mwai-backgroundPrimaryColor) !important;
2861 background: var(--mwai-backgroundUserColor) !important;
2862 opacity: 0.8;
2863 }
2864 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:disabled {
2865 color: var(--mwai-backgroundPrimaryColor) !important;
2866 background: var(--mwai-backgroundUserColor) !important;
2867 opacity: 0.5;
2868 }
2869 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk.mwai-active {
2870 color: var(--mwai-backgroundPrimaryColor) !important;
2871 background: var(--mwai-backgroundUserColor) !important;
2872 opacity: 0.9;
2873 border: 2px solid var(--mwai-fontColor);
2874 }
2875 .mwai-messages-theme .mwai-reply-actions {
2876 top: -6px;
2877 right: -6px;
2878 }
2879 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button,
2880 .mwai-messages-theme .mwai-reply-actions .mwai-download-button,
2881 .mwai-messages-theme .mwai-reply-actions .mwai-pdf-button {
2882 padding-top: 4px;
2883 }
2884 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover,
2885 .mwai-messages-theme .mwai-reply-actions .mwai-download-button:hover,
2886 .mwai-messages-theme .mwai-reply-actions .mwai-pdf-button:hover {
2887 fill: var(--mwai-backgroundPrimaryColor);
2888 background: var(--mwai-backgroundUserColor);
2889 }
2890 .mwai-messages-theme .mwai-reply-actions .mwai-action-button {
2891 padding-top: 4px;
2892 }
2893 .mwai-messages-theme .mwai-reply-actions .mwai-action-button:hover {
2894 fill: var(--mwai-backgroundPrimaryColor);
2895 background: var(--mwai-backgroundUserColor);
2896 filter: none;
2897 }
2898 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
2899 fill: var(--mwai-backgroundPrimaryColor);
2900 background: var(--mwai-backgroundUserColor);
2901 filter: none;
2902 }
2903
2904 @media (max-width: 760px) {
2905 .mwai-messages-theme.mwai-window {
2906 width: calc(100% - 40px);
2907 z-index: 9999999999;
2908 }
2909 .mwai-messages-theme .mwai-input {
2910 flex-direction: column;
2911 padding: var(--mwai-spacing) var(--mwai-spacing) 0;
2912 }
2913 .mwai-messages-theme .mwai-input .mwai-input-text {
2914 width: 100%;
2915 margin-bottom: 10px;
2916 }
2917 .mwai-messages-theme .mwai-input .mwai-input-submit {
2918 position: relative !important;
2919 right: auto !important;
2920 top: auto !important;
2921 transform: none !important;
2922 width: 100% !important;
2923 height: 40px !important;
2924 margin: 0 !important;
2925 }
2926 }
2927
2928 .mwai-messages-theme .mwai-input .mwai-input-submit::before {
2929 content: "" !important;
2930 display: inline-block !important;
2931 z-index: 3;
2932 }
2933
2934 .mwai-messages-theme .mwai-footer {
2935 display: flex;
2936 align-items: center;
2937 background: var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2938 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2939 padding: 6px var(--mwai-spacing);
2940 }
2941 .mwai-messages-theme .mwai-footer:empty {
2942 display: none;
2943 }
2944 .mwai-messages-theme .mwai-footer:not(:has(.mwai-tools)):has(.mwai-compliance:empty) {
2945 display: none;
2946 }
2947 .mwai-messages-theme .mwai-footer .mwai-tools {
2948 display: flex;
2949 align-items: center;
2950 gap: 8px;
2951 margin-right: calc(var(--mwai-spacing) / 2);
2952 }
2953 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload {
2954 display: inline-block;
2955 }
2956 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide {
2957 display: inline-flex;
2958 align-items: center;
2959 justify-content: center;
2960 position: relative;
2961 min-width: 16px;
2962 height: 16px;
2963 color: var(--mwai-fontColor);
2964 opacity: 0.75;
2965 margin: 0;
2966 }
2967 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide:hover {
2968 opacity: 1;
2969 }
2970 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide svg {
2971 width: 16px;
2972 height: 16px;
2973 }
2974 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count {
2975 position: absolute;
2976 top: -5px;
2977 right: -6px;
2978 min-width: 12px;
2979 height: 12px;
2980 padding: 0 2px;
2981 border-radius: 999px;
2982 background: var(--mwai-backgroundHeaderColor);
2983 color: #fff;
2984 border: 2px solid var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2985 font-size: 8px;
2986 font-family: system-ui;
2987 font-weight: 700;
2988 line-height: 1;
2989 display: inline-flex;
2990 align-items: center;
2991 justify-content: center;
2992 user-select: none;
2993 cursor: pointer;
2994 }
2995 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count::after {
2996 content: attr(data-count);
2997 }
2998 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide.mwai-hover .mwai-upload-count::after {
2999 content: "-";
3000 }
3001 .mwai-messages-theme .mwai-footer .mwai-compliance {
3002 opacity: 0.5;
3003 font-size: 11px;
3004 line-height: 11px;
3005 color: var(--mwai-fontColor);
3006 flex: 1;
3007 text-align: left;
3008 padding: calc(var(--mwai-spacing) / 2) 0;
3009 margin: 0;
3010 }
3011 .mwai-messages-theme .mwai-footer .mwai-tools + .mwai-compliance {
3012 text-align: right;
3013 }
3014 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
3015 padding-bottom: calc(var(--mwai-spacing) * 1.5);
3016 }
3017 @media (max-width: 760px) {
3018 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
3019 padding-bottom: max(6px, env(safe-area-inset-bottom, 0));
3020 }
3021 }
3022
3023 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu {
3024 background: var(--mwai-backgroundPrimaryColor);
3025 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
3026 color: var(--mwai-fontColor);
3027 }
3028 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item {
3029 color: var(--mwai-fontColor);
3030 }
3031 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item:hover {
3032 background-color: var(--mwai-backgroundAiColor);
3033 }
3034 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger {
3035 color: #d32f2f;
3036 }
3037 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
3038 background-color: rgba(211, 47, 47, 0.1);
3039 color: #b71c1c;
3040 }
3041