@whoa-chat/react 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/locales/bg.json +790 -0
  2. package/dist/locales/da.json +790 -0
  3. package/dist/locales/de.json +790 -0
  4. package/dist/locales/en.json +790 -0
  5. package/dist/locales/es.json +790 -0
  6. package/dist/locales/fr.json +821 -0
  7. package/dist/locales/index.d.ts +11975 -0
  8. package/dist/locales/index.js +1 -0
  9. package/dist/locales/it.json +790 -0
  10. package/dist/locales/ja.json +790 -0
  11. package/dist/locales/loaders.d.ts +3 -0
  12. package/dist/locales/loaders.js +1 -0
  13. package/dist/locales/nl.json +790 -0
  14. package/dist/locales/pl.json +852 -0
  15. package/dist/locales/pt-BR.json +790 -0
  16. package/dist/locales/pt-PT.json +790 -0
  17. package/dist/locales/sv.json +790 -0
  18. package/dist/locales/zh-CN.json +790 -0
  19. package/dist/locales/zh-TW.json +790 -0
  20. package/dist/src/ActionGroup.d.ts +12 -0
  21. package/dist/src/ActionGroup.js +1 -0
  22. package/dist/src/AiChoices.d.ts +10 -0
  23. package/dist/src/AiChoices.js +1 -0
  24. package/dist/src/AssistantNote.d.ts +8 -0
  25. package/dist/src/AssistantNote.js +1 -0
  26. package/dist/src/Attachments.d.ts +56 -0
  27. package/dist/src/Attachments.js +1 -0
  28. package/dist/src/AvailabilityCard.d.ts +19 -0
  29. package/dist/src/AvailabilityCard.js +1 -0
  30. package/dist/src/CardOutcome.d.ts +6 -0
  31. package/dist/src/CardOutcome.js +1 -0
  32. package/dist/src/ChatThread.d.ts +149 -0
  33. package/dist/src/ChatThread.js +8 -0
  34. package/dist/src/ComposerTools.d.ts +29 -0
  35. package/dist/src/ComposerTools.js +1 -0
  36. package/dist/src/CustomCard.d.ts +5 -0
  37. package/dist/src/CustomCard.js +1 -0
  38. package/dist/src/DraftCard.d.ts +10 -0
  39. package/dist/src/DraftCard.js +1 -0
  40. package/dist/src/EmailTranscript.d.ts +6 -0
  41. package/dist/src/EmailTranscript.js +1 -0
  42. package/dist/src/EventRow.d.ts +5 -0
  43. package/dist/src/EventRow.js +2 -0
  44. package/dist/src/FormattedText.d.ts +45 -0
  45. package/dist/src/FormattedText.js +5 -0
  46. package/dist/src/HelpOfferCard.d.ts +10 -0
  47. package/dist/src/HelpOfferCard.js +1 -0
  48. package/dist/src/InboxTools.d.ts +53 -0
  49. package/dist/src/InboxTools.js +1 -0
  50. package/dist/src/MerchantPanel.d.ts +10 -0
  51. package/dist/src/MerchantPanel.js +1 -0
  52. package/dist/src/MessageActions.d.ts +15 -0
  53. package/dist/src/MessageActions.js +1 -0
  54. package/dist/src/MessagePreview.d.ts +20 -0
  55. package/dist/src/MessagePreview.js +1 -0
  56. package/dist/src/PasswordCard.d.ts +6 -0
  57. package/dist/src/PasswordCard.js +1 -0
  58. package/dist/src/RequestCards.d.ts +8 -0
  59. package/dist/src/RequestCards.js +1 -0
  60. package/dist/src/ReviewCard.d.ts +15 -0
  61. package/dist/src/ReviewCard.js +1 -0
  62. package/dist/src/RichCards.d.ts +37 -0
  63. package/dist/src/RichCards.js +1 -0
  64. package/dist/src/RichInput.d.ts +41 -0
  65. package/dist/src/RichInput.js +12 -0
  66. package/dist/src/StoreAvatar.d.ts +35 -0
  67. package/dist/src/StoreAvatar.js +1 -0
  68. package/dist/src/WorldMap.d.ts +10 -0
  69. package/dist/src/WorldMap.js +1 -0
  70. package/dist/src/agents.d.ts +9 -0
  71. package/dist/src/agents.js +1 -0
  72. package/dist/src/appearance.d.ts +17 -0
  73. package/dist/src/appearance.js +1 -0
  74. package/dist/src/chatApi.d.ts +182 -0
  75. package/dist/src/chatApi.js +1 -0
  76. package/dist/src/chatEnv.d.ts +16 -0
  77. package/dist/src/chatEnv.js +1 -0
  78. package/dist/src/chime.d.ts +7 -0
  79. package/dist/src/chime.js +1 -0
  80. package/dist/src/clock.d.ts +5 -0
  81. package/dist/src/clock.js +1 -0
  82. package/dist/src/copyToClipboard.d.ts +10 -0
  83. package/dist/src/copyToClipboard.js +1 -0
  84. package/dist/src/emojis.d.ts +6 -0
  85. package/dist/src/emojis.js +1 -0
  86. package/dist/src/flags.d.ts +5 -0
  87. package/dist/src/flags.js +1 -0
  88. package/dist/src/highlight.d.ts +8 -0
  89. package/dist/src/highlight.js +1 -0
  90. package/dist/src/host.d.ts +40 -0
  91. package/dist/src/host.js +1 -0
  92. package/dist/src/i18n.d.ts +2 -0
  93. package/dist/src/i18n.js +1 -0
  94. package/dist/src/refLinks.d.ts +7 -0
  95. package/dist/src/refLinks.js +1 -0
  96. package/dist/src/supportChat.css +2522 -0
  97. package/dist/src/useLive.d.ts +51 -0
  98. package/dist/src/useLive.js +1 -0
  99. package/dist/src/worldDots.d.ts +7 -0
  100. package/dist/src/worldDots.js +1 -0
  101. package/package.json +212 -4
  102. package/README.md +0 -3
