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