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