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