PluginProbe ʕ •ᴥ•ʔ
AI Engine – The Chatbot, AI Framework & MCP for WordPress / 3.2.9
AI Engine – The Chatbot, AI Framework & MCP for WordPress v3.2.9
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 7 months ago messages.css 7 months ago timeless.css 7 months ago
messages.css
2965 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: flex-end;
1546 align-items: center;
1547 border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0;
1548 background: var(--mwai-backgroundHeaderColor);
1549 }
1550 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons {
1551 display: flex;
1552 align-items: center;
1553 }
1554 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button {
1555 justify-content: center;
1556 height: 32px;
1557 width: 32px;
1558 cursor: pointer;
1559 display: flex;
1560 justify-content: center;
1561 align-items: center;
1562 }
1563 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before {
1564 transition: all 0.2s ease-out;
1565 content: " ";
1566 cursor: pointer;
1567 position: absolute;
1568 height: 13px;
1569 width: 13px;
1570 border: 1px solid var(--mwai-headerColor);
1571 }
1572 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1573 width: 16px;
1574 height: 16px;
1575 }
1576 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button {
1577 justify-content: center;
1578 height: 32px;
1579 width: 32px;
1580 cursor: pointer;
1581 border-radius: var(--mwai-borderRadius);
1582 margin-left: -10px;
1583 }
1584 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before {
1585 transition: all 0.2s ease-out;
1586 transform: translate(16px, 5px) rotate(45deg);
1587 }
1588 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
1589 transition: all 0.2s ease-out;
1590 transform: translate(16px, 5px) rotate(-45deg);
1591 }
1592 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
1593 content: " ";
1594 cursor: pointer;
1595 position: absolute;
1596 height: 22px;
1597 width: 1px;
1598 background-color: var(--mwai-headerColor);
1599 }
1600 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before {
1601 opacity: 1;
1602 transform: translate(16px, 5px) rotate(135deg);
1603 }
1604 .mwai-messages-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after {
1605 opacity: 1;
1606 transform: translate(16px, 5px) rotate(45deg);
1607 }
1608 .mwai-messages-theme.mwai-window.mwai-opening, .mwai-messages-theme.mwai-window.mwai-closing {
1609 cursor: default !important;
1610 }
1611 .mwai-messages-theme.mwai-window.mwai-opening .mwai-header, .mwai-messages-theme.mwai-window.mwai-closing .mwai-header {
1612 cursor: default !important;
1613 }
1614 .mwai-messages-theme.mwai-window .mwai-body {
1615 display: none;
1616 opacity: 0;
1617 max-height: var(--mwai-maxHeight);
1618 border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius);
1619 }
1620 .mwai-messages-theme.mwai-window.mwai-bottom-left {
1621 bottom: 30px;
1622 right: inherit;
1623 left: 30px;
1624 }
1625 .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1626 right: inherit;
1627 left: 0;
1628 }
1629 .mwai-messages-theme.mwai-window.mwai-top-right {
1630 top: 30px;
1631 bottom: inherit;
1632 right: 30px;
1633 }
1634 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger {
1635 top: 0;
1636 bottom: inherit;
1637 }
1638 .mwai-messages-theme.mwai-window.mwai-top-left {
1639 top: 30px;
1640 bottom: inherit;
1641 right: inherit;
1642 left: 30px;
1643 }
1644 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1645 top: 0;
1646 bottom: inherit;
1647 right: inherit;
1648 left: 0;
1649 }
1650 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1651 top: 50%;
1652 left: 50%;
1653 transform: translate(-50%, -50%);
1654 right: auto;
1655 bottom: auto;
1656 }
1657 @media (max-width: 760px) {
1658 .mwai-messages-theme.mwai-window.mwai-center-open.mwai-open {
1659 width: calc(100% - 40px);
1660 max-width: var(--mwai-width);
1661 }
1662 }
1663 .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-bottom-left .mwai-trigger {
1664 align-items: flex-start;
1665 }
1666 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger {
1667 flex-direction: column-reverse;
1668 }
1669 .mwai-messages-theme.mwai-window.mwai-top-right .mwai-trigger .mwai-icon-text, .mwai-messages-theme.mwai-window.mwai-top-left .mwai-trigger .mwai-icon-text {
1670 margin-bottom: 0;
1671 margin-top: 15px;
1672 }
1673 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons {
1674 margin-bottom: 0px;
1675 }
1676 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before {
1677 width: 16px;
1678 height: 16px;
1679 }
1680 .mwai-messages-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
1681 width: 13px;
1682 height: 13px;
1683 }
1684 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) {
1685 position: fixed;
1686 left: 0 !important;
1687 right: 0 !important;
1688 bottom: 0 !important;
1689 top: 0 !important;
1690 width: 100%;
1691 height: 100%;
1692 height: 100vh;
1693 height: 100dvh;
1694 max-height: 100dvh;
1695 max-width: 100%;
1696 display: flex;
1697 flex-direction: column;
1698 margin: 0;
1699 z-index: 999999;
1700 background-color: var(--mwai-backgroundSecondaryColor);
1701 display: flex !important;
1702 visibility: visible !important;
1703 opacity: 1 !important;
1704 }
1705 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1706 border-radius: 0;
1707 }
1708 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1709 flex: 1;
1710 min-height: 0;
1711 max-height: inherit;
1712 border-radius: 0;
1713 display: flex !important;
1714 flex-direction: column !important;
1715 }
1716 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-conversation {
1717 flex: 0 1 auto !important;
1718 max-height: none;
1719 overflow-y: auto;
1720 min-height: 0;
1721 }
1722 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-fullscreen-spacer {
1723 flex: 1 1 auto !important;
1724 min-height: 0;
1725 }
1726 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-input {
1727 flex: 0 0 auto;
1728 }
1729 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-footer {
1730 flex: 0 0 auto;
1731 }
1732 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body .mwai-files {
1733 flex: 0 0 auto;
1734 }
1735 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-window-box {
1736 width: 100%;
1737 height: 100%;
1738 display: flex;
1739 flex-direction: column;
1740 }
1741 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-header {
1742 display: flex !important;
1743 visibility: visible !important;
1744 opacity: 1 !important;
1745 flex: 0 0 auto;
1746 }
1747 .mwai-messages-theme.mwai-fullscreen:not(.mwai-window) .mwai-body {
1748 display: flex !important;
1749 visibility: visible !important;
1750 opacity: 1 !important;
1751 flex: 1 1 auto;
1752 flex-direction: column;
1753 min-height: 0;
1754 height: 100%;
1755 }
1756 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open {
1757 position: fixed;
1758 left: 0 !important;
1759 right: 0 !important;
1760 bottom: 0 !important;
1761 top: 0 !important;
1762 width: 100%;
1763 height: 100%;
1764 height: 100vh;
1765 height: 100dvh;
1766 max-height: 100dvh;
1767 max-width: 100%;
1768 display: flex;
1769 flex-direction: column;
1770 margin: 0;
1771 z-index: 999999;
1772 background-color: var(--mwai-backgroundSecondaryColor);
1773 transform: none !important;
1774 }
1775 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-header {
1776 border-radius: 0;
1777 }
1778 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1779 flex: 1;
1780 min-height: 0;
1781 max-height: inherit;
1782 border-radius: 0;
1783 display: flex !important;
1784 flex-direction: column !important;
1785 }
1786 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-conversation {
1787 flex: 0 1 auto !important;
1788 max-height: none;
1789 overflow-y: auto;
1790 min-height: 0;
1791 }
1792 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-fullscreen-spacer {
1793 flex: 1 1 auto !important;
1794 min-height: 0;
1795 }
1796 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-input {
1797 flex: 0 0 auto;
1798 }
1799 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-footer {
1800 flex: 0 0 auto;
1801 }
1802 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body .mwai-files {
1803 flex: 0 0 auto;
1804 }
1805 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-window-box {
1806 width: 100%;
1807 height: 100%;
1808 display: flex;
1809 flex-direction: column;
1810 }
1811 .mwai-messages-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-body {
1812 flex: 1 1 auto;
1813 min-height: 0;
1814 }
1815 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1816 display: flex;
1817 }
1818 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
1819 display: flex;
1820 transition: opacity 200ms ease-in-out 0s;
1821 opacity: 1;
1822 }
1823 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
1824 display: none;
1825 }
1826 .mwai-messages-theme .mwai-body > .mwai-error {
1827 margin: var(--mwai-spacing);
1828 color: white;
1829 background: rgba(180, 55, 55, 0.55);
1830 padding: var(--mwai-spacing);
1831 border-radius: var(--mwai-borderRadius);
1832 }
1833 .mwai-messages-theme .mwai-body > .mwai-error:hover {
1834 cursor: pointer;
1835 background: rgba(180, 44, 44, 0.85);
1836 }
1837 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text {
1838 color: #ff5656;
1839 }
1840 .mwai-messages-theme .mwai-reply.mwai-error .mwai-text a {
1841 color: #ff5656;
1842 text-decoration: underline;
1843 }
1844 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button {
1845 fill: var(--mwai-fontColor);
1846 padding: 3px 5px;
1847 width: 24px;
1848 height: 24px;
1849 background: var(--mwai-backgroundPrimaryColor);
1850 cursor: pointer;
1851 border-radius: 5px;
1852 }
1853 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
1854 filter: brightness(1.2);
1855 }
1856 .mwai-messages-theme .mwai-reply-actions {
1857 opacity: 0;
1858 transition: opacity 0.2s ease-in-out;
1859 }
1860 .mwai-messages-theme .mwai-reply:hover .mwai-reply-actions {
1861 opacity: 1 !important;
1862 }
1863 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions {
1864 opacity: 1 !important;
1865 }
1866 .mwai-messages-theme .mwai-form-output-container:hover .mwai-reply-actions.mwai-hidden {
1867 opacity: 1 !important;
1868 }
1869 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container {
1870 background: var(--mwai-bubbleColor);
1871 width: var(--mwai-iconSize, 60px);
1872 height: var(--mwai-iconSize, 60px);
1873 border-radius: 100%;
1874 transition: all 0.2s ease-out;
1875 display: flex;
1876 justify-content: center;
1877 align-items: center;
1878 }
1879 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon {
1880 max-width: 50%;
1881 max-height: 50%;
1882 filter: none;
1883 }
1884 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-icon:hover {
1885 transform: none;
1886 }
1887 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container .mwai-emoji {
1888 font-size: calc(var(--mwai-iconSize, 60px) / 2);
1889 }
1890 .mwai-messages-theme.mwai-bubble .mwai-trigger .mwai-icon-container:hover {
1891 cursor: pointer;
1892 filter: brightness(1.1);
1893 }
1894 @media (max-width: 760px) {
1895 .mwai-messages-theme.mwai-window.mwai-open {
1896 position: fixed;
1897 top: 0 !important;
1898 left: 0 !important;
1899 right: 0 !important;
1900 bottom: 0 !important;
1901 width: 100%;
1902 min-height: 100%;
1903 min-height: 100vh;
1904 min-height: 100dvh;
1905 height: 100dvh;
1906 max-height: 100dvh;
1907 max-width: 100%;
1908 margin: 0;
1909 z-index: 999999;
1910 background-color: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
1911 border-radius: 0 !important;
1912 box-shadow: none !important;
1913 border: none !important;
1914 padding-top: env(safe-area-inset-top, 0);
1915 padding-left: env(safe-area-inset-left, 0);
1916 padding-right: env(safe-area-inset-right, 0);
1917 box-sizing: border-box;
1918 }
1919 .mwai-messages-theme.mwai-window.mwai-open .mwai-window-box {
1920 width: 100%;
1921 height: 100%;
1922 flex: 1;
1923 display: flex;
1924 flex-direction: column;
1925 border-radius: 0 !important;
1926 box-shadow: none !important;
1927 border: none !important;
1928 background: transparent !important;
1929 min-height: 0;
1930 }
1931 .mwai-messages-theme.mwai-window.mwai-open .mwai-header {
1932 display: none !important;
1933 }
1934 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
1935 flex: 1;
1936 min-height: 0;
1937 display: flex;
1938 flex-direction: column;
1939 border-radius: 0 !important;
1940 overflow: hidden;
1941 background: var(--mwai-backgroundPrimaryColor, var(--mwai-backgroundSecondaryColor));
1942 }
1943 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
1944 flex: 1;
1945 overflow-y: auto;
1946 max-height: none;
1947 min-height: 0;
1948 }
1949 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-input {
1950 flex-shrink: 0;
1951 position: relative;
1952 }
1953 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-footer {
1954 flex-shrink: 0;
1955 position: relative;
1956 }
1957 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-body:last-child .mwai-input {
1958 padding-bottom: env(safe-area-inset-bottom, 0);
1959 }
1960 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header {
1961 display: flex;
1962 position: sticky;
1963 top: 0;
1964 left: 0;
1965 right: 0;
1966 min-height: 50px;
1967 background: var(--mwai-backgroundHeaderColor);
1968 border-bottom: 1px solid var(--mwai-lineColor);
1969 padding: 0 15px;
1970 padding-top: env(safe-area-inset-top, 0);
1971 padding-left: calc(15px + env(safe-area-inset-left, 0));
1972 padding-right: calc(15px + env(safe-area-inset-right, 0));
1973 align-items: center;
1974 justify-content: space-between;
1975 z-index: 10;
1976 flex-shrink: 0;
1977 }
1978 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-title {
1979 font-size: 16px;
1980 font-weight: 600;
1981 color: var(--mwai-headerColor);
1982 flex: 1;
1983 overflow: hidden;
1984 text-overflow: ellipsis;
1985 white-space: nowrap;
1986 }
1987 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close {
1988 all: unset;
1989 display: flex;
1990 align-items: center;
1991 justify-content: center;
1992 width: 32px;
1993 height: 32px;
1994 min-width: 32px;
1995 cursor: pointer;
1996 border-radius: 6px;
1997 transition: background-color 0.2s ease;
1998 -webkit-tap-highlight-color: transparent;
1999 }
2000 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close:hover, .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close:active {
2001 background-color: var(--mwai-backgroundSecondaryColor);
2002 }
2003 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg {
2004 width: 20px;
2005 height: 20px;
2006 }
2007 .mwai-messages-theme.mwai-window.mwai-open .mwai-mobile-header .mwai-mobile-header-close svg path {
2008 stroke: var(--mwai-headerColor);
2009 }
2010 .mwai-messages-theme.mwai-window.mwai-open.mwai-center-open {
2011 top: 0 !important;
2012 left: 0 !important;
2013 transform: none !important;
2014 right: 0 !important;
2015 bottom: 0 !important;
2016 width: 100% !important;
2017 max-width: 100% !important;
2018 height: 100dvh !important;
2019 }
2020 .mwai-messages-theme.mwai-window.mwai-open .mwai-input {
2021 flex-direction: column;
2022 }
2023 .mwai-messages-theme.mwai-window.mwai-open .mwai-input button {
2024 font-size: 16px;
2025 margin-left: 0;
2026 width: 100%;
2027 }
2028 .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text {
2029 width: 100%;
2030 }
2031 .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text input, .mwai-messages-theme.mwai-window.mwai-open .mwai-input .mwai-input-text textarea {
2032 font-size: 16px;
2033 }
2034 .mwai-messages-theme.mwai-window.mwai-open .mwai-body {
2035 display: flex;
2036 transition: opacity 200ms ease-in-out 0s;
2037 opacity: 1;
2038 flex: 1;
2039 min-height: 0;
2040 max-height: inherit;
2041 }
2042 .mwai-messages-theme.mwai-window.mwai-open .mwai-body .mwai-conversation {
2043 flex: 1;
2044 max-height: none;
2045 min-height: 0;
2046 }
2047 .mwai-messages-theme.mwai-window.mwai-open .mwai-resize-button {
2048 display: none !important;
2049 }
2050 .mwai-messages-theme.mwai-window.mwai-open .mwai-trigger {
2051 display: none;
2052 }
2053 }
2054 @keyframes mwai-button-spinner {
2055 from {
2056 transform: rotate(0turn);
2057 }
2058 to {
2059 transform: rotate(1turn);
2060 }
2061 }
2062 .mwai-messages-theme button:not(.mwai-busy):before {
2063 content: none !important;
2064 display: none !important;
2065 animation: none !important;
2066 }
2067 .mwai-messages-theme .admin-bar .mwai-fullscreen:not(.mwai-window),
2068 .mwai-messages-theme .admin-bar .mwai-fullscreen.mwai-window.mwai-open {
2069 top: 32px;
2070 }
2071 .mwai-messages-theme .mwai-input .mwai-terminal-line {
2072 display: flex;
2073 align-items: flex-start;
2074 color: var(--mwai-terminal-active-color, var(--mwai-fontColor));
2075 }
2076 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt {
2077 color: var(--mwai-terminal-active-color, currentColor);
2078 margin-left: -4px;
2079 margin-right: 4px;
2080 display: inline-flex;
2081 align-items: center;
2082 height: 1.5em;
2083 line-height: 1.2;
2084 flex-shrink: 0;
2085 align-self: flex-start;
2086 }
2087 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-prompt svg {
2088 display: block;
2089 width: 1.4em;
2090 height: 1.4em;
2091 }
2092 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-input-wrapper {
2093 flex: 1;
2094 display: inline;
2095 white-space: pre-wrap;
2096 word-wrap: break-word;
2097 word-break: break-word;
2098 }
2099 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-typed {
2100 white-space: pre-wrap;
2101 word-wrap: break-word;
2102 word-break: break-word;
2103 }
2104 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor {
2105 display: inline-block;
2106 width: 8px;
2107 height: 16px;
2108 background: currentColor;
2109 vertical-align: text-bottom;
2110 margin-left: 2px;
2111 transition: opacity 0.2s ease;
2112 opacity: 0.35;
2113 animation: none;
2114 }
2115 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-active {
2116 opacity: 1;
2117 animation: mwai-caret-blink 1s steps(2, start) infinite;
2118 }
2119 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-typing {
2120 opacity: 1;
2121 animation: none;
2122 }
2123 .mwai-messages-theme .mwai-input .mwai-terminal-line .mwai-terminal-cursor.mwai-terminal-cursor-inactive {
2124 opacity: 0.35;
2125 animation: none;
2126 }
2127 .mwai-messages-theme pre code.hljs {
2128 display: block;
2129 overflow-x: auto;
2130 padding: 1em;
2131 }
2132 .mwai-messages-theme code.hljs {
2133 padding: 3px 5px;
2134 }
2135 .mwai-messages-theme .hljs {
2136 color: #333;
2137 background: #f0f0f0;
2138 }
2139 .mwai-messages-theme .hljs-subst {
2140 color: #333;
2141 }
2142 .mwai-messages-theme .hljs-comment {
2143 color: #888;
2144 }
2145 .mwai-messages-theme .hljs-attr, .mwai-messages-theme .hljs-doctag, .mwai-messages-theme .hljs-keyword, .mwai-messages-theme .hljs-meta .hljs-keyword, .mwai-messages-theme .hljs-section, .mwai-messages-theme .hljs-selector-tag {
2146 color: #0077cc;
2147 }
2148 .mwai-messages-theme .hljs-attribute {
2149 color: #aa3377;
2150 }
2151 .mwai-messages-theme .hljs-name, .mwai-messages-theme .hljs-number, .mwai-messages-theme .hljs-quote, .mwai-messages-theme .hljs-selector-id, .mwai-messages-theme .hljs-template-tag, .mwai-messages-theme .hljs-type {
2152 color: #c18401;
2153 }
2154 .mwai-messages-theme .hljs-selector-class {
2155 color: #0077cc;
2156 }
2157 .mwai-messages-theme .hljs-link, .mwai-messages-theme .hljs-regexp, .mwai-messages-theme .hljs-selector-attr, .mwai-messages-theme .hljs-string, .mwai-messages-theme .hljs-symbol, .mwai-messages-theme .hljs-template-variable, .mwai-messages-theme .hljs-variable {
2158 color: #689700;
2159 }
2160 .mwai-messages-theme .hljs-meta, .mwai-messages-theme .hljs-selector-pseudo {
2161 color: #0077cc;
2162 }
2163 .mwai-messages-theme .hljs-built_in, .mwai-messages-theme .hljs-literal, .mwai-messages-theme .hljs-title {
2164 color: #c18401;
2165 }
2166 .mwai-messages-theme .hljs-bullet, .mwai-messages-theme .hljs-code {
2167 color: #555;
2168 }
2169 .mwai-messages-theme .hljs-meta .hljs-string {
2170 color: #689700;
2171 }
2172 .mwai-messages-theme .hljs-deletion {
2173 color: #b71c1c;
2174 }
2175 .mwai-messages-theme .hljs-addition {
2176 color: #1b5e20;
2177 }
2178 .mwai-messages-theme .hljs-emphasis {
2179 font-style: italic;
2180 }
2181 .mwai-messages-theme .hljs-strong {
2182 font-weight: 700;
2183 }
2184 .mwai-messages-theme .mwai-reply-actions {
2185 position: absolute;
2186 border-radius: 5px;
2187 top: 10px;
2188 right: 10px;
2189 display: flex;
2190 align-items: center;
2191 padding: 2px 2px;
2192 z-index: 100;
2193 background: var(--mwai-backgroundPrimaryColor);
2194 box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
2195 z-index: 100;
2196 }
2197 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button,
2198 .mwai-messages-theme .mwai-reply-actions .mwai-download-button {
2199 fill: var(--mwai-fontColor);
2200 padding: 3px 5px;
2201 width: 24px;
2202 height: 24px;
2203 background: var(--mwai-backgroundPrimaryColor);
2204 cursor: pointer;
2205 border-radius: 5px;
2206 }
2207 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover,
2208 .mwai-messages-theme .mwai-reply-actions .mwai-download-button:hover {
2209 filter: brightness(1.2);
2210 }
2211 .mwai-messages-theme .mwai-reply-actions.mwai-hidden {
2212 opacity: 0;
2213 }
2214 .mwai-messages-theme .mwai-realtime {
2215 padding: var(--mwai-spacing);
2216 }
2217 .mwai-messages-theme .mwai-realtime .mwai-visualizer {
2218 display: flex;
2219 justify-content: center;
2220 align-items: center;
2221 }
2222 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2223 width: 100px;
2224 margin-right: var(--mwai-spacing);
2225 margin-left: var(--mwai-spacing);
2226 border: 1px solid var(--mwai-backgroundPrimaryColor);
2227 }
2228 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2229 background: var(--mwai-backgroundPrimaryColor);
2230 }
2231 .mwai-messages-theme .mwai-realtime .mwai-controls {
2232 display: flex;
2233 justify-content: center;
2234 align-items: center;
2235 margin-bottom: var(--mwai-spacing);
2236 }
2237 .mwai-messages-theme .mwai-realtime .mwai-controls > * + * {
2238 margin-left: 10px;
2239 }
2240 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2241 border-radius: 100%;
2242 width: 50px;
2243 height: 50px;
2244 margin: 5px;
2245 padding: 5px;
2246 display: flex;
2247 align-items: center;
2248 justify-content: center;
2249 color: var(--mwai-fontColor);
2250 border: 2px solid var(--mwai-backgroundPrimaryColor);
2251 background: none;
2252 cursor: pointer;
2253 transition: all 0.2s ease-out;
2254 min-width: inherit;
2255 max-width: inherit;
2256 }
2257 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover:not(:disabled) {
2258 background: var(--mwai-backgroundPrimaryColor);
2259 }
2260 .mwai-messages-theme .mwai-realtime .mwai-controls button:disabled {
2261 opacity: 0.5;
2262 cursor: not-allowed;
2263 background: none;
2264 }
2265 .mwai-messages-theme .mwai-realtime .mwai-controls button.mwai-active {
2266 border: 2px solid var(--mwai-fontColor);
2267 }
2268 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode {
2269 flex-direction: column;
2270 gap: 8px;
2271 }
2272 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk {
2273 border-radius: calc(var(--mwai-borderRadius) * 0.8);
2274 width: auto;
2275 min-width: 120px;
2276 padding: 12px 24px;
2277 margin: 5px;
2278 display: flex;
2279 align-items: center;
2280 justify-content: center;
2281 gap: 8px;
2282 color: var(--mwai-fontColor);
2283 border: 2px solid var(--mwai-backgroundPrimaryColor);
2284 background: none;
2285 cursor: pointer;
2286 transition: all 0.2s ease-out;
2287 font-family: inherit;
2288 font-size: var(--mwai-fontSize);
2289 line-height: 1.2;
2290 font-weight: 500;
2291 height: auto;
2292 }
2293 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:hover:not(:disabled) {
2294 background: var(--mwai-backgroundPrimaryColor);
2295 }
2296 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:disabled {
2297 opacity: 0.5;
2298 cursor: not-allowed;
2299 background: none;
2300 }
2301 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk.mwai-active {
2302 border: 2px solid var(--mwai-fontColor);
2303 background: var(--mwai-backgroundPrimaryColor);
2304 }
2305 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk svg {
2306 width: 18px;
2307 height: 18px;
2308 }
2309 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-talk-hint {
2310 font-size: 12px;
2311 color: var(--mwai-fontColor);
2312 opacity: 0.6;
2313 text-align: center;
2314 margin: 0;
2315 }
2316 .mwai-messages-theme .mwai-realtime .mwai-last-transcript {
2317 margin: var(--mwai-spacing);
2318 margin-top: 0;
2319 border: 2px solid var(--mwai-backgroundPrimaryColor);
2320 padding: calc(var(--mwai-spacing) / 2);
2321 padding-right: calc(var(--mwai-spacing) / 2 + 10px);
2322 border-radius: var(--mwai-borderRadius);
2323 font-size: 80%;
2324 text-align: center;
2325 max-height: 120px;
2326 overflow-y: auto;
2327 overflow-x: hidden;
2328 word-wrap: break-word;
2329 overflow-wrap: break-word;
2330 scrollbar-width: thin;
2331 scrollbar-color: var(--mwai-backgroundHeaderColor) transparent;
2332 }
2333 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar {
2334 width: 6px;
2335 }
2336 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-track {
2337 background: transparent;
2338 margin: 4px 0;
2339 }
2340 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-thumb {
2341 background: var(--mwai-backgroundHeaderColor);
2342 border-radius: 10px;
2343 }
2344 .mwai-messages-theme .mwai-realtime .mwai-last-transcript::-webkit-scrollbar-thumb:hover {
2345 background: var(--mwai-primaryColor);
2346 }
2347 .mwai-messages-theme .mwai-realtime .mwai-statistics {
2348 display: grid;
2349 grid-template-columns: 1fr 1fr 1fr;
2350 grid-row-gap: 10px;
2351 font-size: 14px;
2352 }
2353 .mwai-messages-theme .mwai-realtime .mwai-statistics div {
2354 display: flex;
2355 flex-direction: column;
2356 align-items: center;
2357 }
2358 .mwai-messages-theme .mwai-realtime .mwai-statistics label {
2359 font-size: 11px;
2360 opacity: 0.5;
2361 text-transform: uppercase;
2362 }
2363 .mwai-messages-theme .mwai-realtime .mwai-options {
2364 margin-top: var(--mwai-spacing);
2365 display: flex;
2366 align-items: center;
2367 }
2368 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option {
2369 cursor: pointer;
2370 opacity: 0.5;
2371 margin-right: 2px;
2372 }
2373 .mwai-messages-theme .mwai-realtime .mwai-options .mwai-option.mwai-active {
2374 opacity: 1;
2375 }
2376 .mwai-messages-theme.mwai-discussions {
2377 border-radius: var(--mwai-borderRadius);
2378 background: var(--mwai-backgroundHeaderColor);
2379 overflow: hidden;
2380 }
2381 .mwai-messages-theme.mwai-discussions * {
2382 box-sizing: border-box;
2383 }
2384 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2385 display: flex;
2386 position: relative;
2387 padding-left: calc(var(--mwai-spacing) / 2);
2388 padding-right: calc(var(--mwai-spacing) / 2);
2389 padding-bottom: calc(var(--mwai-spacing) / 2);
2390 color: var(--mwai-conversationsTextColor);
2391 opacity: 0.65;
2392 align-items: center;
2393 }
2394 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2395 flex: 1;
2396 padding: 5px 10px;
2397 overflow: hidden;
2398 }
2399 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2400 display: block;
2401 overflow: hidden;
2402 text-overflow: ellipsis;
2403 white-space: nowrap;
2404 font-size: var(--mwai-fontSize);
2405 margin-bottom: 4px;
2406 }
2407 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2408 display: flex;
2409 gap: 12px;
2410 font-size: calc(var(--mwai-fontSize) * 0.85);
2411 opacity: 0.7;
2412 }
2413 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item {
2414 display: flex;
2415 align-items: center;
2416 gap: 4px;
2417 }
2418 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info .mwai-info-item svg {
2419 opacity: 0.6;
2420 }
2421 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2422 position: absolute;
2423 top: 50%;
2424 right: calc(var(--mwai-spacing) / 2);
2425 transform: translateY(-50%);
2426 opacity: 0;
2427 transition: opacity 0.2s ease-out;
2428 z-index: 100;
2429 }
2430 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2431 width: 28px;
2432 height: 28px;
2433 display: flex;
2434 align-items: center;
2435 justify-content: center;
2436 cursor: pointer;
2437 color: var(--mwai-conversationsTextColor);
2438 }
2439 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active {
2440 cursor: pointer;
2441 }
2442 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2443 background: var(--mwai-backgroundPrimaryColor);
2444 border-radius: var(--mwai-borderRadius);
2445 opacity: 1;
2446 }
2447 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover {
2448 cursor: pointer;
2449 }
2450 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2451 background: var(--mwai-backgroundPrimaryColor);
2452 border-radius: var(--mwai-borderRadius);
2453 opacity: 1;
2454 }
2455 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-actions {
2456 opacity: 1;
2457 }
2458 .mwai-messages-theme.mwai-discussions .mwai-discussion:has(.mwai-context-menu) .mwai-discussion-actions {
2459 opacity: 1;
2460 }
2461 .mwai-messages-theme.mwai-discussions .mwai-discussion:first-child {
2462 margin-top: calc(var(--mwai-spacing) / 2);
2463 }
2464 .mwai-messages-theme.mwai-discussions .mwai-header {
2465 color: var(--mwai-headerColor);
2466 padding: var(--mwai-spacing);
2467 display: flex;
2468 justify-content: space-between;
2469 align-items: center;
2470 gap: 10px;
2471 }
2472 .mwai-messages-theme.mwai-discussions .mwai-header button {
2473 background: var(--mwai-backgroundPrimaryColor);
2474 color: var(--mwai-fontColor);
2475 border: none;
2476 padding: 8px 16px;
2477 border-radius: var(--mwai-borderRadius);
2478 cursor: pointer;
2479 transition: all 0.2s ease-out;
2480 }
2481 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2482 background: var(--mwai-iconTextBackgroundColor);
2483 }
2484 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2485 opacity: 0.5;
2486 cursor: not-allowed;
2487 }
2488 .mwai-messages-theme.mwai-discussions .mwai-header .mwai-refresh-btn {
2489 padding: 8px;
2490 display: flex;
2491 align-items: center;
2492 justify-content: center;
2493 }
2494 .mwai-messages-theme.mwai-discussions .mwai-body {
2495 background: var(--mwai-conversationsBackgroundColor);
2496 list-style: none;
2497 padding: 0;
2498 margin: 0;
2499 position: relative;
2500 min-height: 200px;
2501 display: flex;
2502 flex-direction: column;
2503 border-radius: 0;
2504 z-index: 1;
2505 }
2506 .mwai-messages-theme.mwai-discussions .mwai-loading-overlay {
2507 position: absolute;
2508 top: 0;
2509 left: 0;
2510 right: 0;
2511 bottom: 0;
2512 background: var(--mwai-conversationsBackgroundColor);
2513 opacity: 0.9;
2514 display: flex;
2515 align-items: center;
2516 justify-content: center;
2517 z-index: 10;
2518 }
2519 .mwai-messages-theme.mwai-discussions .mwai-spinner {
2520 animation: spin 1s linear infinite;
2521 color: var(--mwai-fontColor);
2522 }
2523 @keyframes spin {
2524 from {
2525 transform: rotate(0deg);
2526 }
2527 to {
2528 transform: rotate(360deg);
2529 }
2530 }
2531 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2532 background: var(--mwai-backgroundHeaderColor);
2533 padding: var(--mwai-spacing);
2534 display: flex;
2535 justify-content: space-between;
2536 align-items: center;
2537 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2538 }
2539 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2540 background: var(--mwai-backgroundPrimaryColor);
2541 color: var(--mwai-fontColor);
2542 border: none;
2543 padding: 8px 12px;
2544 border-radius: var(--mwai-borderRadius);
2545 cursor: pointer;
2546 transition: all 0.2s ease-out;
2547 display: flex;
2548 align-items: center;
2549 justify-content: center;
2550 }
2551 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2552 background: var(--mwai-iconTextBackgroundColor);
2553 }
2554 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2555 opacity: 0.3;
2556 cursor: not-allowed;
2557 }
2558 .mwai-messages-theme.mwai-discussions .mwai-pagination span {
2559 color: var(--mwai-headerColor);
2560 font-size: var(--mwai-fontSize);
2561 font-weight: 500;
2562 }
2563 .mwai-messages-theme.mwai-discussions .mwai-pagination .mwai-page-indicator {
2564 color: var(--mwai-headerColor);
2565 font-size: calc(var(--mwai-fontSize) * 0.85);
2566 font-weight: 400;
2567 opacity: 0.8;
2568 }
2569 .mwai-messages-theme.mwai-discussions {
2570 background: var(--mwai-backgroundPrimaryColor);
2571 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2572 }
2573 .mwai-messages-theme.mwai-discussions .mwai-header {
2574 background: var(--mwai-backgroundAiColor);
2575 color: var(--mwai-fontColor);
2576 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2577 }
2578 .mwai-messages-theme.mwai-discussions .mwai-header button {
2579 background: var(--mwai-backgroundUserColor);
2580 color: white;
2581 padding: 8px 16px;
2582 border: none;
2583 border-radius: var(--mwai-borderRadius);
2584 cursor: pointer;
2585 transition: transform 0.15s ease-out;
2586 margin-left: 0;
2587 }
2588 .mwai-messages-theme.mwai-discussions .mwai-header button:hover:not(:disabled) {
2589 background: var(--mwai-backgroundUserColor);
2590 transform: scale(1.03);
2591 }
2592 .mwai-messages-theme.mwai-discussions .mwai-header button:disabled {
2593 opacity: 0.5;
2594 cursor: not-allowed;
2595 transform: none;
2596 }
2597 .mwai-messages-theme.mwai-discussions .mwai-discussions-header {
2598 background: var(--mwai-backgroundAiColor);
2599 color: var(--mwai-fontColor);
2600 padding: var(--mwai-spacing);
2601 border-bottom: 1px solid var(--mwai-backgroundPrimaryColor);
2602 }
2603 .mwai-messages-theme.mwai-discussions .mwai-discussions-header .mwai-discussions-title {
2604 font-size: calc(var(--mwai-fontSize) * 1.2);
2605 font-weight: 600;
2606 }
2607 .mwai-messages-theme.mwai-discussions .mwai-discussions-list {
2608 background: var(--mwai-backgroundPrimaryColor);
2609 max-height: 300px;
2610 overflow-y: auto;
2611 scrollbar-width: thin;
2612 scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
2613 }
2614 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar {
2615 width: 8px;
2616 background: transparent;
2617 }
2618 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-track {
2619 background: rgba(0, 0, 0, 0.05);
2620 border-radius: 4px;
2621 }
2622 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb {
2623 background: rgba(0, 0, 0, 0.15);
2624 border-radius: 4px;
2625 }
2626 .mwai-messages-theme.mwai-discussions .mwai-discussions-list::-webkit-scrollbar-thumb:hover {
2627 background: rgba(0, 0, 0, 0.25);
2628 }
2629 .mwai-messages-theme.mwai-discussions .mwai-discussion {
2630 padding: 0;
2631 color: var(--mwai-fontColor);
2632 opacity: 1;
2633 border-bottom: none;
2634 transition: background 0.2s ease;
2635 }
2636 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-content {
2637 background: transparent;
2638 padding: 8px 12px;
2639 margin: 4px 8px;
2640 transition: all 0.2s ease;
2641 }
2642 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
2643 color: var(--mwai-fontColor);
2644 font-weight: 500;
2645 }
2646 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-info {
2647 opacity: 0.6;
2648 color: var(--mwai-fontColor);
2649 }
2650 .mwai-messages-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-content {
2651 background: var(--mwai-backgroundAiColor);
2652 border-radius: 15px;
2653 }
2654 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content {
2655 background: var(--mwai-backgroundUserColor);
2656 color: white;
2657 border-radius: 15px;
2658 opacity: 1;
2659 }
2660 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-title {
2661 color: white;
2662 }
2663 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-content .mwai-discussion-info {
2664 color: white;
2665 opacity: 0.8;
2666 }
2667 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
2668 right: 18px;
2669 }
2670 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon {
2671 color: var(--mwai-fontColor);
2672 background: var(--mwai-backgroundAiColor);
2673 border-radius: 50%;
2674 width: 24px;
2675 height: 24px;
2676 }
2677 .mwai-messages-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-menu-icon:hover {
2678 background: var(--mwai-backgroundUserColor);
2679 color: white;
2680 }
2681 .mwai-messages-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-actions .mwai-menu-icon:hover {
2682 background: var(--mwai-backgroundAiColor);
2683 color: var(--mwai-backgroundUserColor);
2684 }
2685 .mwai-messages-theme.mwai-discussions .mwai-context-menu {
2686 background: var(--mwai-backgroundUserColor);
2687 border: 1px solid var(--mwai-backgroundUserColor);
2688 border-radius: 15px;
2689 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
2690 padding: 4px;
2691 }
2692 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item {
2693 padding: 8px 12px;
2694 color: white;
2695 border-radius: 12px;
2696 transition: all 0.2s ease;
2697 }
2698 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item:hover {
2699 background: rgba(255, 255, 255, 0.2);
2700 transform: translateX(2px);
2701 }
2702 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger {
2703 color: #ffcdd2;
2704 }
2705 .mwai-messages-theme.mwai-discussions .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
2706 background: rgba(255, 100, 100, 0.2);
2707 color: white;
2708 }
2709 .mwai-messages-theme.mwai-discussions .mwai-pagination {
2710 background: var(--mwai-backgroundAiColor);
2711 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2712 }
2713 .mwai-messages-theme.mwai-discussions .mwai-pagination button {
2714 background: var(--mwai-backgroundUserColor);
2715 color: white;
2716 padding: 8px 12px;
2717 border: none;
2718 border-radius: var(--mwai-borderRadius);
2719 cursor: pointer;
2720 transition: transform 0.15s ease-out;
2721 margin-left: 0;
2722 }
2723 .mwai-messages-theme.mwai-discussions .mwai-pagination button:hover:not(:disabled) {
2724 background: var(--mwai-backgroundUserColor);
2725 transform: scale(1.03);
2726 }
2727 .mwai-messages-theme.mwai-discussions .mwai-pagination button:disabled {
2728 opacity: 0.5;
2729 cursor: not-allowed;
2730 transform: none;
2731 }
2732 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer,
2733 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination {
2734 padding: var(--mwai-spacing);
2735 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2736 background: var(--mwai-backgroundAiColor);
2737 }
2738 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button,
2739 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button {
2740 width: 100%;
2741 padding: 8px 16px;
2742 background: var(--mwai-backgroundUserColor);
2743 color: white;
2744 border: none;
2745 border-radius: var(--mwai-borderRadius);
2746 font-size: var(--mwai-fontSize);
2747 cursor: pointer;
2748 transition: transform 0.15s ease-out;
2749 }
2750 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:hover,
2751 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:hover {
2752 transform: scale(1.02);
2753 }
2754 .mwai-messages-theme.mwai-discussions .mwai-discussions-footer .mwai-new-chat-button:disabled,
2755 .mwai-messages-theme.mwai-discussions .mwai-discussions-pagination .mwai-new-chat-button:disabled {
2756 opacity: 0.5;
2757 cursor: not-allowed;
2758 transform: none;
2759 }
2760
2761 .mwai-messages-theme .mwai-realtime .mwai-visualizer hr {
2762 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2763 }
2764 .mwai-messages-theme .mwai-realtime .mwai-visualizer .mwai-animation {
2765 background: var(--mwai-backgroundAiSecondaryColor);
2766 }
2767 .mwai-messages-theme .mwai-realtime .mwai-controls button {
2768 color: var(--mwai-backgroundPrimaryColor);
2769 background: var(--mwai-backgroundUserColor);
2770 }
2771 .mwai-messages-theme .mwai-realtime .mwai-controls button:hover {
2772 color: var(--mwai-backgroundPrimaryColor) !important;
2773 background: var(--mwai-backgroundUserColor) !important;
2774 opacity: 0.8;
2775 }
2776 .mwai-messages-theme .mwai-realtime .mwai-controls button[disabled] {
2777 color: var(--mwai-backgroundPrimaryColor) !important;
2778 background: var(--mwai-backgroundUserColor) !important;
2779 opacity: 0.5;
2780 }
2781 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk {
2782 color: var(--mwai-backgroundPrimaryColor);
2783 background: var(--mwai-backgroundUserColor);
2784 }
2785 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:hover:not(:disabled) {
2786 color: var(--mwai-backgroundPrimaryColor) !important;
2787 background: var(--mwai-backgroundUserColor) !important;
2788 opacity: 0.8;
2789 }
2790 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk:disabled {
2791 color: var(--mwai-backgroundPrimaryColor) !important;
2792 background: var(--mwai-backgroundUserColor) !important;
2793 opacity: 0.5;
2794 }
2795 .mwai-messages-theme .mwai-realtime .mwai-controls.mwai-hold-to-talk-mode .mwai-push-to-talk.mwai-active {
2796 color: var(--mwai-backgroundPrimaryColor) !important;
2797 background: var(--mwai-backgroundUserColor) !important;
2798 opacity: 0.9;
2799 border: 2px solid var(--mwai-fontColor);
2800 }
2801 .mwai-messages-theme .mwai-reply-actions {
2802 top: -6px;
2803 right: -6px;
2804 }
2805 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button,
2806 .mwai-messages-theme .mwai-reply-actions .mwai-download-button {
2807 padding-top: 4px;
2808 }
2809 .mwai-messages-theme .mwai-reply-actions .mwai-copy-button:hover,
2810 .mwai-messages-theme .mwai-reply-actions .mwai-download-button:hover {
2811 fill: var(--mwai-backgroundPrimaryColor);
2812 background: var(--mwai-backgroundUserColor);
2813 }
2814 .mwai-messages-theme .mwai-reply-actions .mwai-action-button {
2815 padding-top: 4px;
2816 }
2817 .mwai-messages-theme .mwai-reply-actions .mwai-action-button:hover {
2818 fill: var(--mwai-backgroundPrimaryColor);
2819 background: var(--mwai-backgroundUserColor);
2820 filter: none;
2821 }
2822 .mwai-messages-theme .mwai-reply.mwai-error .mwai-reply-actions .mwai-action-button:hover {
2823 fill: var(--mwai-backgroundPrimaryColor);
2824 background: var(--mwai-backgroundUserColor);
2825 filter: none;
2826 }
2827
2828 @media (max-width: 760px) {
2829 .mwai-messages-theme.mwai-window {
2830 width: calc(100% - 40px);
2831 z-index: 9999999999;
2832 }
2833 .mwai-messages-theme .mwai-input {
2834 flex-direction: column;
2835 padding: var(--mwai-spacing) var(--mwai-spacing) 0;
2836 }
2837 .mwai-messages-theme .mwai-input .mwai-input-text {
2838 width: 100%;
2839 margin-bottom: 10px;
2840 }
2841 .mwai-messages-theme .mwai-input .mwai-input-submit {
2842 position: relative !important;
2843 right: auto !important;
2844 top: auto !important;
2845 transform: none !important;
2846 width: 100% !important;
2847 height: 40px !important;
2848 margin: 0 !important;
2849 }
2850 }
2851
2852 .mwai-messages-theme .mwai-input .mwai-input-submit::before {
2853 content: "" !important;
2854 display: inline-block !important;
2855 z-index: 3;
2856 }
2857
2858 .mwai-messages-theme .mwai-footer {
2859 display: flex;
2860 align-items: center;
2861 background: var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2862 border-top: 1px solid var(--mwai-backgroundPrimaryColor);
2863 padding: 6px var(--mwai-spacing);
2864 }
2865 .mwai-messages-theme .mwai-footer:empty {
2866 display: none;
2867 }
2868 .mwai-messages-theme .mwai-footer:not(:has(.mwai-tools)):has(.mwai-compliance:empty) {
2869 display: none;
2870 }
2871 .mwai-messages-theme .mwai-footer .mwai-tools {
2872 display: flex;
2873 align-items: center;
2874 gap: 8px;
2875 margin-right: calc(var(--mwai-spacing) / 2);
2876 }
2877 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload {
2878 display: inline-block;
2879 }
2880 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide {
2881 display: inline-flex;
2882 align-items: center;
2883 justify-content: center;
2884 position: relative;
2885 min-width: 16px;
2886 height: 16px;
2887 color: var(--mwai-fontColor);
2888 opacity: 0.75;
2889 margin: 0;
2890 }
2891 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide:hover {
2892 opacity: 1;
2893 }
2894 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide svg {
2895 width: 16px;
2896 height: 16px;
2897 }
2898 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count {
2899 position: absolute;
2900 top: -5px;
2901 right: -6px;
2902 min-width: 12px;
2903 height: 12px;
2904 padding: 0 2px;
2905 border-radius: 999px;
2906 background: var(--mwai-backgroundHeaderColor);
2907 color: #fff;
2908 border: 2px solid var(--mwai-backgroundAiColor, var(--mwai-backgroundSecondaryColor));
2909 font-size: 8px;
2910 font-family: system-ui;
2911 font-weight: 700;
2912 line-height: 1;
2913 display: inline-flex;
2914 align-items: center;
2915 justify-content: center;
2916 user-select: none;
2917 cursor: pointer;
2918 }
2919 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide .mwai-upload-count::after {
2920 content: attr(data-count);
2921 }
2922 .mwai-messages-theme .mwai-footer .mwai-tools .mwai-file-upload-icon.mwai-lucide.mwai-hover .mwai-upload-count::after {
2923 content: "-";
2924 }
2925 .mwai-messages-theme .mwai-footer .mwai-compliance {
2926 opacity: 0.5;
2927 font-size: 11px;
2928 line-height: 11px;
2929 color: var(--mwai-fontColor);
2930 flex: 1;
2931 text-align: left;
2932 padding: calc(var(--mwai-spacing) / 2) 0;
2933 margin: 0;
2934 }
2935 .mwai-messages-theme .mwai-footer .mwai-tools + .mwai-compliance {
2936 text-align: right;
2937 }
2938 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
2939 padding-bottom: calc(var(--mwai-spacing) * 1.5);
2940 }
2941 @media (max-width: 760px) {
2942 .mwai-messages-theme .mwai-body:not(:has(~ .mwai-footer)):not(:has(+ .mwai-footer)) .mwai-input, .mwai-messages-theme .mwai-body:last-child .mwai-input {
2943 padding-bottom: max(6px, env(safe-area-inset-bottom, 0));
2944 }
2945 }
2946
2947 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu {
2948 background: var(--mwai-backgroundPrimaryColor);
2949 border: 1px solid var(--mwai-backgroundAiSecondaryColor);
2950 color: var(--mwai-fontColor);
2951 }
2952 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item {
2953 color: var(--mwai-fontColor);
2954 }
2955 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item:hover {
2956 background-color: var(--mwai-backgroundAiColor);
2957 }
2958 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger {
2959 color: #d32f2f;
2960 }
2961 .mwai-context-menu-portal.mwai-messages-theme .mwai-context-menu .mwai-menu-item.mwai-danger:hover {
2962 background-color: rgba(211, 47, 47, 0.1);
2963 color: #b71c1c;
2964 }
2965