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