@@ -0,0 +1,2522 @@
1
+ /* Our own support chat (proof of concept): the thread, the composer and the review card. Monochrome, ChatGPT-like. */
2
+ :root {
3
+ --sc-ink: #0d0d0d;
4
+ --sc-ink-2: #5d5d5d;
5
+ --sc-ink-3: #8f8f8f;
6
+ --sc-line: #e5e5e5;
7
+ --sc-surface: #ffffff;
8
+ --sc-canvas: #ffffff;
9
+ --sc-soft: #f4f4f4;
10
+ --sc-soft-2: #ececec;
11
+ --sc-radius: 24px;
12
+ --sc-brand-soft: #f4f4f4;
13
+ /* Theme knobs: the light values leave every colour as written; the team inbox's dark theme turns them. */
14
+ --sc-tint: 100%;
15
+ --sc-dk: 100%;
16
+ --sc-overlay-rgb: 0, 0, 0;
17
+ }
18
+
19
+ /* Dark theme (team inbox only): surfaces go dark, pale tints sink into them, dark text and lines lighten. */
20
+ html[data-theme="dark"] {
21
+ color-scheme: dark;
22
+ --sc-ink: #ececf1;
23
+ --sc-ink-2: #b9b9c3;
24
+ --sc-ink-3: #8d8d98;
25
+ --sc-line: #33333b;
26
+ --sc-surface: #1c1c21;
27
+ --sc-canvas: #151519;
28
+ --sc-soft: #26262d;
29
+ --sc-soft-2: #2f2f37;
30
+ --sc-brand-soft: #26262d;
31
+ --sc-tint: 14%;
32
+ --sc-dk: 42%;
33
+ --sc-overlay-rgb: 255, 255, 255;
34
+ --sc-strong: #ececf1;
35
+ --sc-on-strong: #16131d;
36
+ --sc-ink-strong: #ececf1;
37
+ }
38
+
39
+ .sc-avatar {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ flex: none;
44
+ border-radius: 50%;
45
+ overflow: hidden;
46
+ background: var(--sc-ink);
47
+ color: #fff; color: var(--sc-on-strong, #fff);
48
+ font-weight: 600;
49
+ }
50
+ .sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
51
+
52
+ /* Thread */
53
+ .sc-shell {
54
+ display: flex;
55
+ flex-direction: column;
56
+ height: max(480px, calc(100vh - 120px));
57
+ background: var(--sc-canvas);
58
+ border-radius: 16px;
59
+ border: 1px solid var(--sc-line);
60
+ overflow: hidden;
61
+ }
62
+ .sc-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 20px 12px; }
63
+ .sc-content { display: flex; flex-direction: column; gap: 10px; min-height: 100%; max-width: 720px; margin: 0 auto; }
64
+ .sc-day { align-self: center; font-size: 12px; color: var(--sc-ink-3); margin: 4px 0; }
65
+ .sc-row { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
66
+ .sc-row--merchant { justify-content: flex-end; }
67
+ .sc-bubble { font-size: 14px; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; color: var(--sc-ink); animation: sc-in 0.2s ease-out both; }
68
+ /* Theirs: plain text beside the avatar. Yours: a soft grey pill. */
69
+ .sc-row--agent .sc-bubble { max-width: min(80%, 34rem); padding: 7px 13px; border-radius: 18px; background: var(--sc-surface); border: 1px solid var(--sc-line); }
70
+ .sc-row--merchant .sc-bubble { max-width: min(80%, 34rem); padding: 7px 13px; border-radius: 18px; background: var(--sc-soft); }
71
+ .sc-system { align-self: center; font-size: 12px; color: var(--sc-ink-3); }
72
+ .sc-meta { font-size: 11.5px; color: var(--sc-ink-3); margin: -7px 0 4px; }
73
+ /* A run of messages from one sender: close together, corners tightened where bubbles meet. */
74
+ .sc-row--cont { margin-top: -8px; }
75
+ .sc-avatar-gap { flex: none; width: 28px; }
76
+ .sc-edit-bar { background: #e8f3fb; background: color-mix(in srgb, #e8f3fb var(--sc-tint), var(--sc-surface)); color: #1f5f86; color: color-mix(in srgb, #1f5f86 var(--sc-dk), #fff); }
77
+ .sc-row--merchant .sc-bubble--before { border-bottom-right-radius: 6px; }
78
+ .sc-row--merchant .sc-bubble--after { border-top-right-radius: 6px; }
79
+ .sc-row--agent .sc-bubble--before { border-bottom-left-radius: 6px; }
80
+ .sc-row--agent .sc-bubble--after { border-top-left-radius: 6px; }
81
+ .sc-empty { margin: auto; text-align: center; color: var(--sc-ink-2); max-width: 360px; font-size: 15px; line-height: 1.55; }
82
+ .sc-empty strong { display: block; color: var(--sc-ink); font-size: 22px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
83
+
84
+ .sc-composer {
85
+ display: flex;
86
+ align-items: flex-end;
87
+ gap: 8px;
88
+ margin: 8px 16px 16px;
89
+ padding: 8px 8px 8px 18px;
90
+ border: 1px solid var(--sc-line);
91
+ border-radius: 28px;
92
+ background: var(--sc-surface);
93
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
94
+ }
95
+ .sc-composer textarea {
96
+ flex: 1;
97
+ resize: none;
98
+ border: 0;
99
+ padding: 9px 0;
100
+ font: inherit;
101
+ font-size: 15px;
102
+ line-height: 1.45;
103
+ min-height: 40px;
104
+ max-height: 160px;
105
+ outline: none;
106
+ background: transparent;
107
+ color: var(--sc-ink);
108
+ }
109
+ .sc-send {
110
+ flex: none;
111
+ display: inline-flex;
112
+ align-items: center;
113
+ justify-content: center;
114
+ width: 36px;
115
+ height: 36px;
116
+ padding: 0;
117
+ border: 0;
118
+ border-radius: 999px;
119
+ background: var(--sc-ink);
120
+ color: #fff; color: var(--sc-on-strong, #fff);
121
+ font: inherit;
122
+ font-weight: 500;
123
+ font-size: 14px;
124
+ cursor: pointer;
125
+ transition: opacity 0.15s;
126
+ }
127
+ .sc-send:disabled { background: var(--sc-soft-2); color: var(--sc-ink-3); cursor: default; }
128
+
129
+ @keyframes sc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
130
+
131
+ /* Review card: the brand's colours, so it stands out from the plain thread. */
132
+ .srv-card {
133
+ --srv-grad: linear-gradient(100deg, #ff6b2c 0%, #f2506a 38%, #e040c8 70%, #a53af0 100%);
134
+ position: relative;
135
+ width: min(100%, 420px);
136
+ border-radius: var(--sc-radius);
137
+ background: var(--sc-surface);
138
+ border: 1px solid var(--sc-line);
139
+ color: var(--sc-ink);
140
+ overflow: hidden;
141
+ isolation: isolate;
142
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(165, 58, 240, 0.35), 0 10px 24px -16px rgba(255, 107, 44, 0.3);
143
+ animation: srv-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
144
+ text-align: left;
145
+ }
146
+
147
+ .srv-hero {
148
+ position: relative;
149
+ display: flex;
150
+ align-items: center;
151
+ gap: 14px;
152
+ padding: 18px 20px;
153
+ background:
154
+ linear-gradient(120deg, rgba(255, 107, 44, 0.14), rgba(242, 80, 106, 0.1) 35%, rgba(224, 64, 200, 0.12) 65%, rgba(165, 58, 240, 0.16));
155
+ border-bottom: 1px solid rgba(165, 58, 240, 0.12);
156
+ overflow: hidden;
157
+ }
158
+ .srv-blob { position: absolute; border-radius: 50%; filter: blur(22px); opacity: 0.55; z-index: -1; }
159
+ .srv-blob--a { width: 140px; height: 140px; right: -30px; top: -60px; background: #e040c8; animation: srv-drift 7s ease-in-out infinite; }
160
+ .srv-blob--b { width: 120px; height: 120px; left: 40%; bottom: -80px; background: #ff6b2c; opacity: 0.35; animation: srv-drift 9s ease-in-out infinite reverse; }
161
+ .srv-logo {
162
+ flex: none;
163
+ width: 56px;
164
+ height: 56px;
165
+ border-radius: 14px;
166
+ box-shadow: 0 8px 18px -6px rgba(224, 64, 200, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.75);
167
+ animation: srv-pop 0.5s 0.1s cubic-bezier(0.2, 1.4, 0.4, 1) both;
168
+ }
169
+ .srv-app { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
170
+ .srv-app strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
171
+ .srv-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sc-ink-2); flex-wrap: wrap; }
172
+ .srv-rating b { font-weight: 650; color: var(--sc-ink); }
173
+ .srv-stars { display: inline-flex; gap: 1px; }
174
+ .srv-stars svg { animation: srv-star 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
175
+
176
+ .srv-body { padding: 18px 20px 18px; }
177
+
178
+ .srv-fixed { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #edf8f1; background: color-mix(in srgb, #12a150 9%, var(--sc-surface)); }
179
+ .srv-check {
180
+ position: absolute;
181
+ right: -3px;
182
+ bottom: -3px;
183
+ display: inline-flex;
184
+ align-items: center;
185
+ justify-content: center;
186
+ width: 18px;
187
+ height: 18px;
188
+ border-radius: 50%;
189
+ background: #12a150;
190
+ color: #fff;
191
+ box-shadow: 0 0 0 2px #fff;
192
+ box-shadow: 0 0 0 2px var(--sc-surface);
193
+ }
194
+ .srv-check-path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: srv-draw 0.45s 0.35s ease-out forwards; }
195
+ .srv-fixed-main { flex: 1; min-width: 0; }
196
+ .srv-agent-ring { position: relative; flex: none; display: inline-flex; padding: 2px; border-radius: 50%; background: var(--srv-grad); box-shadow: 0 6px 14px -6px rgba(224, 64, 200, 0.6); }
197
+ .srv-agent-ring .sc-avatar { background: var(--srv-grad); box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
198
+ .srv-eyebrow { display: block; font-size: 12px; font-weight: 600; color: #0e7a3a; color: color-mix(in srgb, #0e7a3a var(--sc-dk), #fff); }
199
+ .srv-fixed-text { margin: 1px 0 0; font-size: 14px; line-height: 1.4; font-weight: 550; color: var(--sc-ink); overflow-wrap: anywhere; }
200
+
201
+ .srv-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
202
+ .srv-shot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--sc-line); background: var(--sc-soft); }
203
+ .srv-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
204
+ .srv-shot:hover img { transform: scale(1.03); }
205
+ .srv-shot span { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.92); background: color-mix(in srgb, var(--sc-surface) 92%, transparent); color: var(--sc-ink); }
206
+ .srv-shot--after span { background: #12a150; color: #fff; }
207
+
208
+ .srv-title { margin: 18px 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
209
+ .srv-copy { margin: 0; font-size: 15px; line-height: 1.55; color: var(--sc-ink-2); }
210
+
211
+ .srv-primary {
212
+ position: relative;
213
+ display: flex;
214
+ align-items: center;
215
+ justify-content: center;
216
+ gap: 10px;
217
+ width: 100%;
218
+ height: 54px;
219
+ margin-top: 18px;
220
+ border: 0;
221
+ border-radius: 999px;
222
+ background: var(--srv-grad);
223
+ background-size: 130% 100%;
224
+ background-position: 0% 50%;
225
+ color: #fff;
226
+ font: inherit;
227
+ font-size: 16px;
228
+ font-weight: 700;
229
+ letter-spacing: -0.005em;
230
+ text-shadow: 0 1px 1px rgba(80, 0, 60, 0.18);
231
+ cursor: pointer;
232
+ overflow: hidden;
233
+ box-shadow: 0 10px 24px -10px rgba(224, 64, 200, 0.75), 0 4px 10px -6px rgba(255, 107, 44, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
234
+ transition: background-position 0.6s ease, transform 0.15s ease, box-shadow 0.2s;
235
+ animation: srv-breathe 2.8s 1.4s ease-in-out infinite;
236
+ }
237
+ .srv-primary::after {
238
+ content: "";
239
+ position: absolute;
240
+ inset: 0;
241
+ background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%); background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--sc-surface) 40%, transparent) 50%, transparent 70%);
242
+ transform: translateX(-120%);
243
+ animation: srv-sheen 3.4s 1s ease-in-out infinite;
244
+ }
245
+ .srv-primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(224, 64, 200, 0.85), 0 6px 14px -6px rgba(255, 107, 44, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
246
+ .srv-primary:active { transform: translateY(0) scale(0.99); }
247
+ .srv-primary:focus-visible { outline: 3px solid rgba(224, 64, 200, 0.4); outline-offset: 3px; }
248
+ .srv-primary:disabled { cursor: default; }
249
+ .srv-primary-icon {
250
+ display: inline-flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ width: 24px;
254
+ height: 24px;
255
+ border-radius: 50%;
256
+ background: rgba(255, 255, 255, 0.95); background: color-mix(in srgb, var(--sc-surface) 95%, transparent);
257
+ color: #e040c8;
258
+ transition: transform 0.2s;
259
+ }
260
+ .srv-primary:hover .srv-primary-icon { transform: translate(2px, -2px); }
261
+ .srv-time { margin: 9px 0 0; text-align: center; font-size: 13px; color: var(--sc-ink-3); }
262
+
263
+ /* Quiet text links, so the one button is the only thing to press. */
264
+ .srv-link {
265
+ border: 0;
266
+ background: none;
267
+ padding: 0;
268
+ font: inherit;
269
+ color: var(--sc-ink);
270
+ cursor: pointer;
271
+ text-decoration: underline;
272
+ text-decoration-color: var(--sc-line);
273
+ text-underline-offset: 3px;
274
+ }
275
+ .srv-link:hover { text-decoration-color: currentColor; }
276
+
277
+ .srv-owner { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 12px 20px; border-top: 1px solid var(--sc-line); background: #fafafa; background: color-mix(in srgb, #fafafa var(--sc-tint), var(--sc-surface)); font-size: 12px; color: var(--sc-ink-3); }
278
+ .srv-owner .srv-link { font-size: 12px; }
279
+
280
+ .srv-card--preview, .srv-card--preview .srv-primary { animation: none; }
281
+ .srv-card--quiet { padding: 12px 18px; border-radius: 18px; background: var(--sc-soft); border-color: transparent; box-shadow: none; }
282
+ .srv-quiet { margin: 0; font-size: 14px; color: var(--sc-ink-2); line-height: 1.5; }
283
+
284
+ .srv-card--thanks { text-align: center; padding: 30px 20px 24px; background: linear-gradient(180deg, rgba(224, 64, 200, 0.08), #fff 70%); background: linear-gradient(180deg, rgba(224, 64, 200, 0.08), var(--sc-surface) 70%); }
285
+ .srv-thanks-logo { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 18px -6px rgba(224, 64, 200, 0.55); animation: srv-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
286
+ .srv-thanks-title { margin: 14px 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
287
+ .srv-thanks-copy { margin: 0 0 6px; font-size: 15px; color: var(--sc-ink-2); line-height: 1.55; }
288
+ .srv-burst { position: absolute; left: 50%; top: 56px; width: 0; height: 0; }
289
+ .srv-burst span {
290
+ position: absolute;
291
+ width: 7px;
292
+ height: 7px;
293
+ border-radius: 2px;
294
+ background: var(--srv-grad);
295
+ transform: rotate(calc(var(--i) * 25.7deg)) translateY(0);
296
+ opacity: 0;
297
+ animation: srv-burst 1s calc(0.15s + var(--i) * 0.012s) ease-out forwards;
298
+ }
299
+ .srv-burst span:nth-child(3n) { background: #ffb21e; border-radius: 50%; }
300
+
301
+ @keyframes srv-rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
302
+ @keyframes srv-draw { to { stroke-dashoffset: 0; } }
303
+ @keyframes srv-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
304
+ @keyframes srv-star { from { opacity: 0; transform: scale(0.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
305
+ @keyframes srv-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 10px); } }
306
+ @keyframes srv-sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
307
+ @keyframes srv-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.015); } }
308
+ @keyframes srv-burst {
309
+ 0% { opacity: 1; transform: rotate(calc(var(--i) * 25.7deg)) translateY(0); }
310
+ 100% { opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)) translateY(-58px); }
311
+ }
312
+
313
+ @media (prefers-reduced-motion: reduce) {
314
+ .srv-card, .srv-logo, .srv-stars svg, .srv-blob, .srv-primary, .srv-primary::after, .srv-thanks-logo, .srv-burst span, .sc-bubble { animation: none !important; }
315
+ .srv-check-path { stroke-dashoffset: 0; animation: none; }
316
+ }
317
+
318
+ /* Agent inbox */
319
+ .sci-layout { display: grid; grid-template-columns: 280px 1fr 340px; gap: 16px; align-items: start; }
320
+ @media (max-width: 1100px) { .sci-layout { grid-template-columns: 1fr; } }
321
+ .sci-list { display: flex; flex-direction: column; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 14px; overflow: hidden; }
322
+ .sci-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--sc-line); color: var(--sc-ink); text-decoration: none; }
323
+ .sci-item:last-child { border-bottom: 0; }
324
+ .sci-item:hover { background: var(--sc-canvas); }
325
+ .sci-item--active { background: var(--sc-brand-soft); }
326
+ .sci-item strong { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
327
+ .sci-item span { display: block; font-size: 12px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
328
+ .sci-dot { width: 8px; height: 8px; border-radius: 50%; background: #0d0d0d; background: var(--sc-strong, #0d0d0d); flex: none; margin-top: 5px; }
329
+ .sci-panel { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
330
+ .sci-panel h3 { margin: 0; font-size: 15px; }
331
+ .sci-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 550; color: var(--sc-ink-2); }
332
+ .sci-field-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px; }
333
+ .sci-field input, .sci-field select {
334
+ font: inherit;
335
+ font-weight: 400;
336
+ font-size: 14px;
337
+ padding: 8px 10px;
338
+ border: 1px solid var(--sc-line);
339
+ border-radius: 10px;
340
+ color: var(--sc-ink);
341
+ background: #fff; background: var(--sc-surface);
342
+ }
343
+ .sci-eligibility { font-size: 13px; padding: 8px 10px; border-radius: 10px; line-height: 1.4; }
344
+ .sci-eligibility--ready { background: rgba(18, 161, 80, 0.08); color: #0b6b35; color: color-mix(in srgb, #0b6b35 var(--sc-dk), #fff); }
345
+ .sci-eligibility--warn { background: rgba(245, 165, 36, 0.12); color: #7a4b00; color: color-mix(in srgb, #7a4b00 var(--sc-dk), #fff); }
346
+ .sci-eligibility--stop { background: rgba(215, 44, 13, 0.08); color: #8e1f0b; color: color-mix(in srgb, #8e1f0b var(--sc-dk), #fff); }
347
+ .sci-preview { display: flex; justify-content: center; padding: 14px; border-radius: 12px; background: var(--sc-canvas); }
348
+
349
+ /* Chat bubble and panel */
350
+ .scl-bubble {
351
+ position: fixed;
352
+ right: 20px;
353
+ bottom: 20px;
354
+ z-index: 400;
355
+ display: inline-flex;
356
+ align-items: center;
357
+ justify-content: center;
358
+ width: 58px;
359
+ height: 58px;
360
+ border: 0;
361
+ border-radius: 50%;
362
+ background: linear-gradient(135deg, #ff6b2c 0%, #f2506a 38%, #e040c8 70%, #a53af0 100%);
363
+ color: #fff;
364
+ cursor: pointer;
365
+ box-shadow: 0 10px 26px -8px rgba(224, 64, 200, 0.7), 0 4px 10px -4px rgba(255, 107, 44, 0.5);
366
+ transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s;
367
+ animation: srv-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both;
368
+ }
369
+ .scl-bubble:hover { transform: scale(1.06); }
370
+ .scl-bubble:active { transform: scale(0.96); }
371
+ .scl-bubble:focus-visible { outline: 3px solid rgba(224, 64, 200, 0.4); outline-offset: 3px; }
372
+ .scl-badge {
373
+ position: absolute;
374
+ top: -2px;
375
+ right: -2px;
376
+ min-width: 20px;
377
+ height: 20px;
378
+ padding: 0 6px;
379
+ border-radius: 999px;
380
+ background: #0d0d0d; background: var(--sc-strong, #0d0d0d);
381
+ color: #fff; color: var(--sc-on-strong, #fff);
382
+ font-size: 12px;
383
+ font-weight: 650;
384
+ line-height: 20px;
385
+ box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface);
386
+ }
387
+
388
+ .scl-panel {
389
+ position: fixed;
390
+ right: 20px;
391
+ bottom: 92px;
392
+ z-index: 400;
393
+ display: flex;
394
+ flex-direction: column;
395
+ width: min(410px, calc(100vw - 32px));
396
+ height: min(680px, calc(100vh - 116px));
397
+ border-radius: 22px;
398
+ background: #fff; background: var(--sc-surface);
399
+ overflow: hidden;
400
+ box-shadow: 0 24px 60px -18px rgba(13, 13, 13, 0.35), 0 0 0 1px rgba(13, 13, 13, 0.06);
401
+ transform-origin: bottom right;
402
+ animation: scl-open 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
403
+ }
404
+ .scl-head {
405
+ position: relative;
406
+ flex: none;
407
+ padding: 16px 16px 14px;
408
+ color: #fff;
409
+ background: linear-gradient(120deg, #ff6b2c 0%, #f2506a 38%, #e040c8 70%, #a53af0 100%);
410
+ }
411
+ .scl-head-row { display: flex; align-items: center; gap: 12px; }
412
+ .scl-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
413
+ .scl-head-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
414
+ .scl-head-text strong { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
415
+ .scl-head-text span { font-size: 13px; opacity: 0.9; }
416
+ .scl-close {
417
+ display: inline-flex;
418
+ align-items: center;
419
+ justify-content: center;
420
+ width: 32px;
421
+ height: 32px;
422
+ border: 0;
423
+ border-radius: 50%;
424
+ background: rgba(255, 255, 255, 0.18); background: color-mix(in srgb, var(--sc-surface) 18%, transparent);
425
+ color: #fff;
426
+ cursor: pointer;
427
+ }
428
+ .scl-close:hover { background: rgba(255, 255, 255, 0.3); background: color-mix(in srgb, var(--sc-surface) 30%, transparent); }
429
+ .scl-team { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
430
+ .scl-faces { display: inline-flex; }
431
+ .scl-faces .sc-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
432
+ .scl-faces .sc-avatar + .sc-avatar { margin-left: -8px; }
433
+ .scl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; background: var(--sc-surface); }
434
+ .scl-body .sc-shell { height: 100%; border: 0; border-radius: 0; }
435
+ .scl-body .sc-thread { padding: 18px 14px 8px; }
436
+ .scl-body .sc-composer { margin: 6px 12px 12px; }
437
+ .scl-body .srv-card { width: 100%; }
438
+ /* Loading the chat: a centred spinner and a word, so an empty panel never looks broken. */
439
+ .scl-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 13.5px; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); background: #fff; background: var(--sc-surface); }
440
+ .scl-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(124, 92, 255, 0.18); border-top-color: #7c5cff; animation: scl-spin 0.8s linear infinite; }
441
+ @keyframes scl-spin { to { transform: rotate(360deg); } }
442
+
443
+ @keyframes scl-open { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
444
+ /* Closing: the way out of scl-open, played before the host removes the panel (scl-panel--closing). */
445
+ .scl-panel.scl-panel--closing { animation: scl-close 0.18s cubic-bezier(0.4, 0, 1, 1) both; pointer-events: none; }
446
+ @keyframes scl-close { to { opacity: 0; transform: translateY(12px) scale(0.96); } }
447
+ @keyframes scl-shimmer { to { background-position: -200% 0; } }
448
+
449
+ @media (prefers-reduced-motion: reduce) {
450
+ .scl-bubble, .scl-panel, .scl-loading { animation: none !important; }
451
+ }
452
+
453
+ /* Expanded panel, like Plain's: most of the window, the thread centred and readable. */
454
+ .scl-head-row .scl-close + .scl-close { margin-left: -4px; }
455
+ .scl-panel--expanded {
456
+ width: min(880px, calc(100vw - 40px));
457
+ height: calc(100vh - 112px);
458
+ }
459
+ .scl-panel--expanded .sc-thread { padding: 24px 28px 8px; }
460
+ .scl-panel--expanded .sc-content { max-width: 640px; }
461
+ .scl-panel--expanded .sc-composer { margin: 8px auto 16px; width: min(640px, calc(100% - 32px)); }
462
+ .scl-panel--expanded .srv-card { width: min(100%, 440px); }
463
+ .scl-panel { transition: width 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), height 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
464
+ @media (prefers-reduced-motion: reduce) { .scl-panel { transition: none; } }
465
+ /* Phones: the open panel sits low (the chat button hides while it is open), and right above the keyboard while typing.
466
+ In Shopify's mobile app the bottom bar and Sidekick cover the last ~110px, so the button and panel clear them. */
467
+ @media (max-width: 600px) {
468
+ .scl-bubble--open { display: none; }
469
+ .scl-panel { left: 8px; right: 8px; width: auto; bottom: 8px; height: min(680px, calc(100dvh - 16px)); }
470
+ html.scl-mobile-app .scl-bubble { bottom: 112px; }
471
+ html.scl-mobile-app .scl-panel { bottom: 104px; height: min(680px, calc(100dvh - 112px)); }
472
+ html.scl-kb .scl-panel, html.scl-mobile-app.scl-kb .scl-panel { bottom: 4px; height: calc(100dvh - 8px); }
473
+ .scl-panel.scl-panel--expanded { left: 0; right: 0; width: 100vw; border-radius: 0; height: calc(100dvh - 8px); }
474
+ html.scl-mobile-app .scl-panel.scl-panel--expanded { height: calc(100dvh - 104px); }
475
+ html.scl-kb .scl-panel.scl-panel--expanded { bottom: 0; height: 100dvh; }
476
+ .scl-panel--expanded .sc-thread { padding: 16px 12px 8px; }
477
+ .scl-panel--expanded .sc-composer { width: calc(100% - 16px); margin: 6px auto 10px; }
478
+ }
479
+
480
+ /* Team inbox at /inbox: phone first, two panes from 900px. */
481
+ .ibx {
482
+ --ibx-top: 56px;
483
+ display: flex;
484
+ flex-direction: column;
485
+ height: 100dvh;
486
+ background: #fff; background: var(--sc-surface);
487
+ color: var(--sc-ink);
488
+ font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
489
+ -webkit-font-smoothing: antialiased;
490
+ }
491
+ .ibx-top {
492
+ flex: none;
493
+ display: flex;
494
+ align-items: center;
495
+ gap: 10px;
496
+ height: var(--ibx-top);
497
+ padding: env(safe-area-inset-top) 16px 0;
498
+ box-sizing: content-box;
499
+ border-bottom: 1px solid var(--sc-line);
500
+ }
501
+ .ibx-logo { border-radius: 8px; }
502
+ .ibx-brand { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
503
+ .ibx-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
504
+ .ibx-agent { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); color: var(--sc-ink); }
505
+ .ibx-pill {
506
+ height: 34px;
507
+ padding: 0 14px;
508
+ border: 1px solid var(--sc-line);
509
+ border-radius: 999px;
510
+ background: #fff; background: var(--sc-surface);
511
+ color: var(--sc-ink);
512
+ font: inherit;
513
+ font-size: 14px;
514
+ font-weight: 550;
515
+ white-space: nowrap;
516
+ cursor: pointer;
517
+ }
518
+ .ibx-pill--brand { border: 0; color: #fff; background: linear-gradient(100deg, #1673e0 0%, #3d95ee 55%, #6cbdf5 100%); box-shadow: 0 6px 16px -8px rgba(22, 115, 224, 0.7); }
519
+ .ibx-link { border: 0; background: none; padding: 0 4px; font: inherit; font-size: 13px; color: var(--sc-ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
520
+ .ibx-push-on { display: inline-flex; align-items: center; gap: 6px; }
521
+ .ibx-note { font-size: 12px; color: var(--sc-ink-2); max-width: 260px; line-height: 1.35; }
522
+ .ibx-toast { position: fixed; left: 50%; top: calc(var(--ibx-top) + env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); font-size: 13px; animation: sc-in 0.2s ease-out both; }
523
+
524
+ .ibx-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
525
+ .ibx-list { overflow-y: auto; }
526
+ .ibx-thread { display: none; min-height: 0; flex-direction: column; }
527
+ .ibx--thread .ibx-list { display: none; }
528
+ .ibx--thread .ibx-thread { display: flex; }
529
+ @media (min-width: 900px) {
530
+ .ibx-main { grid-template-columns: 340px 1fr; }
531
+ .ibx-list, .ibx--thread .ibx-list { display: block; border-right: 1px solid var(--sc-line); }
532
+ .ibx-thread { display: flex; }
533
+ .ibx-back { display: none !important; }
534
+ }
535
+ .ibx-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid color-mix(in srgb, #f2f2f2 var(--sc-tint), var(--sc-line)); }
536
+ .ibx-item:hover { background: #fafafa; background: color-mix(in srgb, #fafafa var(--sc-tint), var(--sc-surface)); }
537
+ .ibx-item--active { background: var(--sc-soft); }
538
+ .ibx-item-avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; color: #fff; background: linear-gradient(135deg, #1673e0, #1673e0 60%, #6cbdf5); }
539
+ .ibx-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
540
+ .ibx-item-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
541
+ .ibx-item-text span { font-size: 13px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
542
+ .ibx-item-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--sc-ink-3); }
543
+ .ibx-empty, .ibx-placeholder { margin: auto; padding: 40px 16px; text-align: center; color: var(--sc-ink-3); font-size: 14px; }
544
+
545
+ .ibx-thread-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--sc-line); }
546
+ .ibx-back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--sc-ink); }
547
+ .ibx-back:hover { background: var(--sc-soft); }
548
+ .ibx-thread-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
549
+ .ibx-thread-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
550
+ .ibx-thread-title span { font-size: 12px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
551
+ .ibx-thread .sc-shell { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; }
552
+ .ibx-thread .sc-composer { margin-bottom: calc(12px + env(safe-area-inset-bottom)); }
553
+
554
+ .ibx-review { flex: none; display: flex; flex-direction: column; gap: 12px; max-height: 70dvh; overflow-y: auto; padding: 14px 16px 16px; border-bottom: 1px solid var(--sc-line); background: #fafafa; background: color-mix(in srgb, #fafafa var(--sc-tint), var(--sc-surface)); }
555
+ .ibx-error { margin: 0; font-size: 13px; color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
556
+ .ibx-send-review { height: 46px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 650; color: #fff; color: var(--sc-on-strong, #fff); cursor: pointer; background: var(--sc-ink); }
557
+ .ibx-send-review:disabled { opacity: 0.35; cursor: default; }
558
+ /* Grid children may shrink below their content, so long text never widens the page. */
559
+ .ibx-main > * { min-width: 0; }
560
+ .ibx-thread .sc-shell, .ibx-thread .sc-thread { min-width: 0; }
561
+ @media (max-width: 600px) {
562
+ .ibx-brand { display: none; }
563
+ .ibx-note { font-size: 11px; max-width: 170px; }
564
+ .ibx-pill { height: 32px; padding: 0 12px; font-size: 13px; }
565
+ .ibx-thread .sc-thread { padding: 16px 12px 8px; }
566
+ .ibx-thread .sc-row--merchant .sc-bubble, .ibx-thread .sc-row--agent .sc-bubble { max-width: 85%; }
567
+ }
568
+ /* Phones: bubbles use nearly the full width. */
569
+ @media (max-width: 600px) {
570
+ .sc-row .sc-msg-stack { max-width: 98%; }
571
+ .sc-row--merchant .sc-bubble, .sc-row--agent .sc-bubble, .ibx-thread .sc-row--merchant .sc-bubble, .ibx-thread .sc-row--agent .sc-bubble { max-width: 98%; }
572
+ .ibx-thread .sc-row .sc-msg-stack .sc-bubble, .sc-row .sc-msg-stack .sc-bubble { max-width: 100%; }
573
+ }
574
+
575
+ /* Rich cards: subscription mentions, the subscription card and deep links. */
576
+ .sc-row--card { align-items: flex-start; }
577
+ .rc-card {
578
+ width: min(100%, 400px);
579
+ border: 1px solid var(--sc-line);
580
+ border-radius: 20px;
581
+ background: #fff; background: var(--sc-surface);
582
+ color: var(--sc-ink);
583
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px -16px rgba(0, 0, 0, 0.22);
584
+ overflow: hidden;
585
+ animation: srv-rise 0.35s ease-out both;
586
+ text-align: left;
587
+ }
588
+
589
+ /* The mention: an entity highlight, like ChatGPT's. */
590
+ .rc-mention {
591
+ display: inline-flex;
592
+ align-items: center;
593
+ gap: 4px;
594
+ margin: 0 1px;
595
+ padding: 0 7px 0 5px;
596
+ border: 0;
597
+ border-radius: 7px;
598
+ background: rgba(165, 58, 240, 0.09);
599
+ color: #7b2bd0; color: color-mix(in srgb, #7b2bd0 var(--sc-dk), #fff);
600
+ font: inherit;
601
+ font-weight: 600;
602
+ line-height: 1.45;
603
+ vertical-align: baseline;
604
+ cursor: pointer;
605
+ box-shadow: inset 0 -1.5px 0 rgba(165, 58, 240, 0.35);
606
+ transition: background 0.15s, box-shadow 0.15s;
607
+ }
608
+ .rc-mention svg { opacity: 0.85; }
609
+ .rc-mention:hover, .rc-mention:focus-visible { background: rgba(165, 58, 240, 0.16); box-shadow: inset 0 -1.5px 0 rgba(165, 58, 240, 0.7); outline: none; }
610
+ .sc-row--merchant .rc-mention { background: rgba(165, 58, 240, 0.12); }
611
+ .rc-pop { position: fixed; z-index: 1000; width: 320px; animation: rc-pop 0.16s ease-out both; }
612
+ .rc-pop--above { transform: translateY(-100%); animation-name: rc-pop-up; }
613
+ .rc-pop .rc-card { width: 100%; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.04); animation: none; }
614
+ @keyframes rc-pop { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
615
+ @keyframes rc-pop-up { from { opacity: 0; transform: translateY(calc(-100% + 4px)) scale(0.98); } to { opacity: 1; transform: translateY(-100%); } }
616
+
617
+ /* Subscription card */
618
+ .rc-sub { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
619
+ .rc-sub--compact { padding: 14px; gap: 12px; }
620
+ .rc-sub--missing { font-size: 14px; color: var(--sc-ink-2); }
621
+ .rc-sub-head { display: flex; align-items: center; gap: 10px; }
622
+ .rc-sub-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #ff6b2c, #e040c8 60%, #a53af0); }
623
+ .rc-sub-icon svg { width: 17px; height: 17px; }
624
+ .rc-sub-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
625
+ .rc-sub-title strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
626
+ .rc-sub-title span { font-size: 12.5px; color: var(--sc-ink-3); }
627
+ .rc-status { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
628
+ .rc-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
629
+ .rc-status--active { background: rgba(18, 161, 80, 0.1); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
630
+ .rc-status--active i { box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.18); animation: rc-pulse 2s ease-in-out infinite; }
631
+ .rc-status--paused { background: rgba(245, 165, 36, 0.14); color: #8a5300; color: color-mix(in srgb, #8a5300 var(--sc-dk), #fff); }
632
+ .rc-status--failed { background: rgba(215, 44, 13, 0.1); color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
633
+ .rc-status--cancelled { background: #f1f1f1; background: color-mix(in srgb, #f1f1f1 var(--sc-tint), var(--sc-surface)); color: #6b6b6b; color: color-mix(in srgb, #6b6b6b var(--sc-dk), #fff); }
634
+ @keyframes rc-pulse { 50% { box-shadow: 0 0 0 5px rgba(18, 161, 80, 0.06); } }
635
+ .rc-sub-customer { display: flex; align-items: center; gap: 10px; }
636
+ .rc-sub-customer > div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
637
+ .rc-sub-customer strong { font-size: 14px; font-weight: 600; }
638
+ .rc-sub-customer span { font-size: 12.5px; color: var(--sc-ink-3); }
639
+ .rc-initials { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f1eefa; background: color-mix(in srgb, #f1eefa var(--sc-tint), var(--sc-surface)); color: #6a2cc0; color: color-mix(in srgb, #6a2cc0 var(--sc-dk), #fff); font-size: 12px; font-weight: 700; }
640
+ .rc-lines { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; border-radius: 14px; background: var(--sc-soft); }
641
+ .rc-lines li { display: flex; align-items: center; gap: 10px; padding: 6px; }
642
+ .rc-lines li + li:not(.rc-more) { border-top: 1px solid rgba(0, 0, 0, 0.05); border-top: 1px solid rgba(var(--sc-overlay-rgb), 0.05); }
643
+ .rc-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; background: var(--sc-surface); border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(var(--sc-overlay-rgb), 0.06); }
644
+ .rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
645
+ .rc-line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
646
+ .rc-line-text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
647
+ .rc-line-text span { font-size: 12px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
648
+ .rc-line-price { flex: none; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
649
+ .rc-line-price span { font-weight: 400; color: var(--sc-ink-3); }
650
+ .rc-more { justify-content: center; font-size: 12px; color: var(--sc-ink-3); padding: 4px 6px 6px; }
651
+ .rc-next { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 2px; }
652
+ .rc-next > div { display: flex; flex-direction: column; line-height: 1.3; }
653
+ .rc-next-label { font-size: 12px; color: var(--sc-ink-3); }
654
+ .rc-next strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
655
+ .rc-next-rel { font-size: 12px; color: #7b2bd0; color: color-mix(in srgb, #7b2bd0 var(--sc-dk), #fff); font-weight: 550; }
656
+ .rc-total { text-align: right; align-items: flex-end; }
657
+ .rc-open {
658
+ display: inline-flex;
659
+ align-items: center;
660
+ justify-content: center;
661
+ gap: 6px;
662
+ width: 100%;
663
+ height: 42px;
664
+ border: 0;
665
+ border-radius: 999px;
666
+ background: var(--sc-ink);
667
+ color: #fff; color: var(--sc-on-strong, #fff);
668
+ font: inherit;
669
+ font-size: 14px;
670
+ font-weight: 600;
671
+ cursor: pointer;
672
+ transition: background 0.15s, transform 0.1s;
673
+ }
674
+ .rc-open:hover { background: #2a2a2a; }
675
+ .rc-open:active { transform: scale(0.99); }
676
+ .rc-open:disabled, .rc-open--brand:disabled { background: var(--sc-soft); color: var(--sc-ink-3); box-shadow: none; filter: none; cursor: default; }
677
+ .rc-open--brand { background: linear-gradient(100deg, #ff6b2c 0%, #f2506a 38%, #e040c8 70%, #a53af0 100%); box-shadow: 0 8px 20px -10px rgba(224, 64, 200, 0.7); }
678
+ .rc-open--brand:hover { background: linear-gradient(100deg, #ff6b2c 0%, #f2506a 38%, #e040c8 70%, #a53af0 100%); filter: brightness(1.05); }
679
+ .rc-skel { border-radius: 8px; background: linear-gradient(90deg, #f2f2f2, #fafafa, #f2f2f2); background: linear-gradient(90deg, color-mix(in srgb, #f2f2f2 var(--sc-tint), var(--sc-surface)), color-mix(in srgb, #fafafa var(--sc-tint), var(--sc-surface)), color-mix(in srgb, #f2f2f2 var(--sc-tint), var(--sc-surface))); background-size: 200% 100%; animation: scl-shimmer 1.2s linear infinite; }
680
+ .rc-skel--line { height: 14px; }
681
+ .rc-skel--short { width: 50%; }
682
+ .rc-skel--block { height: 92px; border-radius: 14px; }
683
+
684
+ /* Deep link card: a little window of the page, with the setting outlined. */
685
+ .rc-link { width: min(100%, 380px); }
686
+ .rc-window { position: relative; margin: 12px 12px 0; border-radius: 12px; overflow: hidden; background: #f6f6f7; background: color-mix(in srgb, #f6f6f7 var(--sc-tint), var(--sc-surface)); border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(var(--sc-overlay-rgb), 0.06); }
687
+ .rc-window-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #fff; background: var(--sc-surface); border-bottom: 1px solid rgba(0, 0, 0, 0.06); border-bottom: 1px solid rgba(var(--sc-overlay-rgb), 0.06); }
688
+ .rc-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e3e3e3; background: color-mix(in srgb, #e3e3e3 var(--sc-tint), var(--sc-surface)); }
689
+ .rc-window-bar span { margin-left: 8px; font-size: 10.5px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
690
+ .rc-window-body { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; height: 112px; box-sizing: border-box; }
691
+ .rc-window-nav, .rc-window-main { display: flex; flex-direction: column; gap: 8px; }
692
+ .rc-window b { display: block; height: 8px; border-radius: 4px; background: #e4e4e7; background: color-mix(in srgb, #e4e4e7 var(--sc-tint), var(--sc-surface)); }
693
+ .rc-window-nav b { width: 100%; }
694
+ .rc-window-nav .rc-on { background: linear-gradient(90deg, #f2506a, #a53af0); opacity: 0.7; }
695
+ .rc-w40 { width: 40%; } .rc-w60 { width: 60%; } .rc-w75 { width: 75%; } .rc-w90 { width: 90%; }
696
+ .rc-target {
697
+ position: relative;
698
+ display: flex;
699
+ align-items: center;
700
+ justify-content: space-between;
701
+ gap: 8px;
702
+ padding: 6px 8px;
703
+ border-radius: 8px;
704
+ background: #fff; background: var(--sc-surface);
705
+ font-size: 11px;
706
+ font-weight: 600;
707
+ box-shadow: 0 0 0 2px #e040c8, 0 0 0 6px rgba(224, 64, 200, 0.16);
708
+ animation: rc-glow 2.2s ease-in-out infinite;
709
+ }
710
+ .rc-target span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
711
+ .rc-target em { flex: none; width: 26px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #e040c8, #a53af0); }
712
+ @keyframes rc-glow { 50% { box-shadow: 0 0 0 2px #1673e0, 0 0 0 9px rgba(22, 115, 224, 0.08); } }
713
+ .rc-cursor { position: absolute; right: 26%; bottom: 14px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); animation: rc-cursor 2.2s ease-in-out infinite; }
714
+ @keyframes rc-cursor { 0%, 100% { transform: translate(10px, 8px); } 50% { transform: translate(0, 0); } }
715
+ .rc-link-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
716
+ .rc-crumb { font-size: 12px; color: var(--sc-ink-3); }
717
+ .rc-link-body > strong { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
718
+ .rc-link-body p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--sc-ink-2); }
719
+ .rc-hint { margin-top: 6px; text-align: center; font-size: 12px; color: var(--sc-ink-3); }
720
+
721
+ /* Inbox: Send a card tabs */
722
+ .ibx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #ececec; background: color-mix(in srgb, #ececec var(--sc-tint), var(--sc-surface)); align-self: flex-start; }
723
+ .ibx-tab { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 550; color: var(--sc-ink-2); cursor: pointer; }
724
+ .ibx-tab--on { background: #fff; background: var(--sc-surface); color: var(--sc-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
725
+ .ibx-tip { margin: -4px 0 0; font-size: 12.5px; color: var(--sc-ink-3); }
726
+ .sci-field select { max-width: 100%; }
727
+
728
+ @media (prefers-reduced-motion: reduce) {
729
+ .rc-card, .rc-pop, .rc-target, .rc-cursor, .rc-skel, .rc-status--active i { animation: none !important; }
730
+ }
731
+ .rc-pop { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
732
+ .rc-sub--compact .rc-sub-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
733
+
734
+ /* References: orders in orange, subscriptions in purple, so the two never read alike. */
735
+ .rc-msg { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: min(78%, 560px); }
736
+ .sc-row--merchant .rc-msg { align-items: flex-end; }
737
+ .rc-msg > .sc-bubble { max-width: 100% !important; }
738
+ .rc-mention.rc-mention--order { background: rgba(255, 107, 44, 0.1); color: #c2410c; color: color-mix(in srgb, #c2410c var(--sc-dk), #fff); box-shadow: inset 0 -1.5px 0 rgba(255, 107, 44, 0.4); }
739
+ .rc-mention.rc-mention--order:hover, .rc-mention.rc-mention--order:focus-visible { background: rgba(255, 107, 44, 0.18); box-shadow: inset 0 -1.5px 0 rgba(255, 107, 44, 0.8); }
740
+ .rc-mention--active { background: rgba(165, 58, 240, 0.2); box-shadow: inset 0 -2px 0 rgba(165, 58, 240, 0.9); }
741
+ .rc-mention--order.rc-mention--active { background: rgba(255, 107, 44, 0.22); box-shadow: inset 0 -2px 0 rgba(255, 107, 44, 0.9); }
742
+ .rc-sub-icon--order { background: linear-gradient(135deg, #ffb21e, #ff6b2c 55%, #f2506a); }
743
+ .rc-order-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
744
+ .rc-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: rgba(245, 165, 36, 0.14); color: #8a5300; color: color-mix(in srgb, #8a5300 var(--sc-dk), #fff); }
745
+ .rc-tag--done { background: #f1f1f1; background: color-mix(in srgb, #f1f1f1 var(--sc-tint), var(--sc-surface)); color: #4a4a4a; color: color-mix(in srgb, #4a4a4a var(--sc-dk), #fff); }
746
+ .rc-tag--sub { background: rgba(165, 58, 240, 0.1); color: #7b2bd0; color: color-mix(in srgb, #7b2bd0 var(--sc-dk), #fff); }
747
+ .rc-tag--plain { background: none; color: var(--sc-ink-3); padding: 0 2px; }
748
+
749
+ /* Several references in one message: a strip of mini cards under it, lit together with its chip. */
750
+ .rc-strip { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 100%; }
751
+ .rc-strip-label { font-size: 12px; color: var(--sc-ink-3); padding-left: 2px; }
752
+ .rc-strip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
753
+ .rc-strip-item {
754
+ flex: none;
755
+ width: 196px;
756
+ display: flex;
757
+ flex-direction: column;
758
+ gap: 8px;
759
+ padding: 10px 12px;
760
+ border: 1px solid var(--sc-line);
761
+ border-radius: 14px;
762
+ background: #fff; background: var(--sc-surface);
763
+ font: inherit;
764
+ color: var(--sc-ink);
765
+ text-align: left;
766
+ cursor: pointer;
767
+ scroll-snap-align: start;
768
+ transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
769
+ }
770
+ .rc-strip-item:hover, .rc-strip-item--active { border-color: rgba(165, 58, 240, 0.5); box-shadow: 0 6px 18px -10px rgba(165, 58, 240, 0.6); transform: translateY(-1px); }
771
+ .rc-strip-item:disabled { cursor: default; }
772
+ .rc-strip-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
773
+ .rc-strip-top strong { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
774
+ .rc-strip-top .rc-status { height: 20px; padding: 0 7px; font-size: 11px; gap: 4px; }
775
+ .rc-strip-top .rc-status i { width: 6px; height: 6px; }
776
+ .rc-strip-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #ff6b2c, #e040c8 60%, #a53af0); }
777
+ .rc-strip-icon--order { background: linear-gradient(135deg, #ffb21e, #ff6b2c 55%, #f2506a); }
778
+ .rc-strip-thumbs { display: flex; gap: 4px; }
779
+ .rc-thumb--sm { width: 30px; height: 30px; border-radius: 8px; }
780
+ .rc-strip-bottom { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--sc-ink-3); }
781
+ .rc-strip-bottom b { color: var(--sc-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
782
+ .rc-strip-missing { font-size: 12px; color: var(--sc-ink-3); }
783
+
784
+ /* Pricing card */
785
+ .rc-pricing { padding: 16px; display: flex; flex-direction: column; gap: 14px; width: min(100%, 380px); }
786
+ .rc-pricing-head { display: flex; align-items: center; gap: 10px; }
787
+ .rc-pricing-head img { border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(224, 64, 200, 0.6); }
788
+ .rc-pricing-head div { display: flex; flex-direction: column; line-height: 1.25; }
789
+ .rc-pricing-head strong { font-size: 15px; font-weight: 700; }
790
+ .rc-pricing-head span { font-size: 12.5px; color: #7b2bd0; color: color-mix(in srgb, #7b2bd0 var(--sc-dk), #fff); font-weight: 550; }
791
+ .rc-pricing-you { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(255, 107, 44, 0.08), rgba(224, 64, 200, 0.07) 55%, rgba(165, 58, 240, 0.1)); }
792
+ .rc-pricing-you strong { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
793
+ .rc-meter { position: relative; height: 8px; margin: 8px 0 2px; border-radius: 999px; background: rgba(0, 0, 0, 0.07); background: rgba(var(--sc-overlay-rgb), 0.07); }
794
+ .rc-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #ff6b2c, #f2506a 40%, #e040c8 70%, #a53af0); animation: rc-grow 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: left; }
795
+ .rc-meter-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; background: var(--sc-surface); box-shadow: 0 0 0 3px #e040c8, 0 4px 10px rgba(224, 64, 200, 0.5); animation: srv-pop 0.4s 0.9s both; }
796
+ @keyframes rc-grow { from { transform: scaleX(0); } to { transform: none; } }
797
+ .rc-pricing-asof { font-size: 11.5px; color: var(--sc-ink-3); }
798
+ /* The current tier's ring is drawn inside its row, so this gap stays clear between it and the grey row. */
799
+ .rc-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
800
+ .rc-tier { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--sc-ink-2); }
801
+ .rc-tier-name { flex: 1; min-width: 0; }
802
+ .rc-tier-price { font-weight: 600; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
803
+ .rc-tier--you { background: #fff; background: var(--sc-surface); color: var(--sc-ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px #e040c8; }
804
+ .rc-tier--next { background: var(--sc-soft); }
805
+ .rc-tier-badge { flex: none; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 20px; color: #fff; background: linear-gradient(100deg, #ff6b2c, #e040c8 60%, #a53af0); }
806
+ .rc-tier-badge--next { background: #e4e4e7; background: color-mix(in srgb, #e4e4e7 var(--sc-tint), var(--sc-surface)); color: var(--sc-ink-2); }
807
+ .rc-pricing-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sc-ink-3); }
808
+
809
+ @media (prefers-reduced-motion: reduce) {
810
+ .rc-meter-fill, .rc-meter-dot, .rc-strip-item { animation: none !important; transition: none; }
811
+ }
812
+
813
+ /* Split view: the chat as a full-height column, the app's page narrowed beside it. */
814
+ :root { --scl-split-w: clamp(380px, 34vw, 500px); }
815
+ html.scl-split body { margin-right: var(--scl-split-w); transition: margin-right 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
816
+ .scl-panel--split {
817
+ top: 0;
818
+ right: 0;
819
+ bottom: 0;
820
+ width: var(--scl-split-w);
821
+ height: 100vh;
822
+ border-radius: 0;
823
+ box-shadow: -1px 0 0 var(--sc-line), -24px 0 48px -36px rgba(13, 13, 13, 0.35);
824
+ animation: scl-dock 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
825
+ }
826
+ .scl-panel--split .scl-head { padding-top: 18px; }
827
+ .scl-panel--split .sc-thread { padding: 18px 16px 8px; }
828
+ .scl-panel--split .srv-card, .scl-panel--split .rc-card { width: 100%; }
829
+ .scl-bubble--hidden { display: none; }
830
+ @keyframes scl-dock { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
831
+ @media (prefers-reduced-motion: reduce) { html.scl-split body { transition: none; } .scl-panel--split { animation: none; } }
832
+
833
+ /* Offer card: the options drawn like the storefront widget. */
834
+ .rc-offer { width: min(100%, 400px); }
835
+ .rc-sub-icon--offer { background: linear-gradient(135deg, #a53af0, #e040c8 55%, #ff6b2c); }
836
+ .rc-offer-products { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: -2px; }
837
+ .rc-offer-thumbs { display: flex; flex: none; }
838
+ .rc-offer-thumbs .rc-thumb + .rc-thumb { margin-left: -8px; box-shadow: -2px 0 0 #fff; box-shadow: -2px 0 0 var(--sc-surface); }
839
+ .rc-thumb-letter { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 12px; font-weight: 650; color: #6a2cc0; color: color-mix(in srgb, #6a2cc0 var(--sc-dk), #fff); background: #f1eefa; background: color-mix(in srgb, #f1eefa var(--sc-tint), var(--sc-surface)); }
840
+ .rc-offer-names { flex: 1; min-width: 0; font-size: 12.5px; color: var(--sc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
841
+ .rc-widget, .rc-tiers-bundle { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--sc-soft); }
842
+ .rc-widget-row, .rc-bundle-bar { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #fff; background: var(--sc-surface); border: 1px solid rgba(0, 0, 0, 0.07); border: 1px solid rgba(var(--sc-overlay-rgb), 0.07); }
843
+ .rc-widget-row i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9c9cf; border: 1.5px solid color-mix(in srgb, #c9c9cf var(--sc-tint), var(--sc-line)); background: #fff; background: var(--sc-surface); }
844
+ .rc-widget-row--on, .rc-bundle-bar--on { border-color: #e040c8; box-shadow: 0 0 0 1px #e040c8, 0 6px 16px -10px rgba(224, 64, 200, 0.7); }
845
+ .rc-widget-row--on i { border: 5px solid #e040c8; }
846
+ .rc-widget-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
847
+ .rc-widget-text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
848
+ .rc-widget-text span { font-size: 12px; color: var(--sc-ink-3); }
849
+ .rc-widget-row em, .rc-bundle-bar em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); background: rgba(18, 161, 80, 0.12); }
850
+
851
+ /* Private notes: the team's own, in yellow, never shown to the merchant. */
852
+ .sc-note { align-self: stretch; margin: 2px 0; padding: 10px 14px 12px; border-radius: 14px; background: #fff4e6; background: color-mix(in srgb, #fff4e6 var(--sc-tint), var(--sc-surface)); border: 1px solid #f7d9b5; color: #40260f; color: color-mix(in srgb, #40260f var(--sc-dk), #fff); animation: sc-in 0.2s ease-out both; }
853
+ .sc-note-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: #9a5410; color: color-mix(in srgb, #9a5410 var(--sc-dk), #fff); }
854
+ .sc-note-head span { margin-left: auto; font-weight: 400; color: #a08a3a; color: color-mix(in srgb, #a08a3a var(--sc-dk), #fff); }
855
+ .sc-note-body { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
856
+ .sc-mention { display: inline-flex; padding: 0 6px; border-radius: 6px; background: rgba(240, 140, 50, 0.2); color: #7a3f08; color: color-mix(in srgb, #7a3f08 var(--sc-dk), #fff); font-weight: 650; }
857
+ .sc-note-bar { display: flex; align-items: center; gap: 8px; margin: 8px 16px -2px; padding: 7px 12px; border-radius: 12px; background: #ffe9d2; background: color-mix(in srgb, #ffe9d2 var(--sc-tint), var(--sc-surface)); color: #8a4b0c; color: color-mix(in srgb, #8a4b0c var(--sc-dk), #fff); font-size: 13px; font-weight: 550; }
858
+ .sc-note-bar span { flex: 1; min-width: 0; }
859
+ .sc-note-bar button { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: #6b5300; color: color-mix(in srgb, #6b5300 var(--sc-dk), #fff); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
860
+ .sc-note-bar--reply { background: var(--sc-soft); color: var(--sc-ink-2); }
861
+ .sc-note-bar--reply button { color: var(--sc-ink); }
862
+ .sc-composer--note { background: #fff8f0; background: color-mix(in srgb, #fff8f0 var(--sc-tint), var(--sc-surface)); border-color: #f3c896; box-shadow: 0 0 0 3px rgba(240, 150, 60, 0.18); }
863
+ .sc-composer--note .sc-send { background: #b8860b; }
864
+ .sc-suggest { display: flex; gap: 6px; margin: 8px 16px -2px; }
865
+ .sc-suggest button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 5px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--sc-ink); cursor: pointer; box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.3); }
866
+ .sc-suggest button:hover { background: var(--sc-soft); }
867
+ /* The one Enter picks: tinted, ringed, with a return key hint. */
868
+ .sc-suggest button[aria-selected="true"] { border-color: #7c5cff; background: rgba(124, 92, 255, 0.1); background: color-mix(in srgb, #7c5cff 12%, var(--sc-surface)); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25), 0 4px 12px -8px rgba(0, 0, 0, 0.3); color: var(--sc-ink); }
869
+ .sc-suggest button[aria-selected="true"]::after { content: "\21B5"; margin-left: 2px; font-size: 12px; font-weight: 500; color: #7c5cff; color: color-mix(in srgb, #7c5cff 85%, var(--sc-ink)); }
870
+
871
+ /* Files */
872
+ .sc-msg-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: min(80%, 34rem); }
873
+ .sc-row--merchant .sc-msg-stack { align-items: flex-end; }
874
+ .sc-msg-stack > .rc-msg, .sc-msg-stack > .sc-bubble { max-width: 100%; }
875
+ /* In a thread the stack sets the width; the references wrapper inside the bubble anchor fills it. */
876
+ .sc-bubble-anchor > .rc-msg { max-width: 100%; }
877
+ .sc-row--ai .sc-bubble-anchor > .rc-msg { width: 100%; }
878
+ .sc-files { display: flex; flex-direction: column; gap: 6px; max-width: 360px; width: 100%; }
879
+ .sc-note .sc-files { margin-top: 8px; }
880
+ .sc-file-grid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; }
881
+ .sc-file-grid--1 { grid-template-columns: 1fr; }
882
+ .sc-file-grid--2 { grid-template-columns: 1fr 1fr; }
883
+ .sc-file-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
884
+ .sc-file-img { display: block; padding: 0; border: 0; background: var(--sc-soft); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
885
+ .sc-file-grid--1 .sc-file-img { aspect-ratio: auto; max-height: 280px; }
886
+ .sc-file-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
887
+ .sc-file-img .rc-skel, .sc-file-video .rc-skel { display: block; width: 100%; height: 100%; min-height: 120px; border-radius: 0; }
888
+ .sc-file-video { border-radius: 16px; overflow: hidden; background: #000; background: var(--sc-strong, #000); }
889
+ .sc-file-video video { display: block; width: 100%; max-height: 300px; }
890
+ .sc-file-chip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--sc-line); border-radius: 14px; background: #fff; background: var(--sc-surface); font: inherit; color: var(--sc-ink); text-align: left; cursor: pointer; }
891
+ .sc-file-chip:hover { background: var(--sc-soft); }
892
+ .sc-file-chip svg { flex: none; color: var(--sc-ink-3); }
893
+ .sc-file-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; font-size: 10px; font-weight: 750; letter-spacing: 0.03em; color: #fff; background: linear-gradient(135deg, #1673e0, #1673e0 60%, #6cbdf5); }
894
+ .sc-file-text, .sc-pending-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
895
+ .sc-file-text strong, .sc-pending-text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
896
+ .sc-file-text span, .sc-pending-text span { font-size: 12px; color: var(--sc-ink-3); }
897
+
898
+ .sc-attach { flex: none; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -8px; border: 0; border-radius: 50%; background: none; color: var(--sc-ink-2); cursor: pointer; }
899
+ .sc-attach:hover { background: var(--sc-soft); color: var(--sc-ink); }
900
+ .sc-pending { display: flex; gap: 8px; overflow-x: auto; margin: 8px 16px -2px; padding-bottom: 2px; }
901
+ .sc-pending-item { position: relative; flex: none; display: flex; align-items: center; gap: 8px; width: 200px; padding: 6px 28px 6px 6px; border: 1px solid var(--sc-line); border-radius: 12px; background: #fff; background: var(--sc-surface); }
902
+ .sc-pending-item img { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
903
+ .sc-pending-item button { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--sc-soft); color: var(--sc-ink-2); cursor: pointer; }
904
+ .sc-pending-item--busy::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #1673e0, #1673e0, #6cbdf5); background-size: 200% 100%; animation: scl-shimmer 1s linear infinite; }
905
+ .sc-pending-item--error { border-color: rgba(215, 44, 13, 0.4); }
906
+ .sc-pending-item--error .sc-pending-text span { color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
907
+ .sc-shell { position: relative; }
908
+ .sc-shell--drop { box-shadow: inset 0 0 0 2px #1673e0; }
909
+ .sc-drop { position: absolute; inset: 8px; z-index: 5; display: flex; align-items: center; justify-content: center; border: 2px dashed #1673e0; border-radius: 14px; background: rgba(255, 255, 255, 0.92); background: color-mix(in srgb, var(--sc-surface) 92%, transparent); font-size: 15px; font-weight: 650; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); pointer-events: none; }
910
+
911
+ /* Availability: when a person will answer, in the merchant's time. */
912
+ .sc-empty-card { margin-top: 18px; text-align: left; display: flex; justify-content: center; }
913
+ .av-card { width: min(100%, 400px); padding: 16px; border-radius: 20px; border: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); color: var(--sc-ink); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.25); animation: srv-rise 0.35s ease-out both; text-align: left; }
914
+ .av-head { display: flex; gap: 12px; align-items: flex-start; }
915
+ .av-moon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6cbdf5, #1673e0 60%, #1673e0); box-shadow: 0 8px 18px -8px rgba(22, 115, 224, 0.7); }
916
+ .av-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: rgba(245, 165, 36, 0.15); color: #8a5300; color: color-mix(in srgb, #8a5300 var(--sc-dk), #fff); }
917
+ .av-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f5a524; }
918
+ .av-head h3 { margin: 6px 0 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
919
+ .av-head p { margin: 0; font-size: 13px; color: var(--sc-ink-2); }
920
+
921
+ .av-strip { margin: 16px 0 6px; }
922
+ .av-track { position: relative; height: 12px; border-radius: 999px; background: #f1f1f3; background: color-mix(in srgb, #f1f1f3 var(--sc-tint), var(--sc-surface)); overflow: hidden; }
923
+ .av-block { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #1673e0, #1673e0 60%, #6cbdf5); opacity: 0.9; }
924
+ .av-now { position: absolute; left: 0; top: -2px; bottom: -2px; width: 3px; border-radius: 2px; background: #0d0d0d; background: var(--sc-strong, #0d0d0d); }
925
+ .av-ticks { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--sc-ink-3); }
926
+ .av-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
927
+ .av-ticks span:first-child { transform: none; font-weight: 650; color: var(--sc-ink); }
928
+
929
+ .av-team { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
930
+ .av-team li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
931
+ .av-team strong { font-weight: 600; }
932
+ .av-team li > span:last-child { margin-left: auto; color: var(--sc-ink-3); }
933
+ .av-promise { list-style: none; margin: 14px 0 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; background: var(--sc-soft); }
934
+ .av-promise li { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--sc-ink-2); }
935
+ .av-promise svg { flex: none; margin-top: 2px; color: #12a150; color: color-mix(in srgb, #12a150 var(--sc-dk), #fff); }
936
+ .av-tip { margin: 10px 2px 0; font-size: 12.5px; color: var(--sc-ink-3); line-height: 1.45; }
937
+
938
+ .av-card--online { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
939
+ .av-faces { display: inline-flex; flex: none; }
940
+ .av-face { position: relative; display: inline-flex; }
941
+ .av-face + .av-face { margin-left: -8px; }
942
+ .av-face .sc-avatar { box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
943
+ .av-face i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); animation: rc-pulse 2s ease-in-out infinite; }
944
+ .av-online-text { display: flex; flex-direction: column; line-height: 1.35; }
945
+ .av-online-text strong { font-size: 14px; font-weight: 650; }
946
+ .av-online-text span { font-size: 12.5px; color: var(--sc-ink-2); }
947
+
948
+ .scl-status { display: inline-flex; align-items: center; gap: 6px; }
949
+ .scl-dot { width: 8px; height: 8px; border-radius: 50%; background: #5dff9a; box-shadow: 0 0 0 3px rgba(93, 255, 154, 0.25); }
950
+ @media (prefers-reduced-motion: reduce) { .av-card, .av-face i { animation: none !important; } }
951
+ /* Padding stays inside the stated width, so a card never spills past a narrow panel. */
952
+ .av-card, .srv-card, .rc-card, .sc-note { box-sizing: border-box; }
953
+
954
+ /* New message previews above the chat button: who, the message in a bubble, then what fits it, then buttons. */
955
+ .mp-stack { position: fixed; right: 20px; bottom: 92px; z-index: 401; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(360px, calc(100vw - 32px)); }
956
+ .mp-card {
957
+ box-sizing: border-box;
958
+ width: 100%;
959
+ padding: 12px;
960
+ border-radius: 22px;
961
+ background: rgba(255, 255, 255, 0.96); background: color-mix(in srgb, var(--sc-surface) 96%, transparent);
962
+ backdrop-filter: blur(12px);
963
+ color: var(--sc-ink);
964
+ box-shadow: 0 24px 48px -18px rgba(13, 13, 13, 0.38), 0 0 0 1px rgba(13, 13, 13, 0.06);
965
+ animation: mp-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
966
+ transform-origin: bottom right;
967
+ }
968
+ .mp-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; }
969
+ .mp-who { display: flex; align-items: baseline; gap: 4px; min-width: 0; flex: 1; }
970
+ .mp-who strong { font-size: 13.5px; font-weight: 650; }
971
+ .mp-who span { font-size: 12px; color: var(--sc-ink-3); white-space: nowrap; }
972
+ .mp-head time { font-size: 11.5px; color: var(--sc-ink-3); white-space: nowrap; }
973
+ .mp-close { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--sc-ink-3); cursor: pointer; }
974
+ .mp-close:hover { background: var(--sc-soft); color: var(--sc-ink); }
975
+ .mp-bubble { display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 16px 16px 16px 6px; background: var(--sc-soft); font: inherit; font-size: 14px; line-height: 1.45; color: var(--sc-ink); text-align: left; cursor: pointer; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
976
+ .mp-bubble:hover { background: #ececee; background: color-mix(in srgb, #ececee var(--sc-tint), var(--sc-surface)); }
977
+ .mp-files { display: block; margin-top: 4px; font-size: 12px; color: var(--sc-ink-3); }
978
+ .mp-rich { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; }
979
+ .mp-rich--review { background: linear-gradient(120deg, rgba(255, 107, 44, 0.1), rgba(22, 115, 224, 0.09) 55%, rgba(22, 115, 224, 0.12)); }
980
+ .mp-rich--review img { border-radius: 9px; box-shadow: 0 6px 14px -6px rgba(22, 115, 224, 0.6); }
981
+ .mp-rich--review div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
982
+ .mp-rich--review strong { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
983
+ .mp-stars { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; color: var(--sc-ink-2); }
984
+ .mp-stars b { margin: 0 4px 0 5px; color: var(--sc-ink); }
985
+ .mp-rich--help { background: #eef4fe; background: color-mix(in srgb, #eef4fe var(--sc-tint), var(--sc-surface)); font-size: 12.5px; line-height: 1.4; color: #174ea6; color: color-mix(in srgb, #174ea6 var(--sc-dk), #fff); }
986
+ .mp-help-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: #1a73e8; }
987
+ .mp-actions { display: flex; gap: 8px; margin-top: 10px; }
988
+ .mp-actions .mp-btn { flex: 1; }
989
+ .mp-btn { height: 38px; padding: 0 14px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sc-ink); cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.1s, filter 0.15s; }
990
+ .mp-btn:active { transform: scale(0.97); }
991
+ .mp-btn:disabled { opacity: 0.55; cursor: default; }
992
+ .mp-btn--plain:hover { background: var(--sc-soft); }
993
+ .mp-btn--dark { border-color: transparent; background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); }
994
+ .mp-btn--dark:hover { background: #2a2a2a; }
995
+ .mp-btn--brand { border-color: transparent; color: #fff; background: linear-gradient(100deg, #1673e0 0%, #3d95ee 55%, #6cbdf5 100%); box-shadow: 0 8px 18px -8px rgba(22, 115, 224, 0.75); }
996
+ .mp-btn--brand:hover { filter: brightness(1.06); }
997
+ .mp-more { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(13, 13, 13, 0.75); background: rgba(var(--sc-overlay-rgb), 0.75); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
998
+ @keyframes mp-in { from { opacity: 0; transform: translateY(12px) scale(0.95); } to { opacity: 1; transform: none; } }
999
+ @media (prefers-reduced-motion: reduce) { .mp-card { animation: none; } }
1000
+
1001
+ /* "Do you need help setting up?" in the chat */
1002
+ .ho-card { box-sizing: border-box; width: min(100%, 380px); padding: 14px; border-radius: 20px; border: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.25); animation: srv-rise 0.35s ease-out both; }
1003
+ .ho-head { display: flex; align-items: center; gap: 10px; }
1004
+ .ho-head div { display: flex; flex-direction: column; line-height: 1.25; }
1005
+ .ho-head strong { font-size: 14px; font-weight: 650; }
1006
+ .ho-head span { font-size: 12px; color: var(--sc-ink-3); }
1007
+ .ho-body { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
1008
+ .ho-perk { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #eef4fe; background: color-mix(in srgb, #eef4fe var(--sc-tint), var(--sc-surface)); color: #174ea6; color: color-mix(in srgb, #174ea6 var(--sc-dk), #fff); font-size: 13px; line-height: 1.45; }
1009
+ .ho-perk svg { flex: none; color: #1a73e8; color: color-mix(in srgb, #1a73e8 var(--sc-dk), #fff); margin-top: 1px; }
1010
+ .ho-actions { display: flex; gap: 8px; margin-top: 12px; }
1011
+ .ho-actions .mp-btn { flex: 1; }
1012
+
1013
+ /* Composer tools: emoji, GIF, saved replies */
1014
+ .sc-composer { position: relative; }
1015
+ .sc-attach + .sc-attach { margin-left: -6px; }
1016
+ .sc-gif-btn { width: auto; padding: 0 6px; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; border-radius: 8px; }
1017
+ .ct-pop { position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 20; box-sizing: border-box; width: min(340px, calc(100vw - 40px)); padding: 10px; border-radius: 18px; background: #fff; background: var(--sc-surface); box-shadow: 0 20px 44px -16px rgba(13, 13, 13, 0.35), 0 0 0 1px rgba(13, 13, 13, 0.06); animation: mp-in 0.2s ease-out both; }
1018
+ .ct-search { box-sizing: border-box; width: 100%; height: 34px; padding: 0 12px; border: 1px solid var(--sc-line); border-radius: 999px; font: inherit; font-size: 13.5px; outline: none; }
1019
+ .ct-search:focus { border-color: #1673e0; }
1020
+ .ct-tabs { display: flex; gap: 4px; margin-top: 8px; }
1021
+ .ct-tab { flex: 1; height: 30px; border: 0; border-radius: 10px; background: none; font-size: 17px; cursor: pointer; }
1022
+ .ct-tab--on, .ct-tab:hover { background: var(--sc-soft); }
1023
+ .ct-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 220px; overflow-y: auto; margin-top: 8px; }
1024
+ .ct-grid button { height: 36px; border: 0; border-radius: 10px; background: none; font-size: 21px; cursor: pointer; transition: transform 0.1s; }
1025
+ .ct-grid button:hover { background: var(--sc-soft); transform: scale(1.15); }
1026
+ .ct-gifs { columns: 2; column-gap: 6px; max-height: 300px; overflow-y: auto; margin-top: 8px; }
1027
+ .ct-gifs button { display: block; width: 100%; margin-bottom: 6px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--sc-soft); cursor: pointer; break-inside: avoid; }
1028
+ .ct-gifs img { display: block; width: 100%; }
1029
+ .ct-gifs button:hover { outline: 2px solid #1673e0; }
1030
+ .ct-empty { grid-column: 1 / -1; margin: 16px 4px; font-size: 13px; color: var(--sc-ink-3); text-align: center; }
1031
+ .ct-credit { display: block; margin-top: 6px; font-size: 10.5px; color: var(--sc-ink-3); text-align: right; }
1032
+
1033
+ .sc-shortcuts { display: flex; flex-direction: column; gap: 2px; margin: 8px 16px -2px; padding: 6px; border-radius: 16px; background: #fff; background: var(--sc-surface); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
1034
+ .sc-shortcuts button { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer; }
1035
+ .sc-shortcuts button:first-child, .sc-shortcuts button:hover { background: var(--sc-soft); }
1036
+ .sc-link-suggest button:first-child { background: none; }
1037
+ .sc-link-suggest button.sc-shortcut--on, .sc-link-suggest button:hover { background: var(--sc-soft); }
1038
+ .sc-link-suggest .sc-shortcut-text { min-width: 0; }
1039
+ .sc-link-suggest .sc-shortcut-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1040
+ .sc-shortcut-key { flex: none; padding: 2px 8px; border-radius: 7px; background: rgba(22, 115, 224, 0.1); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); font-size: 12.5px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
1041
+ .sc-shortcut-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
1042
+ .sc-shortcut-text strong { font-size: 13.5px; font-weight: 600; }
1043
+ .sc-shortcut-text span { font-size: 12.5px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1044
+
1045
+ /* Reminders */
1046
+ .rm-wrap { position: relative; }
1047
+ .rm-button { display: inline-flex; align-items: center; gap: 6px; }
1048
+ .rm-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: rgba(22, 115, 224, 0.1); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); font-size: 13px; font-weight: 600; }
1049
+ .rm-chip--due { background: #fff1d6; background: color-mix(in srgb, #fff1d6 var(--sc-tint), var(--sc-surface)); color: #8a5300; color: color-mix(in srgb, #8a5300 var(--sc-dk), #fff); }
1050
+ .rm-chip button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.7); background: color-mix(in srgb, var(--sc-surface) 70%, transparent); color: inherit; cursor: pointer; }
1051
+ .rm-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; box-sizing: border-box; width: 280px; padding: 12px; border-radius: 18px; background: #fff; background: var(--sc-surface); box-shadow: 0 20px 44px -16px rgba(13, 13, 13, 0.35), 0 0 0 1px rgba(13, 13, 13, 0.06); display: flex; flex-direction: column; gap: 8px; animation: mp-in 0.2s ease-out both; }
1052
+ .rm-pop > strong { font-size: 14px; }
1053
+ .rm-presets { display: flex; flex-direction: column; gap: 2px; }
1054
+ .rm-presets button { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13.5px; cursor: pointer; }
1055
+ .rm-presets button:hover { background: var(--sc-soft); }
1056
+ .rm-presets span:last-child { color: var(--sc-ink-3); }
1057
+ .rm-custom { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sc-ink-3); }
1058
+ .rm-custom input, .rm-note { box-sizing: border-box; height: 34px; padding: 0 10px; border: 1px solid var(--sc-line); border-radius: 10px; font: inherit; font-size: 13px; }
1059
+ .rm-set { width: 100%; }
1060
+ .rm-badge { padding: 1px 7px; border-radius: 999px; background: rgba(22, 115, 224, 0.1); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); font-size: 11px; font-weight: 650; white-space: nowrap; }
1061
+ .rm-badge--due { background: #fff1d6; background: color-mix(in srgb, #fff1d6 var(--sc-tint), var(--sc-surface)); color: #8a5300; color: color-mix(in srgb, #8a5300 var(--sc-dk), #fff); }
1062
+
1063
+ /* Saved replies panel */
1064
+ .sp-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 13, 13, 0.3); background: rgba(var(--sc-overlay-rgb), 0.3); }
1065
+ .sp-panel { box-sizing: border-box; width: min(560px, 100%); min-width: 0; max-height: min(720px, 100%); overflow-y: auto; padding: 16px; border-radius: 22px; background: #fff; background: var(--sc-surface); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4); animation: mp-in 0.25s ease-out both; }
1066
+ .sp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
1067
+ .sp-head strong { font-size: 17px; }
1068
+ .sp-head span { flex: 1; font-size: 13px; color: var(--sc-ink-3); }
1069
+ .sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
1070
+ .sp-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--sc-soft); }
1071
+ .sp-add { width: 100%; margin-top: 12px; }
1072
+ .sp-form { display: flex; flex-direction: column; gap: 10px; }
1073
+ .sp-form textarea { font: inherit; font-size: 14px; padding: 10px; border: 1px solid var(--sc-line); border-radius: 10px; resize: vertical; }
1074
+
1075
+ /* Several reminders, each with its message */
1076
+ .rm-button--set { background: rgba(22, 115, 224, 0.1); border-color: transparent; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1077
+ .rm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #0f5fc4; color: #fff; font-size: 11px; font-weight: 700; }
1078
+ .rm-pop { width: 320px; }
1079
+ .rm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
1080
+ .rm-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(22, 115, 224, 0.07); }
1081
+ .rm-when { flex: none; font-size: 12px; font-weight: 700; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); padding-top: 1px; }
1082
+ .rm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
1083
+ .rm-text em { font-style: normal; font-size: 11.5px; color: var(--sc-ink-3); }
1084
+ .rm-list button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; background: var(--sc-surface); color: var(--sc-ink-2); cursor: pointer; }
1085
+ textarea.rm-note { height: auto; padding: 8px 10px; resize: none; line-height: 1.4; }
1086
+ .rm-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
1087
+ .rm-presets button, .rm-custom { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border: 1px solid var(--sc-line); border-radius: 12px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
1088
+ .rm-presets button span:last-child { font-size: 11.5px; color: var(--sc-ink-3); }
1089
+ .rm-custom { grid-column: 1 / -1; font-size: 11.5px; color: var(--sc-ink-3); }
1090
+ .rm-custom input { width: 100%; height: 30px; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--sc-ink); background: transparent; }
1091
+ .rm-presets .rm-on, .rm-custom.rm-on { border-color: #1673e0; box-shadow: 0 0 0 1px #1673e0; background: rgba(22, 115, 224, 0.05); }
1092
+ .sc-note--reminder { background: #f3ecff; background: color-mix(in srgb, #f3ecff var(--sc-tint), var(--sc-surface)); border-color: #ddc8ff; border-color: color-mix(in srgb, #ddc8ff var(--sc-tint), var(--sc-line)); color: #3b1d6e; color: color-mix(in srgb, #3b1d6e var(--sc-dk), #fff); }
1093
+ .sc-note--reminder .sc-note-head { color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1094
+ .sc-note--reminder .sc-note-head span { color: #8f6cc7; }
1095
+
1096
+ /* Merchant panel beside the conversation */
1097
+ .ibx-side { display: none; min-height: 0; overflow-y: auto; border-left: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); }
1098
+ @media (min-width: 1200px) {
1099
+ .ibx--side .ibx-main { grid-template-columns: 340px 1fr 300px; }
1100
+ .ibx--side .ibx-side { display: block; }
1101
+ .ibx-store-btn { display: none; }
1102
+ }
1103
+ @media (max-width: 1199px) {
1104
+ .ibx-side--open { display: block; position: fixed; top: calc(var(--ibx-top) + env(safe-area-inset-top) + 1px); right: 0; bottom: 0; z-index: 40; width: min(340px, 100vw); box-shadow: -20px 0 40px -24px rgba(0, 0, 0, 0.35); animation: scl-dock 0.25s ease-out both; }
1105
+ }
1106
+ .ibx-store-btn--on { background: var(--sc-soft); }
1107
+ .mi-panel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
1108
+ .mi-hero { display: flex; align-items: center; gap: 10px; }
1109
+ .mi-avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1673e0, #1673e0 60%, #6cbdf5); }
1110
+ .mi-hero div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
1111
+ .mi-hero strong { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1112
+ .mi-hero span { font-size: 12.5px; color: var(--sc-ink-3); }
1113
+ .mi-facts { margin: 0; display: flex; flex-direction: column; gap: 2px; border-radius: 14px; background: #fff; background: var(--sc-surface); border: 1px solid var(--sc-line); overflow: hidden; }
1114
+ .mi-facts > div { padding: 9px 12px; }
1115
+ .mi-facts > div + div { border-top: 1px solid #f1f1f1; border-top: 1px solid color-mix(in srgb, #f1f1f1 var(--sc-tint), var(--sc-line)); }
1116
+ .mi-facts dt { font-size: 11.5px; font-weight: 600; color: var(--sc-ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
1117
+ .mi-facts dd { margin: 3px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--sc-ink); }
1118
+ .mi-mono span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
1119
+ .mi-copy { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto; border: 0; border-radius: 7px; background: var(--sc-soft); color: var(--sc-ink-2); cursor: pointer; }
1120
+ .mi-copy:hover { background: #e8e8ea; background: color-mix(in srgb, #e8e8ea var(--sc-tint), var(--sc-surface)); color: var(--sc-ink); }
1121
+ .mi-flag { font-size: 16px; }
1122
+ .mi-time { display: flex; flex-direction: column; line-height: 1.35; }
1123
+ .mi-time b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
1124
+ .mi-time span { font-size: 12px; color: var(--sc-ink-3); }
1125
+ .mi-time em { font-style: normal; font-size: 11.5px; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1126
+ .mi-night { color: #3b1d6e; color: color-mix(in srgb, #3b1d6e var(--sc-dk), #fff); }
1127
+ .mi-tag { padding: 1px 8px; border-radius: 999px; background: var(--sc-soft); font-size: 11.5px; font-weight: 650; color: var(--sc-ink-2); }
1128
+ .mi-tag--plus { background: rgba(18, 161, 80, 0.12); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1129
+ .mi-tag--ok { background: rgba(18, 161, 80, 0.12); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1130
+ .mi-tag--gone { background: rgba(215, 44, 13, 0.1); color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
1131
+ .mi-muted { color: var(--sc-ink-3); }
1132
+ .mi-apps { display: grid; gap: 6px; }
1133
+ .sc-link-opened { margin: 2px 0 0 38px; font-size: 11.5px; color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); cursor: default; }
1134
+ .mi-left { display: grid; gap: 2px; }
1135
+ .mi-left span { color: var(--sc-ink-2); white-space: pre-wrap; }
1136
+ .mi-app { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
1137
+ .mi-app.mi-muted .mi-app-icon { opacity: 0.5; }
1138
+ .mi-app-icon { flex: none; width: 18px; height: 18px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px var(--sc-line); }
1139
+ .mi-app-icon--letter { display: inline-grid; place-items: center; background: var(--sc-soft); font-size: 10.5px; font-weight: 700; color: var(--sc-ink-2); }
1140
+ .mi-note { margin: 0; font-size: 12px; line-height: 1.45; }
1141
+ .mi-links { display: flex; flex-wrap: wrap; gap: 6px; }
1142
+ .mi-links a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font-size: 12.5px; font-weight: 600; color: var(--sc-ink); text-decoration: none; }
1143
+ .mi-links a:hover { background: var(--sc-soft); }
1144
+
1145
+ /* Composer: one line is exactly one button tall, so the icons, text and send button share a centre line;
1146
+ the box grows with longer text and the buttons stay at the bottom. */
1147
+ .sc-composer { align-items: flex-end; gap: 4px; padding: 6px 6px 6px 10px; }
1148
+ .sc-composer textarea { box-sizing: border-box; height: 36px; min-height: 36px; max-height: 160px; padding: 8px 4px; line-height: 20px; overflow-y: auto; }
1149
+ .sc-composer .sc-attach { margin-left: 0; width: 34px; height: 36px; }
1150
+ .sc-attach + .sc-attach { margin-left: -4px; }
1151
+ .sc-composer .sc-gif-btn { width: auto; padding: 0 6px; }
1152
+ .sc-composer .sc-send { align-self: flex-end; }
1153
+
1154
+ /* Resolved and unresolved */
1155
+ .ibx-section { padding: 14px 16px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sc-ink-3); border-top: 1px solid var(--sc-line); }
1156
+ .ibx-item--resolved { opacity: 0.6; }
1157
+ .ibx-item--resolved:hover, .ibx-item--resolved.ibx-item--active { opacity: 1; }
1158
+ .ibx-resolve { display: inline-flex; align-items: center; gap: 6px; }
1159
+ .ibx-resolve--open { border-color: rgba(18, 161, 80, 0.35); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1160
+ .ibx-resolve--open:hover { background: rgba(18, 161, 80, 0.08); }
1161
+ .ibx-resolved-bar { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: rgba(18, 161, 80, 0.08); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(18, 161, 80, 0.15); }
1162
+ .ibx-resolved-bar span { font-weight: 400; color: #3f7a57; color: color-mix(in srgb, #3f7a57 var(--sc-dk), #fff); }
1163
+
1164
+ /* Store pictures: favicon, Shopify bag (dark for development stores), or initials */
1165
+ .st-avatar { position: relative; flex: none; display: inline-flex; border-radius: 12px; overflow: visible; }
1166
+ .st-avatar > img, .st-avatar > svg, .st-initials { width: 100%; height: 100%; border-radius: 11px; }
1167
+ .st-avatar > img { object-fit: contain; background: #fff; background: var(--sc-surface); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
1168
+ .st-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: 0.02em; }
1169
+ .st-dev { position: absolute; right: -5px; bottom: -4px; padding: 0 4px; border-radius: 5px; background: #1f2433; color: #ffb21e; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; line-height: 13px; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1170
+ .st-avatar > img.st-bag { object-fit: contain; padding: 5px; box-sizing: border-box; background: #f4f6f1; background: color-mix(in srgb, #f4f6f1 var(--sc-tint), var(--sc-surface)); box-shadow: none; }
1171
+ .st-avatar--dev > img.st-bag { background: #eef0f4; background: color-mix(in srgb, #eef0f4 var(--sc-tint), var(--sc-surface)); }
1172
+ /* The logo on plain white, with a hairline edge so it reads as a tile on any background. */
1173
+ .st-avatar > img.st-bag, .st-avatar--dev > img.st-bag { background: #fff; background: var(--sc-surface); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
1174
+
1175
+ /* Left rail */
1176
+ .ibx-frame { display: flex; height: 100dvh; background: #fff; background: var(--sc-surface); }
1177
+ .ibx-frame > .ibx { flex: 1; min-width: 0; }
1178
+ .rail { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: calc(12px + env(safe-area-inset-top)) 0 12px; background: #16131d; background: var(--sc-strong, #16131d); }
1179
+ .rail-logo { border-radius: 10px; margin-bottom: 10px; }
1180
+ .rail-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; padding: 8px 0 6px; border-radius: 14px; color: #a7a2b3; text-decoration: none; font-size: 10.5px; font-weight: 600; transition: background 0.15s, color 0.15s; }
1181
+ .rail-item:hover { background: rgba(255, 255, 255, 0.06); background: color-mix(in srgb, var(--sc-surface) 6%, transparent); color: #fff; }
1182
+ .rail-item--on { background: rgba(255, 255, 255, 0.1); background: color-mix(in srgb, var(--sc-surface) 10%, transparent); color: #fff; }
1183
+ .rail-item--on::before { content: ""; position: absolute; left: -7px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #1673e0, #6cbdf5); }
1184
+ .rail-badge { position: absolute; top: 3px; right: 9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #1673e0; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; }
1185
+ .rail-badge--live { background: #12a150; }
1186
+ @media (max-width: 700px) {
1187
+ .ibx-frame { flex-direction: column-reverse; }
1188
+ .rail { flex-direction: row; justify-content: space-around; width: 100%; height: auto; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
1189
+ .rail-logo { display: none; }
1190
+ .rail-item--on::before { display: none; }
1191
+ .ibx-frame > .ibx { height: auto; flex: 1; min-height: 0; }
1192
+ }
1193
+ .ibx-count { font-size: 13px; color: var(--sc-ink-3); }
1194
+
1195
+ /* Merchants */
1196
+ .mx-search { width: min(320px, 50vw); }
1197
+ .mx-list { flex: 1; overflow-y: auto; padding: 8px 16px; }
1198
+ .mx-row { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: inherit; text-decoration: none; }
1199
+ .mx-row:hover { background: var(--sc-soft); }
1200
+ .mx-row--gone { opacity: 0.55; }
1201
+ .mx-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
1202
+ .mx-name strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1203
+ .mx-name span { font-size: 12.5px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1204
+ .mx-installed { font-size: 12.5px; color: var(--sc-ink-3); white-space: nowrap; }
1205
+ .mx-chat { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sc-line); font-size: 12px; font-weight: 600; white-space: nowrap; }
1206
+ .mx-chat--open { border-color: transparent; background: rgba(22, 115, 224, 0.1); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1207
+ .mx-chat--resolved { border-color: transparent; background: rgba(18, 161, 80, 0.1); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1208
+ .mx-pages { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 10px; border-top: 1px solid var(--sc-line); font-size: 13px; }
1209
+ .mx-pages a { color: var(--sc-ink); font-weight: 600; }
1210
+ @media (max-width: 700px) { .mx-row { grid-template-columns: 36px 1fr auto; } .mx-installed { display: none; } }
1211
+
1212
+ /* Live */
1213
+ .lv-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 420px; }
1214
+ @media (max-width: 1000px) { .lv-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }
1215
+ .lv-map { position: relative; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse at 50% 40%, #1d1830, #0f0c17); min-height: 260px; }
1216
+ .wm { width: 100%; height: auto; max-height: 100%; }
1217
+ .wm-land { fill: rgba(255, 255, 255, 0.22); }
1218
+ .wm-pin { fill: #f5a524; stroke: #0f0c17; stroke: var(--sc-ink-strong, #0f0c17); stroke-width: 0.3; }
1219
+ .wm-pin--live { fill: #ff4fd8; }
1220
+ .wm-pulse { fill: rgba(255, 79, 216, 0.35); animation: wm-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
1221
+ @keyframes wm-pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
1222
+ .lv-map-empty { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
1223
+ .lv-list { overflow-y: auto; border-left: 1px solid var(--sc-line); padding: 8px; }
1224
+ .lv-row { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "a n t" "a p t"; column-gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; }
1225
+ .lv-row:hover { background: var(--sc-soft); }
1226
+ .lv-avatar { grid-area: a; position: relative; display: inline-flex; }
1227
+ .lv-row .mx-name { grid-area: n; }
1228
+ .lv-page { grid-area: p; font-size: 11.5px; color: var(--sc-ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1229
+ .lv-time { grid-area: t; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
1230
+ .lv-time b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
1231
+ .lv-time span { font-size: 11.5px; color: var(--sc-ink-3); }
1232
+ .lv-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1233
+ .lv-dot--live { background: #12a150; animation: rc-pulse 2s ease-in-out infinite; }
1234
+ @media (prefers-reduced-motion: reduce) { .wm-pulse, .lv-dot--live { animation: none; } }
1235
+
1236
+ /* Store badges: DEV for development stores, a gold star for stores that reviewed us */
1237
+ .st-reviewed { position: absolute; top: -4px; right: -5px; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #ffc93c, #f59e0b); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(245, 158, 11, 0.5); box-shadow: 0 0 0 2px var(--sc-surface), 0 2px 6px rgba(245, 158, 11, 0.5); }
1238
+
1239
+ /* A subtle, white rail */
1240
+ .rail { background: #fff; background: var(--sc-surface); border-right: 1px solid var(--sc-line); gap: 4px; width: 72px; }
1241
+ .rail-item { width: 58px; color: #8a8494; color: color-mix(in srgb, #8a8494 var(--sc-dk), #fff); }
1242
+ .rail-item:hover { background: var(--sc-soft); color: var(--sc-ink); }
1243
+ .rail-item--on { background: var(--sc-soft); color: var(--sc-ink); }
1244
+ .rail-item--on::before { left: -7px; }
1245
+ .rail-badge { box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1246
+ @media (max-width: 700px) { .rail { border-right: 0; border-top: 1px solid var(--sc-line); } }
1247
+
1248
+ /* Open and resolved, at a glance */
1249
+ .ibx-filter { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; padding: 10px 12px; background: #fff; background: var(--sc-surface); border-bottom: 1px solid var(--sc-line); }
1250
+ .ibx-filter button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sc-ink-2); cursor: pointer; }
1251
+ .ibx-filter button span { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--sc-soft); font-size: 11px; line-height: 18px; text-align: center; }
1252
+ .ibx-filter button:hover { background: var(--sc-soft); }
1253
+ .ibx-filter .ibx-filter-on { background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); }
1254
+ .ibx-filter .ibx-filter-on span { background: rgba(255, 255, 255, 0.2); background: color-mix(in srgb, var(--sc-surface) 20%, transparent); }
1255
+ .ibx-status { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 18px; white-space: nowrap; vertical-align: middle; }
1256
+ .ibx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
1257
+ .ibx-status--open { background: rgba(22, 115, 224, 0.1); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1258
+ .ibx-status--resolved { background: rgba(18, 161, 80, 0.1); color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1259
+ .ibx-thread-title strong { display: inline-flex; align-items: center; gap: 8px; }
1260
+ .ibx-item-meta { gap: 5px; }
1261
+ .ibx-item-meta time { font-variant-numeric: tabular-nums; }
1262
+ .ibx-item--resolved { opacity: 0.75; }
1263
+
1264
+ /* The rail and inbox use the app's font, and the Live dot sits clear of the DEV badge. */
1265
+ .ibx-frame { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
1266
+ .lv-dot { right: auto; left: -3px; bottom: auto; top: -3px; }
1267
+
1268
+ /* Contrast for merchant text: secondary grey at 5.3:1 on white and 4.9:1 on the soft grey (WCAG AA). */
1269
+ :root { --sc-ink-3: #6b6b6b; }
1270
+ .srv-shot--after span { background: #0e7a3a; }
1271
+
1272
+ /* The brand gradient fills only the review card's button. Everything else carries it as a border, or uses a solid colour. */
1273
+ :root { --sc-grad: linear-gradient(100deg, #1673e0 0%, #3d95ee 55%, #6cbdf5 100%); }
1274
+ .mp-btn--brand, .rc-open--brand, .ibx-pill--brand {
1275
+ border: 1.5px solid transparent;
1276
+ background: linear-gradient(#fff, #fff) padding-box, var(--sc-grad) border-box; background: linear-gradient(var(--sc-surface), var(--sc-surface)) padding-box, var(--sc-grad) border-box;
1277
+ color: var(--sc-ink);
1278
+ box-shadow: none;
1279
+ text-shadow: none;
1280
+ }
1281
+ .mp-btn--brand:hover, .rc-open--brand:hover, .ibx-pill--brand:hover {
1282
+ background: linear-gradient(#fdf4fb, #fdf4fb) padding-box, var(--sc-grad) border-box; background: linear-gradient(color-mix(in srgb, #fdf4fb var(--sc-tint), var(--sc-surface)), color-mix(in srgb, #fdf4fb var(--sc-tint), var(--sc-surface))) padding-box, var(--sc-grad) border-box;
1283
+ filter: none;
1284
+ }
1285
+ .mp-btn--brand:disabled, .rc-open--brand:disabled { background: var(--sc-soft); border-color: transparent; color: var(--sc-ink-3); }
1286
+ .mp-help-icon { background: #1a73e8; }
1287
+ .rc-sub-icon, .rc-strip-icon, .av-moon { background: #7e22ce; box-shadow: none; }
1288
+ .rc-sub-icon--order, .rc-strip-icon--order { background: #c2410c; }
1289
+ .rc-sub-icon--offer { background: #a21caf; }
1290
+ .sc-file-badge { background: #7e22ce; }
1291
+ .rc-tier-badge { background: #a21caf; }
1292
+ .rc-tier-badge--next { background: #e4e4e7; background: color-mix(in srgb, #e4e4e7 var(--sc-tint), var(--sc-surface)); }
1293
+ .sc-avatar { background: #7e22ce; }
1294
+ .srv-card::before { display: none; }
1295
+ .srv-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 32px -18px rgba(165, 58, 240, 0.35); }
1296
+ .mp-rich--review { background: #fbf3fb; background: color-mix(in srgb, #fbf3fb var(--sc-tint), var(--sc-surface)); }
1297
+ .rc-pricing-you { background: #fbf3fb; background: color-mix(in srgb, #fbf3fb var(--sc-tint), var(--sc-surface)); }
1298
+ .rc-meter-fill, .av-block { background: #e040c8; }
1299
+ .rc-window-nav .rc-on, .rc-target em { background: #e040c8; }
1300
+ .srv-thanks-logo { box-shadow: none; }
1301
+ .srv-card--thanks { background: #fff; background: var(--sc-surface); }
1302
+ .srv-burst span { background: #e040c8; }
1303
+ .srv-burst span:nth-child(3n) { background: #ffb21e; }
1304
+
1305
+ .srv-primary, .srv-primary:hover { background: var(--sc-grad); background-size: 160% 100%; }
1306
+ .srv-primary:hover { background-position: 100% 50%; }
1307
+ /* The chat panel's header stays white with a gradient line; only the round chat button is filled. */
1308
+ .scl-head { background: #fff; background: var(--sc-surface); color: var(--sc-ink); border-bottom: 2px solid transparent; border-image: var(--sc-grad) 1; }
1309
+ .scl-head-text span { color: var(--sc-ink-2); opacity: 1; }
1310
+ .scl-close { background: var(--sc-soft); color: var(--sc-ink); }
1311
+ .scl-close:hover { background: #e8e8ea; background: color-mix(in srgb, #e8e8ea var(--sc-tint), var(--sc-surface)); }
1312
+ .scl-logo { box-shadow: none; }
1313
+ .scl-dot { background: #12a150; box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.18); }
1314
+ .scl-team { color: var(--sc-ink-2); }
1315
+
1316
+ /* Rail, refreshed: icon tiles with tooltips, a soft active tint, the agent at the bottom. */
1317
+ .rail { width: 68px; gap: 0; padding: calc(14px + env(safe-area-inset-top)) 0 14px; background: #fbfbfc; background: color-mix(in srgb, #fbfbfc var(--sc-tint), var(--sc-surface)); border-right: 1px solid var(--sc-line); }
1318
+ .rail-logo { display: inline-flex; margin-bottom: 18px; border-radius: 10px; transition: transform 0.15s; }
1319
+ .rail-logo:hover { transform: scale(1.05); }
1320
+ .rail-logo img { display: block; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(22, 115, 224, 0.7); }
1321
+ .rail-items { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
1322
+ .rail-item { position: relative; display: flex; flex-direction: column; align-items: center; width: auto; padding: 0; border-radius: 0; background: none !important; color: #6b6b75; color: color-mix(in srgb, #6b6b75 var(--sc-dk), #fff); text-decoration: none; }
1323
+ .rail-item::before { display: none; }
1324
+ .rail-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; transition: background 0.15s, color 0.15s, transform 0.1s; }
1325
+ .rail-item:hover .rail-icon { background: #f0f0f3; background: color-mix(in srgb, #f0f0f3 var(--sc-tint), var(--sc-surface)); color: var(--sc-ink); }
1326
+ .rail-item:active .rail-icon { transform: scale(0.96); }
1327
+ .rail-item--on .rail-icon { background: #e6f3fe; background: color-mix(in srgb, #e6f3fe var(--sc-tint), var(--sc-surface)); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1328
+ .rail-item--on .rail-icon::before { content: ""; position: absolute; left: -13px; top: 11px; width: 4px; height: 20px; border-radius: 0 4px 4px 0; background: var(--sc-grad); }
1329
+ .rail-label { display: none; }
1330
+ .rail-badge { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: #1673e0; color: #fff; font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center; box-sizing: border-box; box-shadow: 0 0 0 2px #fbfbfc; }
1331
+ .rail-badge--live { background: #12a150; }
1332
+ .rail-badge--live::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px rgba(18, 161, 80, 0.45); animation: rail-ping 1.8s ease-out infinite; }
1333
+ @keyframes rail-ping { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
1334
+ .rail-me { position: relative; display: inline-flex; margin-top: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sc-line); box-shadow: 0 0 0 2px var(--sc-surface), 0 0 0 3px var(--sc-line); }
1335
+ .rail-me i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 2px #fbfbfc; }
1336
+ /* Tooltips to the right of the rail */
1337
+ .rail [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); padding: 5px 9px; border-radius: 8px; background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 60; }
1338
+ .rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
1339
+ .rail-item:focus-visible { outline: none; }
1340
+ .rail-item:focus-visible .rail-icon { box-shadow: 0 0 0 2px #1673e0; }
1341
+ @media (max-width: 700px) {
1342
+ .rail { flex-direction: row; box-sizing: border-box; width: 100%; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); }
1343
+ .rail-logo, .rail-me { display: none; }
1344
+ .rail-items { flex-direction: row; justify-content: space-around; }
1345
+ .rail-item--on .rail-icon::before, .rail [data-tip]::after { display: none; }
1346
+ .rail-label { display: block; font-size: 10.5px; font-weight: 600; margin-top: -2px; }
1347
+ .rail-icon { width: 40px; height: 34px; }
1348
+ }
1349
+ @media (prefers-reduced-motion: reduce) { .rail-badge--live::after { animation: none; } }
1350
+
1351
+ /* Read receipts */
1352
+ .sc-receipt { display: flex; align-items: center; gap: 4px; margin: -6px 0 2px; padding-left: 36px; font-size: 12px; color: var(--sc-ink-3); }
1353
+ .sc-receipt--mine { justify-content: flex-end; padding-left: 0; }
1354
+ .sc-meta .sc-receipt { display: inline-flex; gap: 3px; margin: 0; padding: 0; vertical-align: -3px; cursor: default; }
1355
+ /* Only the ticks show; what they mean and when, on hover. */
1356
+ /* A card's own photo sits after it, on the right. */
1357
+ .sc-row--card .sc-own-avatar { order: 2; flex: none; }
1358
+
1359
+ /* Team view: what the merchant did with a card */
1360
+ .co-card { position: relative; display: flex; flex-direction: column; min-width: 0; transition: opacity 0.2s; }
1361
+ .sc-row--merchant > .co-card { align-items: flex-end; }
1362
+ .sc-row--merchant > .co-card .co-journey { justify-content: flex-end; }
1363
+ /* Dismissed: everything fades except the dismiss button itself (or the whole card when it was the preview). */
1364
+ .co-card--dismissed :has(.co-hit--final) > :not(:has(.co-hit--final)):not(.co-hit--final):not(.co-journey) { opacity: 0.4; }
1365
+ .co-card--dismissed:not(:has(.co-hit--final)) > :not(.co-journey) { opacity: 0.45; }
1366
+ .co-card [data-card-action].co-hit { outline: 1.5px dashed rgba(124, 58, 237, 0.45); outline-offset: 2px; border-radius: 6px; }
1367
+ .co-card [data-card-action].co-hit--final { outline: 2px solid #7c3aed; outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.12); color: #4c1d95; color: color-mix(in srgb, #4c1d95 var(--sc-dk), #fff); font-weight: 600; }
1368
+ .co-journey { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); }
1369
+ .co-step { display: inline-flex; align-items: center; }
1370
+ .co-step > span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: #f4f4f5; background: color-mix(in srgb, #f4f4f5 var(--sc-tint), var(--sc-surface)); }
1371
+ .co-step + .co-step::before { content: "→"; margin-right: 4px; color: #a1a1aa; }
1372
+ .co-step--last > span { background: #ede9fe; background: color-mix(in srgb, #ede9fe var(--sc-tint), var(--sc-surface)); color: #5b21b6; color: color-mix(in srgb, #5b21b6 var(--sc-dk), #fff); font-weight: 600; }
1373
+ .co-step em { font-style: normal; font-weight: 400; opacity: 0.85; }
1374
+ .co-step time { font-weight: 400; opacity: 0.75; }
1375
+
1376
+ /* Actions timeline (team only): quiet expandable lines between the messages. */
1377
+ .sc-at { position: absolute; width: 0; height: 0; }
1378
+ .sc-actions-status { align-self: center; margin: 4px auto 8px; font-size: 12px; color: #8a8a8a; color: color-mix(in srgb, #8a8a8a var(--sc-dk), #fff); }
1379
+ .ag { width: 100%; font-size: 13px; color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); }
1380
+ .ag-line { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 6px; margin-left: -6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
1381
+ .ag-line:hover:not(:disabled) { background: #f4f4f5; background: color-mix(in srgb, #f4f4f5 var(--sc-tint), var(--sc-surface)); color: #3f3f46; color: color-mix(in srgb, #3f3f46 var(--sc-dk), #fff); }
1382
+ .ag-line:disabled { cursor: default; }
1383
+ .ag-line:focus-visible { outline: 2px solid #7c3aed; outline-offset: 1px; }
1384
+ .ag-line time { flex: none; font-size: 11.5px; color: #a1a1aa; }
1385
+ .ag-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1386
+ .ag-text strong { font-weight: 600; color: #52525b; color: color-mix(in srgb, #52525b var(--sc-dk), #fff); }
1387
+ .ag-chev { flex: none; color: #a1a1aa; transition: transform 0.15s; }
1388
+ .ag-chev--open { transform: rotate(90deg); }
1389
+ .ag-kind { flex: none; color: #a1a1aa; }
1390
+ .ag-people { display: inline-flex; flex: none; }
1391
+ .ag-people > * + * { margin-left: -5px; }
1392
+ .ag-people .st-avatar, .ag-people img, .ag-line > .st-avatar, .ag-logo { border-radius: 5px; box-shadow: 0 0 0 1.5px #fff; box-shadow: 0 0 0 1.5px var(--sc-surface); }
1393
+ .ag-tree { margin: 2px 0 2px 7px; padding: 0 0 0 12px; border-left: 1.5px solid #ececec; border-left: 1.5px solid color-mix(in srgb, #ececec var(--sc-tint), var(--sc-line)); list-style: none; }
1394
+ .ag-tree--flat { margin: 0; padding: 0; border: 0; }
1395
+ .ag-step { margin: 0; }
1396
+ .ag-leaves { margin: 2px 0 6px 13px; padding: 0 0 0 14px; border-left: 1.5px solid #ececec; border-left: 1.5px solid color-mix(in srgb, #ececec var(--sc-tint), var(--sc-line)); list-style: none; display: grid; gap: 3px; font-size: 12.5px; }
1397
+ .ag-leaves li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #52525b; color: color-mix(in srgb, #52525b var(--sc-dk), #fff); overflow-wrap: anywhere; }
1398
+ .ag-leaves li > span:first-child { color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); }
1399
+ .ag-leaves time { font-size: 11.5px; color: #a1a1aa; }
1400
+ .ag-diff { display: inline-flex; flex-wrap: wrap; gap: 6px; }
1401
+ .ag-diff s { color: #a1a1aa; }
1402
+ .ag-diff b { font-weight: 600; color: #27272a; color: color-mix(in srgb, #27272a var(--sc-dk), #fff); }
1403
+ .ag-more { color: #a1a1aa; }
1404
+ .ibx-actions-btn--on { background: #18181b; background: var(--sc-strong, #18181b); color: #fff; color: var(--sc-on-strong, #fff); border-color: #18181b; }
1405
+ .ibx-actions-note { margin: 6px 16px 0; font-size: 12.5px; color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); text-align: center; }
1406
+
1407
+ /* Every card in the chat is one width: full width in the chat bubble, wider when it is expanded. */
1408
+ :root { --sc-card-w: 400px; }
1409
+ .scl-body { --sc-card-w: 100%; }
1410
+ .scl-panel--expanded .scl-body { --sc-card-w: 440px; }
1411
+ .scl-panel--split .scl-body { --sc-card-w: 100%; }
1412
+ .srv-card, .rc-card, .rc-link, .rc-pricing, .rc-offer, .ho-card, .av-card { box-sizing: border-box; width: min(100%, var(--sc-card-w)); }
1413
+ .scl-body .srv-card, .scl-panel--expanded .srv-card, .scl-panel--split .srv-card, .scl-panel--split .rc-card { width: min(100%, var(--sc-card-w)); }
1414
+
1415
+ /* Card outcomes wrap a card; they take the card's width so every card stays the same. */
1416
+ .co-card { width: min(100%, var(--sc-card-w)); }
1417
+
1418
+ /* The composer's "+" menu (like ChatGPT's): on a phone wherever a page gives one, on a computer where it asks. */
1419
+ .sc-plus, .sc-menu, .sc-menu-scrim { display: none; }
1420
+ .sc-plus { flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sc-soft); color: var(--sc-ink); cursor: pointer; transition: transform 0.15s; position: relative; z-index: 32; }
1421
+ .sc-plus[aria-expanded="true"] { transform: rotate(45deg); }
1422
+ .sc-menu-scrim { position: fixed; inset: 0; z-index: 30; }
1423
+ .sc-menu { flex-direction: column; position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 31; min-width: 240px; padding: 10px; border-radius: 28px; background: #fff; background: var(--sc-surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.28); animation: sc-in 0.16s ease-out both; }
1424
+ .sc-menu button { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border: 0; border-radius: 18px; background: none; font: inherit; font-size: 16px; color: var(--sc-ink); text-align: left; cursor: pointer; }
1425
+ .sc-menu button:hover, .sc-menu button:active { background: var(--sc-soft); }
1426
+ .sc-menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sc-soft); }
1427
+ .sc-menu-gif { font-size: 11px; font-weight: 700; }
1428
+ .sc-composer--plus { position: relative; }
1429
+ .sc-composer--plus .sc-plus { display: inline-flex; }
1430
+ .sc-composer--plus .sc-menu-scrim { display: block; }
1431
+ .sc-composer--plus .sc-menu { display: flex; }
1432
+ .sc-composer--plus .sc-attach:not(.sc-emoji-btn):not(.sc-tok-btn) { display: none; }
1433
+ @media (min-width: 701px) {
1434
+ .sc-menu { min-width: 220px; padding: 6px; border-radius: 18px; }
1435
+ .sc-menu button { font-size: 14px; padding: 5px 12px 5px 5px; border-radius: 12px; gap: 10px; }
1436
+ .sc-menu-icon { width: 32px; height: 32px; }
1437
+ /* A computer has no camera to open. */
1438
+ .sc-menu button[data-key="camera"] { display: none; }
1439
+ }
1440
+ @media (max-width: 700px) {
1441
+ .sc-emoji-btn { display: none; }
1442
+ .sc-composer--menu .sc-attach { display: none; }
1443
+ .sc-composer--menu { position: relative; }
1444
+ .sc-composer--menu .sc-plus { display: inline-flex; }
1445
+ .sc-composer--menu .sc-menu-scrim { display: block; }
1446
+ .sc-composer--menu .sc-menu { display: flex; }
1447
+ }
1448
+ .sc-meta-warn { color: #b45309; color: color-mix(in srgb, #b45309 var(--sc-dk), #fff); }
1449
+
1450
+ /* Long messages read like Intercom's and ChatGPT's: about 75 characters a line, 1.5 leading, paragraph gaps, hanging lists. */
1451
+ .sc-text p { margin: 0; white-space: pre-wrap; }
1452
+ /* A real gap between paragraphs (about one line), as in chat apps; lists sit a little closer to their lead-in. */
1453
+ .sc-text > * + * { margin-top: 0.9em; }
1454
+ .sc-text > p + :is(ul, ol), .sc-text > :is(ul, ol) + p { margin-top: 0.5em; }
1455
+ .sc-text ul, .sc-text ol { margin: 0; padding-left: 1.3em; }
1456
+ .sc-text li + li { margin-top: 0.25em; }
1457
+ .sc-text li::marker { color: var(--sc-ink-3); }
1458
+ .sc-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(13, 13, 13, 0.3); text-decoration-color: rgba(var(--sc-overlay-rgb), 0.3); text-underline-offset: 2px; overflow-wrap: anywhere; }
1459
+ .sc-link:hover { text-decoration-color: currentColor; }
1460
+
1461
+ /* The team's messages: a white card with who wrote it, like the help card. */
1462
+ .sc-row .sc-bubble--card { padding: 12px 14px; border-radius: 20px; border: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.25); }
1463
+ .sc-bubble--card.sc-bubble--after { padding-top: 10px; }
1464
+ .sc-card-head { margin-bottom: 8px; }
1465
+ .sc-bubble { min-width: 0; }
1466
+ .sc-text { min-width: 0; }
1467
+
1468
+ /* Code: `inline` as a soft chip, ``` blocks as a dark panel that scrolls sideways and copies in one click. */
1469
+ .sc-icode { padding: 0.1em 0.38em; border-radius: 6px; background: rgba(13, 13, 13, 0.06); background: rgba(var(--sc-overlay-rgb), 0.06); font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
1470
+ .sc-code { overflow: hidden; border-radius: 12px; background: #16131d; background: var(--sc-strong, #16131d); color: #ece9f3; }
1471
+ .sc-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 12px; background: rgba(255, 255, 255, 0.06); background: color-mix(in srgb, var(--sc-surface) 6%, transparent); font: 600 11px/1 Inter, -apple-system, sans-serif; color: #a7a2b3; }
1472
+ .sc-code-bar button { border: 0; border-radius: 6px; padding: 4px 8px; background: none; color: inherit; font: inherit; text-transform: none; cursor: pointer; }
1473
+ .sc-code-bar button:hover { background: rgba(255, 255, 255, 0.1); background: color-mix(in srgb, var(--sc-surface) 10%, transparent); color: #fff; }
1474
+ .sc-code pre { margin: 0; padding: 10px 12px 12px; overflow-x: auto; white-space: pre; }
1475
+ .sc-code code { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
1476
+
1477
+ /* Emoji and GIFs share one popover, switched by two tabs at the top (as in Slack). */
1478
+ .ct-panes { display: flex; gap: 4px; margin: -2px 0 8px; padding: 3px; border-radius: 999px; background: var(--sc-soft); }
1479
+ .ct-pane { flex: 1; height: 28px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sc-ink-3); cursor: pointer; }
1480
+ .ct-pane--on { background: #fff; background: var(--sc-surface); color: var(--sc-ink); box-shadow: 0 1px 3px rgba(13, 13, 13, 0.12); }
1481
+
1482
+ /* The reminder's own day and time: chips for the next week and the usual hours, a 24 hour field for anything else. */
1483
+ .rm-custom { cursor: default; gap: 8px; }
1484
+ .rm-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
1485
+ .rm-days button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border: 1px solid var(--sc-line); border-radius: 10px; background: #fff; background: var(--sc-surface); font: inherit; cursor: pointer; }
1486
+ .rm-days b { font-size: 12.5px; font-weight: 600; color: var(--sc-ink); }
1487
+ .rm-days small { font-size: 10.5px; color: var(--sc-ink-3); }
1488
+ .rm-times { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
1489
+ .rm-times button { padding: 5px 9px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sc-ink); font-variant-numeric: tabular-nums; cursor: pointer; }
1490
+ .rm-clock { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
1491
+ .rm-clock select { height: 28px; padding: 0 6px; border: 1px solid var(--sc-line); border-radius: 8px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
1492
+ .rm-days button:hover, .rm-times button:hover { background: var(--sc-soft); }
1493
+ .rm-days button[aria-pressed="true"], .rm-times button[aria-pressed="true"] { border-color: transparent; background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); }
1494
+ .rm-days button[aria-pressed="true"] b, .rm-days button[aria-pressed="true"] small { color: #fff; }
1495
+ .rm-summary { font-style: normal; font-size: 12px; font-weight: 600; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1496
+
1497
+ /* Products: price and stock, and how the product sells on subscription. */
1498
+ .rc-product-facts { display: flex; gap: 18px; margin-top: 10px; }
1499
+ .rc-product-facts span { display: flex; flex-direction: column; gap: 1px; }
1500
+ .rc-product-facts small { font-size: 11px; color: var(--sc-ink-3); }
1501
+ .rc-product-facts b { font-size: 14px; font-variant-numeric: tabular-nums; }
1502
+ .rc-product-out { color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
1503
+ .rc-product-subs { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(224, 64, 200, 0.07); color: #a0249a; color: color-mix(in srgb, #a0249a var(--sc-dk), #fff); font-size: 12.5px; font-weight: 600; }
1504
+ .rc-product-subs--none { background: var(--sc-soft); color: var(--sc-ink-3); }
1505
+ .rc-product-offers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
1506
+ .rc-product-offers .rc-tag { display: inline-flex; align-items: center; gap: 4px; }
1507
+ /* Each kind its own colour: orders orange, subscriptions purple (the default), offers blue, products teal. */
1508
+ .rc-mention.rc-mention--offer { background: #eff6ff; background: color-mix(in srgb, #eff6ff var(--sc-tint), var(--sc-surface)); color: #1d4ed8; color: color-mix(in srgb, #1d4ed8 var(--sc-dk), #fff); box-shadow: inset 0 -1.5px 0 rgba(29, 78, 216, 0.35); }
1509
+ .rc-mention.rc-mention--offer:hover, .rc-mention.rc-mention--offer:focus-visible, .rc-mention--offer.rc-mention--active { background: #dbeafe; background: color-mix(in srgb, #dbeafe var(--sc-tint), var(--sc-surface)); box-shadow: inset 0 -2px 0 rgba(29, 78, 216, 0.8); }
1510
+ .rc-mention.rc-mention--product { background: #e6f6f4; background: color-mix(in srgb, #e6f6f4 var(--sc-tint), var(--sc-surface)); color: #0f766e; color: color-mix(in srgb, #0f766e var(--sc-dk), #fff); box-shadow: inset 0 -1.5px 0 rgba(15, 118, 110, 0.35); }
1511
+ .rc-mention.rc-mention--product:hover, .rc-mention.rc-mention--product:focus-visible, .rc-mention--product.rc-mention--active { background: #ccede9; background: color-mix(in srgb, #ccede9 var(--sc-tint), var(--sc-surface)); box-shadow: inset 0 -2px 0 rgba(15, 118, 110, 0.8); }
1512
+
1513
+ /* The "#" picker: offers and products of this store, with a second step for a product's variants. */
1514
+ .sc-refpick { max-height: 300px; overflow-y: auto; }
1515
+ .sc-refpick button:first-child { background: none; }
1516
+ .sc-refpick button:hover, .sc-refpick > button:first-of-type:not(.sc-refpick-back) { background: var(--sc-soft); }
1517
+ .sc-refpick button { align-items: center; }
1518
+ .sc-refpick-section { padding: 6px 10px 2px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sc-ink-3); }
1519
+ .sc-refpick-thumb { flex: none; width: 28px; height: 28px; overflow: hidden; border-radius: 7px; background: var(--sc-soft); }
1520
+ .sc-refpick-thumb img { width: 100%; height: 100%; object-fit: cover; }
1521
+ .sc-refpick-note { margin: 8px 10px; font-size: 13px; color: var(--sc-ink-3); }
1522
+ .sc-refpick .sc-refpick-back { padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--sc-ink-3); }
1523
+ .rc-store-link { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--sc-ink-3); text-decoration: underline; text-underline-offset: 3px; }
1524
+
1525
+ /* The offer card, short: name and status, one line on what it is, its products. */
1526
+ .rc-offer-head { display: flex; align-items: center; gap: 8px; }
1527
+ .rc-offer-head strong { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1528
+ .rc-offer-head .rc-sub-icon { width: 28px; height: 28px; }
1529
+ .rc-offer-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--sc-ink-3); }
1530
+ .rc-offer-status i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
1531
+ .rc-offer-status--published { color: #0b7a3c; color: color-mix(in srgb, #0b7a3c var(--sc-dk), #fff); }
1532
+ .rc-offer-status--published i { background: #12a150; }
1533
+ .rc-offer-status--scheduled i { background: #f5a524; }
1534
+ .rc-offer-summary { margin: 8px 0 0; font-size: 13.5px; color: var(--sc-ink-2); }
1535
+ .rc-offer--simple .rc-offer-products { margin-top: 10px; }
1536
+ .rc-sub-icon--offer { color: #1d4ed8; color: color-mix(in srgb, #1d4ed8 var(--sc-dk), #fff); background: #eff6ff; background: color-mix(in srgb, #eff6ff var(--sc-tint), var(--sc-surface)); }
1537
+
1538
+ /* The closed chat's preview of a card: one row with the thing and its key fact. */
1539
+ .mp-mini { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); }
1540
+ .mp-mini-pic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--sc-soft); color: var(--sc-ink-2); }
1541
+ .mp-mini-pic img { width: 100%; height: 100%; object-fit: cover; }
1542
+ .mp-mini-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
1543
+ .mp-mini-text strong { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1544
+ .mp-mini-text span { font-size: 12px; color: var(--sc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1545
+ .mp-mini--order .mp-mini-pic { color: #c2410c; color: color-mix(in srgb, #c2410c var(--sc-dk), #fff); background: rgba(255, 107, 44, 0.1); }
1546
+ .mp-mini--subscription .mp-mini-pic { color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); background: rgba(22, 115, 224, 0.09); }
1547
+ .mp-mini--offer .mp-mini-pic { color: #1d4ed8; color: color-mix(in srgb, #1d4ed8 var(--sc-dk), #fff); background: #eff6ff; background: color-mix(in srgb, #eff6ff var(--sc-tint), var(--sc-surface)); }
1548
+ .mp-mini--product .mp-mini-pic { color: #0f766e; color: color-mix(in srgb, #0f766e var(--sc-dk), #fff); background: #e6f6f4; background: color-mix(in srgb, #e6f6f4 var(--sc-tint), var(--sc-surface)); }
1549
+ .mp-mini--link { padding: 8px 12px; }
1550
+
1551
+ /* Away: a slim line under the chat, not a card. Tapping it shows the hours. */
1552
+ .av-line { align-self: stretch; margin: 2px 0; border-radius: 14px; background: #f6f5fa; background: color-mix(in srgb, #f6f5fa var(--sc-tint), var(--sc-surface)); color: var(--sc-ink-2); }
1553
+ .av-line-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 12px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
1554
+ .av-line-moon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e9e5f6; background: color-mix(in srgb, #e9e5f6 var(--sc-tint), var(--sc-surface)); color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1555
+ .av-line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
1556
+ .av-line-text strong { font-size: 13px; font-weight: 650; color: var(--sc-ink); }
1557
+ .av-line-text span { font-size: 12px; color: var(--sc-ink-3); }
1558
+ .av-line-chevron { flex: none; color: var(--sc-ink-3); transition: transform 0.15s; }
1559
+ .av-line--open .av-line-chevron { transform: rotate(180deg); }
1560
+ .av-line-more { padding: 0 12px 12px; }
1561
+ .av-line-until { margin: 0 0 8px; font-size: 12px; color: var(--sc-ink-3); }
1562
+ .av-line .av-team { margin-top: 8px; }
1563
+ .av-line .av-tip { margin: 8px 0 0; }
1564
+
1565
+ /* Receipts: the word always, its time on hover. Grey until it is seen, then blue. */
1566
+ .sc-meta .sc-receipt { gap: 4px; font-weight: 600; color: var(--sc-ink-3); }
1567
+ .sc-receipt svg { flex: none; }
1568
+ .sc-receipt--delivered, .sc-receipt--emailed { color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); }
1569
+ .sc-receipt--seen, .sc-receipt--emailOpened { color: #1d8fd1; color: color-mix(in srgb, #1d8fd1 var(--sc-dk), #fff); }
1570
+ .sc-receipt--seen, .sc-receipt--emailOpened { cursor: help; }
1571
+ .sc-emoji-btn[aria-expanded="true"] { background: var(--sc-soft); color: var(--sc-ink); }
1572
+
1573
+ /* Customers: indigo chips and a short card of their subscriptions. */
1574
+ .rc-mention.rc-mention--customer { background: #eef2ff; background: color-mix(in srgb, #eef2ff var(--sc-tint), var(--sc-surface)); color: #4338ca; color: color-mix(in srgb, #4338ca var(--sc-dk), #fff); box-shadow: inset 0 -1.5px 0 rgba(67, 56, 202, 0.35); }
1575
+ .rc-mention.rc-mention--customer:hover, .rc-mention.rc-mention--customer:focus-visible, .rc-mention--customer.rc-mention--active { background: #e0e7ff; background: color-mix(in srgb, #e0e7ff var(--sc-tint), var(--sc-surface)); box-shadow: inset 0 -2px 0 rgba(67, 56, 202, 0.8); }
1576
+ .rc-sub-icon--customer { color: #4338ca; color: color-mix(in srgb, #4338ca var(--sc-dk), #fff); background: #eef2ff; background: color-mix(in srgb, #eef2ff var(--sc-tint), var(--sc-surface)); }
1577
+ .mp-mini--customer .mp-mini-pic { color: #4338ca; color: color-mix(in srgb, #4338ca var(--sc-dk), #fff); background: #eef2ff; background: color-mix(in srgb, #eef2ff var(--sc-tint), var(--sc-surface)); }
1578
+ .rc-customer-subs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
1579
+ .rc-customer-subs li { display: flex; align-items: center; gap: 7px; }
1580
+ .rc-customer-subs li span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1581
+ .rc-customer-subs em { font-style: normal; color: var(--sc-ink-3); }
1582
+ .rc-dot { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
1583
+ .rc-dot--active { background: #12a150; }
1584
+ .rc-dot--paused { background: #f5a524; }
1585
+
1586
+ /* Chips wrap like text, so a long product name breaks onto the next line inside its chip. */
1587
+ .rc-mention { display: inline; white-space: normal; padding: 1px 6px 1px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
1588
+ .rc-mention svg { display: inline-block; flex: none; vertical-align: -2px; margin-right: 3px; }
1589
+ .rc-sub-icon svg, .mp-mini-pic svg, .rc-strip-icon svg { flex: none; }
1590
+ .rc-sub-icon { flex: none; }
1591
+
1592
+ /* The composer's text over a mirror of it, where picked items get their chip colour. */
1593
+ .sc-input { position: relative; flex: 1; min-width: 0; display: flex; }
1594
+ .sc-input textarea { position: relative; width: 100%; background: transparent; }
1595
+ .sc-mirror { position: absolute; inset: 0; box-sizing: border-box; padding: 8px 4px; overflow: hidden; font: inherit; font-size: 15px; line-height: 20px; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; pointer-events: none; }
1596
+ .sc-hl { color: transparent; border-radius: 5px; box-shadow: 0 0 0 2px var(--hl); background: var(--hl); }
1597
+ .sc-hl--order { --hl: rgba(255, 107, 44, 0.16); }
1598
+ .sc-hl--offer { --hl: #dbeafe; }
1599
+ .sc-hl--product { --hl: #ccede9; }
1600
+ .sc-hl--customer { --hl: #e0e7ff; }
1601
+ .sc-hl--mention { --hl: rgba(224, 150, 0, 0.18); }
1602
+ .sc-mention.sc-mention--typing { display: inline; padding: 1px 4px; }
1603
+
1604
+ /* Seen: blue word and ticks, closer together, and its time in a tooltip on hover. */
1605
+ .sc-meta .sc-receipt { gap: 2px; }
1606
+ .sc-meta .sc-receipt--seen, .sc-meta .sc-receipt--emailOpened { color: #1d8fd1; color: color-mix(in srgb, #1d8fd1 var(--sc-dk), #fff); }
1607
+ .sc-meta .sc-receipt--delivered, .sc-meta .sc-receipt--emailed { color: #71717a; color: color-mix(in srgb, #71717a var(--sc-dk), #fff); }
1608
+ .sc-receipt[data-tip] { position: relative; }
1609
+ .sc-receipt[data-tip]:hover::after {
1610
+ content: attr(data-tip);
1611
+ position: absolute;
1612
+ bottom: calc(100% + 6px);
1613
+ right: 0;
1614
+ z-index: 30;
1615
+ width: max-content;
1616
+ max-width: 240px;
1617
+ padding: 5px 9px;
1618
+ border-radius: 8px;
1619
+ background: #16131d; background: var(--sc-strong, #16131d);
1620
+ color: #fff; color: var(--sc-on-strong, #fff);
1621
+ font-size: 12px;
1622
+ font-weight: 500;
1623
+ line-height: 1.35;
1624
+ white-space: normal;
1625
+ text-align: left;
1626
+ pointer-events: none;
1627
+ }
1628
+
1629
+ /* Store picture markers: review ring, and one corner badge (DEV or a lock). */
1630
+ .st-avatar--ring-gold { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f5b301; box-shadow: 0 0 0 2px var(--sc-surface), 0 0 0 3.5px #f5b301; border-radius: 12px; }
1631
+ .st-avatar--ring-low { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #a1a1aa; box-shadow: 0 0 0 2px var(--sc-surface), 0 0 0 3.5px #a1a1aa; border-radius: 12px; }
1632
+ .st-lock { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #1f2433; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1633
+ .st-avatar .st-dev { font-style: normal; }
1634
+ /* Reviewed: a star in the bottom right corner badge, gold for 4 or 5 stars, grey for 3 or fewer. */
1635
+ .st-star { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1636
+ .st-star--low { background: #a1a1aa; }
1637
+ /* Paying: a cash badge, green, gold once they have reviewed too. */
1638
+ .st-cash { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1639
+ .st-cash--gold { background: #f5b301; }
1640
+ .st-cash svg { width: 8px; height: 8px; }
1641
+ .st-star svg { width: 8px; height: 8px; }
1642
+
1643
+ /* Development store: a code badge in the corner. */
1644
+ .st-code { position: absolute; right: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #1f2433; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
1645
+
1646
+ /* Code in the composer: inline code and ``` blocks tinted grey behind the text. */
1647
+ .sc-hl--code { --hl: rgba(13, 13, 13, 0.08); }
1648
+ .sc-hl--block { --hl: rgba(13, 13, 13, 0.06); border-radius: 6px; }
1649
+
1650
+ /* "#" and "/" beside the emoji button; on a phone they are in the "+" menu instead. */
1651
+ @media (min-width: 701px) {
1652
+ .sc-menu button[data-key="hash"], .sc-menu button[data-key="slash"] { display: none; }
1653
+ }
1654
+
1655
+ /* The chips a reply names, above the composer while it is being written. */
1656
+ .sc-draft-refs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 16px -2px; }
1657
+ .sc-draft-ref { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
1658
+ .sc-draft-ref button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: var(--sc-ink-3); cursor: pointer; }
1659
+ .sc-draft-ref button:hover { background: var(--sc-soft); color: var(--sc-ink); }
1660
+ .mp-bubble .sc-text { text-align: left; }
1661
+
1662
+ /* The team's rich composer: the same size and type as the text box, with real chips, lists and code. */
1663
+ .sc-rich { position: relative; flex: 1; min-width: 0; }
1664
+ .sc-rich .sc-rich-input { box-sizing: border-box; min-height: 36px; max-height: 200px; overflow-y: auto; padding: 8px 4px; font-size: 14px; line-height: 20px; color: var(--sc-ink); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
1665
+ .sc-rich .sc-rich-input p { margin: 0; }
1666
+ .sc-rich .sc-rich-input ul, .sc-rich .sc-rich-input ol { margin: 2px 0; padding-left: 1.3em; }
1667
+ .sc-rich .sc-rich-input li p { margin: 0; }
1668
+ .sc-rich .sc-rich-input code { padding: 0.1em 0.35em; border-radius: 5px; background: rgba(13, 13, 13, 0.07); background: rgba(var(--sc-overlay-rgb), 0.07); font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
1669
+ .sc-rich .sc-rich-input pre { margin: 4px 0; padding: 8px 10px; border-radius: 10px; background: #16131d; background: var(--sc-strong, #16131d); color: #ece9f3; white-space: pre; overflow-x: auto; }
1670
+ .sc-rich .sc-rich-input pre code { padding: 0; background: none; color: inherit; font-size: 12.5px; }
1671
+ .sc-rich-placeholder { position: absolute; left: 4px; top: 8px; right: 4px; font-size: 14px; line-height: 20px; color: var(--sc-ink-3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1672
+ .sc-rich-chip { display: inline; }
1673
+ .sc-rich-chip .rc-mention { cursor: default; }
1674
+ .sc-rich .ProseMirror-selectednode .rc-mention { box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.5); }
1675
+
1676
+ /* The closed chat's text preview: a fixed height that fades out, so lists and code blocks keep their shape. */
1677
+ .mp-bubble { display: block; -webkit-line-clamp: unset; max-height: 7.6em; position: relative; -webkit-mask-image: linear-gradient(180deg, #000 5.6em, transparent 7.6em); mask-image: linear-gradient(180deg, #000 5.6em, transparent 7.6em); }
1678
+ .mp-bubble .sc-code { margin: 2px 0; }
1679
+ .mp-bubble .sc-code-bar { display: none; }
1680
+ .mp-bubble .sc-code pre { padding: 8px 10px; }
1681
+ .mp-bubble .sc-code code { font-size: 12px; }
1682
+
1683
+ /* Typing: three soft dots, and for the team the merchant's words so far (the sneak peek). */
1684
+ .sc-typing { display: inline-flex; align-items: center; gap: 8px; max-width: min(80%, 34rem); padding: 8px 12px; border-radius: 18px; background: var(--sc-soft); color: var(--sc-ink-3); font-size: 13px; }
1685
+ .sc-typing--peek { flex-direction: column; align-items: flex-start; gap: 2px; border: 1px dashed var(--sc-line); background: #fff; background: var(--sc-surface); }
1686
+ .sc-typing-label { font-weight: 600; }
1687
+ .sc-typing-text { color: var(--sc-ink-2); font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
1688
+ .sc-dots { display: inline-flex; gap: 3px; }
1689
+ .sc-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: sc-dot 1.2s infinite ease-in-out; }
1690
+ .sc-dots i:nth-child(2) { animation-delay: 0.15s; }
1691
+ .sc-dots i:nth-child(3) { animation-delay: 0.3s; }
1692
+ @keyframes sc-dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 0.9; transform: translateY(-2px); } }
1693
+ .ibx-item-typing { color: #1d8fd1 !important; color: color-mix(in srgb, #1d8fd1 var(--sc-dk), #fff) !important; font-style: italic; }
1694
+
1695
+ /* The rich composer's code block: dark like the sent one, the language picker in its top corner. */
1696
+ .sc-rich-code { position: relative; margin: 4px 0; }
1697
+ .sc-rich .sc-rich-code pre { margin: 0; padding: 26px 10px 8px; }
1698
+ .sc-rich-code-lang { position: absolute; top: 4px; right: 6px; z-index: 1; height: 20px; padding: 0 4px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.1); background: color-mix(in srgb, var(--sc-surface) 10%, transparent); color: #c9c4d6; font: 600 11px/1 Inter, -apple-system, sans-serif; cursor: pointer; }
1699
+ .sc-rich-code-lang:hover { background: rgba(255, 255, 255, 0.18); background: color-mix(in srgb, var(--sc-surface) 18%, transparent); color: #fff; }
1700
+ .sc-rich-code-lang option { color: #0d0d0d; color: var(--sc-ink-strong, #0d0d0d); }
1701
+ .sc-text strong, .sc-rich .sc-rich-input strong { font-weight: 650; }
1702
+
1703
+ /* Syntax colours on the dark code panel (JavaScript, Liquid, CSS). */
1704
+ .sc-hl-code .token.comment, .sc-hl-code .token.prolog { color: #7d7891; color: color-mix(in srgb, #7d7891 var(--sc-dk), #fff); font-style: italic; }
1705
+ .sc-hl-code .token.punctuation, .sc-hl-code .token.delimiter { color: #b8b3c6; }
1706
+ .sc-hl-code .token.keyword, .sc-hl-code .token.atrule, .sc-hl-code .token.important { color: #ff7ab6; }
1707
+ .sc-hl-code .token.string, .sc-hl-code .token.attr-value, .sc-hl-code .token.url { color: #9ee493; }
1708
+ .sc-hl-code .token.number, .sc-hl-code .token.boolean, .sc-hl-code .token.constant { color: #ffb86b; }
1709
+ .sc-hl-code .token.function, .sc-hl-code .token.class-name { color: #7cc7ff; }
1710
+ .sc-hl-code .token.property, .sc-hl-code .token.selector, .sc-hl-code .token.tag { color: #c9a7ff; }
1711
+ .sc-hl-code .token.operator, .sc-hl-code .token.filter { color: #ffd479; }
1712
+ .sc-hl-code .token.liquid, .sc-hl-code .token.variable { color: #ece9f3; }
1713
+
1714
+ /* Multi-line: the text spans the whole box, the buttons move to a row below it, send on the right. */
1715
+ .sc-composer--multi { flex-wrap: wrap; row-gap: 4px; border-radius: 22px; }
1716
+ .sc-composer--multi > .sc-input, .sc-composer--multi > .sc-rich, .sc-composer--multi > textarea { order: -1; flex: 1 1 100%; }
1717
+ .sc-composer--multi > .sc-send { margin-left: auto; }
1718
+ .sc-composer--multi .sc-plus { margin-left: -6px; }
1719
+
1720
+ /* The AI: an answer card in the thread with its tool steps (like ChatGPT's), team only. */
1721
+ .ai-note { align-self: stretch; max-width: min(100%, 40rem); margin: 0 auto; padding: 12px 14px; border-radius: 16px; border: 1px solid #e0e7ff; border: 1px solid color-mix(in srgb, #e0e7ff var(--sc-tint), var(--sc-line)); background: linear-gradient(180deg, #f7f8ff, #fff 60px); background: linear-gradient(180deg, color-mix(in srgb, #f7f8ff var(--sc-tint), var(--sc-surface)), var(--sc-surface) 60px); }
1722
+ .ai-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; }
1723
+ .ai-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #6366f1, #6cbdf5); color: #fff; align-self: center; }
1724
+ .ai-head strong { font-size: 13.5px; }
1725
+ .ai-asked { flex: 1 1 100%; color: var(--sc-ink-3); font-size: 12.5px; }
1726
+ .ai-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid #e0e7ff; border-left: 2px solid color-mix(in srgb, #e0e7ff var(--sc-tint), var(--sc-line)); }
1727
+ .ai-step-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--sc-ink-2); text-align: left; cursor: pointer; border-radius: 8px; }
1728
+ .ai-step-row:hover { background: rgba(99, 102, 241, 0.06); }
1729
+ .ai-step-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; color: #4f46e5; }
1730
+ .ai-step--done .ai-step-icon { background: #e0e7ff; background: color-mix(in srgb, #e0e7ff var(--sc-tint), var(--sc-surface)); }
1731
+ .ai-step--error .ai-step-icon { background: #fee2e2; background: color-mix(in srgb, #fee2e2 var(--sc-tint), var(--sc-surface)); color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
1732
+ .ai-step-label { font-weight: 600; }
1733
+ .ai-step-tool { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sc-ink-3); }
1734
+ .ai-step-chevron { margin-left: auto; color: var(--sc-ink-3); transition: transform 0.15s; }
1735
+ .ai-step-row[aria-expanded="true"] .ai-step-chevron { transform: rotate(90deg); }
1736
+ .ai-step-detail { margin: 2px 8px 6px 32px; font-size: 11.5px; color: var(--sc-ink-3); }
1737
+ .ai-step-detail pre { margin: 2px 0 6px; padding: 6px 8px; max-height: 160px; overflow: auto; border-radius: 8px; background: var(--sc-soft); color: var(--sc-ink-2); font: 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
1738
+ .ai-answer { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--sc-ink); }
1739
+ .ai-thinking { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: #4f46e5; }
1740
+ .ai-spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #c7d2fe; border: 2px solid color-mix(in srgb, #c7d2fe var(--sc-tint), var(--sc-line)); border-top-color: #4f46e5; animation: ai-spin 0.8s linear infinite; }
1741
+ @keyframes ai-spin { to { transform: rotate(360deg); } }
1742
+ .ai-error { margin: 10px 0 0; font-size: 13px; color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
1743
+ .ai-foot { margin: 10px 0 0; font-size: 11.5px; color: var(--sc-ink-3); }
1744
+
1745
+ /* The AI's replies: an "AI" label by its name, and for the team a line that opens its lookups. */
1746
+ .sc-ai-label { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: linear-gradient(135deg, #6366f1, #6cbdf5); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; vertical-align: 2px; }
1747
+ .ai-note { padding: 6px 8px; border-radius: 12px; border: 1px solid #e0e7ff; border: 1px solid color-mix(in srgb, #e0e7ff var(--sc-tint), var(--sc-line)); background: #f7f8ff; background: color-mix(in srgb, #f7f8ff var(--sc-tint), var(--sc-surface)); }
1748
+ .ai-summary { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 4px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #4338ca; color: color-mix(in srgb, #4338ca var(--sc-dk), #fff); cursor: pointer; }
1749
+ .ai-summary .ai-badge { width: 18px; height: 18px; border-radius: 6px; }
1750
+ .ai-summary[aria-expanded="true"] .ai-step-chevron { transform: rotate(90deg); }
1751
+ .ai-note .ai-steps { margin-top: 6px; }
1752
+
1753
+ /* Smaller chat text throughout; the lookups inside the AI's card. */
1754
+ .sc-composer textarea, .sc-mirror { font-size: 14px !important; }
1755
+ .sc-bubble--card .ai-note { margin: 0 0 8px; }
1756
+ .ai-note--live { border-style: dashed; }
1757
+ .ai-step-row:disabled { cursor: default; }
1758
+ .ai-step-row:disabled:hover { background: none; }
1759
+
1760
+ /* The AI writes like a standard AI chat app: no bubble, plain text across the column, its name and the lookups on top. */
1761
+ .sc-row.sc-row--ai { justify-content: flex-start; }
1762
+ .sc-row--ai .sc-msg-stack { flex: 1; width: 100%; max-width: 100%; }
1763
+ .sc-row .sc-bubble.sc-bubble--ai { max-width: none; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
1764
+ .sc-bubble--ai .sc-card-head { margin-bottom: 10px; }
1765
+ .sc-bubble--ai .ai-note { margin: 0 0 10px; }
1766
+ .sc-row--ai + .sc-meta { text-align: left !important; }
1767
+ .sc-bubble--ai .sc-text > * + * { margin-top: 1em; }
1768
+
1769
+ /* The merchant's chat a touch smaller than the team's. */
1770
+ .sc-shell--merchant .sc-bubble { font-size: 13.5px; }
1771
+ .sc-shell--merchant .sc-composer textarea, .sc-shell--merchant .sc-mirror { font-size: 13.5px !important; }
1772
+
1773
+
1774
+
1775
+ /* Links into the Shopify admin and into our app: a small box with the logo (Shopify or the app) and the way there,
1776
+ the last step underlined. The same quiet style for both. */
1777
+ .sc-admin-link, .sc-app-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 1px 0; padding: 3px 9px 3px 7px; border: 1px solid var(--sc-line); border-radius: 9px; background: #fff; background: var(--sc-surface); color: var(--sc-ink); font-size: 0.93em; font-weight: 550; line-height: 1.4; text-decoration: none; vertical-align: baseline; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.05); }
1778
+ .sc-admin-link:hover, .sc-app-link:hover { border-color: #c9c4d6; border-color: color-mix(in srgb, #c9c4d6 var(--sc-tint), var(--sc-line)); background: var(--sc-soft); }
1779
+ .sc-admin-link img, .sc-app-link img { flex: none; width: 14px; height: 14px; border-radius: 3px; }
1780
+ .sc-admin-step, .sc-app-link span { display: inline-flex; align-items: center; gap: 4px; color: var(--sc-ink-2); }
1781
+ .sc-admin-step i, .sc-app-link span i { font-style: normal; color: var(--sc-ink-3); }
1782
+ .sc-admin-link u, .sc-app-link .sc-app-last { color: var(--sc-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; text-decoration-color: rgba(13, 13, 13, 0.4); text-decoration-color: rgba(var(--sc-overlay-rgb), 0.4); }
1783
+
1784
+ /* Link boxes: the logo centred on the words (not on the underline), separators never underlined, a black underline. */
1785
+ .sc-admin-link, .sc-app-link { line-height: 1.25; padding-top: 4px; padding-bottom: 4px; }
1786
+ .sc-admin-link img, .sc-app-link img { align-self: center; margin-top: -1px; }
1787
+ .sc-app-link > i { font-style: normal; color: var(--sc-ink-3); text-decoration: none; }
1788
+ .sc-admin-link u, .sc-app-link .sc-app-last { text-decoration-color: var(--sc-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
1789
+
1790
+ .sc-link-arrow { font-style: normal; color: var(--sc-ink-3); }
1791
+
1792
+ /* The AI's steps, like Shopify Sidekick: a quiet "3 steps completed" button (grey only on hover) that opens to a list
1793
+ with a thin line on its left, each step an icon and a short line. */
1794
+ .ai-steps-wrap { margin: 0 0 10px; }
1795
+ .ai-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; margin-left: -8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13.5px; color: var(--sc-ink-2); cursor: pointer; }
1796
+ button.ai-toggle:hover { background: var(--sc-soft); color: var(--sc-ink); }
1797
+ .ai-toggle-caret { color: var(--sc-ink-3); transition: transform 0.15s; }
1798
+ .ai-toggle[aria-expanded="true"] .ai-toggle-caret { transform: rotate(180deg); }
1799
+ .ai-toggle--live { cursor: default; color: var(--sc-ink-2); }
1800
+ .ai-steps-wrap .ai-steps { list-style: none; margin: 4px 0 0 1px; padding: 2px 0 2px 14px; border-left: 1px solid var(--sc-line); display: flex; flex-direction: column; gap: 2px; }
1801
+ .ai-steps-wrap .ai-step-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; color: var(--sc-ink-2); text-align: left; }
1802
+ .ai-steps-wrap button.ai-step-row { cursor: pointer; }
1803
+ .ai-steps-wrap button.ai-step-row:hover { background: var(--sc-soft); }
1804
+ .ai-steps-wrap .ai-step-row svg { flex: none; color: var(--sc-ink-3); }
1805
+ .ai-steps-wrap .ai-step--error .ai-step-row { color: #b42318; color: color-mix(in srgb, #b42318 var(--sc-dk), #fff); }
1806
+ .ai-steps-wrap .ai-step-detail { margin: 2px 6px 6px 30px; }
1807
+ .ai-steps-wrap .ai-step-tool { display: block; margin-bottom: 4px; }
1808
+
1809
+ /* Reminders, simplified: span chips, a month calendar for a custom day, 09:00 or now, and when it will fire. */
1810
+ .rm-spans { display: flex; flex-wrap: wrap; gap: 6px; }
1811
+ .rm-spans button, .rm-time button { padding: 6px 11px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--sc-ink-2); cursor: pointer; }
1812
+ .rm-spans button:hover, .rm-time button:hover { background: var(--sc-soft); }
1813
+ .rm-spans button[aria-pressed="true"], .rm-time button[aria-pressed="true"] { border-color: transparent; background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); }
1814
+ .rm-time { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--sc-soft); align-self: flex-start; }
1815
+ .rm-time button { border: 0; background: none; }
1816
+ .rm-time button[aria-pressed="true"] { background: #fff; background: var(--sc-surface); color: var(--sc-ink); box-shadow: 0 1px 3px rgba(13, 13, 13, 0.12); }
1817
+ .rm-cal { padding: 8px; border: 1px solid var(--sc-line); border-radius: 14px; }
1818
+ .rm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
1819
+ .rm-cal-head strong { font-size: 13px; }
1820
+ .rm-cal-head button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; font-size: 18px; line-height: 1; color: var(--sc-ink-2); cursor: pointer; }
1821
+ .rm-cal-head button:hover:not(:disabled) { background: var(--sc-soft); }
1822
+ .rm-cal-head button:disabled { opacity: 0.3; cursor: default; }
1823
+ .rm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
1824
+ .rm-cal-wd { padding: 2px 0 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--sc-ink-3); }
1825
+ .rm-cal-grid button { height: 30px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; color: var(--sc-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
1826
+ .rm-cal-grid button:hover:not(:disabled) { background: var(--sc-soft); }
1827
+ .rm-cal-grid button:disabled { color: var(--sc-ink-3); opacity: 0.45; cursor: default; }
1828
+ .rm-cal-grid .rm-cal-today { font-weight: 700; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
1829
+ .rm-cal-grid button[aria-pressed="true"] { background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); }
1830
+
1831
+ /* While the AI works: its current step as text with a light sweeping across (like ChatGPT), and the seconds so far. */
1832
+ .ai-shimmer { display: inline-block; font-weight: 550; background: linear-gradient(90deg, var(--sc-ink-3) 0%, var(--sc-ink-3) 30%, var(--sc-accent, #1673e0) 45%, color-mix(in srgb, var(--sc-accent, #1673e0) 45%, #fff) 52%, var(--sc-accent, #1673e0) 59%, var(--sc-ink-3) 72%, var(--sc-ink-3) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ai-shimmer 2.2s linear infinite, ai-say 0.25s ease-out both; }
1833
+ @keyframes ai-say { from { opacity: 0; transform: translateY(3px); } }
1834
+ @keyframes ai-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
1835
+ .ai-seconds { color: var(--sc-ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
1836
+ @media (prefers-reduced-motion: reduce) { .ai-shimmer { animation: none; color: var(--sc-ink-2); } }
1837
+
1838
+ /* The language's small mark beside its name, in sent code blocks and in the composer's code block. */
1839
+ .sc-code-lang { display: inline-flex; align-items: center; gap: 6px; }
1840
+ .sc-lang-icon { flex: none; border-radius: 3px; }
1841
+ .sc-rich-code-bar { position: absolute; top: 4px; right: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; }
1842
+ .sc-rich-code-bar .sc-rich-code-lang { position: static; }
1843
+
1844
+ /* A translated message: its language and a switch to the other wording, small, above the bubble. */
1845
+ .sc-translated { display: flex; align-items: center; gap: 5px; margin: 0 4px 3px; font-size: 11.5px; color: var(--sc-ink-3); }
1846
+ .sc-translated--merchant { justify-content: flex-end; }
1847
+ .sc-translated button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--sc-ink-2); cursor: pointer; }
1848
+ .sc-translated button::before { content: "·"; margin-right: 5px; font-weight: 400; color: var(--sc-ink-3); }
1849
+ .sc-translated button:hover { color: var(--sc-ink); text-decoration: underline; }
1850
+
1851
+ /* A message on its way: rises into place at once, and turns red with Resend if it could not be sent. */
1852
+ .sc-out { animation: sc-out-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both; transform-origin: 100% 100%; }
1853
+ @keyframes sc-out-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
1854
+ .sc-out .sc-bubble { opacity: 0.75; transition: opacity 0.2s; }
1855
+ .sc-out-meta { text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
1856
+ .sc-out--failed .sc-bubble, .sc-out--failed .sc-note { opacity: 1; background: #fde8e8; background: color-mix(in srgb, #fde8e8 var(--sc-tint), var(--sc-surface)); color: #8e1f1f; color: color-mix(in srgb, #8e1f1f var(--sc-dk), #fff); box-shadow: inset 0 0 0 1px #f3b4b4; }
1857
+ .sc-out--failed .sc-out-meta { color: #c4271f; color: color-mix(in srgb, #c4271f var(--sc-dk), #fff); font-weight: 600; }
1858
+ .sc-out-meta button { padding: 2px 9px; border: 0; border-radius: 999px; background: #c4271f; color: #fff; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
1859
+ .sc-out-meta button:hover { background: #a51f18; }
1860
+ @media (prefers-reduced-motion: reduce) { .sc-out { animation: none; } }
1861
+
1862
+ /* A saved reply's card waiting to go with the text, and the card tag on saved replies. */
1863
+ .sc-attached-card { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 0 6px 12px; padding: 4px 6px 4px 11px; border-radius: 999px; background: #eef3ff; background: color-mix(in srgb, #eef3ff var(--sc-tint), var(--sc-surface)); color: #2a4fb0; color: color-mix(in srgb, #2a4fb0 var(--sc-dk), #fff); font-size: 12.5px; font-weight: 600; }
1864
+ .sc-attached-card button { display: inline-flex; padding: 4px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
1865
+ .sc-attached-card button:hover { background: rgba(42, 79, 176, 0.12); }
1866
+ .sc-shortcut-card { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #eef3ff; background: color-mix(in srgb, #eef3ff var(--sc-tint), var(--sc-surface)); color: #2a4fb0; color: color-mix(in srgb, #2a4fb0 var(--sc-dk), #fff); font-size: 11px; font-style: normal; font-weight: 600; }
1867
+
1868
+ /* Inline code's copy button, quiet until hovered. */
1869
+ .sc-icode { display: inline; }
1870
+ .sc-icode-copy { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin: 0 -0.15em 0 0.3em; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; opacity: 0.45; vertical-align: -0.15em; cursor: pointer; }
1871
+ .sc-icode-copy:hover { opacity: 1; background: rgba(13, 13, 13, 0.08); background: rgba(var(--sc-overlay-rgb), 0.08); }
1872
+
1873
+
1874
+ /* More room under a code block, in the text box and in the chat. */
1875
+ .sc-rich-code { margin: 4px 0 12px; }
1876
+ .sc-rich .sc-rich-code pre { padding-bottom: 12px; }
1877
+ .sc-code pre { padding-bottom: 16px; }
1878
+ .sc-translated-flags { letter-spacing: 0.5px; white-space: nowrap; }
1879
+
1880
+ /* Something drawn inside the text box above where you type (the inbox's card fields): the box grows upward. */
1881
+ .sc-composer--top { flex-wrap: wrap; border-radius: 22px; }
1882
+ .sc-composer-top { order: -2; flex: 1 1 100%; min-width: 0; }
1883
+
1884
+ /* Room after a code block, so a line or an order chip under it never touches it. */
1885
+ .sc-text > .sc-code + *, .sc-text > .sc-code + p { margin-top: 12px; }
1886
+ .sc-rich .sc-rich-input .sc-rich-code { margin-bottom: 12px; }
1887
+
1888
+ /* The text box while it is a card: only the card's fields, "+" and send. */
1889
+ .sc-composer--card > :not(.sc-composer-top):not(.sc-composer-cardnote):not(.sc-send):not(.sc-plus):not(.sc-menu):not(.sc-menu-scrim) { display: none !important; }
1890
+ .sc-composer--card { justify-content: space-between; }
1891
+ /* A card with a message: the text box stays for the message; the other tools go. */
1892
+ .sc-composer--cardtext > :not(.sc-composer-top):not(.sc-send):not(.sc-plus):not(.sc-menu):not(.sc-menu-scrim):not(.sc-rich):not(.sc-input):not(textarea) { display: none !important; }
1893
+
1894
+ /* The password card: the "where it is" line in quiet grey rather than the help card's purple. */
1895
+ .pw-card .pw-where { background: var(--sc-soft); color: var(--sc-ink-2); }
1896
+
1897
+ /* Feature request and bug ticket cards. */
1898
+ .fr-title span { display: flex; flex-direction: column; gap: 2px; }
1899
+ .fr-title em { font-style: normal; font-size: 12px; opacity: 0.8; }
1900
+ .fr-title strong { font-size: 14px; font-weight: 650; }
1901
+ .fr-added { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 999px; background: var(--sc-soft); color: var(--sc-ink-2); font-size: 14px; font-weight: 600; }
1902
+ .fr-error { margin: 8px 0 0; font-size: 12.5px; color: #b42318; }
1903
+ .tk-state { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: #fff4e5; color: #8a4b00; font-size: 12.5px; font-weight: 600; }
1904
+ .tk-state--fixed { background: #e7f6ec; color: #0b6b2f; }
1905
+ .sc-verified { margin: 6px 0 4px; padding: 6px 10px; border-radius: 10px; background: var(--sc-soft); color: var(--sc-ink-2); font-size: 12.5px; line-height: 1.4; }
1906
+
1907
+ /* Seen (or Sent) and the time share a centre line, not a baseline. */
1908
+ .sc-meta:has(> .sc-receipt) { display: flex; align-items: center; justify-content: flex-end; white-space: pre; }
1909
+ .sc-meta > .sc-receipt { vertical-align: middle; }
1910
+
1911
+ /* The "+" sits as far in from the rounded edge as send does on the other side. */
1912
+ .sc-composer--plus, .sc-composer--menu { padding-left: 6px; }
1913
+ .sc-composer--multi .sc-plus { margin-left: 0; }
1914
+ /* A card with no message: what the send arrow will send, where the typing would be. */
1915
+ .sc-composer-cardnote { flex: 1; align-self: center; padding: 0 8px; font-size: 14px; color: var(--sc-ink-3); }
1916
+
1917
+ /* A store that uninstalled the app: its picture greyed and faded, so live stores stand out in the list. */
1918
+ .st-avatar--gone > img, .st-avatar--gone > .st-initials { filter: grayscale(1); opacity: 0.4; }
1919
+ .st-avatar--gone { box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.08); }
1920
+
1921
+ /* Inline code copies on click: a pointer, a slight tint on hover, and a "Copy" tooltip above it. */
1922
+ .sc-icode-copy { display: none; }
1923
+ .sc-icode--copy { position: relative; cursor: pointer; transition: background 0.12s; }
1924
+ .sc-icode--copy:hover { background: rgba(13, 13, 13, 0.1); background: rgba(var(--sc-overlay-rgb), 0.1); }
1925
+ .sc-icode--copy::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5; padding: 3px 7px; border-radius: 6px; background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); font: 600 11px/1.3 Inter, -apple-system, sans-serif; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
1926
+ .sc-icode--copy:hover::after, .sc-icode--copy:focus-visible::after { opacity: 1; }
1927
+
1928
+ /* Events: what the merchant did in the app, on the team's timeline (EventRow). Quiet lines for attempts. */
1929
+ /* No fill and a dashed edge, so an event never reads as a message; only its icon carries the tone. */
1930
+ .sc-event { --ev: #5b6b7d; --ev-bg: transparent; align-self: center; width: min(560px, 100%); margin: 2px 0; border-radius: 12px; background: transparent; border: 1px dashed var(--sc-line, #e3e3e3); animation: sc-in 0.2s ease-out both; }
1931
+ .sc-event--good { --ev: #1f8a4c; }
1932
+ .sc-event--bad { --ev: #c0362c; }
1933
+ .sc-event--warn { --ev: #b46a00; }
1934
+ .sc-event--info { --ev: #5b6b7d; }
1935
+ .sc-event-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; font-size: 12.5px; cursor: pointer; }
1936
+ .sc-event-head:disabled { cursor: default; }
1937
+ .sc-event-head:focus-visible { outline: 2px solid var(--ev); outline-offset: -2px; border-radius: 12px; }
1938
+ .sc-event-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ev) 14%, #fff); background: color-mix(in srgb, var(--ev) 14%, var(--sc-surface)); color: var(--ev); }
1939
+ .sc-event-title { flex: none; font-weight: 650; color: var(--sc-ink, #1a1a1a); color: var(--sc-ink, var(--sc-ink-strong, #1a1a1a)); }
1940
+ .sc-event-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sc-ink-3); }
1941
+ .sc-event-head time { margin-left: auto; flex: none; font-size: 11.5px; color: var(--sc-ink-3); }
1942
+ .sc-event-summary + time { margin-left: 0; }
1943
+ .sc-event-caret { flex: none; color: var(--sc-ink-3); transition: transform 0.15s; }
1944
+ .sc-event--open .sc-event-caret { transform: rotate(180deg); }
1945
+ .sc-event-fields { display: grid; gap: 6px; margin: 0; padding: 2px 14px 12px 42px; font-size: 12.5px; }
1946
+ .sc-event-fields div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
1947
+ .sc-event-fields dt { color: var(--sc-ink-3); }
1948
+ .sc-event-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--sc-ink, #1a1a1a); color: var(--sc-ink, var(--sc-ink-strong, #1a1a1a)); }
1949
+ .sc-event-fields a { color: var(--ev); text-decoration: none; }
1950
+ .sc-event-fields a:hover { text-decoration: underline; }
1951
+ .sc-event-status { display: flex; align-items: center; gap: 8px; align-self: center; width: fit-content; max-width: 100%; margin: 6px auto; padding: 7px 14px 7px 8px; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); font-size: 12.5px; font-weight: 500; color: var(--sc-ink, #1a1a1a); color: var(--sc-ink, var(--sc-ink-strong, #1a1a1a)); }
1952
+ .sc-event-status time { font-size: 11.5px; font-weight: 400; color: var(--sc-ink-3); }
1953
+ .sc-event-access { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; align-self: center; width: min(560px, 100%); margin: 8px auto; padding: 12px 14px; border-radius: 14px; background: #f0faf3; background: color-mix(in srgb, #1f8a4c 9%, var(--sc-surface, #fff)); border: 1px solid color-mix(in srgb, #1f8a4c 35%, transparent); animation: sc-in 0.2s ease-out both; }
1954
+ .sc-event-access-icon { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #1f8a4c; color: #fff; }
1955
+ .sc-event-access-text { display: grid; gap: 2px; min-width: 0; font-size: 13px; color: var(--sc-ink, #1a1a1a); color: var(--sc-ink, var(--sc-ink-strong, #1a1a1a)); }
1956
+ .sc-event-access-text strong { font-size: 14px; font-weight: 700; color: #1f7a44; color: color-mix(in srgb, #1f8a4c 80%, var(--sc-ink, #1a1a1a)); }
1957
+ .sc-event-access-text span { overflow-wrap: anywhere; color: var(--sc-ink-2, var(--sc-ink-3)); }
1958
+ .sc-event-access time { align-self: start; font-size: 11.5px; color: var(--sc-ink-3); }
1959
+ .sc-event-access-open { grid-column: 2 / -1; justify-self: start; margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: #1f8a4c; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
1960
+ .sc-event-access-open:hover { background: #18703d; }
1961
+ .sc-event-access-open:focus-visible { outline: 2px solid #1f8a4c; outline-offset: 2px; }
1962
+ .sc-event--quiet { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; padding: 0 10px; border: 0; background: none; font-size: 11.5px; color: var(--sc-ink-3); animation: none; }
1963
+ @media (max-width: 520px) { .sc-event-fields { padding-left: 14px; } .sc-event-fields div { grid-template-columns: 1fr; gap: 0; } .sc-event-summary { display: none; } }
1964
+
1965
+ /* List states: unread rows stand out, every row ends in its state (blue unread, red open, green resolved). */
1966
+ .ibx-item { position: relative; }
1967
+ .ibx-item--resolved, .ibx-item--resolved:hover { opacity: 1; }
1968
+ .ibx-item--unread { background: #edf4ff; background: color-mix(in srgb, #edf4ff var(--sc-tint), var(--sc-surface)); }
1969
+ .ibx-item--unread:hover { background: #e3eeff; background: color-mix(in srgb, #e3eeff var(--sc-tint), var(--sc-surface)); }
1970
+ .ibx-item--unread::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #2f7fe0; }
1971
+ .ibx-item--unread .ibx-item-text strong { color: #1f6fd1; color: color-mix(in srgb, #1f6fd1 var(--sc-dk), #fff); }
1972
+ .ibx-item--unread .ibx-item-text > span:last-child { color: var(--sc-ink, #1a1a1a); color: var(--sc-ink, var(--sc-ink-strong, #1a1a1a)); font-weight: 650; }
1973
+ .ibx-item--unread .ibx-item-meta time { color: #1f6fd1; color: color-mix(in srgb, #1f6fd1 var(--sc-dk), #fff); font-weight: 600; }
1974
+ .ibx-state { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; flex: none; }
1975
+ .ibx-state--unread { background: #2f7fe0; }
1976
+ .ibx-state--open { background: #e2533c; }
1977
+ .ibx-state--resolved { background: #3fae54; }
1978
+
1979
+ /* The away line stays pinned at the top of the merchant's chat while the team is away; it does not expand. */
1980
+ .av-line--top { position: sticky; top: 0; z-index: 5; margin: 0 0 6px; box-shadow: 0 6px 14px -12px rgba(0, 0, 0, 0.35); }
1981
+ .av-line--top .av-line-row { cursor: default; }
1982
+
1983
+ /* "Store > Shekhar": the owner beside the store's name in the inbox list; the name gives way first. */
1984
+ .ibx-item-text strong { display: flex; align-items: center; gap: 4px; min-width: 0; }
1985
+ .ibx-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1986
+ .ibx-item-text strong .ibx-item-owner { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 500; color: var(--sc-ink-3); overflow: visible; }
1987
+ .ibx-item-text strong .ibx-item-name { font-size: inherit; color: inherit; }
1988
+ .ibx-item-text strong .ibx-flag { flex: none; overflow: visible; }
1989
+
1990
+ /* The chosen tab keeps its look on hover (the plain hover rule would light it up under white text). */
1991
+ .ibx-filter button.ibx-filter-on, .ibx-filter button.ibx-filter-on:hover { background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); cursor: default; }
1992
+
1993
+
1994
+ /* A draft reply (often Claude's): team only, clearly not sent; Send makes it a real reply. */
1995
+ .sc-draft { align-self: flex-end; width: min(560px, 92%); border: 1.5px dashed #8aa7e8; border-radius: 16px; background: #f5f8ff; background: color-mix(in srgb, #f5f8ff var(--sc-tint), var(--sc-surface)); animation: sc-in 0.2s ease-out both; }
1996
+ .sc-draft-head { display: flex; align-items: center; gap: 6px; padding: 9px 14px 0; font-size: 12px; font-weight: 650; color: #3557b7; color: color-mix(in srgb, #3557b7 var(--sc-dk), #fff); }
1997
+ .sc-draft-head time { margin-left: auto; font-weight: 500; color: var(--sc-ink-3); }
1998
+ .sc-draft-body { padding: 6px 14px 4px; font-size: 14px; line-height: 1.5; }
1999
+ .sc-draft-edit { box-sizing: border-box; display: block; width: calc(100% - 20px); margin: 8px 10px 2px; padding: 8px 10px; border: 1px solid #b9c9f0; border: 1px solid color-mix(in srgb, #b9c9f0 var(--sc-tint), var(--sc-line)); border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: #fff; background: var(--sc-surface); }
2000
+ .sc-draft-error { margin: 4px 14px 0; font-size: 12px; color: #c0362c; color: color-mix(in srgb, #c0362c var(--sc-dk), #fff); }
2001
+ .sc-draft-actions { display: flex; gap: 6px; padding: 8px 10px 10px; }
2002
+ .sc-draft-actions button { padding: 5px 12px; border: 1px solid #c9d6f5; border: 1px solid color-mix(in srgb, #c9d6f5 var(--sc-tint), var(--sc-line)); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 12.5px; font-weight: 600; color: #3557b7; color: color-mix(in srgb, #3557b7 var(--sc-dk), #fff); cursor: pointer; }
2003
+ .sc-draft-actions .sc-draft-send { border-color: #2f6fe0; background: #2f6fe0; color: #fff; }
2004
+ .sc-draft-actions .sc-draft-discard { margin-left: auto; border-color: transparent; background: none; color: var(--sc-ink-3); }
2005
+ .sc-draft-actions button:disabled { opacity: 0.5; cursor: default; }
2006
+ .sc-draft--done { display: flex; align-items: center; gap: 8px; align-self: center; width: auto; padding: 2px 10px; border: 0; background: none; font-size: 11.5px; color: var(--sc-ink-3); animation: none; }
2007
+ .ibx-item-text strong .ibx-item-draft { flex: none; padding: 0 6px; border-radius: 999px; background: #e8efff; background: color-mix(in srgb, #e8efff var(--sc-tint), var(--sc-surface)); font-size: 11px; font-weight: 650; line-height: 17px; color: #3557b7; color: color-mix(in srgb, #3557b7 var(--sc-dk), #fff); overflow: visible; }
2008
+
2009
+ /* Paragraphs keep their gap: ".sc-text p { margin: 0 }" outranked the "* + *" rule, so a blank line drew as a single line break. */
2010
+ .sc-text > :is(p, ul, ol, pre, div, blockquote) + :is(p, ul, ol, pre, div, blockquote) { margin-top: 0.9em; }
2011
+ .sc-text > p + :is(ul, ol), .sc-text > :is(ul, ol) + p { margin-top: 0.5em; }
2012
+
2013
+ /* Editing a draft in the composer: blue, like the draft card. */
2014
+ .sc-composer--draft { background: #f5f8ff; background: color-mix(in srgb, #f5f8ff var(--sc-tint), var(--sc-surface)); border-color: #8aa7e8; box-shadow: 0 0 0 3px rgba(47, 111, 224, 0.14); }
2015
+ .sc-composer--draft .sc-send { background: #2f6fe0; }
2016
+ .sc-draft-bar { background: #e8efff; background: color-mix(in srgb, #e8efff var(--sc-tint), var(--sc-surface)); color: #2a4fa8; color: color-mix(in srgb, #2a4fa8 var(--sc-dk), #fff); }
2017
+ .sc-draft-before { margin: 6px 10px 0; padding: 8px 10px; border-radius: 10px; background: #fff4e6; background: color-mix(in srgb, #fff4e6 var(--sc-tint), var(--sc-surface)); border: 1px solid #f7d9b5; font-size: 12.5px; line-height: 1.45; color: #40260f; color: color-mix(in srgb, #40260f var(--sc-dk), #fff); white-space: pre-wrap; }
2018
+ .sc-draft-card { margin: 6px 10px 0; font-size: 12px; color: var(--sc-ink-3); }
2019
+ .sc-draft-before strong { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; }
2020
+ .sc-draft-editing { padding: 6px 14px 4px; font-size: 13px; font-style: italic; color: #3557b7; color: color-mix(in srgb, #3557b7 var(--sc-dk), #fff); }
2021
+
2022
+ /* The country flag as a round badge on the store's picture, top right. */
2023
+ .st-flag { position: absolute; top: -2px; left: -2px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; overflow: hidden; background: #fff; background: var(--sc-surface); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.25); box-shadow: 0 0 0 2px var(--sc-surface), 0 1px 3px rgba(0, 0, 0, 0.25); font-style: normal; }
2024
+ .st-flag span { font-size: 16px; line-height: 1; transform: translateY(1px); }
2025
+
2026
+ /* Flat round flag, and the bottom-right dev/lock badge, the same size as the online dot. */
2027
+ .st-flag img { width: 100%; height: 100%; object-fit: cover; }
2028
+ .st-lock, .st-code { width: 12px; height: 12px; }
2029
+ .st-lock svg, .st-code svg { width: 7px; height: 7px; }
2030
+ .sc-draft-bar-actions { display: inline-flex; gap: 6px; }
2031
+ .sc-draft-bar .sc-draft-update { border: 0; border-radius: 999px; padding: 3px 11px; background: #2f6fe0; color: #fff; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; text-decoration: none; }
2032
+ .sc-draft-bar .sc-draft-update:disabled { opacity: 0.5; cursor: default; }
2033
+
2034
+ /* Resolve and reopen answer at once: the button pops, the row flashes as it moves. */
2035
+ @keyframes ibx-pop { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
2036
+ /* A tint over the row that fades: animating the row's own background overrode its active and unread colours. */
2037
+ @keyframes ibx-row-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
2038
+ .ibx-resolve--flash-resolved { animation: ibx-pop 0.35s ease-out; background: #e6f6ea !important; background: color-mix(in srgb, #e6f6ea var(--sc-tint), var(--sc-surface)) !important; color: #12793c !important; color: color-mix(in srgb, #12793c var(--sc-dk), #fff) !important; border-color: #9fd8b0 !important; }
2039
+ .ibx-resolve--flash-open { animation: ibx-pop 0.35s ease-out; }
2040
+ .ibx-item--flash-resolved::after, .ibx-item--flash-open::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: ibx-row-flash 0.9s ease-out forwards; }
2041
+ .ibx-item--flash-resolved::after { background: rgba(18, 161, 80, 0.14); }
2042
+ .ibx-item--flash-open::after { background: rgba(240, 140, 30, 0.14); }
2043
+ .ibx-item--flash-resolved .ibx-state { animation: ibx-pop 0.4s ease-out; }
2044
+ @media (prefers-reduced-motion: reduce) { .ibx-resolve--flash-resolved, .ibx-resolve--flash-open, .ibx-item--flash-resolved::after, .ibx-item--flash-open::after, .ibx-item--flash-resolved .ibx-state { animation: none; opacity: 0; } }
2045
+
2046
+ /* A sent message looks sent at once; "Sending..." shows only if the server is slow (over 1.5 s). */
2047
+ .sc-out .sc-bubble { opacity: 1; }
2048
+ @keyframes sc-out-late { from { opacity: 0; } to { opacity: 1; } }
2049
+ .sc-out-meta--sending { opacity: 0; animation: sc-out-late 0.3s ease-out 1.5s forwards; }
2050
+ @media (prefers-reduced-motion: reduce) { .sc-out-meta--sending { animation: none; opacity: 1; } }
2051
+
2052
+ /* AI guided replies: setup checklist, then tiles or buttons for the next step. */
2053
+ .sc-aip { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--sc-surface, #fff); background: var(--sc-surface, var(--sc-surface)); border: 1px solid rgba(0, 0, 0, 0.08); border: 1px solid rgba(var(--sc-overlay-rgb), 0.08); max-width: 340px; }
2054
+ .sc-aip-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #616161; color: color-mix(in srgb, #616161 var(--sc-dk), #fff); margin-bottom: 8px; }
2055
+ .sc-aip-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.07); background: rgba(var(--sc-overlay-rgb), 0.07); overflow: hidden; }
2056
+ .sc-aip-bar > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7c5cff, #29b6f6); transition: width 0.4s ease; }
2057
+ .sc-aip ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
2058
+ .sc-aip-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8a8a8a; color: color-mix(in srgb, #8a8a8a var(--sc-dk), #fff); }
2059
+ .sc-aip-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1.5px solid rgba(0, 0, 0, 0.15); border: 1.5px solid rgba(var(--sc-overlay-rgb), 0.15); }
2060
+ .sc-aip-dot svg { width: 13px; height: 13px; }
2061
+ .sc-aip-step--done { color: #303030; color: var(--sc-ink-strong, #303030); }
2062
+ .sc-aip-step--done .sc-aip-dot { background: #29845a; border-color: #29845a; color: #fff; }
2063
+ .sc-aip-step--current { color: #303030; color: var(--sc-ink-strong, #303030); font-weight: 600; }
2064
+ .sc-aip-step--current .sc-aip-dot { border-color: #7c5cff; color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15); }
2065
+
2066
+ .sc-aic { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-width: 360px; }
2067
+ .sc-aic-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, 0.35); background: #fff; background: var(--sc-surface); color: #5b3fd9; color: color-mix(in srgb, #5b3fd9 var(--sc-dk), #fff); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.1s; }
2068
+ .sc-aic-btn strong { font-weight: 550; }
2069
+ .sc-aic-btn:hover:not(:disabled) { background: rgba(124, 92, 255, 0.08); }
2070
+ .sc-aic-btn:active:not(:disabled) { transform: scale(0.97); }
2071
+ .sc-aic-btn--link { background: #5b3fd9; border-color: #5b3fd9; color: #fff; }
2072
+ .sc-aic-btn--link:hover { background: #4a2fc4 !important; }
2073
+ .sc-aic-icon { display: inline-grid; place-items: center; }
2074
+ .sc-aic-icon svg { width: 15px; height: 15px; }
2075
+ .sc-aic--tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
2076
+ .sc-aic--tiles .sc-aic-btn { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 14px; text-align: left; color: #303030; color: var(--sc-ink-strong, #303030); border-color: rgba(0, 0, 0, 0.1); border-color: rgba(var(--sc-overlay-rgb), 0.1); }
2077
+ .sc-aic--tiles .sc-aic-btn:hover:not(:disabled) { border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.04); }
2078
+ .sc-aic--tiles .sc-aic-icon { width: 30px; height: 30px; border-radius: 9px; background: rgba(124, 92, 255, 0.1); color: #5b3fd9; color: color-mix(in srgb, #5b3fd9 var(--sc-dk), #fff); }
2079
+ .sc-aic--tiles .sc-aic-icon svg { width: 18px; height: 18px; }
2080
+ .sc-aic--tiles .sc-aic-text { display: grid; gap: 2px; }
2081
+ .sc-aic--tiles small { font-size: 12px; color: #616161; color: color-mix(in srgb, #616161 var(--sc-dk), #fff); line-height: 1.3; }
2082
+ .sc-aic--tiles .sc-aic-btn--link { color: #fff; background: #5b3fd9; }
2083
+ .sc-aic--tiles .sc-aic-btn--link .sc-aic-icon { background: rgba(255, 255, 255, 0.2); background: color-mix(in srgb, var(--sc-surface) 20%, transparent); color: #fff; }
2084
+ .sc-aic--past .sc-aic-btn:not(.sc-aic-btn--link) { cursor: default; opacity: 0.55; }
2085
+ .sc-aic--past .sc-aic-btn--chosen { opacity: 1; border-color: #7c5cff; background: rgba(124, 92, 255, 0.1); }
2086
+ .sc-aic--past .sc-aic-btn--link { opacity: 0.7; }
2087
+ @media (max-width: 420px) { .sc-aic--tiles { grid-template-columns: 1fr; } }
2088
+
2089
+ /* Online now: green dot top left of the store avatar (the flag is top right). */
2090
+ .st-online { position: absolute; top: -2px; right: -2px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
2091
+ .st-online::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: st-online-pulse 2s ease-out infinite; }
2092
+ @keyframes st-online-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.2); opacity: 0; } }
2093
+ @media (prefers-reduced-motion: reduce) { .st-online::after { animation: none; } }
2094
+
2095
+ /* The AI handed the question to a teammate. */
2096
+ .sc-assigned { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #f1f8f4; background: color-mix(in srgb, #f1f8f4 var(--sc-tint), var(--sc-surface)); border: 1px solid rgba(41, 132, 90, 0.25); color: #1f5f41; color: color-mix(in srgb, #1f5f41 var(--sc-dk), #fff); font-size: 13px; font-weight: 550; align-self: flex-start; }
2097
+ .sc-assigned img, .sc-assigned > span:first-child { border-radius: 50%; }
2098
+
2099
+ /* A GIF from the imported chat history (markdown image from GIPHY). */
2100
+ .sc-md-gif { display: block; max-width: min(240px, 100%); height: auto; border-radius: 10px; margin: 4px 0; }
2101
+
2102
+ /* Reply or Note above the team's composer: the note side is yellow, like the notes themselves. */
2103
+ .sc-mode { display: inline-flex; gap: 2px; align-self: flex-start; margin: 0 0 6px 14px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); background: rgba(var(--sc-overlay-rgb), 0.05); }
2104
+ .sc-mode button { border: 0; border-radius: 999px; padding: 4px 14px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); cursor: pointer; transition: background 0.15s, color 0.15s; }
2105
+ .sc-mode button[aria-selected="true"] { background: #fff; background: var(--sc-surface); color: var(--sc-ink, #303030); color: var(--sc-ink, var(--sc-ink-strong, #303030)); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
2106
+ .sc-mode button.sc-mode-note[aria-selected="true"] { background: #fff4c2; background: color-mix(in srgb, #fff4c2 var(--sc-tint), var(--sc-surface)); color: #7a5a00; color: color-mix(in srgb, #7a5a00 var(--sc-dk), #fff); }
2107
+
2108
+ /* Notes are formatted like messages now: paragraphs come from the formatter, not from pre-wrap. */
2109
+ .sc-note-body { white-space: normal; }
2110
+
2111
+ /* The open conversation: darker than hover and a purple bar, so it never reads like an unread (blue) row. */
2112
+ /* Rows sit inset with round corners and no lines; the open one is a soft sky blue card. */
2113
+ .ibx-item { margin: 2px 8px; padding: 12px 12px; border-bottom: 0; border-radius: 16px; }
2114
+ .ibx-item.ibx-item--active { background: #e8f3fe; background: color-mix(in srgb, #e8f3fe var(--sc-tint), var(--sc-surface)); box-shadow: none; }
2115
+ .ibx-item.ibx-item--active:hover { background: #ddeefd; background: color-mix(in srgb, #ddeefd var(--sc-tint), var(--sc-surface)); }
2116
+
2117
+ /* Inbox: ours (right) soft indigo, the merchant's (left) light grey, so the two sides read apart at a glance. */
2118
+ .ibx-thread .sc-row--merchant .sc-bubble:not(.sc-bubble--ai) { background: #eef1ff; background: color-mix(in srgb, #eef1ff var(--sc-tint), var(--sc-surface)); border: 1px solid #dde3ff; border: 1px solid color-mix(in srgb, #dde3ff var(--sc-tint), var(--sc-line)); }
2119
+ .ibx-thread .sc-row--agent .sc-bubble:not(.sc-bubble--ai) { background: #f2f2f5; background: color-mix(in srgb, #f2f2f5 var(--sc-tint), var(--sc-surface)); border: 1px solid transparent; }
2120
+ .ibx-thread .sc-row--merchant .sc-bubble--card:not(.sc-bubble--ai) { box-shadow: 0 10px 28px -18px rgba(60, 70, 160, 0.3); }
2121
+
2122
+ /* The store's avatar beside the merchant's messages (team view), at the foot of each run. */
2123
+ .sc-row-av { flex: none; width: 28px; align-self: flex-end; display: flex; }
2124
+ .sc-row-av .st-flag, .sc-row-av .st-lock, .sc-row-av .st-code, .sc-row-av .st-star, .sc-row-av .st-cash, .sc-row-av .st-online { display: none; }
2125
+
2126
+ /* Team: the hover menu beside a message (react, reply, edit, delete), and a deleted message. */
2127
+ .sc-msg-stack { position: relative; }
2128
+ .sc-macts { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; background: var(--sc-surface); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06); font-size: 12.5px; white-space: nowrap; }
2129
+ .sc-macts--agent { left: calc(100% + 6px); }
2130
+ .sc-macts--merchant { right: calc(100% + 6px); }
2131
+ .sc-row:hover .sc-macts, .sc-macts--on { display: inline-flex; }
2132
+ .sc-macts button { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 999px; background: none; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); font: inherit; font-size: 12.5px; cursor: pointer; }
2133
+ .sc-macts button:hover { background: var(--sc-soft); color: var(--sc-ink, #303030); color: var(--sc-ink, var(--sc-ink-strong, #303030)); }
2134
+ .sc-macts > span { padding: 0 6px; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); }
2135
+ .sc-macts .sc-macts-danger { color: #c4320a; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff); font-weight: 650; }
2136
+ .sc-macts-emoji { display: inline-flex; gap: 2px; }
2137
+ .sc-macts-emoji button { font-size: 19px; min-width: 32px; height: 32px; transition: transform 0.12s; }
2138
+ .sc-macts-emoji button:hover { transform: scale(1.25); background: none; }
2139
+ @media (hover: none) { .sc-row:hover .sc-macts:not(.sc-macts--on) { display: none; } }
2140
+ /* A reply's quote of the message it answers, and the "Replying to" bar over the composer. */
2141
+ .sc-quote { display: grid; gap: 1px; width: 100%; margin: 0 0 6px; padding: 5px 10px; border: 0; border-left: 3px solid #1673e0; border-radius: 8px; background: rgba(22, 115, 224, 0.08); font: inherit; text-align: left; cursor: pointer; }
2142
+ .sc-quote strong { font-size: 12px; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
2143
+ .sc-quote span { font-size: 12.5px; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
2144
+ .sc-replying { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; padding: 8px 10px; border-radius: 12px; background: var(--sc-soft); }
2145
+ .sc-replying-bar { flex: none; width: 3px; align-self: stretch; border-radius: 3px; background: #1673e0; }
2146
+ .sc-replying-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
2147
+ .sc-replying-text strong { font-size: 12.5px; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); }
2148
+ .sc-replying-text span { font-size: 13px; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2149
+ .sc-replying button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; font-size: 18px; color: var(--sc-ink-3); cursor: pointer; }
2150
+ /* Reactions under a message. */
2151
+ .sc-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -2px; }
2152
+ .sc-row--merchant .sc-reacts { justify-content: flex-end; }
2153
+ .sc-react { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 14px; line-height: 1.3; cursor: pointer; }
2154
+ .sc-react span { font-size: 11.5px; font-weight: 650; color: var(--sc-ink-3); }
2155
+ .sc-react--mine { border-color: rgba(22, 115, 224, 0.45); background: rgba(22, 115, 224, 0.08); }
2156
+ .sc-react:disabled { cursor: default; }
2157
+ .sc-deleted { display: flex; flex-direction: column; gap: 2px; max-width: min(80%, 34rem); padding: 6px 12px; border: 1px dashed var(--sc-line); border-radius: 14px; font-size: 13px; color: var(--sc-ink-3, #8a8a8a); color: var(--sc-ink-3, color-mix(in srgb, #8a8a8a var(--sc-dk), #fff)); }
2158
+ .sc-deleted--merchant { align-self: flex-end; text-align: right; }
2159
+ .sc-deleted span { font-size: 11.5px; font-weight: 600; }
2160
+ @media (hover: none) { .sc-row:hover .sc-macts { display: none; } }
2161
+
2162
+ /* Editing the email in the store panel (team inbox). */
2163
+ .mi-email-pen { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); cursor: pointer; }
2164
+ .mi-email-pen:hover { background: var(--sc-soft); color: var(--sc-ink); }
2165
+ .mi-email-edit { display: flex; gap: 6px; }
2166
+ .mi-email-edit input { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--sc-line); border-radius: 8px; font: inherit; font-size: 13px; }
2167
+ .mi-email-edit button { border: 0; border-radius: 8px; padding: 5px 10px; background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
2168
+
2169
+ /* Confetti when a merchant clicks through to review: falls across the thank-you card, once. */
2170
+ .srv-card--thanks { position: relative; overflow: hidden; }
2171
+ .srv-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
2172
+ .srv-confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation-name: srv-confetti-fall; animation-timing-function: cubic-bezier(0.25, 0.6, 0.4, 1); animation-fill-mode: forwards; }
2173
+ .srv-confetti i.srv-confetti-dot { width: 7px; height: 7px; border-radius: 50%; }
2174
+ @keyframes srv-confetti-fall {
2175
+ 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
2176
+ 80% { opacity: 1; }
2177
+ 100% { opacity: 0; transform: translate3d(var(--drift), 260px, 0) rotate(var(--spin)); }
2178
+ }
2179
+ @media (prefers-reduced-motion: reduce) { .srv-confetti { display: none; } }
2180
+
2181
+ /* Resolve is the one solid green action; Reopen is a quiet outlined one, so the two never look alike. */
2182
+ .ibx-pill.ibx-resolve--open { background: #12a150; border-color: #12a150; color: #fff; }
2183
+ .ibx-pill.ibx-resolve--open:hover { background: #0f8c45; border-color: #0f8c45; }
2184
+ .ibx-pill.ibx-resolve:not(.ibx-resolve--open) { background: #fff; background: var(--sc-surface); border-color: var(--sc-line); color: var(--sc-ink-2, #444); color: var(--sc-ink-2, color-mix(in srgb, #444 var(--sc-dk), #fff)); }
2185
+ .ibx-pill.ibx-resolve:not(.ibx-resolve--open):hover { background: var(--sc-soft); }
2186
+
2187
+ /* Website visitor conversations: what the visitor's widget showed under each AI answer. */
2188
+ .sc-visitor-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--sc-ink-3, #8a8a8a); color: var(--sc-ink-3, color-mix(in srgb, #8a8a8a var(--sc-dk), #fff)); }
2189
+ .sc-visitor-cta i { font-style: normal; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #16131d; background: var(--sc-strong, #16131d); color: #fff; color: var(--sc-on-strong, #fff); }
2190
+
2191
+ /* An email to the merchant that could not be sent: red, its words always shown, with Resend. */
2192
+ .sc-receipt--failed { color: #c4320a !important; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff) !important; }
2193
+ .sc-receipt--failed .sc-receipt-label { display: inline !important; opacity: 1 !important; max-width: none !important; color: #c4320a; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff); font-weight: 600; }
2194
+ .sc-resend { margin-left: 6px; border: 1px solid rgba(196, 50, 10, 0.4); border-radius: 999px; padding: 1px 9px; background: #fff; background: var(--sc-surface); color: #c4320a; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff); font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
2195
+ .sc-resend:hover { background: #fdecea; background: color-mix(in srgb, #fdecea var(--sc-tint), var(--sc-surface)); }
2196
+ .sc-resend:disabled { opacity: 0.5; cursor: default; }
2197
+
2198
+ /* Cards get the hover menu beside them, in the row's flow (before the card on our side). */
2199
+ .sc-macts--inline { position: static; transform: none; align-self: center; }
2200
+ .sc-row--merchant .sc-macts--inline { order: -1; }
2201
+ /* Lighter icons in the hover menu (the smiley read too dark). */
2202
+ .sc-macts button { color: #a0a0a8; }
2203
+ .sc-macts button:hover { color: var(--sc-ink, #303030); color: var(--sc-ink, var(--sc-ink-strong, #303030)); }
2204
+
2205
+ /* The team is online: a slim bar at the top of the chat, closable. */
2206
+ .av-line--online { background: rgba(34, 197, 94, 0.08); }
2207
+ .av-faces--small { display: inline-flex; }
2208
+ .av-faces--small .av-face + .av-face { margin-left: -6px; }
2209
+ .av-line-close { margin-left: auto; flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--sc-ink-3, #616161); color: var(--sc-ink-3, color-mix(in srgb, #616161 var(--sc-dk), #fff)); font-size: 17px; line-height: 1; cursor: pointer; }
2210
+ .av-line-close:hover { background: rgba(0, 0, 0, 0.06); background: rgba(var(--sc-overlay-rgb), 0.06); }
2211
+
2212
+ /* Recording a review the tracker missed, from the store panel. */
2213
+ .mi-review-add { margin-left: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: #0f5fc4; color: color-mix(in srgb, #0f5fc4 var(--sc-dk), #fff); cursor: pointer; }
2214
+ .mi-review-mark { display: grid; gap: 6px; }
2215
+ .mi-stars { display: inline-flex; gap: 2px; }
2216
+ .mi-stars button { border: 0; background: none; padding: 0 1px; font-size: 20px; line-height: 1; color: #d9d9e0; cursor: pointer; }
2217
+ .mi-stars button.on { color: #f5a623; color: color-mix(in srgb, #f5a623 var(--sc-dk), #fff); }
2218
+ .mi-review-mark textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--sc-line); border-radius: 8px; font: inherit; font-size: 13px; resize: vertical; }
2219
+ .mi-review-actions { display: flex; justify-content: flex-end; gap: 6px; }
2220
+ .mi-review-actions button { border: 1px solid var(--sc-line); border-radius: 8px; padding: 4px 10px; background: #fff; background: var(--sc-surface); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
2221
+ .mi-review-actions button[type="submit"] { background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); border-color: transparent; }
2222
+ .mi-review-actions button:disabled { opacity: 0.4; cursor: default; }
2223
+ .mi-review-error { font-size: 12px; color: #c4320a; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff); }
2224
+
2225
+ /* The online card, back to its own design, at the top of the chat: solid white, closable. */
2226
+ .av-card.av-card--top { margin: 0 auto 12px; background: #fff; background: var(--sc-surface); opacity: 1; backdrop-filter: none; -webkit-backdrop-filter: none; }
2227
+ .av-card--top .av-online-text { flex: 1; min-width: 0; }
2228
+
2229
+ /* The bubble alone, so the hover menu centres on it (reactions, files and cards below sit outside). */
2230
+ .sc-bubble-anchor { position: relative; display: flex; flex-direction: column; width: fit-content; max-width: 100%; }
2231
+ .sc-row--merchant .sc-bubble-anchor { align-self: flex-end; align-items: flex-end; }
2232
+ .sc-row--agent .sc-bubble-anchor { align-self: flex-start; }
2233
+ .sc-row--ai .sc-bubble-anchor { width: 100%; }
2234
+ /* The AI reads left aligned on either side, in the team view too (our side would push it right). */
2235
+ .sc-row--ai .sc-msg-stack, .sc-row--ai .sc-bubble-anchor { align-items: stretch; }
2236
+ .sc-row--ai .sc-bubble-anchor { align-self: stretch; }
2237
+ .sc-row--ai .sc-bubble { text-align: left; }
2238
+ .sc-row--ai .sc-reacts { justify-content: flex-start; }
2239
+
2240
+ /* The hello card's preview (chat closed): a small badge line, not a headline. */
2241
+ .mp-rich--help { align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #1a5fbf; color: color-mix(in srgb, #1a5fbf var(--sc-dk), #fff); }
2242
+ .mp-rich--help .mp-help-icon { width: 22px; height: 22px; border-radius: 7px; }
2243
+ .mp-rich--help .mp-help-icon svg { width: 13px; height: 13px; }
2244
+ .mp-rich.mp-rich--help { padding: 6px 10px; margin-top: 6px; }
2245
+ /* On the inbox's grey background the merchant's bubbles are white, so they do not melt into it. */
2246
+ .ibx-thread .sc-row--agent .sc-bubble:not(.sc-bubble--ai) { background: #fff; background: var(--sc-surface); border: 1px solid var(--sc-line); }
2247
+
2248
+ /* The preview's reply box: answer straight from the preview, like a chat composer. */
2249
+ .mp-reply { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; background: var(--sc-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: border-color 0.15s, box-shadow 0.15s; }
2250
+ .mp-reply:focus-within { border-color: #1673e0; box-shadow: 0 0 0 3px rgba(22, 115, 224, 0.15); }
2251
+ .mp-reply input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--sc-ink); }
2252
+ .mp-reply button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sc-soft); color: var(--sc-ink-3); cursor: pointer; transition: background 0.15s, color 0.15s; }
2253
+ .mp-reply button.mp-reply-send--on { background: var(--sc-ink); color: #fff; color: var(--sc-on-strong, #fff); }
2254
+
2255
+ /* A note's edit and delete sit at the right of its header, on hover (always on a touch screen). */
2256
+ .sc-note-head .sc-macts { margin-left: auto; box-shadow: none; background: transparent; padding: 0; }
2257
+ .sc-note:hover .sc-note-head .sc-macts, .sc-note-head .sc-macts--on { display: inline-flex; }
2258
+ @media (hover: none) { .sc-note-head .sc-macts { display: inline-flex; } }
2259
+ /* Reminder time of day: morning to night on the merchant's clock, or a time typed in. */
2260
+ .rm-time.rm-time--slots { flex-wrap: wrap; border-radius: 18px; }
2261
+ .rm-clock { align-self: flex-start; padding: 6px 10px; border: 1px solid var(--sc-line); border-radius: 10px; font: inherit; font-size: 13px; }
2262
+ /* Sneak peek: whether a teammate is writing a note or a reply to the merchant. */
2263
+ .sc-typing-kind { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e8f0fe; background: color-mix(in srgb, #e8f0fe var(--sc-tint), var(--sc-surface)); color: #2f5fb3; color: color-mix(in srgb, #2f5fb3 var(--sc-dk), #fff); font-style: normal; font-size: 11px; font-weight: 650; }
2264
+ .sc-typing-kind--note { background: #ffecd6; background: color-mix(in srgb, #ffecd6 var(--sc-tint), var(--sc-surface)); color: #9a5410; color: color-mix(in srgb, #9a5410 var(--sc-dk), #fff); }
2265
+
2266
+ /* Dark theme: the store's events (right bar Activity box and the chat) and the composer's highlights set their colours
2267
+ through their own variables, so they get dark values here. */
2268
+ html[data-theme="dark"] .sc-event { --ev: #9aa8b8; }
2269
+ html[data-theme="dark"] .sc-event--good { --ev: #5cc98a; }
2270
+ html[data-theme="dark"] .sc-event--bad { --ev: #f07a70; }
2271
+ html[data-theme="dark"] .sc-event--warn { --ev: #e3a24a; }
2272
+ html[data-theme="dark"] .sc-event--info { --ev: #9aa8b8; }
2273
+ html[data-theme="dark"] .sc-hl--code { --hl: rgba(255, 255, 255, 0.1); }
2274
+ html[data-theme="dark"] .sc-hl--block { --hl: rgba(255, 255, 255, 0.08); }
2275
+ html[data-theme="dark"] .sc-hl--offer { --hl: rgba(96, 140, 230, 0.28); }
2276
+ html[data-theme="dark"] .sc-hl--product { --hl: rgba(60, 170, 155, 0.28); }
2277
+ html[data-theme="dark"] .sc-hl--customer { --hl: rgba(120, 120, 230, 0.28); }
2278
+
2279
+ /* Set up (bottom left): a green tick for a live offer and widget, amber when half there, grey when neither. */
2280
+ .st-setup { position: absolute; left: -2px; bottom: -2px; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px var(--sc-surface); }
2281
+ .st-setup--done { background: #16a34a; }
2282
+ .st-setup--half { background: #f59e0b; }
2283
+ .st-setup--none { background: #c4c4cc; }
2284
+ .sc-row-av .st-setup { display: none; }
2285
+
2286
+ /* Images placed in the text: in the editor (dimmed while uploading) and in the sent message, where they stand. */
2287
+ .sc-rich-img { display: block; margin: 6px 0; }
2288
+ .sc-rich-img img { display: block; max-width: min(100%, 320px); max-height: 220px; border-radius: 10px; border: 1px solid var(--sc-line); }
2289
+ .sc-rich-img.ProseMirror-selectednode img { outline: 2px solid #1673e0; outline-offset: 2px; }
2290
+ .sc-rich-img--busy img { opacity: 0.5; }
2291
+ .sc-rich-img-name { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--sc-soft); font-size: 13px; color: var(--sc-ink-2); }
2292
+ .sc-inline-img { margin: 8px 0; }
2293
+ .sc-inline-img .sc-file-img { display: block; width: auto; height: auto; max-width: 100%; aspect-ratio: auto; padding: 0; background: transparent; }
2294
+ .sc-inline-img .sc-file-img img { display: block; width: auto; max-width: 100%; max-height: 420px; height: auto; object-fit: contain; border-radius: 10px; }
2295
+ .sc-inline-img .rc-skel { display: block; width: 240px; height: 160px; border-radius: 10px; }
2296
+ .sc-inline-img-name { margin: 6px 0; color: var(--sc-ink-2); font-size: 13px; }
2297
+ /* Undo on a deleted message: it comes back for the merchant too. */
2298
+ .sc-deleted-undo { align-self: flex-start; margin-top: 2px; padding: 2px 10px; border: 1px solid var(--sc-line); border-radius: 999px; background: var(--sc-surface); font: inherit; font-size: 12px; font-weight: 600; color: var(--sc-ink); cursor: pointer; }
2299
+ .sc-deleted--merchant .sc-deleted-undo { align-self: flex-end; }
2300
+ .sc-deleted-undo:hover { background: var(--sc-soft); }
2301
+ /* A draft asking for a review: the card it goes with, small, and the switch to send it without. */
2302
+ .sc-draft-cardrow { display: grid; gap: 6px; margin-top: 8px; }
2303
+ .sc-draft-peek { width: 300px; max-width: 100%; height: 222px; overflow: hidden; border-radius: 14px; pointer-events: none; }
2304
+ .sc-draft-peek > * { transform: scale(0.72); transform-origin: top left; width: 139%; }
2305
+ .sc-draft-card button { margin-left: 2px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #1673e0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
2306
+ /* "New messages" when one arrives while the reader is further up the chat. */
2307
+ .sc-newbelow-wrap { position: sticky; top: calc(100% - 56px); height: 0; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
2308
+ .sc-newbelow { pointer-events: auto; padding: 7px 14px; border: 0; border-radius: 999px; background: #1673e0; color: #fff; font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(60, 40, 160, 0.55); cursor: pointer; }
2309
+ .sc-newbelow:hover { background: #1673e0; }
2310
+ /* Under the team's first message: a person wrote it, not the AI. */
2311
+ .sc-human { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #eef4fe; background: color-mix(in srgb, #eef4fe var(--sc-tint), var(--sc-surface)); color: #174ea6; color: color-mix(in srgb, #174ea6 var(--sc-dk), #fff); font-size: 12px; font-weight: 600; }
2312
+ .sc-human svg { flex: none; color: #1a73e8; color: color-mix(in srgb, #1a73e8 var(--sc-dk), #fff); }
2313
+ .sc-row--merchant .sc-human { align-self: flex-end; }
2314
+ /* Touch: a long press lifts a message over a dimmed thread, reactions above and actions below (MessageActions). */
2315
+ @media (hover: none), (pointer: coarse) { .sc-lp { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
2316
+ .sc-pressing { scale: 0.96; transition: scale 0.33s ease-out; }
2317
+ .sc-lifted { transition: translate 0.34s cubic-bezier(0.25, 1.5, 0.5, 1), scale 0.34s cubic-bezier(0.25, 1.6, 0.5, 1); }
2318
+ /* Emojis pop in left to right, then the menu rows drop in one by one. Backwards fill keeps :active scale working. */
2319
+ .sc-ctx-bar button { animation: sc-ctx-emoji 0.34s cubic-bezier(0.25, 1.7, 0.5, 1) backwards; }
2320
+ .sc-ctx-bar button:nth-child(1) { animation-delay: 40ms; }
2321
+ .sc-ctx-bar button:nth-child(2) { animation-delay: 70ms; }
2322
+ .sc-ctx-bar button:nth-child(3) { animation-delay: 100ms; }
2323
+ .sc-ctx-bar button:nth-child(4) { animation-delay: 130ms; }
2324
+ .sc-ctx-bar button:nth-child(5) { animation-delay: 160ms; }
2325
+ .sc-ctx-bar button:nth-child(6) { animation-delay: 190ms; }
2326
+ .sc-ctx-menu > * { animation: sc-ctx-row 0.24s ease-out backwards; }
2327
+ .sc-ctx-menu > :nth-child(1) { animation-delay: 60ms; }
2328
+ .sc-ctx-menu > :nth-child(2) { animation-delay: 95ms; }
2329
+ .sc-ctx-menu > :nth-child(3) { animation-delay: 130ms; }
2330
+ .sc-ctx-menu > :nth-child(4) { animation-delay: 165ms; }
2331
+ .sc-ctx-menu > :nth-child(5) { animation-delay: 200ms; }
2332
+ @keyframes sc-ctx-emoji { from { opacity: 0; transform: translateY(8px) scale(0.4); } }
2333
+ @keyframes sc-ctx-row { from { opacity: 0; transform: translateY(-6px); } }
2334
+ .sc-ctx { position: fixed; inset: 0; z-index: 1000; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
2335
+ .sc-ctx-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); animation: sc-ctx-fade 0.18s ease-out both; transition: clip-path 0.26s cubic-bezier(0.25, 1.35, 0.5, 1); }
2336
+ html[data-theme="dark"] .sc-ctx-scrim { background: rgba(0, 0, 0, 0.62); }
2337
+ @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
2338
+ .sc-ctx-scrim { background: rgba(0, 0, 0, 0.24); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
2339
+ html[data-theme="dark"] .sc-ctx-scrim { background: rgba(0, 0, 0, 0.46); }
2340
+ }
2341
+ .sc-ctx-lift { position: absolute; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.38), 0 3px 10px rgba(0, 0, 0, 0.12); transition: left 0.26s cubic-bezier(0.25, 1.35, 0.5, 1), top 0.26s cubic-bezier(0.25, 1.35, 0.5, 1), width 0.26s cubic-bezier(0.25, 1.35, 0.5, 1), height 0.26s cubic-bezier(0.25, 1.35, 0.5, 1); }
2342
+ .sc-ctx-bar, .sc-ctx-menu { position: absolute; box-sizing: border-box; background: #fff; background: var(--sc-surface); color: var(--sc-ink); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05); }
2343
+ html[data-theme="dark"] .sc-ctx-bar, html[data-theme="dark"] .sc-ctx-menu { box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
2344
+ .sc-ctx .sc-ctx-bar { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05); }
2345
+ html[data-theme="dark"] .sc-ctx .sc-ctx-bar { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
2346
+ .sc-ctx-menu:focus { outline: none; }
2347
+ .sc-ctx-bar { display: flex; gap: 2px; padding: 4px; border-radius: 999px; transform-origin: 50% 100%; animation: sc-ctx-pop 0.22s cubic-bezier(0.25, 1.35, 0.5, 1) both; }
2348
+ .sc-ctx-bar button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; cursor: pointer; transition: transform 0.12s ease-out, background-color 0.12s; }
2349
+ .sc-ctx-bar button:active { transform: scale(1.22); }
2350
+ .sc-ctx-bar button[aria-checked="true"] { background: rgba(22, 115, 224, 0.16); box-shadow: inset 0 0 0 1.5px rgba(22, 115, 224, 0.5); }
2351
+ .sc-ctx-bar button:focus-visible { outline: 2px solid rgba(22, 115, 224, 0.7); outline-offset: -2px; }
2352
+ .sc-ctx-menu { min-width: 220px; max-width: calc(100vw - 32px); padding: 6px; border-radius: 16px; transform-origin: 50% 0; animation: sc-ctx-pop 0.22s cubic-bezier(0.25, 1.35, 0.5, 1) both; }
2353
+ .sc-ctx-menu--above { transform-origin: 50% 100%; }
2354
+ .sc-ctx-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
2355
+ .sc-ctx-item svg { flex: none; color: var(--sc-ink-2); }
2356
+ .sc-ctx-item:active, .sc-ctx-item:focus-visible { background: var(--sc-soft); outline: none; }
2357
+ .sc-ctx-item:disabled { opacity: 0.5; }
2358
+ .sc-ctx-item--done, .sc-ctx-item--done svg { color: #12a150; }
2359
+ .sc-ctx-item--done:disabled { opacity: 1; }
2360
+ .sc-ctx-danger, .sc-ctx-danger svg { color: #c4320a; color: color-mix(in srgb, #c4320a var(--sc-dk), #fff); }
2361
+ .sc-ctx-sep { height: 1px; margin: 4px 8px; background: var(--sc-line); }
2362
+ .sc-ctx-ask { margin: 8px 12px 6px; font-size: 14px; font-weight: 600; color: var(--sc-ink-2); }
2363
+ .sc-ctx--arming .sc-ctx-bar, .sc-ctx--arming .sc-ctx-menu { pointer-events: none; }
2364
+ @keyframes sc-ctx-pop { from { opacity: 0; transform: scale(0.9); } }
2365
+ @keyframes sc-ctx-fade { from { opacity: 0; } }
2366
+ @media (prefers-reduced-motion: reduce) {
2367
+ .sc-lifted, .sc-ctx-scrim, .sc-ctx-lift, .sc-ctx-bar button { transition: none; }
2368
+ .sc-pressing { scale: none; transition: none; }
2369
+ .sc-ctx-bar button, .sc-ctx-menu > * { animation: none; }
2370
+ .sc-ctx-scrim, .sc-ctx-bar, .sc-ctx-menu { animation: none; }
2371
+ .sc-ctx-bar button:active { transform: none; }
2372
+ }
2373
+
2374
+ /* A workspace's own accent (Customize page), in the merchant's view only: none of this applies when it is unset. */
2375
+ .sc-themed .sc-row--merchant .sc-bubble { background: var(--sc-accent); color: var(--sc-on-accent); }
2376
+ .sc-themed .sc-row--merchant .sc-bubble a { color: inherit; text-decoration: underline; }
2377
+ .sc-themed .sc-row--agent .sc-bubble a { color: var(--sc-accent-link); }
2378
+ .sc-themed .sc-send:not(:disabled) { background: var(--sc-accent); color: var(--sc-on-accent); }
2379
+ .sc-themed .sc-send:not(:disabled):hover { background: var(--sc-accent-hover); }
2380
+ .sc-themed .srv-primary { background: var(--sc-accent); color: var(--sc-on-accent); }
2381
+
2382
+ /* Files in messages: an image keeps its shape up to a size, shimmers while it loads, and a missing one is a tidy card. */
2383
+ .sc-file-img { position: relative; }
2384
+ .sc-file-img--loading img { position: absolute; inset: 0; opacity: 0; }
2385
+ .sc-file-grid--1 .sc-file-img { max-width: 100%; }
2386
+ .sc-file-grid--1 .sc-file-img img { width: auto; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; }
2387
+ .sc-file-grid--1 .sc-file-img--loading { width: 240px; height: 170px; max-width: 100%; }
2388
+ .sc-inline-img .sc-file-img--loading { width: 240px; height: 160px; max-width: 100%; }
2389
+ .sc-file-img--missing { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-width: 160px; min-height: 96px; padding: 14px; border-radius: 12px; border: 1px dashed var(--sc-line); background: var(--sc-soft); color: var(--sc-ink-3); font-size: 12px; text-align: center; cursor: default; aspect-ratio: auto; }
2390
+ .sc-file-video { position: relative; display: block; width: 100%; max-width: 360px; padding: 0; border: 0; cursor: pointer; }
2391
+ .sc-file-video video { pointer-events: none; }
2392
+ .sc-file-video .rc-skel { min-height: 160px; }
2393
+ .sc-file-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; transition: transform 0.15s, background 0.15s; }
2394
+ .sc-file-video:hover .sc-file-play { transform: scale(1.06); background: rgba(0, 0, 0, 0.7); }
2395
+ .sc-file-video:focus-visible, .sc-file-img:focus-visible { outline: 2px solid var(--sc-accent, #6a46f0); outline-offset: 2px; }
2396
+
2397
+ /* The viewer: images and videos over the chat, never a new tab (which breaks inside the Shopify admin's frame). */
2398
+ .sc-lb { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: rgba(10, 10, 12, 0.92); color: #fff; animation: sc-lb-in 0.16s ease-out both; touch-action: pan-y; }
2399
+ @keyframes sc-lb-in { from { opacity: 0; } to { opacity: 1; } }
2400
+ .sc-lb-bar { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
2401
+ .sc-lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
2402
+ .sc-lb-count { margin-left: 10px; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
2403
+ .sc-lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
2404
+ .sc-lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
2405
+ .sc-lb-btn:focus-visible, .sc-lb-nav:focus-visible, .sc-lb-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
2406
+ .sc-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 64px calc(24px + env(safe-area-inset-bottom, 0px)); }
2407
+ .sc-lb-img, .sc-lb-video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
2408
+ .sc-lb-video { background: #000; }
2409
+ .sc-lb-hidden { position: absolute; opacity: 0; pointer-events: none; }
2410
+ .sc-lb-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: sc-lb-spin 0.8s linear infinite; }
2411
+ @keyframes sc-lb-spin { to { transform: rotate(360deg); } }
2412
+ .sc-lb-missing { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.8); text-align: center; }
2413
+ .sc-lb-missing p { margin: 0; font-size: 14px; }
2414
+ .sc-lb-open { padding: 8px 16px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 600; text-decoration: none; }
2415
+ .sc-lb-nav { position: absolute; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
2416
+ .sc-lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
2417
+ .sc-lb-nav--prev { left: 12px; }
2418
+ .sc-lb-nav--next { right: 12px; }
2419
+ @media (max-width: 600px) {
2420
+ .sc-lb-stage { padding: 4px 8px calc(16px + env(safe-area-inset-bottom, 0px)); }
2421
+ .sc-lb-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-top: 0; background: rgba(0, 0, 0, 0.45); }
2422
+ }
2423
+ @media (prefers-reduced-motion: reduce) { .sc-lb, .sc-lb-spinner { animation: none; } }
2424
+
2425
+ /* A link in the team's composer: the badge it will be sent as, one piece. */
2426
+ /* No user-select: all here: Chrome then draws no caret beside the chip (ProseMirror selects it whole anyway). */
2427
+ .sc-rich-link { display: inline; white-space: nowrap; cursor: default; }
2428
+ .sc-rich-link .sc-app-link, .sc-rich-link .sc-admin-link, .sc-rich-link .sc-link { pointer-events: none; vertical-align: middle; margin: 0; }
2429
+ /* The caret paints above the placeholder, which otherwise covers it in an empty composer. */
2430
+ .sc-rich .sc-rich-input { position: relative; z-index: 1; }
2431
+ .sc-rich-link.ProseMirror-selectednode > * { outline: 2px solid var(--sc-accent, #6a46f0); outline-offset: 1px; border-radius: 6px; }
2432
+
2433
+ /* The link button's list. */
2434
+ .ct-links { width: min(380px, calc(100vw - 40px)); }
2435
+ .ct-links-list { max-height: 300px; margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; }
2436
+ .ct-links-group + .ct-links-group { margin-top: 6px; }
2437
+ .ct-links-head { position: sticky; top: 0; margin: 0; padding: 4px 8px; background: var(--sc-surface, #fff); font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--sc-ink-3); text-transform: uppercase; }
2438
+ .ct-link { display: block; box-sizing: border-box; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--sc-ink, #0d0d0d); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2439
+ .ct-link--on { background: var(--sc-soft, #f4f4f5); }
2440
+ .ct-links-empty { margin: 10px 8px; color: var(--sc-ink-3); font-size: 13px; }
2441
+ .sc-lb-spinner--over { position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px; pointer-events: none; }
2442
+ /* A saved reply's apps (workspaces with two or more apps). */
2443
+ .sci-apps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; border: 0; }
2444
+ .sci-apps legend { width: 100%; margin-bottom: 4px; padding: 0; font-weight: 600; }
2445
+ .sci-app { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
2446
+ .sci-apps small { width: 100%; color: var(--sc-ink-3); }
2447
+
2448
+ /* Custom cards: an app's own card, drawn from its tree (CustomCard.tsx) */
2449
+ .cc-card { --cc-good: color-mix(in srgb, #137333 var(--sc-dk), #fff); --cc-warn: color-mix(in srgb, #8a4b00 var(--sc-dk), #fff); --cc-bad: color-mix(in srgb, #b3261e var(--sc-dk), #fff); --cc-accent: color-mix(in srgb, #a3218e var(--sc-dk), #fff); --cc-good-bg: color-mix(in srgb, #e6f4ea var(--sc-tint), var(--sc-surface)); --cc-warn-bg: color-mix(in srgb, #fef3e0 var(--sc-tint), var(--sc-surface)); --cc-bad-bg: color-mix(in srgb, #fce8e6 var(--sc-tint), var(--sc-surface)); --cc-accent-bg: color-mix(in srgb, #fbe7f7 var(--sc-tint), var(--sc-surface)); --cc-gradient: linear-gradient(100deg, #ff6b2c, #f2506a 38%, #e040c8 70%, #a53af0); --cc-gradient-soft: linear-gradient(120deg, rgba(255, 107, 44, 0.08), rgba(224, 64, 200, 0.07) 55%, rgba(165, 58, 240, 0.1)); }
2450
+ .cc-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
2451
+ .cc-image--sized { flex: none; max-height: none; object-fit: cover; }
2452
+ .cc-meter { position: relative; height: 8px; margin: 8px 0 4px; border-radius: 999px; background: rgba(var(--sc-overlay-rgb, 0, 0, 0), 0.07); }
2453
+ .cc-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--cc-gradient); }
2454
+ .cc-meter-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sc-surface); box-shadow: 0 0 0 3px #e040c8, 0 4px 10px rgba(224, 64, 200, 0.45); }
2455
+ .cc-meter.cc-tone--good .cc-meter-fill { background: var(--cc-good); }
2456
+ .cc-meter.cc-tone--warn .cc-meter-fill { background: var(--cc-warn); }
2457
+ .cc-meter.cc-tone--bad .cc-meter-fill { background: var(--cc-bad); }
2458
+ .cc-meter.cc-tone--accent .cc-meter-fill { background: var(--cc-accent); }
2459
+ .cc-meter[class*="cc-tone--"] .cc-meter-dot { box-shadow: 0 0 0 3px currentColor; }
2460
+ .cc-item .cc-badge { align-self: center; flex: none; }
2461
+ .cc-item { align-items: center; }
2462
+ .cc-card { box-sizing: border-box; width: min(100%, 380px); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; border: 1px solid var(--sc-line); background: #fff; background: var(--sc-surface); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.25); color: var(--sc-ink); animation: srv-rise 0.35s ease-out both; }
2463
+ .cc-title { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.3; }
2464
+ .cc-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sc-ink-2); white-space: pre-wrap; }
2465
+ .cc-hint { display: block; font-size: 12px; font-weight: 400; color: var(--sc-ink-3); }
2466
+ .cc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
2467
+ .cc-row > .cc-stat { flex: 1 1 0; min-width: 90px; }
2468
+ .cc-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--sc-soft); }
2469
+ .cc-stat-label { font-size: 12px; color: var(--sc-ink-3); }
2470
+ .cc-stat-value { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
2471
+ .cc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
2472
+ .cc-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--sc-line); }
2473
+ .cc-item:first-child { border-top: 0; padding-top: 0; }
2474
+ .cc-item:last-child { padding-bottom: 0; }
2475
+ .cc-item strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
2476
+ .cc-image { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; background: var(--sc-soft); }
2477
+ .cc-badge { align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sc-soft); color: var(--sc-ink-2); }
2478
+ .cc-button { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
2479
+ .cc-card > .cc-button { align-self: stretch; }
2480
+ .cc-button:hover { background: var(--sc-soft); }
2481
+ .cc-button--accent { border-color: transparent; background: var(--sc-accent, var(--sc-ink)); color: var(--sc-on-accent, var(--sc-surface)); }
2482
+ .cc-button--accent:hover { background: var(--sc-accent-hover, var(--sc-accent, var(--sc-ink))); }
2483
+ .mp-rich--custom .cc-card { width: 100%; box-shadow: none; animation: none; }
2484
+ /* Gradient: the brand's gradient as the border only, the button itself plain. */
2485
+ .cc-button--gradient { border: 2px solid transparent; color: var(--sc-ink); background: linear-gradient(var(--sc-surface), var(--sc-surface)) padding-box, var(--sc-grad, linear-gradient(100deg, #ff6b2c, #f2506a 38%, #e040c8 70%, #a53af0)) border-box; }
2486
+ .cc-button--gradient:hover { background: linear-gradient(var(--sc-soft), var(--sc-soft)) padding-box, var(--sc-grad, linear-gradient(100deg, #ff6b2c, #f2506a 38%, #e040c8 70%, #a53af0)) border-box; }
2487
+ .cc-divider { margin: 2px 0; border: 0; border-top: 1px solid var(--sc-line); }
2488
+ .cc-tone--good.cc-badge, .cc-tone--good.cc-stat { background: color-mix(in srgb, #e6f4ea var(--sc-tint), var(--sc-surface)); }
2489
+ .cc-tone--good, .cc-tone--good .cc-stat-value { color: color-mix(in srgb, #137333 var(--sc-dk), #fff); }
2490
+ .cc-tone--warn.cc-badge, .cc-tone--warn.cc-stat { background: color-mix(in srgb, #fef3e0 var(--sc-tint), var(--sc-surface)); }
2491
+ .cc-tone--warn, .cc-tone--warn .cc-stat-value { color: color-mix(in srgb, #8a4b00 var(--sc-dk), #fff); }
2492
+ .cc-tone--bad.cc-badge, .cc-tone--bad.cc-stat { background: color-mix(in srgb, #fce8e6 var(--sc-tint), var(--sc-surface)); }
2493
+ .cc-tone--bad, .cc-tone--bad .cc-stat-value { color: color-mix(in srgb, #b3261e var(--sc-dk), #fff); }
2494
+ .cc-tone--accent.cc-badge, .cc-tone--accent.cc-stat { background: color-mix(in srgb, #fbe7f7 var(--sc-tint), var(--sc-surface)); }
2495
+ .cc-tone--accent, .cc-tone--accent .cc-stat-value { color: color-mix(in srgb, #a3218e var(--sc-dk), #fff); }
2496
+
2497
+ /* A link the merchant clicked (team only): a blue check on white, after plain words or inside a badge. */
2498
+ .sc-opened-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 3px; vertical-align: -3px; border-radius: 50%; background: #fff; background: var(--sc-surface); box-shadow: 0 0 0 1px var(--sc-line); color: #1673e0; color: color-mix(in srgb, #1673e0 var(--sc-dk), #fff); cursor: default; }
2499
+ .sc-opened-mark--in { width: 14px; height: 14px; margin-left: 1px; vertical-align: 0; box-shadow: none; }
2500
+ .cc-item-main { flex: 1; min-width: 0; }
2501
+ .cc-list--spaced .cc-item, .cc-list--spaced .cc-item:first-child, .cc-list--spaced .cc-item:last-child { border-top: 0; padding: 8px 10px; border-radius: 10px; }
2502
+
2503
+ /* A note's actions sit left of its time and only show on hover, so the note never grows and its time stays at the
2504
+ right edge; their 28px buttons overhang the 18px header instead of stretching it. */
2505
+ .sc-note-head .sc-macts + span { margin-left: 0; }
2506
+ @media (hover: hover) {
2507
+ .sc-note-head .sc-macts { display: inline-flex; visibility: hidden; margin: -6px 0 -6px auto; }
2508
+ .sc-note:hover .sc-note-head .sc-macts, .sc-note-head .sc-macts--on { visibility: visible; }
2509
+ }
2510
+
2511
+ /* "Email me a transcript" in a chat header: an icon button, then a small card that asks first. */
2512
+ .sc-tr { position: relative; display: inline-flex; }
2513
+ .sc-tr-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
2514
+ .sc-tr-btn:hover { background: var(--sc-soft); }
2515
+ .sc-tr-scrim { position: fixed; inset: 0; z-index: 40; }
2516
+ .sc-tr-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 41; box-sizing: border-box; width: 260px; padding: 14px; border-radius: 16px; background: #fff; background: var(--sc-surface); color: var(--sc-ink); text-align: left; box-shadow: 0 20px 44px -16px rgba(13, 13, 13, 0.35), 0 0 0 1px rgba(13, 13, 13, 0.06); display: flex; flex-direction: column; gap: 8px; animation: mp-in 0.2s ease-out both; }
2517
+ .sc-tr-pop strong { font-size: 14px; }
2518
+ .sc-tr-pop p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--sc-ink-2); }
2519
+ .sc-tr-pop .sc-tr-err { color: #b3261e; color: color-mix(in srgb, #b3261e var(--sc-dk), #fff); }
2520
+ .sc-tr-pop .sc-tr-done { color: var(--sc-ink); }
2521
+ .sc-tr-send { align-self: flex-start; padding: 8px 16px; border: 0; border-radius: 999px; background: #1673e0; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
2522
+ .sc-tr-send:disabled { opacity: 0.6; cursor: default; }