| @@ -958,11 +958,9 @@ | ||
| 958 | 958 | .chatbot-title-container { |
| 959 | 959 | display: flex; |
| 960 | 960 | align-items: center; |
| 961 | 961 | justify-content: space-between; |
| 962 | - gap: 10px; | |
| 963 | - flex: 1 1 auto; | |
| 964 | - min-width: 0; | |
| 962 | + width: 100%; | |
| 965 | 963 | } |
| 966 | 964 | |
| 967 | 965 | .chatbot-title-group { |
| 968 | 966 | display: flex; |
| @@ -971,19 +969,13 @@ | ||
| 971 | 969 | } |
| 972 | 970 | |
| 973 | 971 | .chat-mode-indicator { |
| 974 | 972 | font-size: 12px; |
| 975 | - line-height: 1; | |
| 976 | - margin-right: 0; | |
| 977 | - padding: 4px 9px; | |
| 978 | - border-radius: 999px; | |
| 979 | - background: rgba(255, 255, 255, 0.18); | |
| 973 | + margin-right: 8px; | |
| 974 | + padding: 4px 8px; | |
| 975 | + border-radius: 12px; | |
| 976 | + background: rgba(255, 255, 255, 0.2); | |
| 980 | 977 | color: #ffffff; |
| 981 | - display: inline-flex; | |
| 982 | - align-items: center; | |
| 983 | - height: 22px; | |
| 984 | - white-space: nowrap; | |
| 985 | - flex: 0 0 auto; | |
| 986 | 978 | } |
| 987 | 979 | |
| 988 | 980 | .floating-chatbot { |
| 989 | 981 | position: fixed; |
| @@ -1033,9 +1025,9 @@ | ||
| 1033 | 1025 | display: none !important; |
| 1034 | 1026 | } |
| 1035 | 1027 | |
| 1036 | 1028 | .chatbot-top-bar button.exit-chat:hover { |
| 1037 | - background: rgba(255, 255, 255, 0.12); | |
| 1029 | + background: none; | |
| 1038 | 1030 | } |
| 1039 | 1031 | .visible { |
| 1040 | 1032 | display: flex; |
| 1041 | 1033 | } |
| @@ -1075,36 +1067,29 @@ | ||
| 1075 | 1067 | background: transparent; |
| 1076 | 1068 | border: none; |
| 1077 | 1069 | opacity: 0.8; |
| 1078 | 1070 | padding: 0; |
| 1079 | - width: 32px; | |
| 1080 | - height: 32px; | |
| 1081 | - min-width: 32px; | |
| 1082 | - flex: 0 0 auto; | |
| 1083 | - border-radius: 6px; | |
| 1084 | - transition: opacity 0.15s ease, background 0.15s ease; | |
| 1071 | + min-width: 20px; | |
| 1085 | 1072 | } |
| 1086 | 1073 | |
| 1087 | 1074 | .mxchat-chatbot-wrapper .chatbot-top-bar { |
| 1088 | 1075 | cursor: pointer; |
| 1089 | 1076 | color: #fff; |
| 1090 | - padding: 8px 12px; | |
| 1091 | - min-height: 48px; | |
| 1092 | - gap: 8px; | |
| 1077 | + padding: 10px; | |
| 1093 | 1078 | border-top-left-radius: 10px; |
| 1094 | 1079 | border-top-right-radius: 10px; |
| 1095 | 1080 | display: flex; |
| 1096 | 1081 | justify-content: space-between; |
| 1097 | - align-items: center; | |
| 1082 | + align-items: start; | |
| 1098 | 1083 | } |
| 1099 | 1084 | |
| 1100 | 1085 | .mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title { |
| 1101 | - font-size: 15px; | |
| 1102 | - line-height: 1.2; | |
| 1103 | - padding: 0; | |
| 1086 | + font-size: 16px; | |
| 1087 | + line-height: 25px; | |
| 1088 | + padding: 10px; | |
| 1104 | 1089 | margin: 0; |
| 1105 | 1090 | font-family: 'Plus Jakarta Sans', sans-serif; |
| 1106 | - font-weight: 600; | |
| 1091 | + font-weight: bold; | |
| 1107 | 1092 | } |
| 1108 | 1093 | |
| 1109 | 1094 | .exit-chat { |
| 1110 | 1095 | border: none; |
| @@ -1109,25 +1094,22 @@ | ||
| 1109 | 1094 | .exit-chat { |
| 1110 | 1095 | border: none; |
| 1111 | 1096 | background: transparent; |
| 1112 | 1097 | cursor: pointer; |
| 1113 | - display: inline-flex; | |
| 1098 | + display: flex; | |
| 1114 | 1099 | align-items: center; |
| 1115 | 1100 | justify-content: center; |
| 1116 | - padding: 0; | |
| 1101 | + padding: 5px; | |
| 1117 | 1102 | margin-left: auto; |
| 1118 | 1103 | opacity: 0.8; |
| 1119 | - width: 32px; | |
| 1120 | - height: 32px; | |
| 1121 | - min-width: 32px; | |
| 1122 | - flex: 0 0 auto; | |
| 1104 | + min-width: 20px; | |
| 1123 | 1105 | } |
| 1124 | 1106 | |
| 1125 | 1107 | .exit-chat svg { |
| 1126 | - width: 18px; | |
| 1127 | - height: 18px; | |
| 1128 | - fill: none; | |
| 1129 | - stroke: currentColor; | |
| 1108 | + fill: white; | |
| 1109 | + width: 24px; | |
| 1110 | + height: 24px; | |
| 1111 | + transform: rotate(270deg); | |
| 1130 | 1112 | } |
| 1131 | 1113 | |
| 1132 | 1114 | .mxchat-chatbot-wrapper .chatbot-footer { |
| 1133 | 1115 | text-align: center; |
| @@ -1620,331 +1602,5 @@ | ||
| 1620 | 1602 | |
| 1621 | 1603 | /* Hide when actually collapsed */ |
| 1622 | 1604 | .mxchat-popular-questions.collapsed .mxchat-popular-questions-container .questions-collapse-btn { |
| 1623 | 1605 | display: none; |
| 1624 | -} | |
| 1625 | - | |
| 1626 | -/* ============================================================ | |
| 1627 | - Header overflow menu — 3-dot kebab + dropdown (v3.2.9 / v3.2.10) | |
| 1628 | - Lives in .chatbot-top-bar to the LEFT of .exit-chat. Visual treatment | |
| 1629 | - mirrors .exit-chat: transparent, white-on-dark, 0.8 opacity, 5px pad. | |
| 1630 | - | |
| 1631 | - v3.2.10: explicit `order` rules pin the visual order | |
| 1632 | - title (0) | kebab (1) | down-arrow (2) | |
| 1633 | - so the down-arrow is always the rightmost icon regardless of source | |
| 1634 | - order or which sibling has margin-left:auto. | |
| 1635 | - ============================================================ */ | |
| 1636 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .chatbot-title-container { order: 0; } | |
| 1637 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .mxchat-header-menu-wrap { order: 1; } | |
| 1638 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .exit-chat { order: 2; } | |
| 1639 | - | |
| 1640 | -.mxchat-header-menu-wrap { | |
| 1641 | - position: relative; | |
| 1642 | - display: inline-flex; | |
| 1643 | - align-items: center; | |
| 1644 | - margin-left: auto; /* push kebab + arrow group to the right edge */ | |
| 1645 | -} | |
| 1646 | -.mxchat-chatbot-wrapper .chatbot-top-bar .mxchat-header-menu-wrap ~ .exit-chat, | |
| 1647 | -.mxchat-chatbot-wrapper .chatbot-top-bar .mxchat-header-menu-wrap + .exit-chat { | |
| 1648 | - margin-left: 4px; /* even, snug gap between kebab and close */ | |
| 1649 | -} | |
| 1650 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .exit-chat:focus { | |
| 1651 | - background: rgba(255, 255, 255, 0.12); | |
| 1652 | - opacity: 1; | |
| 1653 | - outline: none; | |
| 1654 | -} | |
| 1655 | -.mxchat-header-btn { | |
| 1656 | - border: none; | |
| 1657 | - background: transparent; | |
| 1658 | - cursor: pointer; | |
| 1659 | - display: inline-flex; | |
| 1660 | - align-items: center; | |
| 1661 | - justify-content: center; | |
| 1662 | - padding: 0; | |
| 1663 | - opacity: 0.8; | |
| 1664 | - color: #fff; | |
| 1665 | - transition: opacity 0.15s ease, background 0.15s ease; | |
| 1666 | - border-radius: 6px; | |
| 1667 | - line-height: 0; | |
| 1668 | - width: 32px; | |
| 1669 | - height: 32px; | |
| 1670 | - min-width: 32px; | |
| 1671 | - flex: 0 0 auto; | |
| 1672 | -} | |
| 1673 | -.mxchat-header-btn:hover, | |
| 1674 | -.mxchat-header-btn:focus { | |
| 1675 | - opacity: 1; | |
| 1676 | - background: rgba(255, 255, 255, 0.12); | |
| 1677 | - outline: none; | |
| 1678 | -} | |
| 1679 | -.mxchat-header-btn[aria-expanded="true"] { | |
| 1680 | - opacity: 1; | |
| 1681 | - background: rgba(255, 255, 255, 0.12); | |
| 1682 | -} | |
| 1683 | -.mxchat-menu-trigger svg { | |
| 1684 | - width: 18px; | |
| 1685 | - height: 18px; | |
| 1686 | -} | |
| 1687 | - | |
| 1688 | -.mxchat-header-menu { | |
| 1689 | - position: absolute; | |
| 1690 | - top: calc(100% + 6px); | |
| 1691 | - right: 0; | |
| 1692 | - min-width: 220px; | |
| 1693 | - background: var(--mxchat-menu-bg, #ffffff); | |
| 1694 | - color: var(--mxchat-menu-fg, #1a1a1a); | |
| 1695 | - border: 1px solid rgba(127, 127, 127, 0.20); | |
| 1696 | - border-radius: 10px; | |
| 1697 | - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.10); | |
| 1698 | - padding: 4px; | |
| 1699 | - z-index: 5; | |
| 1700 | - opacity: 0; | |
| 1701 | - transform: translateY(-4px); | |
| 1702 | - pointer-events: none; | |
| 1703 | - transition: opacity 0.12s ease, transform 0.12s ease; | |
| 1704 | -} | |
| 1705 | -.mxchat-header-menu.is-open { | |
| 1706 | - opacity: 1; | |
| 1707 | - transform: translateY(0); | |
| 1708 | - pointer-events: auto; | |
| 1709 | -} | |
| 1710 | -.mxchat-header-menu[hidden] { | |
| 1711 | - display: none; | |
| 1712 | -} | |
| 1713 | -.mxchat-menu-item { | |
| 1714 | - display: flex; | |
| 1715 | - align-items: center; | |
| 1716 | - gap: 10px; | |
| 1717 | - width: 100%; | |
| 1718 | - padding: 8px 12px; | |
| 1719 | - min-height: 40px; | |
| 1720 | - border: none; | |
| 1721 | - background: transparent; | |
| 1722 | - color: inherit; | |
| 1723 | - font-size: 14px; | |
| 1724 | - line-height: 1.3; | |
| 1725 | - text-align: left; | |
| 1726 | - cursor: pointer; | |
| 1727 | - border-radius: 6px; | |
| 1728 | - transition: background 0.12s ease; | |
| 1729 | - text-decoration: none; | |
| 1730 | - box-sizing: border-box; | |
| 1731 | -} | |
| 1732 | -.mxchat-menu-item:hover, | |
| 1733 | -.mxchat-menu-item:focus { | |
| 1734 | - background: rgba(127, 127, 127, 0.18); | |
| 1735 | - outline: none; | |
| 1736 | -} | |
| 1737 | -.mxchat-menu-item-icon { | |
| 1738 | - display: inline-flex; | |
| 1739 | - align-items: center; | |
| 1740 | - justify-content: center; | |
| 1741 | - width: 16px; | |
| 1742 | - height: 16px; | |
| 1743 | - color: inherit; | |
| 1744 | - opacity: 0.85; | |
| 1745 | - flex-shrink: 0; | |
| 1746 | -} | |
| 1747 | -.mxchat-menu-item-icon svg { | |
| 1748 | - width: 16px; | |
| 1749 | - height: 16px; | |
| 1750 | - display: block; | |
| 1751 | -} | |
| 1752 | -.mxchat-menu-item-label { | |
| 1753 | - flex: 1; | |
| 1754 | - color: inherit; | |
| 1755 | -} | |
| 1756 | - | |
| 1757 | -/* RTL — flip the dropdown anchor edge */ | |
| 1758 | -[dir="rtl"] .mxchat-header-menu, | |
| 1759 | -.mxchat-chatbot-wrapper[dir="rtl"] .mxchat-header-menu { | |
| 1760 | - right: auto; | |
| 1761 | - left: 0; | |
| 1762 | -} | |
| 1763 | - | |
| 1764 | -/* ============================================================================ | |
| 1765 | - Satisfaction rating (v3.2.6 — polished per plan-141a12) | |
| 1766 | - Theme-adaptive via currentColor + inherit. Clean slate — old rules removed. | |
| 1767 | - ========================================================================= */ | |
| 1768 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-prompt, | |
| 1769 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-feedback, | |
| 1770 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-saved { | |
| 1771 | - clear: both; | |
| 1772 | - float: left; | |
| 1773 | - max-width: 92%; | |
| 1774 | - box-sizing: border-box; | |
| 1775 | -} | |
| 1776 | - | |
| 1777 | -/* Theme-adaptive wrapper — .bot-message carries the user's custom bg/color via | |
| 1778 | - inline style; the inner rating component supplies its own padding + layout. */ | |
| 1779 | -.mxchat-rating-bot-bubble { | |
| 1780 | - padding: 0; | |
| 1781 | - overflow: visible; | |
| 1782 | -} | |
| 1783 | - | |
| 1784 | -.mxchat-rating-prompt { | |
| 1785 | - display: flex; | |
| 1786 | - flex-direction: column; | |
| 1787 | - align-items: stretch; | |
| 1788 | - gap: 10px; | |
| 1789 | - padding: 10px 14px; | |
| 1790 | - margin: 10px 0; | |
| 1791 | - font-size: 14px; | |
| 1792 | - color: inherit; | |
| 1793 | -} | |
| 1794 | - | |
| 1795 | -.mxchat-rating-question { | |
| 1796 | - color: inherit; | |
| 1797 | - opacity: 0.85; | |
| 1798 | - font-weight: 500; | |
| 1799 | -} | |
| 1800 | - | |
| 1801 | -.mxchat-rating-actions { | |
| 1802 | - display: flex; | |
| 1803 | - align-items: center; | |
| 1804 | - gap: 8px; | |
| 1805 | -} | |
| 1806 | - | |
| 1807 | -.mxchat-rating-buttons { | |
| 1808 | - display: inline-flex; | |
| 1809 | - gap: 6px; | |
| 1810 | -} | |
| 1811 | - | |
| 1812 | -.mxchat-rating-btn { | |
| 1813 | - display: inline-flex; | |
| 1814 | - align-items: center; | |
| 1815 | - justify-content: center; | |
| 1816 | - width: 32px; | |
| 1817 | - height: 32px; | |
| 1818 | - border-radius: 8px; | |
| 1819 | - background: transparent; | |
| 1820 | - border: none; | |
| 1821 | - color: inherit; | |
| 1822 | - opacity: 0.6; | |
| 1823 | - cursor: pointer; | |
| 1824 | - transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; | |
| 1825 | - padding: 0; | |
| 1826 | -} | |
| 1827 | - | |
| 1828 | -.mxchat-rating-btn:hover { | |
| 1829 | - opacity: 1; | |
| 1830 | - transform: scale(1.12); | |
| 1831 | - background: rgba(255, 255, 255, 0.08); | |
| 1832 | -} | |
| 1833 | - | |
| 1834 | -.mxchat-rating-btn:focus-visible { | |
| 1835 | - opacity: 1; | |
| 1836 | - outline: 2px solid currentColor; | |
| 1837 | - outline-offset: 2px; | |
| 1838 | -} | |
| 1839 | - | |
| 1840 | -.mxchat-rating-btn svg { | |
| 1841 | - pointer-events: none; | |
| 1842 | -} | |
| 1843 | - | |
| 1844 | -.mxchat-rating-dismiss { | |
| 1845 | - width: 24px; | |
| 1846 | - height: 24px; | |
| 1847 | - border-radius: 6px; | |
| 1848 | - background: transparent; | |
| 1849 | - border: none; | |
| 1850 | - color: inherit; | |
| 1851 | - opacity: 0.45; | |
| 1852 | - cursor: pointer; | |
| 1853 | - font-size: 18px; | |
| 1854 | - line-height: 1; | |
| 1855 | - transition: opacity 0.18s ease, background-color 0.18s ease; | |
| 1856 | -} | |
| 1857 | - | |
| 1858 | -.mxchat-rating-dismiss:hover { | |
| 1859 | - opacity: 0.9; | |
| 1860 | - background: rgba(255, 255, 255, 0.08); | |
| 1861 | -} | |
| 1862 | - | |
| 1863 | -/* Feedback panel that replaces the prompt after a rating is clicked */ | |
| 1864 | -.mxchat-rating-feedback { | |
| 1865 | - padding: 12px 14px; | |
| 1866 | - margin: 10px 0; | |
| 1867 | - display: flex; | |
| 1868 | - flex-direction: column; | |
| 1869 | - gap: 10px; | |
| 1870 | - color: inherit; | |
| 1871 | - animation: mxchat-rating-fade-in 0.22s ease; | |
| 1872 | -} | |
| 1873 | - | |
| 1874 | -.mxchat-rating-feedback-label { | |
| 1875 | - font-size: 13px; | |
| 1876 | - opacity: 0.85; | |
| 1877 | - font-weight: 500; | |
| 1878 | -} | |
| 1879 | - | |
| 1880 | -.mxchat-rating-feedback-input { | |
| 1881 | - width: 100%; | |
| 1882 | - box-sizing: border-box; | |
| 1883 | - padding: 8px 10px; | |
| 1884 | - border: 1px solid rgba(255, 255, 255, 0.25); | |
| 1885 | - border-radius: 8px; | |
| 1886 | - font-size: 14px; | |
| 1887 | - font-family: inherit; | |
| 1888 | - resize: vertical; | |
| 1889 | - background: rgba(255, 255, 255, 0.08); | |
| 1890 | - color: inherit; | |
| 1891 | -} | |
| 1892 | - | |
| 1893 | -.mxchat-rating-feedback-input:focus { | |
| 1894 | - outline: none; | |
| 1895 | - border-color: rgba(255, 255, 255, 0.45); | |
| 1896 | - background: rgba(255, 255, 255, 0.15); | |
| 1897 | -} | |
| 1898 | - | |
| 1899 | -.mxchat-rating-feedback-actions { | |
| 1900 | - display: flex; | |
| 1901 | - justify-content: flex-end; | |
| 1902 | - gap: 8px; | |
| 1903 | -} | |
| 1904 | - | |
| 1905 | -.mxchat-rating-skip, | |
| 1906 | -.mxchat-rating-submit { | |
| 1907 | - padding: 6px 14px; | |
| 1908 | - border-radius: 8px; | |
| 1909 | - font-size: 13px; | |
| 1910 | - font-weight: 500; | |
| 1911 | - cursor: pointer; | |
| 1912 | - border: none; | |
| 1913 | - transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease; | |
| 1914 | -} | |
| 1915 | - | |
| 1916 | -.mxchat-rating-skip { | |
| 1917 | - background: transparent; | |
| 1918 | - color: inherit; | |
| 1919 | - opacity: 0.6; | |
| 1920 | -} | |
| 1921 | - | |
| 1922 | -.mxchat-rating-skip:hover { | |
| 1923 | - opacity: 1; | |
| 1924 | - background: rgba(255, 255, 255, 0.08); | |
| 1925 | -} | |
| 1926 | - | |
| 1927 | -.mxchat-rating-submit { | |
| 1928 | - background: currentColor; | |
| 1929 | - color: var(--mxchat-bot-message-bg, #ffffff); | |
| 1930 | -} | |
| 1931 | - | |
| 1932 | -.mxchat-rating-submit:hover { | |
| 1933 | - transform: translateY(-1px); | |
| 1934 | - opacity: 0.9; | |
| 1935 | -} | |
| 1936 | - | |
| 1937 | -.mxchat-rating-saved { | |
| 1938 | - padding: 10px 14px; | |
| 1939 | - margin: 10px 0; | |
| 1940 | - font-size: 13px; | |
| 1941 | - font-weight: 500; | |
| 1942 | - text-align: center; | |
| 1943 | - color: inherit; | |
| 1944 | - animation: mxchat-rating-fade-in 0.22s ease; | |
| 1945 | -} | |
| 1946 | - | |
| 1947 | -@keyframes mxchat-rating-fade-in { | |
| 1948 | - from { opacity: 0; transform: translateY(4px); } | |
| 1949 | - to { opacity: 1; transform: translateY(0); } | |
| 1950 | 1606 | } |