PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.5.3
MxChat – AI Chatbot & Content Generation for WordPress v1.5.3
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
mxchat-basic / css / chat-style.css

chat-style.css in MxChat – AI Chatbot & Content Generation for WordPress 1.5.3, at css/chat-style.css

891 lines 18.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .active-pdf-container {
2 display: inline-flex;
3 align-items: center;
4 max-width: 200px;
5 margin: 0px;
6 padding: 0px;
7 line-height: 13px;
8 }
9
10 .active-pdf-name {
11 font-size: 11px;
12 color: #666;
13 white-space: nowrap;
14 overflow: hidden;
15 text-overflow: ellipsis;
16 }
17
18 .remove-pdf-btn {
19 background: 0 0;
20 border: none;
21 padding: 2px;
22 margin-left: 4px;
23 cursor: pointer;
24 transition: opacity .2s;
25 line-height: 13px;
26 }
27
28 .remove-pdf-btn:hover {
29 opacity: 1;
30 background: none;
31 }
32
33
34
35
36 #mxchat-chatbot .chat-toolbar {
37 display: flex;
38 gap: 10px;
39 padding: 8px;
40 border-top: 1px solid #e5e5e5;
41 background: none;
42 }
43
44 #mxchat-chatbot .toolbar-btn {
45 background: none;
46 border: none;
47 padding: 0px;
48 cursor: pointer;
49 width: 20px;
50 height: 20px;
51 display: flex;
52 align-items: center;
53 justify-content: center;
54 opacity: 0.6;
55 transition: opacity 0.2s;
56 margin: 0;
57 min-width: 0;
58 box-shadow: none;
59 }
60
61 #mxchat-chatbot .toolbar-btn svg {
62 width: 100%;
63 height: 100%;
64 }
65
66 #mxchat-chatbot .toolbar-btn:hover {
67 opacity: 1;
68 background: none;
69 border: none;
70 box-shadow: none;
71 }
72
73 #mxchat-chatbot .toolbar-btn:disabled {
74 opacity: 0.3;
75 cursor: not-allowed;
76 background: none;
77 border: none;
78 }
79
80 #mxchat-chatbot .spinner {
81 animation: rotate 2s linear infinite;
82 width: 20px;
83 height: 20px;
84 }
85
86 #mxchat-chatbot .spinner circle {
87 stroke: #212121;
88 stroke-linecap: round;
89 animation: dash 1.5s ease-in-out infinite;
90 }
91
92 @keyframes rotate {
93 100% {
94 transform: rotate(360deg);
95 }
96 }
97
98 @keyframes dash {
99 0% {
100 stroke-dasharray: 1, 150;
101 stroke-dashoffset: 0;
102 }
103 50% {
104 stroke-dasharray: 90, 150;
105 stroke-dashoffset: -35;
106 }
107 100% {
108 stroke-dasharray: 90, 150;
109 stroke-dashoffset: -124;
110 }
111 }
112
113
114
115
116 .mxchat-code-block-container {
117 position: relative;
118 margin: 20px 0;
119 font-family: monospace;
120 }
121
122 .chatbot-title-container {
123 display: flex;
124 align-items: center;
125 justify-content: space-between;
126 width: 100%;
127 }
128
129 .chat-mode-indicator {
130 font-size: 12px;
131 margin-right: 8px;
132 padding: 4px 8px;
133 border-radius: 12px;
134 background: rgba(255, 255, 255, 0.2);
135 color: #ffffff;
136 }
137
138 #mxchat-chatbot #chat-container #chat-box .agent-message {
139 text-align: left;
140 float: left;
141 clear: both;
142 border: 1px solid rgba(226, 232, 255, .2);
143 border-radius: 0 18px 18px;
144 background: #212121;
145 color: #fff;
146 overflow-x: hidden;
147 margin-bottom: 15px;
148 padding: 10px;
149 display: inline-block;
150 max-width: 85%;
151 font-size: 14px;
152 line-height: 24px;
153 box-shadow: -2px 2px rgba(250, 115, 230, 0.6), -4px 4px rgba(120, 115, 245, 0.6);
154 }
155
156 .mxchat-code-block {
157 background-color: #212121;
158 color: #fff;
159 padding: 15px;
160 border-radius: 5px;
161 white-space: pre-wrap; /* Maintain formatting */
162 overflow: auto; /* Enable scrolling for long content */
163 font-family: monospace;
164 }
165
166 .mxchat-code-block code {
167 display: block;
168 white-space: pre-wrap;
169 }
170
171 /* Copy button styling */
172 .mxchat-copy-button {
173 position: absolute;
174 top: 10px;
175 right: 10px;
176 background-color: #0073aa;
177 color: #ffffff;
178 border: none;
179 border-radius: 5px;
180 padding: 5px 15px;
181 font-size: 12px;
182 font-weight: bold;
183 cursor: pointer;
184 transition: background-color 0.3s ease, transform 0.2s ease;
185 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
186 z-index: 10; /* Ensure the button is on top */
187 }
188
189 .mxchat-copy-button:hover {
190 background-color: #005177;
191 transform: translateY(-1px);
192 }
193
194 .mxchat-copy-button:active {
195 transform: translateY(1px);
196 }
197
198 .mxchat-image-gallery {
199 display: flex;
200 flex-wrap: wrap;
201 gap: 10px;
202 justify-content: center;
203 }
204
205 .mxchat-image-item {
206 text-align: center;
207 overflow: hidden;
208 word-wrap: break-word;
209 }
210
211 .mxchat-image-title {
212 display: block;
213 font-size: 14px;
214 color: inherit;
215 white-space: nowrap;
216 overflow: hidden;
217 text-overflow: ellipsis;
218 max-width: 100%;
219 }
220
221 .mxchat-image-link {
222 text-decoration: none;
223 }
224
225 .mxchat-image-thumbnail {
226 max-width: 100%;
227 height: auto;
228 border-radius: 5px;
229 transition: transform 0.3s;
230 }
231
232 .mxchat-image-thumbnail:hover {
233 transform: scale(1.05);
234 }
235 .mxchat-generated-image {
236 max-width: 100%;
237 height: auto;
238 border-radius: 0 0 8px 8px;
239 }
240
241
242 /* MxChat Product Card Styling */
243 .mxchat-product-card {
244 display: flex;
245 flex-direction: column;
246 align-items: center;
247 margin: 10px 0;
248 padding: 10px;
249 border-radius: 5px;
250 background-color: inherit;
251 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
252 }
253
254 .mxchat-product-card img.mxchat-product-image {
255 max-width: 100%;
256 height: auto;
257 margin-bottom: 5px;
258 border-radius: 4px;
259 }
260
261 .mxchat-product-card h3.mxchat-product-name {
262 font-size: 16px;
263 font-weight: bold;
264 margin: 5px 0;
265 text-align: center;
266 color: inherit;
267 }
268
269 .mxchat-product-card .mxchat-product-price {
270 color: inherit;
271 font-weight: bold;
272 margin-bottom: 5px;
273 }
274
275 .mxchat-product-card .mxchat-product-description {
276 font-size: 14px;
277 text-align: center;
278 margin-bottom: 10px;
279 color: inherit;
280 }
281
282 .mxchat-product-card .mxchat-add-to-cart-button {
283 background-color: #0071a1;
284 color: #fff;
285 padding: 8px 12px;
286 border: none;
287 cursor: pointer;
288 border-radius: 3px;
289 transition: background-color 0.3s ease;
290 }
291
292 .mxchat-product-card .mxchat-add-to-cart-button:hover {
293 background-color: #005f87;
294 }
295
296
297
298
299
300 #mxchat-popular-questions {
301 padding: 10px;
302 }
303
304 .mxchat-popular-questions-title {
305 font-size: 14px;
306 line-height: 24px;
307 font-weight: bold;
308 color: #212121;
309 margin-bottom: 10px;
310 }
311
312 .mxchat-popular-questions-container {
313 position: relative; /* Make it the parent for positioning */
314 display: flex;
315 flex-direction: column;
316 max-height: 200px;
317 overflow-y: auto;
318 padding-right: 10px;
319 padding-bottom: 10px;
320 scrollbar-width: thin; /* For Firefox */
321 scrollbar-color: #212121 #f1f1f1; /* Thumb and track colors */
322 }
323
324
325 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
326 .mxchat-popular-questions-container::-webkit-scrollbar {
327 width: 8px;
328 }
329
330 .mxchat-popular-questions-container::-webkit-scrollbar-track {
331 background: #f1f1f1;
332 border-radius: 4px;
333 }
334
335 .mxchat-popular-questions-container::-webkit-scrollbar-thumb {
336 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
337 border-radius: 4px;
338 }
339
340 .mxchat-popular-questions-container::-webkit-scrollbar-thumb:hover {
341 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
342 }
343
344 /* For Firefox */
345 .mxchat-popular-questions-container {
346 scrollbar-width: thin; /* Makes the scrollbar thinner */
347 scrollbar-color: #212121 #f1f1f1; /* Thumb color and track color */
348 }
349
350 /* For Edge and other modern browsers */
351 .mxchat-popular-questions-container {
352 -ms-overflow-style: none; /* Removes the default scrollbars for Edge */
353 scrollbar-gutter: stable; /* Prevent layout shifting */
354 }
355
356 /* For a more uniform cross-browser look */
357 .mxchat-popular-questions-container {
358 overflow: auto;
359 overscroll-behavior: contain;
360 }
361
362 .mxchat-popular-question {
363 padding: 12px 20px;
364 background-color: #f5f5f5; /* Darker background for better contrast */
365 border: 1px solid #bbb; /* Darker border for better visibility */
366 border-radius: 8px;
367 color: #212121;
368 font-size: 14px;
369 line-height: 24px;
370 cursor: pointer;
371 text-align: left;
372 transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
373 margin-bottom: 10px;
374 }
375
376 .mxchat-popular-question:hover {
377 background-color: #eaeaea; /* Slightly darker on hover */
378 border-color: #999; /* Darker border on hover */
379 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
380 color: #212121;
381 }
382
383 .mxchat-popular-question:focus {
384 outline: none;
385 background-color: #e0e0e0; /* Darker background on focus */
386 border-color: #777; /* More prominent focus border */
387 box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5); /* Subtle focus ring */
388 color: #212121;
389 }
390
391 .mxchat-popular-question:active {
392 background-color: #d8d8d8; /* Darker pressed background */
393 border-color: #666; /* Darker border when pressed */
394 box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly darker pressed effect */
395 color: #212121;
396 }
397
398
399 #widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 {
400 padding: 10px;
401 }
402
403 #widget_icon_10 {
404 fill: #fff;
405 }
406
407 .invisible {
408 display: none;
409 opacity: 0;
410 pointer-events: none;
411 }
412
413 #mxchat-chatbot {
414 background: #fff;
415 }
416
417 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice {
418 font-size: 12px;
419 margin: 0;
420 color: #71717a;
421 }
422
423 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a {
424 color: #0073aa; /* You can specify the color for the link */
425 text-decoration: underline;
426 font-size: 12px;
427 }
428
429 #mxchat-chatbot #chat-container #input-container #send-button, .copy-btn {
430 transition: background-color .3s;
431 color: #fff;
432 font-size: 1rem;
433 cursor: pointer;
434 font-weight: 700;
435 margin-bottom: 10px;
436 }
437
438 #mxchat-chatbot {
439 max-width: 800px;
440 overflow: hidden;
441 position: relative;
442 display: flex;
443 flex-direction: column;
444 height: 500px;
445 box-sizing: border-box;
446 flex-grow: 1;
447 }
448
449 #chat-container {
450 display: flex;
451 flex-direction: column;
452 height: 100%;
453 }
454
455 #chat-box {
456 flex-grow: 1;
457 overflow-y: auto;
458 padding: 10px;
459 margin-bottom: 0;
460 font-size: 1rem;
461 }
462
463 #chat-box::-webkit-scrollbar {
464 width: 5px;
465 }
466
467 #chat-box::-webkit-scrollbar-thumb {
468 background-color: #212121;
469 border-radius: 20px;
470 }
471
472 .bot-message, .user-message {
473 margin-bottom: 15px;
474 padding: 10px;
475 display: inline-block;
476 max-width: 85%;
477 box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
478 font-size: 14px;
479 line-height: 24px;
480 }
481
482 .user-message {
483 background: #fff;
484 color: #212121;
485 text-align: left;
486 float: right;
487 clear: both;
488 border-radius: 18px 0 18px 18px;
489 border: solid 1px #212121;
490 word-wrap: break-word;
491 }
492
493 #mxchat-chatbot #chat-container #chat-box .bot-message {
494 text-align: left;
495 float: left;
496 clear: both;
497 border: 1px solid rgba(226, 232, 255, .2);
498 border-radius: 0 18px 18px;
499 background: #212121;
500 color: #fff;
501 overflow-x: hidden;
502 }
503
504 #mxchat-chatbot-wrapper {
505 box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
506 border-radius: 10px;
507 display: flex;
508 flex-direction: column;
509 height: 100%;
510 width: 100%;
511 }
512
513 #mxchat-chatbot #chat-container #input-container {
514 position: relative;
515 display: flex;
516 align-items: center;
517 padding-right: 40px;
518 border: 1px solid #ccc;
519 border-radius: 10px;
520 margin: 10px;
521 }
522
523 #mxchat-chatbot #chat-container #input-container #chat-input {
524 flex-grow: 1;
525 color: #212121;
526 line-height: 24px;
527 background: 0 0;
528 margin-bottom: 0px;
529 width: 100%;
530 min-height: 20px;
531 max-height: 400px;
532 resize: none;
533 overflow-y: auto;
534 font-size: 16px;
535 border: none;
536 border-radius: 5px;
537 box-sizing: border-box;
538 padding: 0.4em 0.5em;
539 outline: none;
540 }
541
542 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
543 #chat-input::-webkit-scrollbar {
544 width: 8px; /* Set the scrollbar width */
545 }
546
547 #chat-input::-webkit-scrollbar-track {
548 background: #f1f1f1; /* Scrollbar track background */
549 border-radius: 4px; /* Round the corners */
550 }
551
552 #chat-input::-webkit-scrollbar-thumb {
553 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient scrollbar thumb */
554 border-radius: 4px; /* Round the corners */
555 }
556
557 #chat-input::-webkit-scrollbar-thumb:hover {
558 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8); /* Hover effect */
559 }
560
561 /* Optional: Ensure consistent styling for other modern browsers using scrollbars */
562 #chat-input {
563 scrollbar-width: thin; /* For Firefox: sets scrollbar width to thin */
564 scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1; /* For Firefox: color for thumb and track */
565 }
566
567
568 #mxchat-chatbot #chat-container #input-container #send-button {
569 position:absolute;
570 right: 10px;
571 top: 50%;
572 transform: translateY(-50%);
573 border: none;
574 border-radius: 50%;
575 width: 30px;
576 height: 30px;
577 display: flex;
578 align-items: center;
579 justify-content: center;
580 background: 0 0!important;
581 padding: 5px;
582 margin: 0px 0px 0px 0px;
583 }
584
585 #mxchat-chatbot #chat-container #input-container #send-button .fa-paper-plane {
586 font-size: 1.3rem;
587 }
588
589 #mxchat-chatbot #chat-container #input-container #send-button svg {
590 width: 25px;
591 height: 25px;
592 pointer-events: none; /* Add this to prevent touch event issues */
593 }
594
595 #send-button:hover, .copy-btn:hover {
596 opacity: .8;
597 }
598
599 #mxchat-chatbot:after {
600 content: "";
601 display: table;
602 clear: both;
603 }
604
605 pre {
606 background-color: #000;
607 border: 1px solid #ddd;
608 border-radius: 20px;
609 border-left: 3px solid #9e7aff;
610 color: #fff;
611 page-break-inside: avoid;
612 font-family: monospace;
613 font-size: 15px;
614 line-height: 1.6;
615 margin-bottom: 1.6em;
616 max-width: 100%;
617 overflow: auto;
618 padding: 1em 1.5em;
619 display: block;
620 word-wrap: break-word;
621 }
622
623 .copy-btn {
624 padding: 10px 20px;
625 border: none;
626 border-radius: 4px;
627 background-color: #9e7aff;
628 }
629
630 #floating-chatbot {
631 position: fixed;
632 bottom: 25px;
633 right: 25px;
634 width: 375px;
635 height: 625px;
636 box-shadow: 0 0 10px rgba(0, 0, 0, .25);
637 border-radius: 20px;
638 overflow: hidden;
639 display: flex;
640 z-index: 100000;
641 transition: transform .3s ease-in-out, opacity .3s ease-in-out;
642 transform: translateY(20%);
643 opacity: 0;
644 pointer-events: none;
645 }
646
647 #floating-chatbot.visible {
648 transform: translateY(0);
649 opacity: 1;
650 pointer-events: auto;
651 }
652
653 #floating-chatbot-button.hidden, .exit-chat span {
654 display: none!important;
655 }
656
657 .visible {
658 display: flex;
659 }
660
661 #floating-chatbot-button {
662 transition: opacity 1s ease-in-out;
663 font-size: 1.25rem;
664 position: fixed;
665 bottom: 30px;
666 right: 25px;
667 background-color: #212121;
668 color: #fff;
669 width: 60px;
670 height: 60px;
671 border-radius: 50%;
672 box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important;
673 justify-content: center;
674 align-items: center;
675 cursor: pointer;
676 transition: .3s;
677 z-index: 100000;
678 display: flex;
679 }
680
681 #floating-chatbot-button img {
682 max-width: 100%;
683 max-height: 100%;
684 width: auto;
685 height: auto;
686 }
687
688 #mxchat-chatbot-wrapper.active+#floating-chatbot-button {
689 bottom: 530px;
690 width: 100%;
691 }
692
693 .chatbot-close-button {
694 position: absolute;
695 top: 5px;
696 right: 5px;
697 border: none;
698 background: 0 0;
699 cursor: pointer;
700 font-size: 20px;
701 color: #f0f0f1;
702 }
703
704 .chatbot-top-bar {
705 background: #212121;
706 }
707
708 #mxchat-chatbot-wrapper .chatbot-top-bar {
709 cursor: pointer;
710 color: #fff;
711 padding: 10px;
712 border-top-left-radius: 10px;
713 border-top-right-radius: 10px;
714 display: flex;
715 justify-content: space-between;
716 align-items: baseline;
717 }
718
719 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title {
720 font-size: 16px;
721 line-height: 25px;
722 padding: 10px;
723 margin: 0;
724 font-family: 'Plus Jakarta Sans', sans-serif;
725 font-weight: bold;
726 }
727
728 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title span {
729 font-weight: 700;
730 }
731
732 #mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat {
733 background: 0 0;
734 border: none;
735 opacity: .8;
736 }
737
738 .exit-chat {
739 border: none;
740 background: 0 0;
741 cursor: pointer;
742 display: flex;
743 align-items: center;
744 justify-content: center;
745 padding: 5px;
746 margin-left: auto;
747 }
748
749 .exit-chat svg {
750 fill: white;
751 width: 24px;
752 height: 24px;
753 transform: rotate(270deg);
754 }
755
756 #mxchat-chatbot-wrapper .chatbot-footer {
757 text-align: center;
758 padding-bottom: 10px;
759 font-size: .85em;
760 }
761
762 #mxchat-chatbot-wrapper .chatbot-footer .powered-by {
763 text-decoration: none;
764 color: inherit;
765 font-weight: 700;
766 }
767
768 #mxchat-chatbot-wrapper .chatbot-footer .powered-by span {
769 text-decoration: underline;
770 }
771
772 .thinking-dots-container {
773 display: flex;
774 justify-content: center;
775 align-items: center;
776 overflow: hidden;
777 height: 20px; /* Adjust as needed */
778 }
779
780 .thinking-dots {
781 display: flex;
782 justify-content: center;
783 align-items: center;
784 height: 90%;
785 }
786
787 .dot {
788 height: 8px;
789 width: 8px;
790 margin: 0 3px;
791 background-color: #fff;
792 border-radius: 50%;
793 display: inline-block;
794 animation: bounce 1.4s ease-in-out infinite both;
795 }
796
797 .dot:first-child {
798 animation-delay: -.32s;
799 }
800
801 .dot:nth-child(2) {
802 animation-delay: -.16s;
803 }
804
805 @keyframes bounce {
806 0%, 100%, 80% {
807 transform: scale(1);
808 }
809 40% {
810 transform: scale(1.5);
811 }
812 }
813
814
815
816 #pre-chat-message {
817 position: fixed;
818 bottom: 85px;
819 right: 30px;
820 background-color: #fff;
821 color: #212121;
822 padding: 10px;
823 box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.3);
824 border-radius: 5px;
825 z-index: 1000;
826 cursor: pointer;
827 max-width: 325px;
828 font-size: 14px;
829 display: none;
830 background: #fff;
831 margin-bottom: 10px;
832 }
833
834 #pre-chat-message .close-pre-chat-message {
835 position: absolute;
836 top: -6px;
837 right: -6px;
838 background-color: #ccc;
839 border: none;
840 color: #212121;
841 font-size: 14px;
842 cursor: pointer;
843 border-radius: 50%;
844 width: 20px;
845 height: 20px;
846 display: flex;
847 align-items: center;
848 justify-content: center;
849 padding: 0;
850 line-height: 1;
851 display: flex; /* Show the close button on hover */
852 }
853
854
855
856 @media (max-width: 550px) {
857
858 #pre-chat-message {
859 bottom: 70px; /* Adjust this value as needed */
860 right: 15px; /* Adjust this value as needed */
861 }
862
863 #chat-input {
864 width: calc(100% - 70px);
865 }
866 .bot-message, .user-message {
867 padding: 10px;
868 max-width: 95%;
869 }
870 #floating-chatbot-button {
871 bottom: 15px;
872 right: 10px;
873 }
874 #floating-chatbot {
875 width: 100vw;
876 height: calc(var(--vh, 1vh) * 100);
877 margin: 0;
878 padding: 0;
879 position: fixed;
880 bottom: 0;
881 top: 0;
882 left: 0;
883 right: 0;
884 border-radius: 0;
885 }
886 #mxchat-chatbot-wrapper .chatbot-top-bar {
887 border-top-left-radius: 0;
888 border-top-right-radius: 0;
889 }
890 }
891