| @@ -608,9 +608,8 @@ | ||
| 608 | 608 | .questions-toggle-btn svg, |
| 609 | 609 | .questions-collapse-btn svg { |
| 610 | 610 | transition: transform 0.2s ease; |
| 611 | 611 | fill: none; |
| 612 | - stroke: #212121; | |
| 613 | 612 | width: 25px; |
| 614 | 613 | height: 25px; |
| 615 | 614 | } |
| 616 | 615 | |
| @@ -886,72 +885,8 @@ | ||
| 886 | 885 | scrollbar-width: thin; |
| 887 | 886 | scrollbar-color: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1) #f1f1f1; |
| 888 | 887 | } |
| 889 | 888 | |
| 890 | -/* Chat input character counter + soft limit feedback (plan 7091a2). | |
| 891 | - Language-neutral: numbers + color only. Hidden until ~80% of the cap, then | |
| 892 | - fades in and ramps neutral -> amber -> red. The input border mirrors the same | |
| 893 | - cue, and an over-limit keystroke/paste triggers a brief shake so the hard | |
| 894 | - maxlength cap (plan a3fae2) is never a silent "input jumps back". */ | |
| 895 | -.mxchat-chatbot .chat-container .input-container .mxchat-char-counter { | |
| 896 | - position: absolute; | |
| 897 | - bottom: 3px; | |
| 898 | - right: 44px; /* clear the absolutely-positioned send button */ | |
| 899 | - font-size: 11px; | |
| 900 | - line-height: 1; | |
| 901 | - font-variant-numeric: tabular-nums; | |
| 902 | - color: #9aa0a6; | |
| 903 | - background: rgba(255, 255, 255, 0.85); | |
| 904 | - padding: 1px 5px; | |
| 905 | - border-radius: 8px; | |
| 906 | - pointer-events: none; | |
| 907 | - opacity: 0; | |
| 908 | - visibility: hidden; | |
| 909 | - transition: opacity 0.18s ease, color 0.18s ease; | |
| 910 | - z-index: 2; | |
| 911 | -} | |
| 912 | -.mxchat-chatbot .chat-container .input-container .mxchat-char-counter.is-visible { | |
| 913 | - opacity: 1; | |
| 914 | - visibility: visible; | |
| 915 | -} | |
| 916 | -.mxchat-chatbot .chat-container .input-container .mxchat-char-counter.is-warn { | |
| 917 | - color: #d98300; /* amber: approaching the cap */ | |
| 918 | -} | |
| 919 | -.mxchat-chatbot .chat-container .input-container .mxchat-char-counter.is-full { | |
| 920 | - color: #d93025; /* red: at the cap */ | |
| 921 | - font-weight: 600; | |
| 922 | -} | |
| 923 | -/* RTL widgets: counter on the opposite side. */ | |
| 924 | -.mxchat-chatbot[dir="rtl"] .chat-container .input-container .mxchat-char-counter, | |
| 925 | -[dir="rtl"] .mxchat-chatbot .chat-container .input-container .mxchat-char-counter { | |
| 926 | - right: auto; | |
| 927 | - left: 44px; | |
| 928 | -} | |
| 929 | -/* Input border affordance mirrors the counter color. */ | |
| 930 | -.mxchat-chatbot .chat-container .input-container.mxchat-input-near-limit { | |
| 931 | - border-color: #f0b048; | |
| 932 | -} | |
| 933 | -.mxchat-chatbot .chat-container .input-container.mxchat-input-at-limit { | |
| 934 | - border-color: #e5675c; | |
| 935 | -} | |
| 936 | -/* Soft "you hit the edge" bump when an over-limit keystroke/paste is rejected. */ | |
| 937 | -.mxchat-chatbot .chat-container .input-container.mxchat-input-bump { | |
| 938 | - animation: mxchat-input-bump 0.2s ease; | |
| 939 | -} | |
| 940 | -@keyframes mxchat-input-bump { | |
| 941 | - 0% { transform: translateX(0); } | |
| 942 | - 25% { transform: translateX(-3px); } | |
| 943 | - 50% { transform: translateX(3px); } | |
| 944 | - 75% { transform: translateX(-2px); } | |
| 945 | - 100% { transform: translateX(0); } | |
| 946 | -} | |
| 947 | -/* Respect reduced-motion: drop the shake; the red border/counter still signals the cap. */ | |
| 948 | -@media (prefers-reduced-motion: reduce) { | |
| 949 | - .mxchat-chatbot .chat-container .input-container.mxchat-input-bump { | |
| 950 | - animation: none; | |
| 951 | - } | |
| 952 | -} | |
| 953 | - | |
| 954 | 889 | .mxchat-chatbot .chat-container .input-container .send-button { |
| 955 | 890 | position: absolute; |
| 956 | 891 | right: 10px; |
| 957 | 892 | top: 50%; |
| @@ -982,15 +917,8 @@ | ||
| 982 | 917 | .send-button:hover { |
| 983 | 918 | opacity: 0.8; |
| 984 | 919 | } |
| 985 | 920 | |
| 986 | -/* Stop state while a response is streaming: the send button becomes a Stop | |
| 987 | - control in place — same chrome and position, swapped glyph. Themeable hook; | |
| 988 | - the glyph's size/color are mirrored from the send icon at runtime. */ | |
| 989 | -.mxchat-chatbot .chat-container .input-container .send-button.mxchat-stop-mode { | |
| 990 | - cursor: pointer; | |
| 991 | -} | |
| 992 | - | |
| 993 | 921 | .mxchat-chatbot .spinner { |
| 994 | 922 | animation: rotate 2s linear infinite; |
| 995 | 923 | width: 20px; |
| 996 | 924 | height: 20px; |
| @@ -1029,11 +957,9 @@ | ||
| 1029 | 957 | .chatbot-title-container { |
| 1030 | 958 | display: flex; |
| 1031 | 959 | align-items: center; |
| 1032 | 960 | justify-content: space-between; |
| 1033 | - gap: 10px; | |
| 1034 | - flex: 1 1 auto; | |
| 1035 | - min-width: 0; | |
| 961 | + width: 100%; | |
| 1036 | 962 | } |
| 1037 | 963 | |
| 1038 | 964 | .chatbot-title-group { |
| 1039 | 965 | display: flex; |
| @@ -1042,19 +968,13 @@ | ||
| 1042 | 968 | } |
| 1043 | 969 | |
| 1044 | 970 | .chat-mode-indicator { |
| 1045 | 971 | font-size: 12px; |
| 1046 | - line-height: 1; | |
| 1047 | - margin-right: 0; | |
| 1048 | - padding: 4px 9px; | |
| 1049 | - border-radius: 999px; | |
| 1050 | - background: rgba(255, 255, 255, 0.18); | |
| 972 | + margin-right: 8px; | |
| 973 | + padding: 4px 8px; | |
| 974 | + border-radius: 12px; | |
| 975 | + background: rgba(255, 255, 255, 0.2); | |
| 1051 | 976 | color: #ffffff; |
| 1052 | - display: inline-flex; | |
| 1053 | - align-items: center; | |
| 1054 | - height: 22px; | |
| 1055 | - white-space: nowrap; | |
| 1056 | - flex: 0 0 auto; | |
| 1057 | 977 | } |
| 1058 | 978 | |
| 1059 | 979 | .floating-chatbot { |
| 1060 | 980 | position: fixed; |
| @@ -1104,9 +1024,9 @@ | ||
| 1104 | 1024 | display: none !important; |
| 1105 | 1025 | } |
| 1106 | 1026 | |
| 1107 | 1027 | .chatbot-top-bar button.exit-chat:hover { |
| 1108 | - background: rgba(255, 255, 255, 0.12); | |
| 1028 | + background: none; | |
| 1109 | 1029 | } |
| 1110 | 1030 | .visible { |
| 1111 | 1031 | display: flex; |
| 1112 | 1032 | } |
| @@ -1130,13 +1050,8 @@ | ||
| 1130 | 1050 | z-index: 100000; |
| 1131 | 1051 | display: flex; |
| 1132 | 1052 | } |
| 1133 | 1053 | |
| 1134 | -.floating-chatbot-button:focus-visible { | |
| 1135 | - outline: 3px solid #7873f5; | |
| 1136 | - outline-offset: 3px; | |
| 1137 | -} | |
| 1138 | - | |
| 1139 | 1054 | .floating-chatbot-button img { |
| 1140 | 1055 | max-width: 100%; |
| 1141 | 1056 | max-height: 100%; |
| 1142 | 1057 | width: auto; |
| @@ -1151,36 +1066,29 @@ | ||
| 1151 | 1066 | background: transparent; |
| 1152 | 1067 | border: none; |
| 1153 | 1068 | opacity: 0.8; |
| 1154 | 1069 | padding: 0; |
| 1155 | - width: 32px; | |
| 1156 | - height: 32px; | |
| 1157 | - min-width: 32px; | |
| 1158 | - flex: 0 0 auto; | |
| 1159 | - border-radius: 6px; | |
| 1160 | - transition: opacity 0.15s ease, background 0.15s ease; | |
| 1070 | + min-width: 20px; | |
| 1161 | 1071 | } |
| 1162 | 1072 | |
| 1163 | 1073 | .mxchat-chatbot-wrapper .chatbot-top-bar { |
| 1164 | 1074 | cursor: pointer; |
| 1165 | 1075 | color: #fff; |
| 1166 | - padding: 8px 12px; | |
| 1167 | - min-height: 48px; | |
| 1168 | - gap: 8px; | |
| 1076 | + padding: 10px; | |
| 1169 | 1077 | border-top-left-radius: 10px; |
| 1170 | 1078 | border-top-right-radius: 10px; |
| 1171 | 1079 | display: flex; |
| 1172 | 1080 | justify-content: space-between; |
| 1173 | - align-items: center; | |
| 1081 | + align-items: start; | |
| 1174 | 1082 | } |
| 1175 | 1083 | |
| 1176 | 1084 | .mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title { |
| 1177 | - font-size: 15px; | |
| 1178 | - line-height: 1.2; | |
| 1179 | - padding: 0; | |
| 1085 | + font-size: 16px; | |
| 1086 | + line-height: 25px; | |
| 1087 | + padding: 10px; | |
| 1180 | 1088 | margin: 0; |
| 1181 | 1089 | font-family: 'Plus Jakarta Sans', sans-serif; |
| 1182 | - font-weight: 600; | |
| 1090 | + font-weight: bold; | |
| 1183 | 1091 | } |
| 1184 | 1092 | |
| 1185 | 1093 | .exit-chat { |
| 1186 | 1094 | border: none; |
| @@ -1185,25 +1093,22 @@ | ||
| 1185 | 1093 | .exit-chat { |
| 1186 | 1094 | border: none; |
| 1187 | 1095 | background: transparent; |
| 1188 | 1096 | cursor: pointer; |
| 1189 | - display: inline-flex; | |
| 1097 | + display: flex; | |
| 1190 | 1098 | align-items: center; |
| 1191 | 1099 | justify-content: center; |
| 1192 | - padding: 0; | |
| 1100 | + padding: 5px; | |
| 1193 | 1101 | margin-left: auto; |
| 1194 | 1102 | opacity: 0.8; |
| 1195 | - width: 32px; | |
| 1196 | - height: 32px; | |
| 1197 | - min-width: 32px; | |
| 1198 | - flex: 0 0 auto; | |
| 1103 | + min-width: 20px; | |
| 1199 | 1104 | } |
| 1200 | 1105 | |
| 1201 | 1106 | .exit-chat svg { |
| 1202 | - width: 18px; | |
| 1203 | - height: 18px; | |
| 1204 | - fill: none; | |
| 1205 | - stroke: currentColor; | |
| 1107 | + fill: white; | |
| 1108 | + width: 24px; | |
| 1109 | + height: 24px; | |
| 1110 | + transform: rotate(270deg); | |
| 1206 | 1111 | } |
| 1207 | 1112 | |
| 1208 | 1113 | .mxchat-chatbot-wrapper .chatbot-footer { |
| 1209 | 1114 | text-align: center; |
| @@ -1233,41 +1138,8 @@ | ||
| 1233 | 1138 | text-decoration: underline; |
| 1234 | 1139 | } |
| 1235 | 1140 | |
| 1236 | 1141 | /* ======================================== |
| 1237 | - INIT LOADER (shown while chat initializes) | |
| 1238 | - ======================================== */ | |
| 1239 | -.mxchat-init-loader { | |
| 1240 | - display: flex; | |
| 1241 | - align-items: center; | |
| 1242 | - justify-content: center; | |
| 1243 | - flex-grow: 1; | |
| 1244 | - min-height: 0; | |
| 1245 | - animation: fadeIn 0.3s ease-in-out; | |
| 1246 | -} | |
| 1247 | - | |
| 1248 | -.mxchat-init-loader-dots { | |
| 1249 | - display: flex; | |
| 1250 | - gap: 8px; | |
| 1251 | -} | |
| 1252 | - | |
| 1253 | -.mxchat-init-loader-dots .dot { | |
| 1254 | - width: 8px; | |
| 1255 | - height: 8px; | |
| 1256 | - border-radius: 50%; | |
| 1257 | - background-color: #888; | |
| 1258 | - animation: mxchat-dot-bounce 1.4s ease-in-out infinite both; | |
| 1259 | -} | |
| 1260 | - | |
| 1261 | -.mxchat-init-loader-dots .dot:nth-child(1) { | |
| 1262 | - animation-delay: -0.32s; | |
| 1263 | -} | |
| 1264 | - | |
| 1265 | -.mxchat-init-loader-dots .dot:nth-child(2) { | |
| 1266 | - animation-delay: -0.16s; | |
| 1267 | -} | |
| 1268 | - | |
| 1269 | -/* ======================================== | |
| 1270 | 1142 | THINKING DOTS ANIMATION |
| 1271 | 1143 | ======================================== */ |
| 1272 | 1144 | .chat-box .bot-message.temporary-message .thinking-dots-container { |
| 1273 | 1145 | display: flex; |
| @@ -1678,9 +1550,8 @@ | ||
| 1678 | 1550 | |
| 1679 | 1551 | /* SVG styles - these are MISSING */ |
| 1680 | 1552 | .mxchat-popular-questions .mxchat-popular-questions-container .questions-collapse-btn svg { |
| 1681 | 1553 | fill: none; |
| 1682 | - stroke: #212121; | |
| 1683 | 1554 | transition: transform 0.2s ease; |
| 1684 | 1555 | width: 25px; |
| 1685 | 1556 | height: 25px; |
| 1686 | 1557 | } |
| @@ -1696,341 +1567,5 @@ | ||
| 1696 | 1567 | |
| 1697 | 1568 | /* Hide when actually collapsed */ |
| 1698 | 1569 | .mxchat-popular-questions.collapsed .mxchat-popular-questions-container .questions-collapse-btn { |
| 1699 | 1570 | display: none; |
| 1700 | -} | |
| 1701 | - | |
| 1702 | -/* ============================================================ | |
| 1703 | - Header overflow menu — 3-dot kebab + dropdown (v3.2.9 / v3.2.10) | |
| 1704 | - Lives in .chatbot-top-bar to the LEFT of .exit-chat. Visual treatment | |
| 1705 | - mirrors .exit-chat: transparent, white-on-dark, 0.8 opacity, 5px pad. | |
| 1706 | - | |
| 1707 | - v3.2.10: explicit `order` rules pin the visual order | |
| 1708 | - title (0) | kebab (1) | down-arrow (2) | |
| 1709 | - so the down-arrow is always the rightmost icon regardless of source | |
| 1710 | - order or which sibling has margin-left:auto. | |
| 1711 | - ============================================================ */ | |
| 1712 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .chatbot-title-container { order: 0; } | |
| 1713 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .mxchat-header-menu-wrap { order: 1; } | |
| 1714 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .exit-chat { order: 2; } | |
| 1715 | - | |
| 1716 | -.mxchat-header-menu-wrap { | |
| 1717 | - position: relative; | |
| 1718 | - display: inline-flex; | |
| 1719 | - align-items: center; | |
| 1720 | - margin-left: auto; /* push kebab + arrow group to the right edge */ | |
| 1721 | -} | |
| 1722 | -.mxchat-chatbot-wrapper .chatbot-top-bar .mxchat-header-menu-wrap ~ .exit-chat, | |
| 1723 | -.mxchat-chatbot-wrapper .chatbot-top-bar .mxchat-header-menu-wrap + .exit-chat { | |
| 1724 | - margin-left: 4px; /* even, snug gap between kebab and close */ | |
| 1725 | -} | |
| 1726 | -.mxchat-chatbot-wrapper .chatbot-top-bar > .exit-chat:focus { | |
| 1727 | - background: rgba(255, 255, 255, 0.12); | |
| 1728 | - opacity: 1; | |
| 1729 | - outline: none; | |
| 1730 | -} | |
| 1731 | -.mxchat-header-btn { | |
| 1732 | - border: none; | |
| 1733 | - background: transparent; | |
| 1734 | - cursor: pointer; | |
| 1735 | - display: inline-flex; | |
| 1736 | - align-items: center; | |
| 1737 | - justify-content: center; | |
| 1738 | - padding: 0; | |
| 1739 | - opacity: 0.8; | |
| 1740 | - color: #fff; | |
| 1741 | - transition: opacity 0.15s ease, background 0.15s ease; | |
| 1742 | - border-radius: 6px; | |
| 1743 | - line-height: 0; | |
| 1744 | - width: 32px; | |
| 1745 | - height: 32px; | |
| 1746 | - min-width: 32px; | |
| 1747 | - flex: 0 0 auto; | |
| 1748 | -} | |
| 1749 | -.mxchat-header-btn:hover, | |
| 1750 | -.mxchat-header-btn:focus { | |
| 1751 | - opacity: 1; | |
| 1752 | - background: rgba(255, 255, 255, 0.12); | |
| 1753 | - outline: none; | |
| 1754 | -} | |
| 1755 | -.mxchat-header-btn[aria-expanded="true"] { | |
| 1756 | - opacity: 1; | |
| 1757 | - background: rgba(255, 255, 255, 0.12); | |
| 1758 | -} | |
| 1759 | -.mxchat-menu-trigger svg { | |
| 1760 | - width: 18px; | |
| 1761 | - height: 18px; | |
| 1762 | -} | |
| 1763 | - | |
| 1764 | -.mxchat-header-menu { | |
| 1765 | - position: absolute; | |
| 1766 | - top: calc(100% + 6px); | |
| 1767 | - right: 0; | |
| 1768 | - min-width: 220px; | |
| 1769 | - background: var(--mxchat-menu-bg, #ffffff); | |
| 1770 | - color: var(--mxchat-menu-fg, #1a1a1a); | |
| 1771 | - border: 1px solid rgba(127, 127, 127, 0.20); | |
| 1772 | - border-radius: 10px; | |
| 1773 | - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.10); | |
| 1774 | - padding: 4px; | |
| 1775 | - z-index: 5; | |
| 1776 | - opacity: 0; | |
| 1777 | - transform: translateY(-4px); | |
| 1778 | - pointer-events: none; | |
| 1779 | - transition: opacity 0.12s ease, transform 0.12s ease; | |
| 1780 | -} | |
| 1781 | -.mxchat-header-menu.is-open { | |
| 1782 | - opacity: 1; | |
| 1783 | - transform: translateY(0); | |
| 1784 | - pointer-events: auto; | |
| 1785 | -} | |
| 1786 | -.mxchat-header-menu[hidden] { | |
| 1787 | - display: none; | |
| 1788 | -} | |
| 1789 | -.mxchat-menu-item { | |
| 1790 | - display: flex; | |
| 1791 | - align-items: center; | |
| 1792 | - gap: 10px; | |
| 1793 | - width: 100%; | |
| 1794 | - padding: 8px 12px; | |
| 1795 | - min-height: 40px; | |
| 1796 | - border: none; | |
| 1797 | - background: transparent; | |
| 1798 | - color: inherit; | |
| 1799 | - font-size: 14px; | |
| 1800 | - line-height: 1.3; | |
| 1801 | - text-align: left; | |
| 1802 | - cursor: pointer; | |
| 1803 | - border-radius: 6px; | |
| 1804 | - transition: background 0.12s ease; | |
| 1805 | - text-decoration: none; | |
| 1806 | - box-sizing: border-box; | |
| 1807 | -} | |
| 1808 | -.mxchat-menu-item:hover, | |
| 1809 | -.mxchat-menu-item:focus { | |
| 1810 | - background: rgba(127, 127, 127, 0.18); | |
| 1811 | - outline: none; | |
| 1812 | -} | |
| 1813 | -.mxchat-menu-item-icon { | |
| 1814 | - display: inline-flex; | |
| 1815 | - align-items: center; | |
| 1816 | - justify-content: center; | |
| 1817 | - width: 16px; | |
| 1818 | - height: 16px; | |
| 1819 | - color: inherit; | |
| 1820 | - opacity: 0.85; | |
| 1821 | - flex-shrink: 0; | |
| 1822 | -} | |
| 1823 | -.mxchat-menu-item-icon svg { | |
| 1824 | - width: 16px; | |
| 1825 | - height: 16px; | |
| 1826 | - display: block; | |
| 1827 | -} | |
| 1828 | -.mxchat-menu-item-label { | |
| 1829 | - flex: 1; | |
| 1830 | - color: inherit; | |
| 1831 | -} | |
| 1832 | - | |
| 1833 | -/* RTL — flip the dropdown anchor edge */ | |
| 1834 | -[dir="rtl"] .mxchat-header-menu, | |
| 1835 | -.mxchat-chatbot-wrapper[dir="rtl"] .mxchat-header-menu { | |
| 1836 | - right: auto; | |
| 1837 | - left: 0; | |
| 1838 | -} | |
| 1839 | - | |
| 1840 | -/* ============================================================================ | |
| 1841 | - Satisfaction rating (v3.2.6 — polished per plan-141a12) | |
| 1842 | - Theme-adaptive via currentColor + inherit. Clean slate — old rules removed. | |
| 1843 | - ========================================================================= */ | |
| 1844 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-prompt, | |
| 1845 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-feedback, | |
| 1846 | -.mxchat-chatbot .chat-container .chat-box .mxchat-rating-saved { | |
| 1847 | - clear: both; | |
| 1848 | - float: left; | |
| 1849 | - max-width: 92%; | |
| 1850 | - box-sizing: border-box; | |
| 1851 | -} | |
| 1852 | - | |
| 1853 | -/* Theme-adaptive wrapper — .bot-message carries the user's custom bg/color via | |
| 1854 | - inline style; the inner rating component supplies its own padding + layout. */ | |
| 1855 | -.mxchat-rating-bot-bubble { | |
| 1856 | - padding: 0; | |
| 1857 | - overflow: visible; | |
| 1858 | -} | |
| 1859 | - | |
| 1860 | -.mxchat-rating-prompt { | |
| 1861 | - display: flex; | |
| 1862 | - flex-direction: column; | |
| 1863 | - align-items: stretch; | |
| 1864 | - gap: 10px; | |
| 1865 | - padding: 10px 14px; | |
| 1866 | - margin: 10px 0; | |
| 1867 | - font-size: 14px; | |
| 1868 | - color: inherit; | |
| 1869 | -} | |
| 1870 | - | |
| 1871 | -.mxchat-rating-question { | |
| 1872 | - color: inherit; | |
| 1873 | - opacity: 0.85; | |
| 1874 | - font-weight: 500; | |
| 1875 | -} | |
| 1876 | - | |
| 1877 | -.mxchat-rating-actions { | |
| 1878 | - display: flex; | |
| 1879 | - align-items: center; | |
| 1880 | - gap: 8px; | |
| 1881 | -} | |
| 1882 | - | |
| 1883 | -.mxchat-rating-buttons { | |
| 1884 | - display: inline-flex; | |
| 1885 | - gap: 6px; | |
| 1886 | -} | |
| 1887 | - | |
| 1888 | -.mxchat-rating-btn { | |
| 1889 | - display: inline-flex; | |
| 1890 | - align-items: center; | |
| 1891 | - justify-content: center; | |
| 1892 | - width: 32px; | |
| 1893 | - height: 32px; | |
| 1894 | - border-radius: 8px; | |
| 1895 | - background: transparent; | |
| 1896 | - border: none; | |
| 1897 | - color: inherit; | |
| 1898 | - opacity: 0.6; | |
| 1899 | - cursor: pointer; | |
| 1900 | - transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; | |
| 1901 | - padding: 0; | |
| 1902 | -} | |
| 1903 | - | |
| 1904 | -.mxchat-rating-btn:hover { | |
| 1905 | - opacity: 1; | |
| 1906 | - transform: scale(1.12); | |
| 1907 | - background: rgba(255, 255, 255, 0.08); | |
| 1908 | -} | |
| 1909 | - | |
| 1910 | -.mxchat-rating-btn:focus-visible { | |
| 1911 | - opacity: 1; | |
| 1912 | - outline: 2px solid currentColor; | |
| 1913 | - outline-offset: 2px; | |
| 1914 | -} | |
| 1915 | - | |
| 1916 | -.mxchat-rating-btn svg { | |
| 1917 | - pointer-events: none; | |
| 1918 | -} | |
| 1919 | - | |
| 1920 | -.mxchat-rating-dismiss { | |
| 1921 | - width: 24px; | |
| 1922 | - height: 24px; | |
| 1923 | - border-radius: 6px; | |
| 1924 | - background: transparent; | |
| 1925 | - border: none; | |
| 1926 | - color: inherit; | |
| 1927 | - opacity: 0.45; | |
| 1928 | - cursor: pointer; | |
| 1929 | - font-size: 18px; | |
| 1930 | - line-height: 1; | |
| 1931 | - transition: opacity 0.18s ease, background-color 0.18s ease; | |
| 1932 | -} | |
| 1933 | - | |
| 1934 | -.mxchat-rating-dismiss:hover { | |
| 1935 | - opacity: 0.9; | |
| 1936 | - background: rgba(255, 255, 255, 0.08); | |
| 1937 | -} | |
| 1938 | - | |
| 1939 | -/* Feedback panel that replaces the prompt after a rating is clicked */ | |
| 1940 | -.mxchat-rating-feedback { | |
| 1941 | - padding: 12px 14px; | |
| 1942 | - margin: 10px 0; | |
| 1943 | - display: flex; | |
| 1944 | - flex-direction: column; | |
| 1945 | - gap: 10px; | |
| 1946 | - color: inherit; | |
| 1947 | - animation: mxchat-rating-fade-in 0.22s ease; | |
| 1948 | -} | |
| 1949 | - | |
| 1950 | -.mxchat-rating-feedback-label { | |
| 1951 | - font-size: 13px; | |
| 1952 | - opacity: 0.85; | |
| 1953 | - font-weight: 500; | |
| 1954 | -} | |
| 1955 | - | |
| 1956 | -.mxchat-rating-feedback-input { | |
| 1957 | - width: 100%; | |
| 1958 | - box-sizing: border-box; | |
| 1959 | - padding: 8px 10px; | |
| 1960 | - border: 1px solid rgba(255, 255, 255, 0.25); | |
| 1961 | - border-radius: 8px; | |
| 1962 | - font-size: 14px; | |
| 1963 | - font-family: inherit; | |
| 1964 | - resize: vertical; | |
| 1965 | - background: rgba(255, 255, 255, 0.08); | |
| 1966 | - color: inherit; | |
| 1967 | -} | |
| 1968 | - | |
| 1969 | -.mxchat-rating-feedback-input:focus { | |
| 1970 | - outline: none; | |
| 1971 | - border-color: rgba(255, 255, 255, 0.45); | |
| 1972 | - background: rgba(255, 255, 255, 0.15); | |
| 1973 | -} | |
| 1974 | - | |
| 1975 | -.mxchat-rating-feedback-actions { | |
| 1976 | - display: flex; | |
| 1977 | - justify-content: flex-end; | |
| 1978 | - gap: 8px; | |
| 1979 | -} | |
| 1980 | - | |
| 1981 | -.mxchat-rating-skip, | |
| 1982 | -.mxchat-rating-submit { | |
| 1983 | - padding: 6px 14px; | |
| 1984 | - border-radius: 8px; | |
| 1985 | - font-size: 13px; | |
| 1986 | - font-weight: 500; | |
| 1987 | - cursor: pointer; | |
| 1988 | - border: none; | |
| 1989 | - transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease; | |
| 1990 | -} | |
| 1991 | - | |
| 1992 | -.mxchat-rating-skip { | |
| 1993 | - background: transparent; | |
| 1994 | - color: inherit; | |
| 1995 | - opacity: 0.6; | |
| 1996 | -} | |
| 1997 | - | |
| 1998 | -.mxchat-rating-skip:hover { | |
| 1999 | - opacity: 1; | |
| 2000 | - background: rgba(255, 255, 255, 0.08); | |
| 2001 | -} | |
| 2002 | - | |
| 2003 | -.mxchat-rating-submit { | |
| 2004 | - /* Filled "primary" pill: fill = the bot font color, label = the bubble bg. | |
| 2005 | - syncRatingBubbleColors() in chat-script.js paints the real bot colors | |
| 2006 | - straight onto this button (inline) from the bubble's COMPUTED style, so | |
| 2007 | - it adapts to both the inline color pickers AND the mxchat-theme AI | |
| 2008 | - customizer. These var()/literal values are the no-JS safety net — the | |
| 2009 | - literal fallbacks (#212121 fill / #ffffff label) stay legible on their | |
| 2010 | - own (no white-on-white). Longhand background-color (not the `background` | |
| 2011 | - shorthand) because Chromium resolves inherited custom properties | |
| 2012 | - unreliably inside the shorthand. Do NOT use currentColor here — setting | |
| 2013 | - `color` would re-poison the background to the same value. */ | |
| 2014 | - background-color: var(--mxchat-bot-fg, #212121); | |
| 2015 | - color: var(--mxchat-bot-bg, #ffffff); | |
| 2016 | -} | |
| 2017 | - | |
| 2018 | -.mxchat-rating-submit:hover { | |
| 2019 | - transform: translateY(-1px); | |
| 2020 | - opacity: 0.9; | |
| 2021 | -} | |
| 2022 | - | |
| 2023 | -.mxchat-rating-saved { | |
| 2024 | - padding: 10px 14px; | |
| 2025 | - margin: 10px 0; | |
| 2026 | - font-size: 13px; | |
| 2027 | - font-weight: 500; | |
| 2028 | - text-align: center; | |
| 2029 | - color: inherit; | |
| 2030 | - animation: mxchat-rating-fade-in 0.22s ease; | |
| 2031 | -} | |
| 2032 | - | |
| 2033 | -@keyframes mxchat-rating-fade-in { | |
| 2034 | - from { opacity: 0; transform: translateY(4px); } | |
| 2035 | - to { opacity: 1; transform: translateY(0); } | |
| 2036 | 1571 | } |