PluginProbe ʕ •ᴥ•ʔ
AI Engine – The Chatbot, AI Framework & MCP for WordPress / 3.0.2
AI Engine – The Chatbot, AI Framework & MCP for WordPress v3.0.2
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
2939 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-backdrop {
1534 display: none;
1535 z-index: 0;
1536 pointer-events: none;
1537 }
1538 .mwai-messages-theme.mwai-window .mwai-window-box {
1539 position: relative;
1540 z-index: 1;
1541 }
1542 .mwai-messages-theme.mwai-window .mwai-header {
1543 display: none;
1544 justify-content: flex-end;
1545 align-items: center;
1546 border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0;
1547 background: var(--mwai-backgroundHeaderColor);
1548 }
1549 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons {
1550 display: flex;
1551 align-items: center;
1552 }
1553 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button {
1554 justify-content: center;
1555 height: 32px;
1556 width: 32px;
1557 cursor: pointer;
1558 display: flex;
1559 justify-content: center;
1560 align-items: center;
1561 }
1562 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before {
1563 transition: all 0.2s ease-out;
1564 content: " ";
1565 cursor: pointer;
1566 position: absolute;
1567 height: 13px;
1568 width: 13px;
1569 border: 1px solid var(--mwai-headerColor);
1570 }
1571 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1572 width: 16px;
1573 height: 16px;
1574 }
1575 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button {
1576 justify-content: center;
1577 height: 32px;
1578 width: 32px;
1579 cursor: pointer;
1580 border-radius: var(--mwai-borderRadius);
1581 margin-left: -10px;
1582 }
1583 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before {
1584 transition: all 0.2s ease-out;
1585 transform: translate(16px, 5px) rotate(45deg);
1586 }
1587 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
1588 transition: all 0.2s ease-out;
1589 transform: translate(16px, 5px) rotate(-45deg);
1590 }
1591 .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 {
1592 content: " ";
1593 cursor: pointer;
1594 position: absolute;
1595 height: 22px;
1596 width: 1px;
1597 background-color: var(--mwai-headerColor);
1598 }
1599 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before {
1600 opacity: 1;
1601 transform: translate(16px, 5px) rotate(135deg);
1602 }
1603 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after {
1604 opacity: 1;
1605 transform: translate(16px, 5px) rotate(45deg);
1606 }
1607 .mwai-messages-theme.mwai-window.mwai-opening, .mwai-messages-theme.mwai-window.mwai-closing {
1608 cursor: default !important;
1609 }
1610 .mwai-messages-theme.mwai-window.mwai-opening .mwai-header, .mwai-messages-theme.mwai-window.mwai-closing .mwai-header {
1611 cursor: default !important;
1612 }
1613 .mwai-messages-theme.mwai-window .mwai-body {
1614 display: none;
1615 opacity: 0;
1616 max-height: var(--mwai-maxHeight);
1617 border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius);
1618 }
1619 .mwai-messages-theme.mwai-window.mwai-bottom-left {
1620 bottom: 30px;
1621 right: inherit;
1622 left: 30px;
1623 }
1624 .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1625 right: inherit;
1626 left: 0;
1627 }
1628 .mwai-messages-theme.mwai-window.mwai-top-right {
1629 top: 30px;
1630 bottom: inherit;
1631 right: 30px;
1632 }
1633 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger {
1634 top: 0;
1635 bottom: inherit;
1636 }
1637 .mwai-messages-theme.mwai-window.mwai-top-left {
1638 top: 30px;
1639 bottom: inherit;
1640 right: inherit;
1641 left: 30px;
1642 }
1643 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1644 top: 0;
1645 bottom: inherit;
1646 right: inherit;
1647 left: 0;
1648 }
1649 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1650 top: 50%;
1651 left: 50%;
1652 transform: translate(-50%, -50%);
1653 right: inherit;
1654 bottom: inherit;
1655 }
1656 @media (max-width: 760px) {
1657 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1658 width: calc(100% - 40px);
1659 max-width: var(--mwai-width);
1660 }
1661 }
1662 .mwai-messages-theme.mwai-window.mwai-center-open .mwai-trigger {
1663 position: fixed !important;
1664 z-index: 10000;
1665 }
1666 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-bottom-right .mwai-trigger {
1667 bottom: 30px !important;
1668 right: 30px !important;
1669 left: auto !important;
1670 top: auto !important;
1671 }
1672 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-bottom-left .mwai-trigger {
1673 bottom: 30px !important;
1674 left: 30px !important;
1675 right: auto !important;
1676 top: auto !important;
1677 }
1678 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-top-right .mwai-trigger {
1679 top: 30px !important;
1680 right: 30px !important;
1681 left: auto !important;
1682 bottom: auto !important;
1683 }
1684 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-top-left .mwai-trigger {
1685 top: 30px !important;
1686 left: 30px !important;
1687 right: auto !important;
1688 bottom: auto !important;
1689 }
1690 .mwai-messages-theme.mwai-window.mwai-window-dragging .mwai-trigger {
1691 position: fixed !important;
1692 z-index: 10000;
1693 }
1694 .mwai-messages-theme.mwai-window.mwai-window-dragging.mwai-bottom-right .mwai-trigger {
1695 bottom: 30px !important;
1696 right: 30px !important;
1697 left: auto !important;
1698 top: auto !important;
1699 }
1700 .mwai-messages-theme.mwai-window.mwai-window-dragging.mwai-bottom-left .mwai-trigger {
1701 bottom: 30px !important;
1702 left: 30px !important;
1703 right: auto !important;
1704 top: auto !important;
1705 }
1706 .mwai-messages-theme.mwai-window.mwai-window-dragging.mwai-top-right .mwai-trigger {
1707 top: 30px !important;
1708 right: 30px !important;
1709 left: auto !important;
1710 bottom: auto !important;
1711 }
1712 .mwai-messages-theme.mwai-window.mwai-window-dragging.mwai-top-left .mwai-trigger {
1713 top: 30px !important;
1714 left: 30px !important;
1715 right: auto !important;
1716 bottom: auto !important;
1717 }
1718 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1719 align-items: flex-start;
1720 }
1721 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1722 flex-direction: column-reverse;
1723 }
1724 .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 {
1725 margin-bottom: 0;
1726 margin-top: 15px;
1727 }
1728 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons {
1729 margin-bottom: 0px;
1730 }
1731 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before {
1732 width: 16px;
1733 height: 16px;
1734 }
1735 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1736 width: 13px;
1737 height: 13px;
1738 }
1739 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) {
1740 position: fixed;
1741 left: 0 !important;
1742 right: 0 !important;
1743 bottom: 0 !important;
1744 top: 0 !important;
1745 width: 100%;
1746 height: 100%;
1747 height: 100vh;
1748 height: 100dvh;
1749 max-height: 100dvh;
1750 max-width: 100%;
1751 display: flex;
1752 flex-direction: column;
1753 margin: 0;
1754 z-index: 999999;
1755 background-color: var(--mwai-backgroundSecondaryColor);
1756 display: flex !important;
1757 visibility: visible !important;
1758 opacity: 1 !important;
1759 }
1760 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1761 border-radius: 0;
1762 }
1763 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1764 flex: 1;
1765 min-height: 0;
1766 max-height: inherit;
1767 border-radius: 0;
1768 display: flex !important;
1769 flex-direction: column !important;
1770 }
1771 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-conversation {
1772 flex: 0 1 auto !important;
1773 max-height: none;
1774 overflow-y: auto;
1775 min-height: 0;
1776 }
1777 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-fullscreen-spacer {
1778 flex: 1 1 auto !important;
1779 min-height: 0;
1780 }
1781 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-input {
1782 flex: 0 0 auto;
1783 }
1784 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-footer {
1785 flex: 0 0 auto;
1786 }
1787 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-files {
1788 flex: 0 0 auto;
1789 }
1790 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-window-box {
1791 width: 100%;
1792 height: 100%;
1793 display: flex;
1794 flex-direction: column;
1795 }
1796 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1797 display: flex !important;
1798 visibility: visible !important;
1799 opacity: 1 !important;
1800 flex: 0 0 auto;
1801 }
1802 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1803 display: flex !important;
1804 visibility: visible !important;
1805 opacity: 1 !important;
1806 flex: 1 1 auto;
1807 flex-direction: column;
1808 min-height: 0;
1809 height: 100%;
1810 }
1811 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open {
1812 position: fixed;
1813 left: 0 !important;
1814 right: 0 !important;
1815 bottom: 0 !important;
1816 top: 0 !important;
1817 width: 100%;
1818 height: 100%;
1819 height: 100vh;
1820 height: 100dvh;
1821 max-height: 100dvh;
1822 max-width: 100%;
1823 display: flex;
1824 flex-direction: column;
1825 margin: 0;
1826 z-index: 999999;
1827 background-color: var(--mwai-backgroundSecondaryColor);
1828 transform: none !important;
1829 }
1830 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-header {
1831 border-radius: 0;
1832 }
1833 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1834 flex: 1;
1835 min-height: 0;
1836 max-height: inherit;
1837 border-radius: 0;
1838 display: flex !important;
1839 flex-direction: column !important;
1840 }
1841 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-conversation {
1842 flex: 0 1 auto !important;
1843 max-height: none;
1844 overflow-y: auto;
1845 min-height: 0;
1846 }
1847 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-fullscreen-spacer {
1848 flex: 1 1 auto !important;
1849 min-height: 0;
1850 }
1851 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-input {
1852 flex: 0 0 auto;
1853 }
1854 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-footer {
1855 flex: 0 0 auto;
1856 }
1857 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-files {
1858 flex: 0 0 auto;
1859 }
1860 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-window-box {
1861 width: 100%;
1862 height: 100%;
1863 display: flex;
1864 flex-direction: column;
1865 }
1866 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1867 flex: 1 1 auto;
1868 min-height: 0;
1869 }
1870 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1871 display: flex;
1872 }
1873 .mwai-messages-theme.mwai-window.mwai-open .mwai-backdrop {
1874 display: block;
1875 position: fixed;
1876 top: 0;
1877 left: 0;
1878 right: 0;
1879 bottom: 0;
1880 background: rgba(0, 0, 0, 0.35);
1881 backdrop-filter: none;
1882 z-index: 0;
1883 pointer-events: none;
1884 }
1885 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
1886 display: flex;
1887 transition: opacity 200ms ease-in-out 0s;
1888 opacity: 1;
1889 }
1890 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
1891 display: none;
1892 }
1893 .mwai-messages-theme .mwai-body > .mwai-error {
1894 margin: var(--mwai-spacing);
1895 color: white;
1896 background: rgba(180, 55, 55, 0.55);
1897 padding: var(--mwai-spacing);
1898 border-radius: var(--mwai-borderRadius);
1899 }
1900 .mwai-messages-theme .mwai-body > .mwai-error:hover {
1901 cursor: pointer;
1902 background: rgba(180, 44, 44, 0.85);
1903 }
1904 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text {
1905 color: #ff5656;
1906 }
1907 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text a {
1908 color: #ff5656;
1909 text-decoration: underline;
1910 }
1911 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button {
1912 fill: var(--mwai-fontColor);
1913 padding: 3px 5px;
1914 width: 24px;
1915 height: 24px;
1916 background: var(--mwai-backgroundPrimaryColor);
1917 cursor: pointer;
1918 border-radius: 5px;
1919 }
1920 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
1921 filter: brightness(1.2);
1922 }
1923 .mwai-messages-theme .mwai-reply-actions {
1924 opacity: 0;
1925 transition: opacity 0.2s ease-in-out;
1926 }
1927 .mwai-messages-theme .mwai-reply:hover .mwai-reply-actions {
1928 opacity: 1 !important;
1929 }
1930 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions {
1931 opacity: 1 !important;
1932 }
1933 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions.mwai-hidden {
1934 opacity: 1 !important;
1935 }
1936 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container {
1937 background: var(--mwai-bubbleColor) !important;
1938 width: 60px !important;
1939 height: 60px !important;
1940 border-radius: 100% !important;
1941 transition: all 0.2s ease-out;
1942 display: flex !important;
1943 justify-content: center !important;
1944 align-items: center !important;
1945 }
1946 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon {
1947 max-width: 50% !important;
1948 max-height: 50% !important;
1949 filter: none !important;
1950 }
1951 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon:hover {
1952 transform: none !important;
1953 }
1954 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-emoji {
1955 font-size: 30px !important;
1956 }
1957 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container:hover {
1958 cursor: pointer;
1959 filter: brightness(1.1);
1960 }
1961 @media (max-width: 760px) {
1962 .mwai-messages-theme.mwai-window.mwai-open {
1963 position: fixed;
1964 top: 0 !important;
1965 left: 0 !important;
1966 right: 0 !important;
1967 bottom: 0 !important;
1968 width: 100%;
1969 min-height: 100%;
1970 min-height: 100vh;
1971 min-height: 100dvh;
1972 height: 100dvh;
1973 max-height: 100dvh;
1974 max-width: 100%;
1975 margin: 0;
1976 z-index: 999999;
1977 background-color: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
1978 border-radius: 0 !important;
1979 box-shadow: none !important;
1980 border: none !important;
1981 padding-top: env(safe-area-inset-top, 0);
1982 padding-left: env(safe-area-inset-left, 0);
1983 padding-right: env(safe-area-inset-right, 0);
1984 box-sizing: border-box;
1985 }
1986 .mwai-messages-theme.mwai-window.mwai-open .mwai-window-box {
1987 width: 100%;
1988 height: 100%;
1989 flex: 1;
1990 display: flex;
1991 flex-direction: column;
1992 border-radius: 0 !important;
1993 box-shadow: none !important;
1994 border: none !important;
1995 background: transparent !important;
1996 min-height: 0;
1997 }
1998 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1999 display: none !important;
2000 }
2001 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
2002 flex: 1;
2003 min-height: 0;
2004 display: flex;
2005 flex-direction: column;
2006 border-radius: 0 !important;
2007 overflow: hidden;
2008 background: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
2009 }
2010 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
2011 flex: 1;
2012 overflow-y: auto;
2013 max-height: none;
2014 min-height: 0;
2015 }
2016 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-input {
2017 flex-shrink: 0;
2018 position: relative;
2019 }
2020 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-footer {
2021 flex-shrink: 0;
2022 position: relative;
2023 }
2024 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-body:last-child .mwai-input {
2025 padding-bottom: env(safe-area-inset-bottom, 0);
2026 }
2027 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header {
2028 display: flex;
2029 position: sticky;
2030 top: 0;
2031 left: 0;
2032 right: 0;
2033 min-height: 50px;
2034 background: var(--mwai-backgroundHeaderColor);
2035 border-bottom: 1px solid var(--mwai-lineColor);
2036 padding: 0 15px;
2037 padding-top: env(safe-area-inset-top, 0);
2038 padding-left: calc(15px + env(safe-area-inset-left, 0));
2039 padding-right: calc(15px + env(safe-area-inset-right, 0));
2040 align-items: center;
2041 justify-content: space-between;
2042 z-index: 10;
2043 flex-shrink: 0;
2044 }
2045 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-title {
2046 font-size: 16px;
2047 font-weight: 600;
2048 color: var(--mwai-headerColor);
2049 flex: 1;
2050 overflow: hidden;
2051 text-overflow: ellipsis;
2052 white-space: nowrap;
2053 }
2054 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close {
2055 all: unset;
2056 display: flex;
2057 align-items: center;
2058 justify-content: center;
2059 width: 32px;
2060 height: 32px;
2061 min-width: 32px;
2062 cursor: pointer;
2063 border-radius: 6px;
2064 transition: background-color 0.2s ease;
2065 -webkit-tap-highlight-color: transparent;
2066 }
2067 .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 {
2068 background-color: var(--mwai-backgroundSecondaryColor);
2069 }
2070 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg {
2071 width: 20px;
2072 height: 20px;
2073 }
2074 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg path {
2075 stroke: var(--mwai-headerColor);
2076 }
2077 .mwai-messages-theme.mwai-window.mwai-open.mwai-center-open {
2078 top: 0 !important;
2079 left: 0 !important;
2080 transform: none !important;
2081 right: 0 !important;
2082 bottom: 0 !important;
2083 width: 100% !important;
2084 max-width: 100% !important;
2085 height: 100dvh !important;
2086 }
2087 .mwai-messages-theme.mwai-window.mwai-open .mwai-input {
2088 flex-direction: column;
2089 }
2090 .mwai-messages-theme.mwai-window.mwai-open .mwai-input button {
2091 font-size: 16px;
2092 margin-left: 0;
2093 width: 100%;
2094 }
2095 .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text {
2096 width: 100%;
2097 }
2098 .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 {
2099 font-size: 16px;
2100 }
2101 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
2102 display: flex;
2103 transition: opacity 200ms ease-in-out 0s;
2104 opacity: 1;
2105 flex: 1;
2106 min-height: 0;
2107 max-height: inherit;
2108 }
2109 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
2110 flex: 1;
2111 max-height: none;
2112 min-height: 0;
2113 }
2114 .mwai-messages-theme.mwai-window.mwai-open .mwai-resize-button {
2115 display: none !important;
2116 }
2117 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
2118 display: none;
2119 }
2120 }
2121 @keyframes mwai-button-spinner {
2122 from {
2123 transform: rotate(0turn);
2124 }
2125 to {
2126 transform: rotate(1turn);
2127 }
2128 }
2129 .mwai-messages-theme button:not(.mwai-busy):before {
2130 content: none !important;
2131 display: none !important;
2132 animation: none !important;
2133 }
2134 .mwai-messages-theme .admin-bar .mwai-fullscreen:not(.mwai-window),
2135 .mwai-messages-theme .admin-bar .mwai-fullscreen.mwai-window.mwai-open {
2136 top: 32px;
2137 }
2138 .mwai-messages-theme .mwai-input .mwai-terminal-line {
2139 display: flex;
2140 align-items: flex-start;
2141 color: var(--mwai-terminal-active-color, var(--mwai-fontColor));
2142 }
2143 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt {
2144 color: var(--mwai-terminal-active-color, currentColor);
2145 margin-left: -4px;
2146 margin-right: 4px;
2147 display: inline-flex;
2148 align-items: center;
2149 height: 1.5em;
2150 line-height: 1.2;
2151 flex-shrink: 0;
2152 align-self: flex-start;
2153 }
2154 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt svg {
2155 display: block;
2156 width: 1.4em;
2157 height: 1.4em;
2158 }
2159 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-input-wrapper {
2160 flex: 1;
2161 display: inline;
2162 white-space: pre-wrap;
2163 word-wrap: break-word;
2164 word-break: break-word;
2165 }
2166 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-typed {
2167 white-space: pre-wrap;
2168 word-wrap: break-word;
2169 word-break: break-word;
2170 }
2171 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor {
2172 display: inline-block;
2173 width: 8px;
2174 height: 16px;
2175 background: currentColor;
2176 vertical-align: text-bottom;
2177 margin-left: 2px;
2178 transition: opacity 0.2s ease;
2179 opacity: 0.35;
2180 animation: none;
2181 }
2182 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-active {
2183 opacity: 1;
2184 animation: mwai-caret-blink 1s steps(2, start) infinite;
2185 }
2186 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-typing {
2187 opacity: 1;
2188 animation: none;
2189 }
2190 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-inactive {
2191 opacity: 0.35;
2192 animation: none;
2193 }
2194 .mwai-messages-theme pre code.hljs {
2195 display: block;
2196 overflow-x: auto;
2197 padding: 1em;
2198 }
2199 .mwai-messages-theme code.hljs {
2200 padding: 3px 5px;
2201 }
2202 .mwai-messages-theme .hljs {
2203 color: #333;
2204 background: #f0f0f0;
2205 }
2206 .mwai-messages-theme .hljs-subst {
2207 color: #333;
2208 }
2209 .mwai-messages-theme .hljs-comment {
2210 color: #888;
2211 }
2212 .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 {
2213 color: #0077cc;
2214 }
2215 .mwai-messages-theme .hljs-attribute {
2216 color: #aa3377;
2217 }
2218 .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 {
2219 color: #c18401;
2220 }
2221 .mwai-messages-theme .hljs-selector-class {
2222 color: #0077cc;
2223 }
2224 .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 {
2225 color: #689700;
2226 }
2227 .mwai-messages-theme .hljs-meta, .mwai-messages-theme .hljs-selector-pseudo {
2228 color: #0077cc;
2229 }
2230 .mwai-messages-theme .hljs-built_in, .mwai-messages-theme .hljs-literal, .mwai-messages-theme .hljs-title {
2231 color: #c18401;
2232 }
2233 .mwai-messages-theme .hljs-bullet, .mwai-messages-theme .hljs-code {
2234 color: #555;
2235 }
2236 .mwai-messages-theme .hljs-meta .hljs-string {
2237 color: #689700;
2238 }
2239 .mwai-messages-theme .hljs-deletion {
2240 color: #b71c1c;
2241 }
2242 .mwai-messages-theme .hljs-addition {
2243 color: #1b5e20;
2244 }
2245 .mwai-messages-theme .hljs-emphasis {
2246 font-style: italic;
2247 }
2248 .mwai-messages-theme .hljs-strong {
2249 font-weight: 700;
2250 }
2251 .mwai-messages-theme .mwai-reply-actions {
2252 position: absolute;
2253 border-radius: 5px;
2254 top: 10px;
2255 right: 10px;
2256 display: flex;
2257 align-items: center;
2258 padding: 2px 2px;
2259 z-index: 100;
2260 background: var(--mwai-backgroundPrimaryColor);
2261 box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
2262 z-index: 100;
2263 }
2264 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button {
2265 fill: var(--mwai-fontColor);
2266 padding: 3px 5px;
2267 width: 24px;
2268 height: 24px;
2269 background: var(--mwai-backgroundPrimaryColor);
2270 cursor: pointer;
2271 border-radius: 5px;
2272 }
2273 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover {
2274 filter: brightness(1.2);
2275 }
2276 .mwai-messages-theme .mwai-reply-actions.mwai-hidden {
2277 opacity: 0;
2278 }
2279 .mwai-messages-theme .mwai-realtime {
2280 padding: var(--mwai-spacing);
2281 }
2282 .mwai-messages-theme .mwai-realtime .mwai-visualizer {
2283 display: flex;
2284 justify-content: center;
2285 align-items: center;
2286 }
2287 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2288 width: 100px;
2289 margin-right: var(--mwai-spacing);
2290 margin-left: var(--mwai-spacing);
2291 border: 1px solid var(--mwai-backgroundPrimaryColor);
2292 }
2293 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2294 background: var(--mwai-backgroundPrimaryColor);
2295 }
2296 .mwai-messages-theme .mwai-realtime .mwai-controls {
2297 display: flex;
2298 justify-content: center;
2299 align-items: center;
2300 margin-bottom: var(--mwai-spacing);
2301 }
2302 .mwai-messages-theme .mwai-realtime .mwai-controls > * + * {
2303 margin-left: 10px;
2304 }
2305 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2306 border-radius: 100%;
2307 width: 50px;
2308 height: 50px;
2309 margin: 5px;
2310 padding: 5px;
2311 display: flex;
2312 align-items: center;
2313 justify-content: center;
2314 color: var(--mwai-fontColor);
2315 border: 2px solid var(--mwai-backgroundPrimaryColor);
2316 background: none;
2317 cursor: pointer;
2318 transition: all 0.2s ease-out;
2319 min-width: inherit;
2320 max-width: inherit;
2321 }
2322 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover:not(:disabled) {
2323 background: var(--mwai-backgroundPrimaryColor);
2324 }
2325 .mwai-messages-theme .mwai-realtime .mwai-controls button:disabled {
2326 opacity: 0.5;
2327 cursor: not-allowed;
2328 background: none;
2329 }
2330 .mwai-messages-theme .mwai-realtime .mwai-controls button.mwai-active {
2331 border: 2px solid var(--mwai-fontColor);
2332 }
2333 .mwai-messages-theme .mwai-realtime .mwai-last-transcript {
2334 margin: var(--mwai-spacing);
2335 margin-top: 0;
2336 border: 2px solid var(--mwai-backgroundPrimaryColor);
2337 padding: calc(var(--mwai-spacing) / 2);
2338 border-radius: var(--mwai-borderRadius);
2339 display: flex;
2340 justify-content: center;
2341 font-size: 80%;
2342 }
2343 .mwai-messages-theme .mwai-realtime .mwai-statistics {
2344 display: grid;
2345 grid-template-columns: 1fr 1fr 1fr;
2346 grid-row-gap: 10px;
2347 font-size: 14px;
2348 }
2349 .mwai-messages-theme .mwai-realtime .mwai-statistics div {
2350 display: flex;
2351 flex-direction: column;
2352 align-items: center;
2353 }
2354 .mwai-messages-theme .mwai-realtime .mwai-statistics label {
2355 font-size: 11px;
2356 opacity: 0.5;
2357 text-transform: uppercase;
2358 }
2359 .mwai-messages-theme .mwai-realtime .mwai-options {
2360 margin-top: var(--mwai-spacing);
2361 display: flex;
2362 align-items: center;
2363 }
2364 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option {
2365 cursor: pointer;
2366 opacity: 0.5;
2367 margin-right: 2px;
2368 }
2369 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option.mwai-active {
2370 opacity: 1;
2371 }
2372 .mwai-messages-theme.mwai-discussions {
2373 border-radius: var(--mwai-borderRadius);
2374 background: var(--mwai-backgroundHeaderColor);
2375 overflow: hidden;
2376 }
2377 .mwai-messages-theme.mwai-discussions * {
2378 box-sizing: border-box;
2379 }
2380 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2381 display: flex;
2382 position: relative;
2383 padding-left: calc(var(--mwai-spacing) / 2);
2384 padding-right: calc(var(--mwai-spacing) / 2);
2385 padding-bottom: calc(var(--mwai-spacing) / 2);
2386 color: var(--mwai-conversationsTextColor);
2387 opacity: 0.65;
2388 align-items: center;
2389 }
2390 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2391 flex: 1;
2392 padding: 5px 10px;
2393 overflow: hidden;
2394 }
2395 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2396 display: block;
2397 overflow: hidden;
2398 text-overflow: ellipsis;
2399 white-space: nowrap;
2400 font-size: var(--mwai-fontSize);
2401 margin-bottom: 4px;
2402 }
2403 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2404 display: flex;
2405 gap: 12px;
2406 font-size: calc(var(--mwai-fontSize) * 0.85);
2407 opacity: 0.7;
2408 }
2409 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item {
2410 display: flex;
2411 align-items: center;
2412 gap: 4px;
2413 }
2414 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item svg {
2415 opacity: 0.6;
2416 }
2417 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2418 position: absolute;
2419 top: 50%;
2420 right: calc(var(--mwai-spacing) / 2);
2421 transform: translateY(-50%);
2422 opacity: 0;
2423 transition: opacity 0.2s ease-out;
2424 z-index: 100;
2425 }
2426 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2427 width: 28px;
2428 height: 28px;
2429 display: flex;
2430 align-items: center;
2431 justify-content: center;
2432 cursor: pointer;
2433 color: var(--mwai-conversationsTextColor);
2434 }
2435 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active {
2436 cursor: pointer;
2437 }
2438 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2439 background: var(--mwai-backgroundPrimaryColor);
2440 border-radius: var(--mwai-borderRadius);
2441 opacity: 1;
2442 }
2443 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover {
2444 cursor: pointer;
2445 }
2446 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2447 background: var(--mwai-backgroundPrimaryColor);
2448 border-radius: var(--mwai-borderRadius);
2449 opacity: 1;
2450 }
2451 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-actions {
2452 opacity: 1;
2453 }
2454 .mwai-messages-theme.mwai-discussions .mwai-discussion:has(.mwai-context-menu) .mwai-discussion-actions {
2455 opacity: 1;
2456 }
2457 .mwai-messages-theme.mwai-discussions .mwai-discussion:first-child {
2458 margin-top: calc(var(--mwai-spacing) / 2);
2459 }
2460 .mwai-messages-theme.mwai-discussions .mwai-header {
2461 color: var(--mwai-headerColor);
2462 padding: var(--mwai-spacing);
2463 display: flex;
2464 justify-content: space-between;
2465 align-items: center;
2466 gap: 10px;
2467 }
2468 .mwai-messages-theme.mwai-discussions .mwai-header button {
2469 background: var(--mwai-backgroundPrimaryColor);
2470 color: var(--mwai-fontColor);
2471 border: none;
2472 padding: 8px 16px;
2473 border-radius: var(--mwai-borderRadius);
2474 cursor: pointer;
2475 transition: all 0.2s ease-out;
2476 }
2477 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2478 background: var(--mwai-iconTextBackgroundColor);
2479 }
2480 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2481 opacity: 0.5;
2482 cursor: not-allowed;
2483 }
2484 .mwai-messages-theme.mwai-discussions .mwai-header .mwai-refresh-btn {
2485 padding: 8px;
2486 display: flex;
2487 align-items: center;
2488 justify-content: center;
2489 }
2490 .mwai-messages-theme.mwai-discussions .mwai-body {
2491 background: var(--mwai-conversationsBackgroundColor);
2492 list-style: none;
2493 padding: 0;
2494 margin: 0;
2495 position: relative;
2496 min-height: 200px;
2497 display: flex;
2498 flex-direction: column;
2499 border-radius: 0;
2500 z-index: 1;
2501 }
2502 .mwai-messages-theme.mwai-discussions .mwai-loading-overlay {
2503 position: absolute;
2504 top: 0;
2505 left: 0;
2506 right: 0;
2507 bottom: 0;
2508 background: var(--mwai-conversationsBackgroundColor);
2509 opacity: 0.9;
2510 display: flex;
2511 align-items: center;
2512 justify-content: center;
2513 z-index: 10;
2514 }
2515 .mwai-messages-theme.mwai-discussions .mwai-spinner {
2516 animation: spin 1s linear infinite;
2517 color: var(--mwai-fontColor);
2518 }
2519 @keyframes spin {
2520 from {
2521 transform: rotate(0deg);
2522 }
2523 to {
2524 transform: rotate(360deg);
2525 }
2526 }
2527 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2528 background: var(--mwai-backgroundHeaderColor);
2529 padding: var(--mwai-spacing);
2530 display: flex;
2531 justify-content: space-between;
2532 align-items: center;
2533 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2534 }
2535 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2536 background: var(--mwai-backgroundPrimaryColor);
2537 color: var(--mwai-fontColor);
2538 border: none;
2539 padding: 8px 12px;
2540 border-radius: var(--mwai-borderRadius);
2541 cursor: pointer;
2542 transition: all 0.2s ease-out;
2543 display: flex;
2544 align-items: center;
2545 justify-content: center;
2546 }
2547 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2548 background: var(--mwai-iconTextBackgroundColor);
2549 }
2550 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2551 opacity: 0.3;
2552 cursor: not-allowed;
2553 }
2554 .mwai-messages-theme.mwai-discussions .mwai-pagination span {
2555 color: var(--mwai-headerColor);
2556 font-size: var(--mwai-fontSize);
2557 font-weight: 500;
2558 }
2559 .mwai-messages-theme.mwai-discussions .mwai-pagination .mwai-page-indicator {
2560 color: var(--mwai-headerColor);
2561 font-size: calc(var(--mwai-fontSize) * 0.85);
2562 font-weight: 400;
2563 opacity: 0.8;
2564 }
2565 .mwai-messages-theme.mwai-discussions {
2566 background: var(--mwai-backgroundPrimaryColor);
2567 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2568 }
2569 .mwai-messages-theme.mwai-discussions .mwai-header {
2570 background: var(--mwai-backgroundAiColor);
2571 color: var(--mwai-fontColor);
2572 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2573 }
2574 .mwai-messages-theme.mwai-discussions .mwai-header button {
2575 background: var(--mwai-backgroundUserColor);
2576 color: white;
2577 padding: 8px 16px;
2578 border: none;
2579 border-radius: var(--mwai-borderRadius);
2580 cursor: pointer;
2581 transition: transform 0.15s ease-out;
2582 margin-left: 0;
2583 }
2584 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2585 background: var(--mwai-backgroundUserColor);
2586 transform: scale(1.03);
2587 }
2588 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2589 opacity: 0.5;
2590 cursor: not-allowed;
2591 transform: none;
2592 }
2593 .mwai-messages-theme.mwai-discussions .mwai-discussions-header {
2594 background: var(--mwai-backgroundAiColor);
2595 color: var(--mwai-fontColor);
2596 padding: var(--mwai-spacing);
2597 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2598 }
2599 .mwai-messages-theme.mwai-discussions .mwai-discussions-header .mwai-discussions-title {
2600 font-size: calc(var(--mwai-fontSize) * 1.2);
2601 font-weight: 600;
2602 }
2603 .mwai-messages-theme.mwai-discussions .mwai-discussions-list {
2604 background: var(--mwai-backgroundPrimaryColor);
2605 max-height: 300px;
2606 overflow-y: auto;
2607 scrollbar-width: thin;
2608 scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
2609 }
2610 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar {
2611 width: 8px;
2612 background: transparent;
2613 }
2614 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-track {
2615 background: rgba(0, 0, 0, 0.05);
2616 border-radius: 4px;
2617 }
2618 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb {
2619 background: rgba(0, 0, 0, 0.15);
2620 border-radius: 4px;
2621 }
2622 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb:hover {
2623 background: rgba(0, 0, 0, 0.25);
2624 }
2625 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2626 padding: 0;
2627 color: var(--mwai-fontColor);
2628 opacity: 1;
2629 border-bottom: none;
2630 transition: background 0.2s ease;
2631 }
2632 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2633 background: transparent;
2634 padding: 8px 12px;
2635 margin: 4px 8px;
2636 transition: all 0.2s ease;
2637 }
2638 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2639 color: var(--mwai-fontColor);
2640 font-weight: 500;
2641 }
2642 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2643 opacity: 0.6;
2644 color: var(--mwai-fontColor);
2645 }
2646 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2647 background: var(--mwai-backgroundAiColor);
2648 border-radius: 15px;
2649 }
2650 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2651 background: var(--mwai-backgroundUserColor);
2652 color: white;
2653 border-radius: 15px;
2654 opacity: 1;
2655 }
2656 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-title {
2657 color: white;
2658 }
2659 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-info {
2660 color: white;
2661 opacity: 0.8;
2662 }
2663 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2664 right: 18px;
2665 }
2666 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2667 color: var(--mwai-fontColor);
2668 background: var(--mwai-backgroundAiColor);
2669 border-radius: 50%;
2670 width: 24px;
2671 height: 24px;
2672 }
2673 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon:hover {
2674 background: var(--mwai-backgroundUserColor);
2675 color: white;
2676 }
2677 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-actions .mwai-menu-icon:hover {
2678 background: var(--mwai-backgroundAiColor);
2679 color: var(--mwai-backgroundUserColor);
2680 }
2681 .mwai-messages-theme.mwai-discussions .mwai-context-menu {
2682 background: var(--mwai-backgroundUserColor);
2683 border: 1px solid var(--mwai-backgroundUserColor);
2684 border-radius: 15px;
2685 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
2686 padding: 4px;
2687 }
2688 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item {
2689 padding: 8px 12px;
2690 color: white;
2691 border-radius: 12px;
2692 transition: all 0.2s ease;
2693 }
2694 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item:hover {
2695 background: rgba(255, 255, 255, 0.2);
2696 transform: translateX(2px);
2697 }
2698 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger {
2699 color: #ffcdd2;
2700 }
2701 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
2702 background: rgba(255, 100, 100, 0.2);
2703 color: white;
2704 }
2705 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2706 background: var(--mwai-backgroundAiColor);
2707 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2708 }
2709 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2710 background: var(--mwai-backgroundUserColor);
2711 color: white;
2712 padding: 8px 12px;
2713 border: none;
2714 border-radius: var(--mwai-borderRadius);
2715 cursor: pointer;
2716 transition: transform 0.15s ease-out;
2717 margin-left: 0;
2718 }
2719 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2720 background: var(--mwai-backgroundUserColor);
2721 transform: scale(1.03);
2722 }
2723 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2724 opacity: 0.5;
2725 cursor: not-allowed;
2726 transform: none;
2727 }
2728 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer,
2729 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination {
2730 padding: var(--mwai-spacing);
2731 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2732 background: var(--mwai-backgroundAiColor);
2733 }
2734 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button,
2735 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button {
2736 width: 100%;
2737 padding: 8px 16px;
2738 background: var(--mwai-backgroundUserColor);
2739 color: white;
2740 border: none;
2741 border-radius: var(--mwai-borderRadius);
2742 font-size: var(--mwai-fontSize);
2743 cursor: pointer;
2744 transition: transform 0.15s ease-out;
2745 }
2746 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:hover,
2747 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:hover {
2748 transform: scale(1.02);
2749 }
2750 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:disabled,
2751 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:disabled {
2752 opacity: 0.5;
2753 cursor: not-allowed;
2754 transform: none;
2755 }
2756
2757 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2758 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2759 }
2760 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2761 background: var(--mwai-backgroundAiSecondaryColor);
2762 }
2763 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2764 color: var(--mwai-backgroundPrimaryColor);
2765 background: var(--mwai-backgroundUserColor);
2766 }
2767 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover {
2768 color: var(--mwai-backgroundPrimaryColor) !important;
2769 background: var(--mwai-backgroundUserColor) !important;
2770 opacity: 0.8;
2771 }
2772 .mwai-messages-theme .mwai-realtime .mwai-controls button[disabled] {
2773 color: var(--mwai-backgroundPrimaryColor) !important;
2774 background: var(--mwai-backgroundUserColor) !important;
2775 opacity: 0.5;
2776 }
2777 .mwai-messages-theme .mwai-reply-actions {
2778 top: -6px;
2779 right: -6px;
2780 }
2781 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button {
2782 padding-top: 4px;
2783 }
2784 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover {
2785 fill: var(--mwai-backgroundPrimaryColor);
2786 background: var(--mwai-backgroundUserColor);
2787 }
2788 .mwai-messages-theme .mwai-reply-actions .mwai-action-button {
2789 padding-top: 4px;
2790 }
2791 .mwai-messages-theme .mwai-reply-actions .mwai-action-button:hover {
2792 fill: var(--mwai-backgroundPrimaryColor);
2793 background: var(--mwai-backgroundUserColor);
2794 filter: none;
2795 }
2796 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
2797 fill: var(--mwai-backgroundPrimaryColor);
2798 background: var(--mwai-backgroundUserColor);
2799 filter: none;
2800 }
2801
2802 @media (max-width: 760px) {
2803 .mwai-messages-theme.mwai-window {
2804 width: calc(100% - 40px);
2805 z-index: 9999999999;
2806 }
2807 .mwai-messages-theme .mwai-input {
2808 flex-direction: column;
2809 padding: var(--mwai-spacing) var(--mwai-spacing) 0;
2810 }
2811 .mwai-messages-theme .mwai-input .mwai-input-text {
2812 width: 100%;
2813 margin-bottom: 10px;
2814 }
2815 .mwai-messages-theme .mwai-input .mwai-input-submit {
2816 position: relative !important;
2817 right: auto !important;
2818 top: auto !important;
2819 transform: none !important;
2820 width: 100% !important;
2821 height: 40px !important;
2822 margin: 0 !important;
2823 }
2824 }
2825
2826 .mwai-messages-theme .mwai-input .mwai-input-submit::before {
2827 content: "" !important;
2828 display: inline-block !important;
2829 z-index: 3;
2830 }
2831
2832 .mwai-messages-theme .mwai-footer {
2833 display: flex;
2834 align-items: center;
2835 background: var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2836 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2837 padding: 6px var(--mwai-spacing);
2838 }
2839 .mwai-messages-theme .mwai-footer:empty {
2840 display: none;
2841 }
2842 .mwai-messages-theme .mwai-footer:not(:has(.mwai-tools)):has(.mwai-compliance:empty) {
2843 display: none;
2844 }
2845 .mwai-messages-theme .mwai-footer .mwai-tools {
2846 display: flex;
2847 align-items: center;
2848 gap: 8px;
2849 margin-right: calc(var(--mwai-spacing) / 2);
2850 }
2851 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload {
2852 display: inline-block;
2853 }
2854 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide {
2855 display: inline-flex;
2856 align-items: center;
2857 justify-content: center;
2858 position: relative;
2859 min-width: 16px;
2860 height: 16px;
2861 color: var(--mwai-fontColor);
2862 opacity: 0.75;
2863 margin: 0;
2864 }
2865 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide:hover {
2866 opacity: 1;
2867 }
2868 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide svg {
2869 width: 16px;
2870 height: 16px;
2871 }
2872 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count {
2873 position: absolute;
2874 top: -5px;
2875 right: -6px;
2876 min-width: 12px;
2877 height: 12px;
2878 padding: 0 2px;
2879 border-radius: 999px;
2880 background: var(--mwai-backgroundHeaderColor);
2881 color: #fff;
2882 border: 2px solid var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2883 font-size: 8px;
2884 font-family: system-ui;
2885 font-weight: 700;
2886 line-height: 1;
2887 display: inline-flex;
2888 align-items: center;
2889 justify-content: center;
2890 user-select: none;
2891 cursor: pointer;
2892 }
2893 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count::after {
2894 content: attr(data-count);
2895 }
2896 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide.mwai-hover .mwai-upload-count::after {
2897 content: "-";
2898 }
2899 .mwai-messages-theme .mwai-footer .mwai-compliance {
2900 opacity: 0.5;
2901 font-size: 11px;
2902 line-height: 11px;
2903 color: var(--mwai-fontColor);
2904 flex: 1;
2905 text-align: left;
2906 padding: calc(var(--mwai-spacing) / 2) 0;
2907 margin: 0;
2908 }
2909 .mwai-messages-theme .mwai-footer .mwai-tools + .mwai-compliance {
2910 text-align: right;
2911 }
2912 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
2913 padding-bottom: calc(var(--mwai-spacing) * 1.5);
2914 }
2915 @media (max-width: 760px) {
2916 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
2917 padding-bottom: max(6px, env(safe-area-inset-bottom, 0));
2918 }
2919 }
2920
2921 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu {
2922 background: var(--mwai-backgroundPrimaryColor);
2923 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2924 color: var(--mwai-fontColor);
2925 }
2926 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item {
2927 color: var(--mwai-fontColor);
2928 }
2929 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item:hover {
2930 background-color: var(--mwai-backgroundAiColor);
2931 }
2932 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger {
2933 color: #d32f2f;
2934 }
2935 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
2936 background-color: rgba(211, 47, 47, 0.1);
2937 color: #b71c1c;
2938 }
2939