PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.5.5
MxChat – AI Chatbot & Content Generation for WordPress v1.5.5
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.5, at css/chat-style.css

890 lines 18.2 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 }
252
253 .mxchat-product-card img.mxchat-product-image {
254 max-width: 100%;
255 height: auto;
256 margin-bottom: 5px;
257 border-radius: 4px;
258 }
259
260 .mxchat-product-card h3.mxchat-product-name {
261 font-size: 16px;
262 font-weight: bold;
263 margin: 5px 0;
264 text-align: center;
265 color: inherit;
266 }
267
268 .mxchat-product-card .mxchat-product-price {
269 color: inherit;
270 font-weight: bold;
271 margin-bottom: 5px;
272 }
273
274 .mxchat-product-card .mxchat-product-description {
275 font-size: 14px;
276 text-align: center;
277 margin-bottom: 10px;
278 color: inherit;
279 }
280
281 .mxchat-product-card .mxchat-add-to-cart-button {
282 background-color: #0071a1;
283 color: #fff;
284 padding: 8px 12px;
285 border: none;
286 cursor: pointer;
287 border-radius: 3px;
288 transition: background-color 0.3s ease;
289 }
290
291 .mxchat-product-card .mxchat-add-to-cart-button:hover {
292 background-color: #005f87;
293 }
294
295
296
297
298
299 #mxchat-popular-questions {
300 padding: 10px;
301 }
302
303 .mxchat-popular-questions-title {
304 font-size: 14px;
305 line-height: 24px;
306 font-weight: bold;
307 color: #212121;
308 margin-bottom: 10px;
309 }
310
311 .mxchat-popular-questions-container {
312 position: relative; /* Make it the parent for positioning */
313 display: flex;
314 flex-direction: column;
315 max-height: 200px;
316 overflow-y: auto;
317 padding-right: 10px;
318 padding-bottom: 10px;
319 scrollbar-width: thin; /* For Firefox */
320 scrollbar-color: #212121 #f1f1f1; /* Thumb and track colors */
321 }
322
323
324 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
325 .mxchat-popular-questions-container::-webkit-scrollbar {
326 width: 8px;
327 }
328
329 .mxchat-popular-questions-container::-webkit-scrollbar-track {
330 background: #f1f1f1;
331 border-radius: 4px;
332 }
333
334 .mxchat-popular-questions-container::-webkit-scrollbar-thumb {
335 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
336 border-radius: 4px;
337 }
338
339 .mxchat-popular-questions-container::-webkit-scrollbar-thumb:hover {
340 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8);
341 }
342
343 /* For Firefox */
344 .mxchat-popular-questions-container {
345 scrollbar-width: thin; /* Makes the scrollbar thinner */
346 scrollbar-color: #212121 #f1f1f1; /* Thumb color and track color */
347 }
348
349 /* For Edge and other modern browsers */
350 .mxchat-popular-questions-container {
351 -ms-overflow-style: none; /* Removes the default scrollbars for Edge */
352 scrollbar-gutter: stable; /* Prevent layout shifting */
353 }
354
355 /* For a more uniform cross-browser look */
356 .mxchat-popular-questions-container {
357 overflow: auto;
358 overscroll-behavior: contain;
359 }
360
361 .mxchat-popular-question {
362 padding: 12px 20px;
363 background-color: #f5f5f5; /* Darker background for better contrast */
364 border: 1px solid #bbb; /* Darker border for better visibility */
365 border-radius: 8px;
366 color: #212121;
367 font-size: 14px;
368 line-height: 24px;
369 cursor: pointer;
370 text-align: left;
371 transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
372 margin-bottom: 10px;
373 }
374
375 .mxchat-popular-question:hover {
376 background-color: #eaeaea; /* Slightly darker on hover */
377 border-color: #999; /* Darker border on hover */
378 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
379 color: #212121;
380 }
381
382 .mxchat-popular-question:focus {
383 outline: none;
384 background-color: #e0e0e0; /* Darker background on focus */
385 border-color: #777; /* More prominent focus border */
386 box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5); /* Subtle focus ring */
387 color: #212121;
388 }
389
390 .mxchat-popular-question:active {
391 background-color: #d8d8d8; /* Darker pressed background */
392 border-color: #666; /* Darker border when pressed */
393 box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly darker pressed effect */
394 color: #212121;
395 }
396
397
398 #widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 {
399 padding: 10px;
400 }
401
402 #widget_icon_10 {
403 fill: #fff;
404 }
405
406 .invisible {
407 display: none;
408 opacity: 0;
409 pointer-events: none;
410 }
411
412 #mxchat-chatbot {
413 background: #fff;
414 }
415
416 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice {
417 font-size: 12px;
418 margin: 0;
419 color: #71717a;
420 }
421
422 #mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a {
423 color: #0073aa; /* You can specify the color for the link */
424 text-decoration: underline;
425 font-size: 12px;
426 }
427
428 #mxchat-chatbot #chat-container #input-container #send-button, .copy-btn {
429 transition: background-color .3s;
430 color: #fff;
431 font-size: 1rem;
432 cursor: pointer;
433 font-weight: 700;
434 margin-bottom: 10px;
435 }
436
437 #mxchat-chatbot {
438 max-width: 800px;
439 overflow: hidden;
440 position: relative;
441 display: flex;
442 flex-direction: column;
443 height: 500px;
444 box-sizing: border-box;
445 flex-grow: 1;
446 }
447
448 #chat-container {
449 display: flex;
450 flex-direction: column;
451 height: 100%;
452 }
453
454 #chat-box {
455 flex-grow: 1;
456 overflow-y: auto;
457 padding: 10px;
458 margin-bottom: 0;
459 font-size: 1rem;
460 }
461
462 #chat-box::-webkit-scrollbar {
463 width: 5px;
464 }
465
466 #chat-box::-webkit-scrollbar-thumb {
467 background-color: #212121;
468 border-radius: 20px;
469 }
470
471 .bot-message, .user-message {
472 margin-bottom: 15px;
473 padding: 10px;
474 display: inline-block;
475 max-width: 85%;
476 box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
477 font-size: 14px;
478 line-height: 24px;
479 }
480
481 .user-message {
482 background: #fff;
483 color: #212121;
484 text-align: left;
485 float: right;
486 clear: both;
487 border-radius: 18px 0 18px 18px;
488 border: solid 1px #212121;
489 word-wrap: break-word;
490 }
491
492 #mxchat-chatbot #chat-container #chat-box .bot-message {
493 text-align: left;
494 float: left;
495 clear: both;
496 border: 1px solid rgba(226, 232, 255, .2);
497 border-radius: 0 18px 18px;
498 background: #212121;
499 color: #fff;
500 overflow-x: hidden;
501 }
502
503 #mxchat-chatbot-wrapper {
504 box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
505 border-radius: 10px;
506 display: flex;
507 flex-direction: column;
508 height: 100%;
509 width: 100%;
510 }
511
512 #mxchat-chatbot #chat-container #input-container {
513 position: relative;
514 display: flex;
515 align-items: center;
516 padding-right: 40px;
517 border: 1px solid #ccc;
518 border-radius: 10px;
519 margin: 10px;
520 }
521
522 #mxchat-chatbot #chat-container #input-container #chat-input {
523 flex-grow: 1;
524 color: #212121;
525 line-height: 24px;
526 background: 0 0;
527 margin-bottom: 0px;
528 width: 100%;
529 min-height: 20px;
530 max-height: 400px;
531 resize: none;
532 overflow-y: auto;
533 font-size: 16px;
534 border: none;
535 border-radius: 5px;
536 box-sizing: border-box;
537 padding: 0.4em 0.5em;
538 outline: none;
539 }
540
541 /* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
542 #chat-input::-webkit-scrollbar {
543 width: 8px; /* Set the scrollbar width */
544 }
545
546 #chat-input::-webkit-scrollbar-track {
547 background: #f1f1f1; /* Scrollbar track background */
548 border-radius: 4px; /* Round the corners */
549 }
550
551 #chat-input::-webkit-scrollbar-thumb {
552 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient scrollbar thumb */
553 border-radius: 4px; /* Round the corners */
554 }
555
556 #chat-input::-webkit-scrollbar-thumb:hover {
557 background: linear-gradient(135deg, #d164ce, #6568d8, #2daeb8); /* Hover effect */
558 }
559
560 /* Optional: Ensure consistent styling for other modern browsers using scrollbars */
561 #chat-input {
562 scrollbar-width: thin; /* For Firefox: sets scrollbar width to thin */
563 scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1; /* For Firefox: color for thumb and track */
564 }
565
566
567 #mxchat-chatbot #chat-container #input-container #send-button {
568 position:absolute;
569 right: 10px;
570 top: 50%;
571 transform: translateY(-50%);
572 border: none;
573 border-radius: 50%;
574 width: 30px;
575 height: 30px;
576 display: flex;
577 align-items: center;
578 justify-content: center;
579 background: 0 0!important;
580 padding: 5px;
581 margin: 0px 0px 0px 0px;
582 }
583
584 #mxchat-chatbot #chat-container #input-container #send-button .fa-paper-plane {
585 font-size: 1.3rem;
586 }
587
588 #mxchat-chatbot #chat-container #input-container #send-button svg {
589 width: 25px;
590 height: 25px;
591 pointer-events: none; /* Add this to prevent touch event issues */
592 }
593
594 #send-button:hover, .copy-btn:hover {
595 opacity: .8;
596 }
597
598 #mxchat-chatbot:after {
599 content: "";
600 display: table;
601 clear: both;
602 }
603
604 pre {
605 background-color: #000;
606 border: 1px solid #ddd;
607 border-radius: 20px;
608 border-left: 3px solid #9e7aff;
609 color: #fff;
610 page-break-inside: avoid;
611 font-family: monospace;
612 font-size: 15px;
613 line-height: 1.6;
614 margin-bottom: 1.6em;
615 max-width: 100%;
616 overflow: auto;
617 padding: 1em 1.5em;
618 display: block;
619 word-wrap: break-word;
620 }
621
622 .copy-btn {
623 padding: 10px 20px;
624 border: none;
625 border-radius: 4px;
626 background-color: #9e7aff;
627 }
628
629 #floating-chatbot {
630 position: fixed;
631 bottom: 25px;
632 right: 25px;
633 width: 375px;
634 height: 625px;
635 box-shadow: 0 0 10px rgba(0, 0, 0, .25);
636 border-radius: 20px;
637 overflow: hidden;
638 display: flex;
639 z-index: 100000;
640 transition: transform .3s ease-in-out, opacity .3s ease-in-out;
641 transform: translateY(20%);
642 opacity: 0;
643 pointer-events: none;
644 }
645
646 #floating-chatbot.visible {
647 transform: translateY(0);
648 opacity: 1;
649 pointer-events: auto;
650 }
651
652 #floating-chatbot-button.hidden, .exit-chat span {
653 display: none!important;
654 }
655
656 .visible {
657 display: flex;
658 }
659
660 #floating-chatbot-button {
661 transition: opacity 1s ease-in-out;
662 font-size: 1.25rem;
663 position: fixed;
664 bottom: 30px;
665 right: 25px;
666 background-color: #212121;
667 color: #fff;
668 width: 60px;
669 height: 60px;
670 border-radius: 50%;
671 box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important;
672 justify-content: center;
673 align-items: center;
674 cursor: pointer;
675 transition: .3s;
676 z-index: 100000;
677 display: flex;
678 }
679
680 #floating-chatbot-button img {
681 max-width: 100%;
682 max-height: 100%;
683 width: auto;
684 height: auto;
685 }
686
687 #mxchat-chatbot-wrapper.active+#floating-chatbot-button {
688 bottom: 530px;
689 width: 100%;
690 }
691
692 .chatbot-close-button {
693 position: absolute;
694 top: 5px;
695 right: 5px;
696 border: none;
697 background: 0 0;
698 cursor: pointer;
699 font-size: 20px;
700 color: #f0f0f1;
701 }
702
703 .chatbot-top-bar {
704 background: #212121;
705 }
706
707 #mxchat-chatbot-wrapper .chatbot-top-bar {
708 cursor: pointer;
709 color: #fff;
710 padding: 10px;
711 border-top-left-radius: 10px;
712 border-top-right-radius: 10px;
713 display: flex;
714 justify-content: space-between;
715 align-items: baseline;
716 }
717
718 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title {
719 font-size: 16px;
720 line-height: 25px;
721 padding: 10px;
722 margin: 0;
723 font-family: 'Plus Jakarta Sans', sans-serif;
724 font-weight: bold;
725 }
726
727 #mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title span {
728 font-weight: 700;
729 }
730
731 #mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat {
732 background: 0 0;
733 border: none;
734 opacity: .8;
735 }
736
737 .exit-chat {
738 border: none;
739 background: 0 0;
740 cursor: pointer;
741 display: flex;
742 align-items: center;
743 justify-content: center;
744 padding: 5px;
745 margin-left: auto;
746 }
747
748 .exit-chat svg {
749 fill: white;
750 width: 24px;
751 height: 24px;
752 transform: rotate(270deg);
753 }
754
755 #mxchat-chatbot-wrapper .chatbot-footer {
756 text-align: center;
757 padding-bottom: 10px;
758 font-size: .85em;
759 }
760
761 #mxchat-chatbot-wrapper .chatbot-footer .powered-by {
762 text-decoration: none;
763 color: inherit;
764 font-weight: 700;
765 }
766
767 #mxchat-chatbot-wrapper .chatbot-footer .powered-by span {
768 text-decoration: underline;
769 }
770
771 .thinking-dots-container {
772 display: flex;
773 justify-content: center;
774 align-items: center;
775 overflow: hidden;
776 height: 20px; /* Adjust as needed */
777 }
778
779 .thinking-dots {
780 display: flex;
781 justify-content: center;
782 align-items: center;
783 height: 90%;
784 }
785
786 .dot {
787 height: 8px;
788 width: 8px;
789 margin: 0 3px;
790 background-color: #fff;
791 border-radius: 50%;
792 display: inline-block;
793 animation: bounce 1.4s ease-in-out infinite both;
794 }
795
796 .dot:first-child {
797 animation-delay: -.32s;
798 }
799
800 .dot:nth-child(2) {
801 animation-delay: -.16s;
802 }
803
804 @keyframes bounce {
805 0%, 100%, 80% {
806 transform: scale(1);
807 }
808 40% {
809 transform: scale(1.5);
810 }
811 }
812
813
814
815 #pre-chat-message {
816 position: fixed;
817 bottom: 85px;
818 right: 30px;
819 background-color: #fff;
820 color: #212121;
821 padding: 10px;
822 box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.3);
823 border-radius: 5px;
824 z-index: 1000;
825 cursor: pointer;
826 max-width: 325px;
827 font-size: 14px;
828 display: none;
829 background: #fff;
830 margin-bottom: 10px;
831 }
832
833 #pre-chat-message .close-pre-chat-message {
834 position: absolute;
835 top: -6px;
836 right: -6px;
837 background-color: #ccc;
838 border: none;
839 color: #212121;
840 font-size: 14px;
841 cursor: pointer;
842 border-radius: 50%;
843 width: 20px;
844 height: 20px;
845 display: flex;
846 align-items: center;
847 justify-content: center;
848 padding: 0;
849 line-height: 1;
850 display: flex; /* Show the close button on hover */
851 }
852
853
854
855 @media (max-width: 550px) {
856
857 #pre-chat-message {
858 bottom: 70px; /* Adjust this value as needed */
859 right: 15px; /* Adjust this value as needed */
860 }
861
862 #chat-input {
863 width: calc(100% - 70px);
864 }
865 .bot-message, .user-message {
866 padding: 10px;
867 max-width: 95%;
868 }
869 #floating-chatbot-button {
870 bottom: 15px;
871 right: 10px;
872 }
873 #floating-chatbot {
874 width: 100vw;
875 height: calc(var(--vh, 1vh) * 100);
876 margin: 0;
877 padding: 0;
878 position: fixed;
879 bottom: 0;
880 top: 0;
881 left: 0;
882 right: 0;
883 border-radius: 0;
884 }
885 #mxchat-chatbot-wrapper .chatbot-top-bar {
886 border-top-left-radius: 0;
887 border-top-right-radius: 0;
888 }
889 }
890