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