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