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