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