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