@magicfeedback/popup-sdk 1.18.0 → 1.20.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 (55) hide show
  1. package/MagicfeedbackPopupSdk.podspec +18 -0
  2. package/README.md +23 -0
  3. package/dist/2.2.38-CCK7SF4A.mjs +2343 -0
  4. package/dist/2.2.38-CCK7SF4A.mjs.map +1 -0
  5. package/dist/2.2.38-LGZRM7GX.mjs +2343 -0
  6. package/dist/2.2.38-LGZRM7GX.mjs.map +1 -0
  7. package/dist/2.2.39-BJJ3YRJ4.mjs +2344 -0
  8. package/dist/2.2.39-BJJ3YRJ4.mjs.map +1 -0
  9. package/dist/2.2.39-HPNDYUPP.mjs +2344 -0
  10. package/dist/2.2.39-HPNDYUPP.mjs.map +1 -0
  11. package/dist/assets/assets/style.css +107 -1
  12. package/dist/assets/assets/survey-css/2.2.38.css +2335 -0
  13. package/dist/assets/assets/survey-css/2.2.39.css +2336 -0
  14. package/dist/chunk-3QS3WKRC.mjs +31 -0
  15. package/dist/chunk-3QS3WKRC.mjs.map +1 -0
  16. package/dist/chunk-BJTO5JO5.mjs +11 -0
  17. package/dist/chunk-BJTO5JO5.mjs.map +1 -0
  18. package/dist/{chunk-DNBFTJCA.mjs → chunk-FROREHRG.mjs} +516 -52
  19. package/dist/chunk-FROREHRG.mjs.map +1 -0
  20. package/dist/{chunk-7ZVOPIWE.mjs → chunk-OPR5I7WO.mjs} +557 -11
  21. package/dist/chunk-OPR5I7WO.mjs.map +1 -0
  22. package/dist/chunk-ZJ5HG3QF.mjs +3357 -0
  23. package/dist/chunk-ZJ5HG3QF.mjs.map +1 -0
  24. package/dist/index.d.mts +217 -9
  25. package/dist/index.d.ts +217 -9
  26. package/dist/index.js +7253 -1519
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +389 -49
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/index.native.d.mts +1681 -0
  31. package/dist/index.native.d.ts +1681 -0
  32. package/dist/index.native.js +15972 -0
  33. package/dist/index.native.js.map +1 -0
  34. package/dist/index.native.mjs +4011 -0
  35. package/dist/index.native.mjs.map +1 -0
  36. package/dist/react-native.d.mts +113 -7
  37. package/dist/react-native.d.ts +113 -7
  38. package/dist/react-native.js +5846 -162
  39. package/dist/react-native.js.map +1 -1
  40. package/dist/react-native.mjs +396 -51
  41. package/dist/react-native.mjs.map +1 -1
  42. package/dist/{renderPopup-B6VIV4VS.mjs → renderPopup-I6CPIR75.mjs} +133 -6
  43. package/dist/renderPopup-I6CPIR75.mjs.map +1 -0
  44. package/dist/renderPopup-RUY3OBYV.mjs +3847 -0
  45. package/dist/renderPopup-RUY3OBYV.mjs.map +1 -0
  46. package/dist/renderPopup-XNVNP2ZU.mjs +3847 -0
  47. package/dist/renderPopup-XNVNP2ZU.mjs.map +1 -0
  48. package/ios/DeepdotsBackgroundTask.m +71 -0
  49. package/package.json +14 -5
  50. package/react-native.config.js +9 -0
  51. package/dist/chunk-7ZVOPIWE.mjs.map +0 -1
  52. package/dist/chunk-DNBFTJCA.mjs.map +0 -1
  53. package/dist/renderPopup-B6VIV4VS.mjs.map +0 -1
  54. package/dist/renderPopup-BKZPAZZG.mjs +0 -3682
  55. package/dist/renderPopup-BKZPAZZG.mjs.map +0 -1
@@ -0,0 +1,2335 @@
1
+ /**
2
+ * NO EDITAR A MANO — generado por scripts/vendor-survey-css.mjs
3
+ *
4
+ * Copia de @magicfeedback/native@2.2.38 → dist/styles/magicfeedback-default.css
5
+ * (la hoja canónica del paquete, la que apunta su campo "style"), con estos cambios locales:
6
+ *
7
+ * 1. Sin el @import de Google Fonts (Nunito): no queremos una petición externa desde la
8
+ * página del host, y la tipografía la decide el popup.
9
+ * 2. .magicfeedback-container hereda la fuente del popup (var(--deepdots-font, inherit)).
10
+ * 3. Los selectores desnudos (h2, p, input, textarea, select, ::placeholder, .error) van
11
+ * acotados a .deepdots-popup: este CSS se inyecta en el <head> del host y sin acotar
12
+ * repintaría su web.
13
+ * 4. El grupo .magicfeedback-radio se cualifica como div.magicfeedback-radio (la clase acaba
14
+ * también en el <input> del boolean).
15
+ * 5. Todo :hover va dentro de @media (hover: hover): en táctil WebKit deja el hover pegado
16
+ * en el último punto tocado y la opción de la página siguiente parecía seleccionada.
17
+ * 6. Al final, un bloque de reglas propias del popup (fuente en los controles y padding del
18
+ * radio nativo).
19
+ *
20
+ * Las variables --mf-* se dejan en :root a propósito: el modal del priority-list se portea a
21
+ * <body>, fuera de .deepdots-popup, y ahí las necesita.
22
+ *
23
+ * Para subir de versión: npm i @magicfeedback/native@<v> && node scripts/vendor-survey-css.mjs
24
+ */
25
+
26
+ /**
27
+ * @magicfeedback/native - Default Styles
28
+ * Clean, minimal, and elegant survey rendering
29
+ */
30
+
31
+ /* @import de Google Fonts (Nunito) eliminado al vendorizar: la fuente la pone el popup. */
32
+
33
+ /* ========================================
34
+ CSS VARIABLES - Design SYSTEM
35
+ ======================================== */
36
+ :root {
37
+ /* Colors - Minimal Pastel */
38
+ /* --mf-primary is the one source of truth for brand/accent color —
39
+ every token below derives from it via color-mix() (or references
40
+ it directly) so changing this single value, here or via a
41
+ per-integration override, keeps hover/light/border states in
42
+ sync automatically instead of going stale independently. Scoped
43
+ to genuinely interactive/accent surfaces (buttons, selected
44
+ chips, focus rings) — general body text stays on its own neutral
45
+ scale below, not tied to the brand color. */
46
+ --mf-primary: #5d7bad;
47
+ --mf-primary-hover: color-mix(in srgb, var(--mf-primary) 85%, black);
48
+ --mf-primary-light: color-mix(in srgb, var(--mf-primary) 15%, white);
49
+ /* a translucent tint — mixed with transparent (opacity), not white,
50
+ so it reads as a soft shadow of the brand color rather than a
51
+ pastel of it. */
52
+ --mf-primary-border: color-mix(in srgb, var(--mf-primary) 35%, transparent);
53
+
54
+ --mf-text-primary: #1E293B;
55
+ --mf-text-secondary: #475569;
56
+ --mf-text-muted: #94A3B8;
57
+
58
+ --mf-bg-primary: #F8FAFC;
59
+ --mf-bg-secondary: #FFFFFF;
60
+ --mf-bg-hover: #EEF2F6;
61
+
62
+ --mf-border: #E2E8F0;
63
+ --mf-border-focus: var(--mf-primary);
64
+
65
+ --mf-success: #16A34A;
66
+ --mf-error: #EF4444;
67
+ --mf-warning: #F59E0B;
68
+
69
+ --mf-surface: #FFFFFF;
70
+ --mf-surface-alt: #F1F5F9;
71
+ --mf-accent: #38BDF8;
72
+
73
+ /* Spacing */
74
+ --mf-space-xs: 0.25rem;
75
+ --mf-space-sm: 0.5rem;
76
+ --mf-space-md: 0.75rem;
77
+ --mf-space-lg: 1rem;
78
+ --mf-space-xl: 1.5rem;
79
+
80
+ /* Border Radius */
81
+ --mf-radius-sm: 0.5rem;
82
+ --mf-radius-md: 0.75rem;
83
+ --mf-radius-lg: 1.25rem;
84
+ --mf-radius-full: 9999px;
85
+
86
+ /* Shadows */
87
+ --mf-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
88
+ --mf-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
89
+ --mf-shadow-lg: 0 16px 30px rgba(15, 23, 42, 0.12);
90
+ --mf-shadow-focus: 0 0 0 3px rgba(30, 41, 59, 0.15);
91
+ --mf-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
92
+
93
+ /* Typography */
94
+ --mf-font-sans: "Nunito", "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
95
+ --mf-font-size-sm: 0.875rem;
96
+ --mf-font-size-base: 1rem;
97
+ --mf-font-size-lg: 1.125rem;
98
+ --mf-font-size-xl: 1.25rem;
99
+ --mf-line-height: 1.6;
100
+
101
+ /* Font Weights */
102
+ --mf-font-weight-normal: 400;
103
+ --mf-font-weight-medium: 500;
104
+ --mf-font-weight-semibold: 600;
105
+ --mf-font-weight-bold: 700;
106
+ --mf-font-weight-extrabold: 800;
107
+
108
+ /* Transitions */
109
+ --mf-transition: all 0.2s ease;
110
+ --mf-transition-fast: all 0.15s ease;
111
+ }
112
+
113
+ /* ========================================
114
+ ANIMATIONS
115
+ ======================================== */
116
+ @keyframes mf-fade-in {
117
+ from {
118
+ opacity: 0;
119
+ transform: translateY(8px);
120
+ }
121
+ to {
122
+ opacity: 1;
123
+ transform: translateY(0);
124
+ }
125
+ }
126
+
127
+ @keyframes mf-slide-in {
128
+ from {
129
+ opacity: 0;
130
+ transform: translateX(-16px);
131
+ }
132
+ to {
133
+ opacity: 1;
134
+ transform: translateX(0);
135
+ }
136
+ }
137
+
138
+ @keyframes mf-scale-in {
139
+ from {
140
+ opacity: 0;
141
+ transform: scale(0.95);
142
+ }
143
+ to {
144
+ opacity: 1;
145
+ transform: scale(1);
146
+ }
147
+ }
148
+
149
+ @keyframes mf-pulse {
150
+ 0%,
151
+ 100% {
152
+ opacity: 1;
153
+ }
154
+ 50% {
155
+ opacity: 0.8;
156
+ }
157
+ }
158
+
159
+ /* ========================================
160
+ BASE CONTAINER
161
+ ======================================== */
162
+ .magicfeedback-container {
163
+ /* Local: hereda la fuente del popup; --deepdots-font viene de PopupStyle.font. */
164
+ font-family: var(--deepdots-font, inherit);
165
+ color: var(--mf-text-primary);
166
+ line-height: var(--mf-line-height);
167
+ animation: mf-fade-in 0.4s ease-out;
168
+ border-radius: var(--mf-radius-lg);
169
+ }
170
+
171
+ /* ========================================
172
+ MESSAGES
173
+ ======================================== */
174
+ .magicfeedback-success-message,
175
+ .magicfeedback-info-message,
176
+ .magicfeedback-start-message {
177
+ padding: var(--mf-space-lg);
178
+ margin: var(--mf-space-lg) 0;
179
+ animation: mf-scale-in 0.3s ease-out;
180
+ }
181
+
182
+ /* .magicfeedback-info-message/-start-message are set via innerHTML (see
183
+ renderInfoPage.ts / questions.service.ts's renderStartMessage) — whatever
184
+ rich text a survey author writes lands here as real HTML, not just the
185
+ <p>/<img> pair this used to style. Covering the rest of what a rich-text
186
+ editor commonly outputs (headings, lists, links, emphasis, quotes, code,
187
+ rules) keeps that content on the same type scale and palette as the rest
188
+ of the widget instead of falling back to unstyled browser defaults. */
189
+ .magicfeedback-success-message > :first-child,
190
+ .magicfeedback-info-message > :first-child,
191
+ .magicfeedback-start-message > :first-child {
192
+ margin-top: 0;
193
+ }
194
+
195
+ .magicfeedback-success-message > :last-child,
196
+ .magicfeedback-info-message > :last-child,
197
+ .magicfeedback-start-message > :last-child {
198
+ margin-bottom: 0;
199
+ }
200
+
201
+ .magicfeedback-success-message p,
202
+ .magicfeedback-info-message p,
203
+ .magicfeedback-start-message p {
204
+ font-size: var(--mf-font-size-base);
205
+ color: var(--mf-text-secondary);
206
+ margin: 0 0 var(--mf-space-md);
207
+ line-height: var(--mf-line-height);
208
+ }
209
+
210
+ .magicfeedback-info-message h1,
211
+ .magicfeedback-info-message h2,
212
+ .magicfeedback-info-message h3,
213
+ .magicfeedback-info-message h4,
214
+ .magicfeedback-info-message h5,
215
+ .magicfeedback-info-message h6,
216
+ .magicfeedback-start-message h1,
217
+ .magicfeedback-start-message h2,
218
+ .magicfeedback-start-message h3,
219
+ .magicfeedback-start-message h4,
220
+ .magicfeedback-start-message h5,
221
+ .magicfeedback-start-message h6 {
222
+ color: var(--mf-text-primary);
223
+ font-weight: var(--mf-font-weight-bold);
224
+ line-height: 1.3;
225
+ margin: var(--mf-space-lg) 0 var(--mf-space-sm);
226
+ text-align: start;
227
+ }
228
+
229
+ .magicfeedback-info-message h1, .magicfeedback-start-message h1 { font-size: var(--mf-font-size-xl); }
230
+ .magicfeedback-info-message h2, .magicfeedback-start-message h2 { font-size: var(--mf-font-size-lg); }
231
+ .magicfeedback-info-message h3,
232
+ .magicfeedback-info-message h4,
233
+ .magicfeedback-info-message h5,
234
+ .magicfeedback-info-message h6,
235
+ .magicfeedback-start-message h3,
236
+ .magicfeedback-start-message h4,
237
+ .magicfeedback-start-message h5,
238
+ .magicfeedback-start-message h6 { font-size: var(--mf-font-size-base); }
239
+
240
+ .magicfeedback-info-message strong,
241
+ .magicfeedback-info-message b,
242
+ .magicfeedback-start-message strong,
243
+ .magicfeedback-start-message b {
244
+ font-weight: var(--mf-font-weight-bold);
245
+ color: var(--mf-text-primary);
246
+ }
247
+
248
+ .magicfeedback-info-message a,
249
+ .magicfeedback-start-message a {
250
+ color: var(--mf-primary);
251
+ text-decoration: underline;
252
+ text-underline-offset: 2px;
253
+ }
254
+
255
+ @media (hover: hover) {
256
+ .magicfeedback-info-message a:hover,
257
+ .magicfeedback-start-message a:hover {
258
+ color: var(--mf-primary-hover);
259
+ }
260
+ }
261
+
262
+ .magicfeedback-info-message ul,
263
+ .magicfeedback-info-message ol,
264
+ .magicfeedback-start-message ul,
265
+ .magicfeedback-start-message ol {
266
+ margin: 0 0 var(--mf-space-md);
267
+ padding-inline-start: var(--mf-space-xl);
268
+ color: var(--mf-text-secondary);
269
+ line-height: var(--mf-line-height);
270
+ }
271
+
272
+ .magicfeedback-info-message li + li,
273
+ .magicfeedback-start-message li + li {
274
+ margin-top: var(--mf-space-xs);
275
+ }
276
+
277
+ .magicfeedback-info-message blockquote,
278
+ .magicfeedback-start-message blockquote {
279
+ margin: 0 0 var(--mf-space-md);
280
+ padding: var(--mf-space-sm) var(--mf-space-md);
281
+ border-inline-start: 3px solid var(--mf-primary-border);
282
+ color: var(--mf-text-secondary);
283
+ font-style: italic;
284
+ }
285
+
286
+ .magicfeedback-info-message code,
287
+ .magicfeedback-start-message code {
288
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
289
+ font-size: 0.9em;
290
+ background: var(--mf-bg-hover);
291
+ padding: 0.15em 0.4em;
292
+ border-radius: var(--mf-radius-sm);
293
+ }
294
+
295
+ .magicfeedback-info-message pre,
296
+ .magicfeedback-start-message pre {
297
+ margin: 0 0 var(--mf-space-md);
298
+ padding: var(--mf-space-md);
299
+ background: var(--mf-bg-hover);
300
+ border-radius: var(--mf-radius-md);
301
+ overflow-x: auto;
302
+ }
303
+
304
+ .magicfeedback-info-message pre code,
305
+ .magicfeedback-start-message pre code {
306
+ background: none;
307
+ padding: 0;
308
+ }
309
+
310
+ .magicfeedback-info-message hr,
311
+ .magicfeedback-start-message hr {
312
+ border: none;
313
+ border-top: 1px solid var(--mf-border);
314
+ margin: var(--mf-space-lg) 0;
315
+ }
316
+
317
+ .magicfeedback-success-message img,
318
+ .magicfeedback-info-message img,
319
+ .magicfeedback-start-message img {
320
+ max-width: 100%;
321
+ height: auto;
322
+ margin: var(--mf-space-lg) auto;
323
+ display: block;
324
+ border-radius: var(--mf-radius-md);
325
+ }
326
+
327
+ .magicfeedback-image {
328
+ max-height: 400px;
329
+ height: auto;
330
+ max-width: 100%;
331
+ margin: var(--mf-space-lg) auto;
332
+ display: block;
333
+ border-radius: var(--mf-radius-md);
334
+ }
335
+
336
+ /* ========================================
337
+ FORM STRUCTURE
338
+ ======================================== */
339
+ .magicfeedback-form {
340
+ display: flex;
341
+ flex-direction: column;
342
+ gap: var(--mf-space-lg);
343
+ padding: clamp(16px, 2.5vw, 28px);
344
+ }
345
+
346
+ .magicfeedback-questions {
347
+ display: flex;
348
+ flex-direction: column;
349
+ gap: var(--mf-space-xl);
350
+ width: 100%;
351
+ }
352
+
353
+ .magicfeedback-div {
354
+ display: flex;
355
+ flex-direction: column;
356
+ gap: var(--mf-space-sm);
357
+ animation: mf-slide-in 0.3s ease-out;
358
+ background: var(--mf-bg-secondary);
359
+ border-radius: var(--mf-radius-md);
360
+ }
361
+
362
+ /* ========================================
363
+ LABELS & TYPOGRAPHY
364
+ ======================================== */
365
+ .magicfeedback-label {
366
+ font-size: var(--mf-font-size-lg);
367
+ font-weight: var(--mf-font-weight-bold);
368
+ color: var(--mf-text-primary);
369
+ line-height: var(--mf-line-height);
370
+ text-align: start;
371
+ letter-spacing: -0.01em;
372
+ }
373
+
374
+ .magicfeedback-sublabel {
375
+ font-size: var(--mf-font-size-base);
376
+ font-weight: var(--mf-font-weight-normal);
377
+ color: var(--mf-text-secondary);
378
+ margin-bottom: var(--mf-space-sm);
379
+ }
380
+
381
+ .deepdots-popup h2 {
382
+ font-size: var(--mf-font-size-xl);
383
+ font-weight: 600;
384
+ color: var(--mf-text-primary);
385
+ margin: 0 0 var(--mf-space-xl) 0;
386
+ text-align: center;
387
+ letter-spacing: -0.01em;
388
+ }
389
+
390
+ .deepdots-popup p {
391
+ margin: 0;
392
+ font-size: var(--mf-font-size-sm);
393
+ color: var(--mf-text-secondary);
394
+ }
395
+
396
+ /* ========================================
397
+ FORM INPUTS
398
+ ======================================== */
399
+ .deepdots-popup input[type="date"],
400
+ .deepdots-popup input[type="text"],
401
+ .deepdots-popup input[type="number"],
402
+ .deepdots-popup input[type="email"],
403
+ .deepdots-popup input[type="password"],
404
+ .deepdots-popup textarea,
405
+ .deepdots-popup select {
406
+ padding: 0.75rem 0.9rem;
407
+ font-size: var(--mf-font-size-base);
408
+ font-family: inherit;
409
+ color: var(--mf-text-primary);
410
+ background-color: var(--mf-surface);
411
+ border: 2px solid var(--mf-border);
412
+ border-radius: var(--mf-radius-md);
413
+ outline: none;
414
+ transition: var(--mf-transition);
415
+ -webkit-appearance: none;
416
+ appearance: none;
417
+ box-shadow: var(--mf-shadow-sm);
418
+ }
419
+
420
+ .deepdots-popup textarea {
421
+ min-height: 100px;
422
+ resize: vertical;
423
+ }
424
+
425
+ .deepdots-popup input::placeholder,
426
+ .deepdots-popup textarea::placeholder {
427
+ color: var(--mf-text-muted);
428
+ }
429
+
430
+ /* Remove number input spinners */
431
+ .deepdots-popup input::-webkit-outer-spin-button,
432
+ .deepdots-popup input::-webkit-inner-spin-button {
433
+ -webkit-appearance: none;
434
+ margin: 0;
435
+ }
436
+
437
+ .deepdots-popup input[type="number"] {
438
+ /* -moz-appearance: textfield; removed for lint compatibility */
439
+ }
440
+
441
+ /* Email @ button (assets.atButton). --mf-secondary is defined by MagicSurvey;
442
+ the fallback is the same #2E2E2E. */
443
+ .magicfeedback-email-container {
444
+ display: flex;
445
+ flex-direction: column;
446
+ gap: var(--mf-space-sm);
447
+ }
448
+
449
+ .magicfeedback-email-row {
450
+ display: flex;
451
+ align-items: stretch;
452
+ gap: var(--mf-space-sm);
453
+ }
454
+
455
+ .magicfeedback-email-row input[type="email"] {
456
+ flex: 1 1 auto;
457
+ min-width: 0;
458
+ }
459
+
460
+ .magicfeedback-email-inset {
461
+ position: relative;
462
+ }
463
+
464
+ .magicfeedback-email-inset input[type="email"] {
465
+ width: 100%;
466
+ box-sizing: border-box;
467
+ padding-inline-end: 3.6rem;
468
+ }
469
+
470
+ .magicfeedback-email-row input[type="email"]:focus,
471
+ .magicfeedback-email-inset input[type="email"]:focus {
472
+ border-color: var(--mf-border-focus);
473
+ }
474
+
475
+ .magicfeedback-email-at {
476
+ flex: none;
477
+ aspect-ratio: 1;
478
+ align-self: stretch;
479
+ min-width: 46px;
480
+ display: grid;
481
+ place-items: center;
482
+ padding: 0;
483
+ font-family: inherit;
484
+ font-size: 1.35rem;
485
+ font-weight: var(--mf-font-weight-extrabold);
486
+ line-height: 1;
487
+ color: #FFFFFF;
488
+ background-color: var(--mf-secondary, #2E2E2E);
489
+ border: 2px solid var(--mf-secondary, #2E2E2E);
490
+ border-radius: var(--mf-radius-full);
491
+ cursor: pointer;
492
+ box-shadow: var(--mf-shadow-sm);
493
+ -webkit-tap-highlight-color: transparent;
494
+ touch-action: manipulation;
495
+ -webkit-user-select: none;
496
+ user-select: none;
497
+ transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
498
+ }
499
+
500
+ .magicfeedback-email-at:active {
501
+ background-color: color-mix(in srgb, var(--mf-secondary, #2E2E2E) 85%, black);
502
+ transform: scale(0.92);
503
+ box-shadow: none;
504
+ }
505
+
506
+ .magicfeedback-email-at:focus-visible {
507
+ outline: 3px solid var(--mf-primary-border);
508
+ outline-offset: 2px;
509
+ }
510
+
511
+ .magicfeedback-email-inset .magicfeedback-email-at {
512
+ position: absolute;
513
+ inset-inline-end: 7px;
514
+ top: 50%;
515
+ transform: translateY(-50%);
516
+ width: 2.5rem;
517
+ height: 2.5rem;
518
+ min-width: 0;
519
+ aspect-ratio: auto;
520
+ font-size: 1.15rem;
521
+ color: var(--mf-text-primary);
522
+ background-color: var(--mf-surface-alt);
523
+ border: 1px solid var(--mf-border);
524
+ box-shadow: none;
525
+ }
526
+
527
+ .magicfeedback-email-inset .magicfeedback-email-at:active {
528
+ transform: translateY(-50%) scale(0.9);
529
+ color: var(--mf-primary);
530
+ background-color: var(--mf-primary-light);
531
+ border-color: var(--mf-primary-border);
532
+ }
533
+
534
+ .magicfeedback-email-hint {
535
+ margin: 0;
536
+ font-size: var(--mf-font-size-sm);
537
+ line-height: 1.45;
538
+ color: var(--mf-text-secondary);
539
+ }
540
+
541
+ .magicfeedback-email-hint b {
542
+ font-weight: var(--mf-font-weight-extrabold);
543
+ color: var(--mf-text-primary);
544
+ }
545
+
546
+ /* Custom Select Arrow */
547
+ .deepdots-popup select {
548
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
549
+ background-repeat: no-repeat;
550
+ background-position: right var(--mf-space-md) center;
551
+ padding-inline-end: var(--mf-space-xl);
552
+ }
553
+
554
+ /* Error State */
555
+ .deepdots-popup input.error,
556
+ .deepdots-popup select.error,
557
+ .deepdots-popup textarea.error {
558
+ border-color: var(--mf-error);
559
+ }
560
+
561
+ .magicfeedback-error {
562
+ margin-top: var(--mf-space-xs);
563
+ font-size: var(--mf-font-size-sm);
564
+ color: var(--mf-error);
565
+ }
566
+
567
+ /* ========================================
568
+ CHECKBOX & RADIO OPTIONS
569
+ ======================================== */
570
+ .magicfeedback-checkbox,
571
+ div.magicfeedback-radio {
572
+ display: flex;
573
+ flex-direction: column;
574
+ gap: var(--mf-space-sm);
575
+ width: 100%;
576
+ }
577
+
578
+ /* Single choice in a row (assets.direction "row"): one equal box per
579
+ option. The "other" text field wraps to its own line below. Stacked
580
+ (phone, or too narrow) it is the usual vertical list again. */
581
+ .magicfeedback-radio--row {
582
+ flex-direction: row;
583
+ flex-wrap: wrap;
584
+ }
585
+
586
+ .magicfeedback-radio--row > .magicfeedback-radio-container {
587
+ flex: 1 1 0;
588
+ min-width: 0;
589
+ }
590
+
591
+ .magicfeedback-radio--row > .magicfeedback-extra-option {
592
+ flex-basis: 100%;
593
+ }
594
+
595
+ .magicfeedback-radio--row.magicfeedback-radio--stacked {
596
+ flex-direction: column;
597
+ flex-wrap: nowrap;
598
+ }
599
+
600
+ .magicfeedback-radio--row.magicfeedback-radio--stacked > .magicfeedback-radio-container {
601
+ flex: none;
602
+ }
603
+
604
+ .magicfeedback-radio--row .magicfeedback-radio-container label {
605
+ overflow-wrap: anywhere;
606
+ }
607
+
608
+ .magicfeedback-checkbox-container,
609
+ .magicfeedback-radio-container {
610
+ display: flex;
611
+ align-items: center;
612
+ gap: var(--mf-space-sm);
613
+ padding: var(--mf-space-md);
614
+ border: 1.5px solid var(--mf-border);
615
+ border-radius: var(--mf-radius-md);
616
+ cursor: pointer;
617
+ transition: var(--mf-transition-fast);
618
+ }
619
+
620
+ @media (hover: hover) {
621
+ .magicfeedback-checkbox-container:hover,
622
+ .magicfeedback-radio-container:hover {
623
+ background-color: var(--mf-bg-hover);
624
+ border-color: var(--mf-primary);
625
+ }
626
+ }
627
+
628
+ .magicfeedback-checkbox-container:has(input:checked),
629
+ .magicfeedback-radio-container:has(input:checked) {
630
+ background-color: var(--mf-primary-light);
631
+ border-color: var(--mf-primary);
632
+ }
633
+
634
+ .magicfeedback-checkbox input[type="checkbox"],
635
+ .magicfeedback-radio-container input[type="radio"] {
636
+ width: 18px;
637
+ height: 18px;
638
+ margin: 0;
639
+ cursor: pointer;
640
+ flex-shrink: 0;
641
+ accent-color: var(--mf-primary);
642
+ }
643
+
644
+ .magicfeedback-checkbox label,
645
+ .magicfeedback-radio-container label {
646
+ font-size: var(--mf-font-size-base);
647
+ text-align: start;
648
+ color: var(--mf-text-primary);
649
+ cursor: pointer;
650
+ margin: 0;
651
+ flex: 1;
652
+ }
653
+
654
+ /* ========================================
655
+ BOOLEAN OPTIONS
656
+ ======================================== */
657
+ .magicfeedback-boolean-container {
658
+ display: flex;
659
+ gap: var(--mf-space-md);
660
+ width: 100%;
661
+ }
662
+
663
+ .magicfeedback-boolean-option {
664
+ flex: 1;
665
+ position: relative;
666
+ }
667
+
668
+ .magicfeedback-boolean-option input[type="radio"] {
669
+ position: absolute;
670
+ opacity: 0;
671
+ width: 0;
672
+ height: 0;
673
+ }
674
+
675
+ .magicfeedback-boolean-option label {
676
+ display: flex;
677
+ align-items: center;
678
+ justify-content: center;
679
+ padding: var(--mf-space-md);
680
+ font-size: var(--mf-font-size-base);
681
+ font-weight: 500;
682
+ color: var(--mf-text-secondary);
683
+ border: 1.5px solid var(--mf-border);
684
+ border-radius: var(--mf-radius-md);
685
+ cursor: pointer;
686
+ transition: var(--mf-transition-fast);
687
+ margin: 0;
688
+ width: -webkit-fill-available;
689
+ height: inherit;
690
+ }
691
+
692
+ @media (hover: hover) {
693
+ .magicfeedback-boolean-option label:hover {
694
+ background-color: var(--mf-bg-hover);
695
+ border-color: var(--mf-primary);
696
+ }
697
+ }
698
+
699
+ .magicfeedback-boolean-option input[type="radio"]:checked + label {
700
+ color: var(--mf-primary);
701
+ background-color: var(--mf-primary-light);
702
+ border-color: var(--mf-primary);
703
+ font-weight: 600;
704
+ }
705
+
706
+ /* ========================================
707
+ RATING SYSTEMS
708
+ ======================================== */
709
+ .magicfeedback-rating,
710
+ .magicfeedback-rating-number,
711
+ .magicfeedback-rating-star {
712
+ width: 100%;
713
+ }
714
+
715
+ .magicfeedback-rating-container,
716
+ .magicfeedback-rating-number-container,
717
+ .magicfeedback-rating-star-container {
718
+ display: flex;
719
+ flex-wrap: wrap;
720
+ gap: var(--mf-space-sm);
721
+ justify-content: center;
722
+ align-items: center;
723
+ padding: var(--mf-space-md) 0;
724
+ list-style: none;
725
+ margin: 0;
726
+ }
727
+
728
+ /* Caption line below the row — min on one side, max on the other (swapped
729
+ for order: "rtl") — same simple, non-responsive pattern as the
730
+ rating-number row caption. Used by rating-star and rating-emoji. */
731
+ .magicfeedback-rating-placeholder {
732
+ display: flex;
733
+ justify-content: space-between;
734
+ gap: var(--mf-space-md);
735
+ width: 100%;
736
+ margin-top: var(--mf-space-sm);
737
+ font-size: var(--mf-font-size-sm);
738
+ font-weight: var(--mf-font-weight-semibold);
739
+ color: var(--mf-text-secondary);
740
+ }
741
+
742
+ .magicfeedback-rating-placeholder-value {
743
+ overflow-wrap: anywhere;
744
+ }
745
+
746
+ .magicfeedback-rating-placeholder-value:last-child {
747
+ text-align: end;
748
+ }
749
+
750
+ /* Rating with Images */
751
+ .magicfeedback-rating-option-label-container input[type="radio"] {
752
+ position: absolute;
753
+ opacity: 0;
754
+ width: 0;
755
+ height: 0;
756
+ }
757
+
758
+ .magicfeedback-rating-option-label-container img {
759
+ width: 56px;
760
+ height: 56px;
761
+ cursor: pointer;
762
+ transition: var(--mf-transition-fast);
763
+ border-radius: var(--mf-radius-full);
764
+ border: 2px solid transparent;
765
+ }
766
+
767
+ @media (hover: hover) {
768
+ .magicfeedback-rating-option-label-container img:hover {
769
+ transform: scale(1.1);
770
+ border-color: var(--mf-primary);
771
+ }
772
+ }
773
+
774
+ .magicfeedback-rating-option-label-container input[type="radio"]:checked + img {
775
+ border-color: var(--mf-primary);
776
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
777
+ }
778
+
779
+ .magicfeedback-rating-option-label-container label {
780
+ display: block;
781
+ text-align: center;
782
+ font-size: var(--mf-font-size-sm);
783
+ color: var(--mf-text-secondary);
784
+ margin-top: var(--mf-space-xs);
785
+ cursor: pointer;
786
+ }
787
+
788
+ /* Rating Numbers — each option is its own outlined chip in the survey's
789
+ primary color, with a gap between them. Row and column use the same
790
+ chip; column additionally has room to show each option's own text
791
+ plainly next to its number. */
792
+
793
+ /* Every size here is width:100%/flex:1 combined with the chip's own
794
+ padding and border. Without border-box, the browser's default
795
+ content-box adds that padding/border on TOP of the declared size, so
796
+ the chip quietly overflows past its flex slot — reading as "not quite
797
+ full width" or, worse, pushing into the next chip. */
798
+ .magicfeedback-rating-number-container,
799
+ .magicfeedback-rating-number-option,
800
+ .magicfeedback-rating-number-option-label-container,
801
+ .magicfeedback-rating-number-value {
802
+ box-sizing: border-box;
803
+ }
804
+
805
+ /* The shared rating-container rule (above, reused by star rating) sets
806
+ align-items:center for its row-of-chips layout — in a stacked column
807
+ that still nudges a 100%-wide chip inward instead of a true 0 offset.
808
+ Force stretch so every chip fills the exact same width, flush on
809
+ both sides. */
810
+ .magicfeedback-rating-number-container-column,
811
+ .magicfeedback-rating-number-container-column-reverse {
812
+ align-items: stretch;
813
+ }
814
+
815
+ /* Caption line below the row — the single place min/max labels live
816
+ for row mode, shared by mobile and desktop. */
817
+ .magicfeedback-rating-number-scale-labels {
818
+ display: flex;
819
+ justify-content: space-between;
820
+ gap: var(--mf-space-md);
821
+ margin-top: var(--mf-space-sm);
822
+ font-size: var(--mf-font-size-sm);
823
+ font-weight: var(--mf-font-weight-semibold);
824
+ color: var(--mf-text-secondary);
825
+ }
826
+
827
+ .magicfeedback-rating-number-scale-label {
828
+ overflow-wrap: anywhere;
829
+ }
830
+
831
+ /* assets.minMaxPlaceholderPosition: the caption above or below the row. */
832
+ .magicfeedback-rating-number-scale-labels--top {
833
+ margin-top: 0;
834
+ margin-bottom: var(--mf-space-sm);
835
+ }
836
+
837
+ .magicfeedback-rating-number-scale-labels--bottom {
838
+ margin-top: var(--mf-space-sm);
839
+ margin-bottom: 0;
840
+ }
841
+
842
+ /* Row with a text per number: the text sits above each chip (below with
843
+ numberPlaceholdersPosition "bottom"). The option is a column laid out
844
+ inline; this only spaces and styles the text. */
845
+ .magicfeedback-rating-number-option--captioned {
846
+ gap: var(--mf-space-xs);
847
+ }
848
+
849
+ .magicfeedback-rating-number-option-caption {
850
+ font-size: var(--mf-font-size-sm);
851
+ font-weight: var(--mf-font-weight-semibold);
852
+ color: var(--mf-text-secondary);
853
+ text-align: center;
854
+ line-height: 1.25;
855
+ overflow-wrap: anywhere;
856
+ cursor: pointer;
857
+ }
858
+
859
+ .magicfeedback-rating-number-scale-label:last-child {
860
+ text-align: end;
861
+ }
862
+
863
+ /* Column, no per-option text: each row is its own separated chip, so
864
+ the min/max labels bookend the stack from outside it — one line
865
+ above the first chip, one below the last. Margin goes on whichever
866
+ side actually faces the list — the "before" label (always the first
867
+ child) gets space below it, the "after" one (always right after the
868
+ container, extra option row or not) gets space above it — so both
869
+ sit the same distance from the chips regardless of which one it is. */
870
+ .magicfeedback-rating-number-scale-label-block {
871
+ font-size: var(--mf-font-size-sm);
872
+ font-weight: var(--mf-font-weight-semibold);
873
+ color: var(--mf-text-secondary);
874
+ text-align: center;
875
+ }
876
+
877
+ .magicfeedback-rating-number-scale-label-block:first-child {
878
+ margin-bottom: var(--mf-space-sm);
879
+ }
880
+
881
+ .magicfeedback-rating-number-container + .magicfeedback-rating-number-scale-label-block {
882
+ margin-top: var(--mf-space-sm);
883
+ }
884
+
885
+ .magicfeedback-rating-number-option {
886
+ display: flex;
887
+ }
888
+
889
+ .magicfeedback-rating-number-option-label-container {
890
+ position: relative;
891
+ width: 100%;
892
+ display: flex;
893
+ cursor: pointer;
894
+ }
895
+
896
+ .magicfeedback-rating-number-option-label-container input[type="radio"] {
897
+ position: absolute;
898
+ opacity: 0;
899
+ width: 0;
900
+ height: 0;
901
+ }
902
+
903
+ .magicfeedback-rating-number-value {
904
+ display: flex;
905
+ align-items: center;
906
+ justify-content: center;
907
+ width: 100%;
908
+ transition: var(--mf-transition-fast);
909
+ color: var(--mf-text-secondary);
910
+ font-weight: var(--mf-font-weight-semibold);
911
+ }
912
+
913
+ /* Row: individual outlined chips in the survey's own primary color —
914
+ var(--mf-primary) so whatever brand color a given survey sets carries
915
+ through automatically, no color hardcoded here. */
916
+ .magicfeedback-rating-number-container-row,
917
+ .magicfeedback-rating-number-container-row-reverse {
918
+ flex-wrap: nowrap;
919
+ gap: var(--mf-space-sm);
920
+ }
921
+
922
+ .magicfeedback-rating-number-option-row,
923
+ .magicfeedback-rating-number-option-row-reverse {
924
+ flex: 1 1 0;
925
+ min-width: 0;
926
+ }
927
+
928
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
929
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
930
+ min-height: 56px;
931
+ padding: var(--mf-space-sm);
932
+ border: 2px solid var(--mf-primary-border);
933
+ border-radius: var(--mf-radius-md);
934
+ background: var(--mf-bg-secondary);
935
+ color: var(--mf-primary);
936
+ font-size: var(--mf-font-size-lg);
937
+ font-weight: var(--mf-font-weight-bold);
938
+ }
939
+
940
+ /* More than 6 options (e.g. a 0-10 NPS scale): still one row, never
941
+ wraps — but scaled down on purpose, so it reads as a compact chip
942
+ rather than the same 56px button stretched thin. */
943
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
944
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
945
+ min-height: 36px;
946
+ padding: var(--mf-space-xs);
947
+ border-radius: var(--mf-radius-sm);
948
+ font-size: 0.8rem;
949
+ }
950
+
951
+ @media (hover: hover) {
952
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
953
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
954
+ background: var(--mf-primary-light);
955
+ }
956
+ }
957
+
958
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
959
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
960
+ color: #fff;
961
+ background-color: var(--mf-primary);
962
+ box-shadow: var(--mf-shadow-md);
963
+ }
964
+
965
+ /* Extra option: always its own row below the scale, and styled like every
966
+ other chip now — "doesn't apply" is still not a point on the 1..N
967
+ continuum, but it no longer needs a different border style to say so. */
968
+ .magicfeedback-rating-number-extra-row {
969
+ display: flex;
970
+ justify-content: center;
971
+ margin-top: var(--mf-space-sm);
972
+ }
973
+
974
+ .magicfeedback-rating-number-option--extra {
975
+ flex: 0 1 auto;
976
+ }
977
+
978
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container {
979
+ width: auto;
980
+ }
981
+
982
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-value {
983
+ min-height: 36px;
984
+ padding: 0 var(--mf-space-md);
985
+ border: 2px solid var(--mf-primary-border);
986
+ border-radius: var(--mf-radius-md);
987
+ background: var(--mf-bg-secondary);
988
+ color: var(--mf-primary);
989
+ font-size: var(--mf-font-size-sm);
990
+ }
991
+
992
+ @media (hover: hover) {
993
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
994
+ background: var(--mf-primary-light);
995
+ }
996
+ }
997
+
998
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
999
+ color: #fff;
1000
+ background-color: var(--mf-primary);
1001
+ box-shadow: var(--mf-shadow-md);
1002
+ }
1003
+
1004
+ /* Column: the same separated chips as row, just stacked — each option is
1005
+ its own outlined chip with a gap between them, not one shared box. */
1006
+ .magicfeedback-rating-number-container-column,
1007
+ .magicfeedback-rating-number-container-column-reverse {
1008
+ gap: var(--mf-space-sm);
1009
+ }
1010
+
1011
+ .magicfeedback-rating-number-option-column,
1012
+ .magicfeedback-rating-number-option-column-reverse {
1013
+ width: 100%;
1014
+ }
1015
+
1016
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-value,
1017
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-value {
1018
+ justify-content: flex-start;
1019
+ gap: var(--mf-space-sm);
1020
+ min-height: 48px;
1021
+ padding: var(--mf-space-sm) var(--mf-space-md);
1022
+ border: 2px solid var(--mf-primary-border);
1023
+ border-radius: var(--mf-radius-md);
1024
+ background: var(--mf-bg-secondary);
1025
+ color: var(--mf-primary);
1026
+ }
1027
+
1028
+ @media (hover: hover) {
1029
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
1030
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
1031
+ background: var(--mf-primary-light);
1032
+ }
1033
+ }
1034
+
1035
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1036
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1037
+ color: #fff;
1038
+ background-color: var(--mf-primary);
1039
+ box-shadow: var(--mf-shadow-md);
1040
+ }
1041
+
1042
+ .magicfeedback-rating-number-value-num {
1043
+ font-weight: var(--mf-font-weight-bold);
1044
+ }
1045
+
1046
+ /* Column with per-option text: a min-width so "1".."9" and "10" line up,
1047
+ with the label text starting at the same x. Skipped entirely when the
1048
+ column has no per-option text at all (--bare below) — with nothing to
1049
+ align against, the same left-shift bug from row mode would resurface. */
1050
+ .magicfeedback-rating-number-container-column:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num,
1051
+ .magicfeedback-rating-number-container-column-reverse:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num {
1052
+ flex: none;
1053
+ min-width: 1.4em;
1054
+ }
1055
+
1056
+ /* Column, no per-option text at all (only min/max, or nothing): a bare
1057
+ numbered list has nothing to left-align against, so center each
1058
+ number instead of stranding it on the left with blank space beside it. */
1059
+ .magicfeedback-rating-number-container-column--bare .magicfeedback-rating-number-value {
1060
+ justify-content: center;
1061
+ }
1062
+
1063
+ .magicfeedback-rating-number-value-label {
1064
+ font-weight: var(--mf-font-weight-medium);
1065
+ }
1066
+
1067
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1068
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1069
+ color: #fff;
1070
+ background-color: var(--mf-primary);
1071
+ }
1072
+
1073
+ /* Star Rating */
1074
+ .magicfeedback-rating-star-container {
1075
+ justify-content: center;
1076
+ }
1077
+
1078
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star {
1079
+ font-size: 40px;
1080
+ color: var(--mf-border);
1081
+ cursor: pointer;
1082
+ margin: 0 var(--mf-space-xs);
1083
+ transition: var(--mf-transition-fast);
1084
+ }
1085
+
1086
+ @media (hover: hover) {
1087
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover,
1088
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover ~ span {
1089
+ color: #fbbf24;
1090
+ transform: scale(1.1);
1091
+ }
1092
+ }
1093
+
1094
+ .magicfeedback-rating-star-selected {
1095
+ color: #fbbf24 !important;
1096
+ }
1097
+
1098
+ /* ========================================
1099
+ MULTIPLE CHOICE WITH IMAGES
1100
+ ======================================== */
1101
+ .magicfeedback-multiple-choice-image-option {
1102
+ display: flex;
1103
+ border-radius: var(--mf-radius-md);
1104
+ overflow: hidden;
1105
+ transition: var(--mf-transition-fast);
1106
+ }
1107
+
1108
+ .magicfeedback-image-option-label-container {
1109
+ cursor: pointer;
1110
+ border-radius: var(--mf-radius-md);
1111
+ overflow: hidden;
1112
+ transition: var(--mf-transition-fast);
1113
+ }
1114
+
1115
+ .magicfeedback-image-option-label-container input[type="radio"],
1116
+ .magicfeedback-image-option-label-container input[type="checkbox"] {
1117
+ position: absolute;
1118
+ opacity: 0;
1119
+ width: 0;
1120
+ height: 0;
1121
+ }
1122
+
1123
+ .magicfeedback-image-option-label-container img {
1124
+ width: 100%;
1125
+ height: auto;
1126
+ display: block;
1127
+ border: 2px solid var(--mf-border);
1128
+ border-radius: var(--mf-radius-md);
1129
+ transition: var(--mf-transition-fast);
1130
+ }
1131
+
1132
+ @media (hover: hover) {
1133
+ .magicfeedback-image-option-label-container:hover img {
1134
+ border-color: var(--mf-primary);
1135
+ box-shadow: var(--mf-shadow-md);
1136
+ }
1137
+ }
1138
+
1139
+ .magicfeedback-image-option-label-container input:checked + img {
1140
+ border-color: var(--mf-primary);
1141
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
1142
+ }
1143
+
1144
+ /* ========================================
1145
+ MATRIX QUESTIONS
1146
+ ======================================== */
1147
+ .magicfeedback-multi-question-matrix-container {
1148
+ width: 100%;
1149
+ overflow-x: auto;
1150
+ border-radius: var(--mf-radius-md);
1151
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
1152
+ not the size of the window */
1153
+ container-type: inline-size;
1154
+ }
1155
+
1156
+ .magicfeedback-multi-question-matrix-table {
1157
+ width: 100%;
1158
+ border-collapse: separate;
1159
+ border-spacing: 0 var(--mf-space-xs);
1160
+ }
1161
+
1162
+ .magicfeedback-multi-question-matrix-table th {
1163
+ padding: var(--mf-space-md);
1164
+ text-align: center;
1165
+ font-size: var(--mf-font-size-sm);
1166
+ font-weight: 500;
1167
+ color: var(--mf-text-secondary);
1168
+ }
1169
+
1170
+ .magicfeedback-multi-question-matrix-row-tr {
1171
+ background-color: var(--mf-bg-primary);
1172
+ border-radius: var(--mf-radius-md);
1173
+ transition: var(--mf-transition-fast);
1174
+ }
1175
+
1176
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
1177
+ background-color: var(--mf-bg-secondary);
1178
+ }
1179
+
1180
+ @media (hover: hover) {
1181
+ .magicfeedback-multi-question-matrix-row-tr:hover {
1182
+ background-color: var(--mf-bg-hover);
1183
+ box-shadow: var(--mf-shadow-sm);
1184
+ }
1185
+ }
1186
+
1187
+ .magicfeedback-multi-question-matrix-table td {
1188
+ padding: var(--mf-space-md);
1189
+ text-align: center;
1190
+ }
1191
+
1192
+ .magicfeedback-multi-question-matrix-label {
1193
+ text-align: start;
1194
+ font-size: var(--mf-font-size-base);
1195
+ color: var(--mf-text-primary);
1196
+ }
1197
+
1198
+ .magicfeedback-multi-question-matrix-table input[type="radio"] {
1199
+ width: 20px;
1200
+ height: 20px;
1201
+ cursor: pointer;
1202
+ accent-color: var(--mf-primary);
1203
+ }
1204
+
1205
+ .magicfeedback-multi-question-matrix-question {
1206
+ min-width: 200px;
1207
+ padding: 10px;
1208
+ }
1209
+
1210
+ /* the column header names the option in a table; the per-cell label is for
1211
+ screen readers until the rows stack */
1212
+ .magicfeedback-multi-question-matrix-option-label {
1213
+ position: absolute;
1214
+ width: 1px;
1215
+ height: 1px;
1216
+ overflow: hidden;
1217
+ clip: rect(0, 0, 0, 0);
1218
+ white-space: nowrap;
1219
+ }
1220
+
1221
+ /* narrow container: every row becomes its own question with the options
1222
+ stacked underneath, instead of a table cut off at the side */
1223
+ @container (max-width: 599px) {
1224
+ .magicfeedback-multi-question-matrix-table,
1225
+ .magicfeedback-multi-question-matrix-table tbody,
1226
+ .magicfeedback-multi-question-matrix-table tr,
1227
+ .magicfeedback-multi-question-matrix-table td {
1228
+ display: block;
1229
+ width: 100%;
1230
+ }
1231
+
1232
+ .magicfeedback-multi-question-matrix-table thead {
1233
+ display: none;
1234
+ }
1235
+
1236
+ .magicfeedback-multi-question-matrix-row-tr,
1237
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
1238
+ margin-bottom: var(--mf-space-lg);
1239
+ background: transparent;
1240
+ box-shadow: none;
1241
+ }
1242
+
1243
+ @media (hover: hover) {
1244
+ .magicfeedback-multi-question-matrix-row-tr:hover {
1245
+ margin-bottom: var(--mf-space-lg);
1246
+ background: transparent;
1247
+ box-shadow: none;
1248
+ }
1249
+ }
1250
+
1251
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-question {
1252
+ min-width: 0;
1253
+ padding: 0 0 var(--mf-space-sm);
1254
+ text-align: start;
1255
+ }
1256
+
1257
+ .magicfeedback-multi-question-matrix-question .magicfeedback-multi-question-matrix-label {
1258
+ font-weight: 600;
1259
+ }
1260
+
1261
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-option {
1262
+ display: flex;
1263
+ align-items: center;
1264
+ gap: var(--mf-space-sm);
1265
+ margin-bottom: var(--mf-space-sm);
1266
+ padding: 0 var(--mf-space-md);
1267
+ text-align: start;
1268
+ background: var(--mf-bg-secondary);
1269
+ border: 2px solid var(--mf-border);
1270
+ border-radius: var(--mf-radius-md);
1271
+ cursor: pointer;
1272
+ transition: var(--mf-transition-fast);
1273
+ }
1274
+
1275
+ @media (hover: hover) {
1276
+ .magicfeedback-multi-question-matrix-option:hover {
1277
+ border-color: var(--mf-primary-border);
1278
+ }
1279
+ }
1280
+
1281
+ .magicfeedback-multi-question-matrix-option:has(input:checked) {
1282
+ border-color: var(--mf-primary);
1283
+ background: var(--mf-primary-light);
1284
+ }
1285
+
1286
+ .magicfeedback-multi-question-matrix-table .magicfeedback-multi-question-matrix-option input[type="radio"] {
1287
+ flex-shrink: 0;
1288
+ }
1289
+
1290
+ /* the whole card is the click target */
1291
+ .magicfeedback-multi-question-matrix-option-label {
1292
+ position: static;
1293
+ flex: 1;
1294
+ width: auto;
1295
+ height: auto;
1296
+ padding: var(--mf-space-md) 0;
1297
+ overflow: visible;
1298
+ clip: auto;
1299
+ white-space: normal;
1300
+ font-size: var(--mf-font-size-base);
1301
+ color: var(--mf-text-primary);
1302
+ cursor: pointer;
1303
+ }
1304
+ }
1305
+
1306
+ /* ========================================
1307
+ MAXDIFF (BEST–WORST)
1308
+ ======================================== */
1309
+ .magicfeedback-max-diff {
1310
+ /* "least" gets its own hue, apart from the brand color "most" uses; dark
1311
+ enough to read as header text and to hold the white center dot */
1312
+ --mf-max-diff-worst: #b45309;
1313
+ width: 100%;
1314
+ }
1315
+
1316
+ .magicfeedback-max-diff-container {
1317
+ width: 100%;
1318
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
1319
+ not the size of the window */
1320
+ container-type: inline-size;
1321
+ }
1322
+
1323
+ .magicfeedback-max-diff-progress {
1324
+ display: flex;
1325
+ align-items: center;
1326
+ gap: var(--mf-space-md);
1327
+ margin-bottom: var(--mf-space-lg);
1328
+ }
1329
+
1330
+ .magicfeedback-max-diff-progress-label {
1331
+ font-size: 0.8125rem;
1332
+ font-weight: var(--mf-font-weight-bold);
1333
+ letter-spacing: 0.04em;
1334
+ text-transform: uppercase;
1335
+ white-space: nowrap;
1336
+ color: var(--mf-text-secondary);
1337
+ }
1338
+
1339
+ .magicfeedback-max-diff-progress-track {
1340
+ flex: 1;
1341
+ height: 6px;
1342
+ overflow: hidden;
1343
+ border-radius: var(--mf-radius-full);
1344
+ background: var(--mf-border);
1345
+ }
1346
+
1347
+ .magicfeedback-max-diff-progress-fill {
1348
+ display: block;
1349
+ height: 100%;
1350
+ border-radius: var(--mf-radius-full);
1351
+ background: var(--mf-primary);
1352
+ }
1353
+
1354
+ .magicfeedback-max-diff-table {
1355
+ width: 100%;
1356
+ border-collapse: collapse;
1357
+ }
1358
+
1359
+ .magicfeedback-max-diff-head,
1360
+ .magicfeedback-max-diff-head-spacer {
1361
+ border-bottom: 1px solid var(--mf-border);
1362
+ }
1363
+
1364
+ .magicfeedback-max-diff-head {
1365
+ width: 11rem;
1366
+ padding: 0 var(--mf-space-sm) var(--mf-space-sm);
1367
+ font-size: 0.8125rem;
1368
+ font-weight: var(--mf-font-weight-extrabold);
1369
+ letter-spacing: 0.04em;
1370
+ text-transform: uppercase;
1371
+ text-align: center;
1372
+ vertical-align: bottom;
1373
+ }
1374
+
1375
+ .magicfeedback-max-diff-head-best {
1376
+ color: var(--mf-primary);
1377
+ }
1378
+
1379
+ .magicfeedback-max-diff-head-worst {
1380
+ color: var(--mf-max-diff-worst);
1381
+ }
1382
+
1383
+ .magicfeedback-max-diff-head-label {
1384
+ display: inline-flex;
1385
+ align-items: center;
1386
+ gap: 6px;
1387
+ }
1388
+
1389
+ .magicfeedback-max-diff-row {
1390
+ transition: background-color 0.15s ease;
1391
+ }
1392
+
1393
+ .magicfeedback-max-diff-row > * {
1394
+ border-bottom: 1px solid var(--mf-border);
1395
+ }
1396
+
1397
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-best:checked) {
1398
+ background-color: color-mix(in srgb, var(--mf-primary) 8%, transparent);
1399
+ }
1400
+
1401
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-worst:checked) {
1402
+ background-color: color-mix(in srgb, var(--mf-max-diff-worst) 8%, transparent);
1403
+ }
1404
+
1405
+ .magicfeedback-max-diff-item {
1406
+ padding: var(--mf-space-md) var(--mf-space-sm);
1407
+ font-size: 1.0625rem;
1408
+ font-weight: var(--mf-font-weight-semibold);
1409
+ line-height: 1.4;
1410
+ text-align: center;
1411
+ color: var(--mf-text-primary);
1412
+ }
1413
+
1414
+ .magicfeedback-max-diff-row:has(input:checked) .magicfeedback-max-diff-item {
1415
+ font-weight: var(--mf-font-weight-extrabold);
1416
+ }
1417
+
1418
+ .magicfeedback-max-diff-cell {
1419
+ padding: 0;
1420
+ }
1421
+
1422
+ /* the whole cell is the click target */
1423
+ .magicfeedback-max-diff-pick {
1424
+ display: flex;
1425
+ align-items: center;
1426
+ justify-content: center;
1427
+ min-height: 64px;
1428
+ cursor: pointer;
1429
+ }
1430
+
1431
+ .magicfeedback-max-diff-input {
1432
+ appearance: none;
1433
+ -webkit-appearance: none;
1434
+ flex-shrink: 0;
1435
+ width: 26px;
1436
+ height: 26px;
1437
+ margin: 0;
1438
+ border: 2px solid color-mix(in srgb, var(--mf-text-secondary) 80%, white);
1439
+ border-radius: var(--mf-radius-full);
1440
+ background: var(--mf-bg-secondary);
1441
+ cursor: pointer;
1442
+ transition: var(--mf-transition-fast);
1443
+ }
1444
+
1445
+ @media (hover: hover) {
1446
+ .magicfeedback-max-diff-pick:hover .magicfeedback-max-diff-input {
1447
+ transform: scale(1.08);
1448
+ }
1449
+ }
1450
+
1451
+ .magicfeedback-max-diff-best:checked {
1452
+ border-color: var(--mf-primary);
1453
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-primary) 4.5px);
1454
+ }
1455
+
1456
+ .magicfeedback-max-diff-worst:checked {
1457
+ border-color: var(--mf-max-diff-worst);
1458
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-max-diff-worst) 4.5px);
1459
+ }
1460
+
1461
+ .magicfeedback-max-diff-input:focus-visible {
1462
+ outline: 3px solid var(--mf-primary-border);
1463
+ outline-offset: 3px;
1464
+ }
1465
+
1466
+ /* narrow container: same table, slimmer pick columns and the header icon
1467
+ stacked over its label */
1468
+ @container (max-width: 599px) {
1469
+ .magicfeedback-max-diff-head {
1470
+ width: 4.75rem;
1471
+ padding-inline: 2px;
1472
+ font-size: 0.6875rem;
1473
+ }
1474
+
1475
+ .magicfeedback-max-diff-head-label {
1476
+ flex-direction: column;
1477
+ gap: 2px;
1478
+ }
1479
+
1480
+ .magicfeedback-max-diff-item {
1481
+ padding-inline: 4px;
1482
+ font-size: var(--mf-font-size-base);
1483
+ }
1484
+
1485
+ .magicfeedback-max-diff-pick {
1486
+ min-height: 68px;
1487
+ }
1488
+
1489
+ .magicfeedback-max-diff-input {
1490
+ width: 28px;
1491
+ height: 28px;
1492
+ }
1493
+ }
1494
+
1495
+ /* ========================================
1496
+ PRIORITY LIST
1497
+ ======================================== */
1498
+ .magicfeedback-priority-list-item {
1499
+ display: flex;
1500
+ align-items: center;
1501
+ justify-content: space-between;
1502
+ padding: var(--mf-space-md);
1503
+ margin: var(--mf-space-sm) 0;
1504
+ background-color: var(--mf-bg-primary);
1505
+ border: 1.5px solid var(--mf-border);
1506
+ border-radius: var(--mf-radius-md);
1507
+ transition: var(--mf-transition-fast);
1508
+ }
1509
+
1510
+ @media (hover: hover) {
1511
+ .magicfeedback-priority-list-item:hover {
1512
+ box-shadow: var(--mf-shadow-sm);
1513
+ border-color: var(--mf-primary);
1514
+ }
1515
+ }
1516
+
1517
+ .magicfeedback-priority-list-item-label {
1518
+ flex: 1;
1519
+ font-size: var(--mf-font-size-base);
1520
+ text-align: start;
1521
+ color: var(--mf-text-primary);
1522
+ margin: 0;
1523
+ }
1524
+
1525
+ .magicfeedback-priority-list-arrow-up,
1526
+ .magicfeedback-priority-list-arrow-down {
1527
+ padding: var(--mf-space-xs);
1528
+ font-size: var(--mf-font-size-lg);
1529
+ color: var(--mf-text-secondary);
1530
+ cursor: pointer;
1531
+ transition: var(--mf-transition-fast);
1532
+ user-select: none;
1533
+ }
1534
+
1535
+ @media (hover: hover) {
1536
+ .magicfeedback-priority-list-arrow-up:hover,
1537
+ .magicfeedback-priority-list-arrow-down:hover {
1538
+ color: var(--mf-primary);
1539
+ transform: scale(1.2);
1540
+ }
1541
+ }
1542
+
1543
+ /* ========================================
1544
+ POINT SYSTEM
1545
+ ======================================== */
1546
+ .magicfeedback-point-system-item {
1547
+ display: flex;
1548
+ align-items: center;
1549
+ justify-content: space-between;
1550
+ padding: var(--mf-space-md);
1551
+ margin: var(--mf-space-sm) 0;
1552
+ background-color: var(--mf-bg-primary);
1553
+ border: 1.5px solid var(--mf-border);
1554
+ border-radius: var(--mf-radius-md);
1555
+ min-height: 45px;
1556
+ }
1557
+
1558
+ .magicfeedback-point-system-item label {
1559
+ flex: 1;
1560
+ font-size: var(--mf-font-size-base);
1561
+ color: var(--mf-text-primary);
1562
+ margin: 0;
1563
+ }
1564
+
1565
+ .magicfeedback-point-system-input-container {
1566
+ display: flex;
1567
+ align-items: center;
1568
+ gap: var(--mf-space-sm);
1569
+ }
1570
+
1571
+ .magicfeedback-point-system-item input {
1572
+ width: 80px;
1573
+ min-width: 80px;
1574
+ padding: var(--mf-space-sm);
1575
+ text-align: center;
1576
+ font-size: var(--mf-font-size-base);
1577
+ border: 1.5px solid var(--mf-border);
1578
+ border-radius: var(--mf-radius-md);
1579
+ margin: 0;
1580
+ }
1581
+
1582
+ .magicfeedback-point-system-total {
1583
+ display: flex;
1584
+ justify-content: flex-end;
1585
+ margin-top: var(--mf-space-md);
1586
+ font-size: var(--mf-font-size-base);
1587
+ font-weight: 600;
1588
+ color: var(--mf-text-primary);
1589
+ }
1590
+
1591
+ /* ========================================
1592
+ CONSENT
1593
+ ======================================== */
1594
+ .magicfeedback-consent-container {
1595
+ display: flex;
1596
+ flex-direction: row;
1597
+ align-items: center;
1598
+ gap: var(--mf-space-sm);
1599
+ padding: var(--mf-space-md);
1600
+ background-color: var(--mf-bg-secondary);
1601
+ border-radius: var(--mf-radius-md);
1602
+ margin: var(--mf-space-md) 0;
1603
+ }
1604
+
1605
+ .magicfeedback-consent-container input[type="checkbox"] {
1606
+ margin-top: 2px;
1607
+ flex-shrink: 0;
1608
+ accent-color: var(--mf-primary);
1609
+ }
1610
+
1611
+ .magicfeedback-consent-container label {
1612
+ flex: 1;
1613
+ font-size: var(--mf-font-size-sm);
1614
+ text-align: start;
1615
+ color: var(--mf-text-secondary);
1616
+ line-height: var(--mf-line-height);
1617
+ cursor: pointer;
1618
+ margin-bottom: 0;
1619
+ }
1620
+
1621
+ /* ========================================
1622
+ ACTION BUTTONS
1623
+ ======================================== */
1624
+ .magicfeedback-action-container {
1625
+ display: flex;
1626
+ align-items: center;
1627
+ justify-content: space-between;
1628
+ gap: var(--mf-space-md);
1629
+ margin-top: var(--mf-space-xl);
1630
+ padding-top: var(--mf-space-lg);
1631
+ border-top: 1px solid var(--mf-border);
1632
+ }
1633
+
1634
+ .magicfeedback-submit {
1635
+ padding: 0.8rem 1.6rem;
1636
+ font-size: var(--mf-font-size-base);
1637
+ font-weight: 800;
1638
+ color: #FFFFFF;
1639
+ background-color: var(--mf-primary);
1640
+ border: 2px solid var(--mf-primary);
1641
+ border-radius: var(--mf-radius-full);
1642
+ cursor: pointer;
1643
+ transition: var(--mf-transition-fast);
1644
+ box-shadow: var(--mf-shadow-md);
1645
+ }
1646
+
1647
+ @media (hover: hover) {
1648
+ .magicfeedback-submit:hover {
1649
+ background-color: var(--mf-primary-hover);
1650
+ box-shadow: var(--mf-shadow-lg);
1651
+ transform: translateY(-2px);
1652
+ }
1653
+ }
1654
+
1655
+ .magicfeedback-submit:active {
1656
+ transform: translateY(0);
1657
+ box-shadow: var(--mf-shadow-sm);
1658
+ }
1659
+
1660
+ .magicfeedback-submit:disabled {
1661
+ opacity: 0.5;
1662
+ cursor: not-allowed;
1663
+ transform: none;
1664
+ }
1665
+
1666
+ .magicfeedback-back {
1667
+ padding: 0.65rem 1rem;
1668
+ font-size: var(--mf-font-size-base);
1669
+ font-weight: 700;
1670
+ color: var(--mf-primary);
1671
+ background-color: var(--mf-bg-secondary);
1672
+ border: 2px solid var(--mf-border);
1673
+ border-radius: var(--mf-radius-full);
1674
+ cursor: pointer;
1675
+ transition: var(--mf-transition-fast);
1676
+ }
1677
+
1678
+ @media (hover: hover) {
1679
+ .magicfeedback-back:hover {
1680
+ border-color: var(--mf-primary);
1681
+ background-color: var(--mf-bg-hover);
1682
+ }
1683
+ }
1684
+
1685
+ /* hidden on the first page; keep the submit button on the right */
1686
+ .magicfeedback-back[hidden] {
1687
+ display: none;
1688
+ }
1689
+
1690
+ .magicfeedback-action-container .magicfeedback-submit {
1691
+ margin-left: auto;
1692
+ }
1693
+
1694
+ /* ========================================
1695
+ SKIP & COUNTER
1696
+ ======================================== */
1697
+ .magicfeedback-skip-container {
1698
+ display: flex;
1699
+ align-items: center;
1700
+ gap: var(--mf-space-xs);
1701
+ padding: 0;
1702
+ margin: 0;
1703
+ font-size: var(--mf-font-size-sm);
1704
+ color: var(--mf-text-muted);
1705
+ background: transparent;
1706
+ border: none;
1707
+ cursor: pointer;
1708
+ transition: var(--mf-transition-fast);
1709
+ }
1710
+
1711
+ @media (hover: hover) {
1712
+ .magicfeedback-skip-container:hover {
1713
+ color: var(--mf-primary);
1714
+ }
1715
+ }
1716
+
1717
+ .magicfeedback-skip-container input[type="checkbox"] {
1718
+ margin: 0;
1719
+ cursor: pointer;
1720
+ accent-color: var(--mf-primary);
1721
+ }
1722
+
1723
+ .magicfeedback-counter {
1724
+ display: flex;
1725
+ justify-content: flex-end;
1726
+ margin-top: var(--mf-space-md);
1727
+ font-size: var(--mf-font-size-sm);
1728
+ color: var(--mf-text-muted);
1729
+ }
1730
+
1731
+ /* ========================================
1732
+ MODAL STYLES
1733
+ ======================================== */
1734
+ /* Modal backdrop */
1735
+ .magicfeedback-modal-backdrop {
1736
+ position: fixed;
1737
+ top: 0;
1738
+ left: 0;
1739
+ width: 100vw;
1740
+ height: 100vh;
1741
+ background: rgba(0,0,0,0.4);
1742
+ display: none; /* toggled to flex when open */
1743
+ align-items: center;
1744
+ justify-content: center;
1745
+ z-index: 9999;
1746
+ }
1747
+
1748
+ /* Modal container */
1749
+ .magicfeedback-modal {
1750
+ background: #fff;
1751
+ border-radius: 8px;
1752
+ box-shadow: 0 8px 24px rgba(0,0,0,0.2);
1753
+ max-width: 520px;
1754
+ width: 90%;
1755
+ max-height: 80vh;
1756
+ /* Flex column so the options list scrolls while the actions footer
1757
+ (counter + confirm button) stays pinned and always visible. */
1758
+ display: flex;
1759
+ flex-direction: column;
1760
+ overflow: hidden;
1761
+ padding: 16px;
1762
+ position: relative;
1763
+ /* Portalled to document.body (see renderPriorityList.ts) to escape the
1764
+ host page's overflow/z-index — so it never inherits
1765
+ .magicfeedback-container's neutral text color and instead inherits
1766
+ whatever color the host page's own <body> happens to set. Needs its
1767
+ own explicit baseline rather than relying on that inheritance. */
1768
+ color: var(--mf-text-primary);
1769
+ }
1770
+
1771
+ /* Modal actions */
1772
+ .magicfeedback-modal-actions {
1773
+ display: flex;
1774
+ justify-content: flex-end;
1775
+ gap: 8px;
1776
+ margin-top: 12px;
1777
+ flex-shrink: 0;
1778
+ }
1779
+
1780
+ .magicfeedback-modal-counter {
1781
+ margin-inline-end: auto;
1782
+ display: flex;
1783
+ align-items: center;
1784
+ font-size: 14px;
1785
+ color: var(--mf-text-secondary);
1786
+ }
1787
+
1788
+ /* Modal list */
1789
+ .magicfeedback-modal-list {
1790
+ display: flex;
1791
+ flex-direction: column;
1792
+ gap: 8px;
1793
+ /* Scrollable area; footer stays fixed below it. */
1794
+ flex: 1 1 auto;
1795
+ overflow-y: auto;
1796
+ min-height: 0;
1797
+ }
1798
+
1799
+ .magicfeedback-modal-row {
1800
+ display: flex;
1801
+ align-items: center;
1802
+ gap: 10px;
1803
+ cursor: pointer;
1804
+ }
1805
+
1806
+ /* Priority list header */
1807
+ .magicfeedback-priority-list-header {
1808
+ display: flex;
1809
+ align-items: center;
1810
+ justify-content: space-between;
1811
+ gap: 12px;
1812
+ margin-bottom: 8px;
1813
+ }
1814
+
1815
+ .magicfeedback-priority-list-reorder {
1816
+ margin-top: 8px;
1817
+ }
1818
+
1819
+ .magicfeedback-priority-list-list {
1820
+ padding: 0;
1821
+ list-style: none;
1822
+ }
1823
+
1824
+ .magicfeedback-priority-list-item {
1825
+ display: flex;
1826
+ justify-content: space-between;
1827
+ align-items: center;
1828
+ margin: 5px 0;
1829
+ }
1830
+
1831
+ .magicfeedback-priority-list-item-label {
1832
+ font-size: 15px;
1833
+ }
1834
+
1835
+ .magicfeedback-priority-list-arrows {
1836
+ display: flex;
1837
+ align-items: center;
1838
+ gap: 6px;
1839
+ }
1840
+
1841
+ /* Buttons */
1842
+ .magicfeedback-button {
1843
+ appearance: none;
1844
+ border: 2px solid var(--mf-border);
1845
+ border-radius: var(--mf-radius-full);
1846
+ background: var(--mf-bg-secondary);
1847
+ color: var(--mf-text-primary);
1848
+ padding: 0.6rem 1rem;
1849
+ font-size: 14px;
1850
+ font-weight: 700;
1851
+ cursor: pointer;
1852
+ box-shadow: var(--mf-shadow-sm);
1853
+ }
1854
+
1855
+ @media (hover: hover) {
1856
+ .magicfeedback-button:hover {
1857
+ background: var(--mf-bg-hover);
1858
+ border-color: var(--mf-primary);
1859
+ }
1860
+ }
1861
+
1862
+ .magicfeedback-button:active {
1863
+ transform: translateY(1px);
1864
+ }
1865
+
1866
+ .magicfeedback-button-primary {
1867
+ border-color: var(--mf-primary);
1868
+ background: var(--mf-primary);
1869
+ color: #fff;
1870
+ box-shadow: var(--mf-shadow-md);
1871
+ }
1872
+
1873
+ @media (hover: hover) {
1874
+ .magicfeedback-button-primary:hover {
1875
+ background: var(--mf-primary-hover);
1876
+ }
1877
+ }
1878
+
1879
+ .magicfeedback-button-primary:active {
1880
+ background: var(--mf-primary-hover);
1881
+ }
1882
+
1883
+ /* Warning flash */
1884
+ .magicfeedback-warning {
1885
+ color: #C70039;
1886
+ }
1887
+
1888
+ /* Start message button */
1889
+ .magicfeedback-start-message-button {
1890
+ appearance: none;
1891
+ border: 2px solid var(--mf-primary);
1892
+ border-radius: var(--mf-radius-full);
1893
+ background: var(--mf-primary);
1894
+ color: #fff;
1895
+ padding: 0.8rem 1.4rem;
1896
+ font-size: 15px;
1897
+ font-weight: 800;
1898
+ cursor: pointer;
1899
+ box-shadow: var(--mf-shadow-md);
1900
+ }
1901
+
1902
+ @media (hover: hover) {
1903
+ .magicfeedback-start-message-button:hover {
1904
+ background: var(--mf-primary-hover);
1905
+ }
1906
+ }
1907
+
1908
+ /* ========================================
1909
+ RESPONSIVE DESIGN
1910
+ ======================================== */
1911
+ @media (max-width: 768px) {
1912
+ :root {
1913
+ --mf-space-lg: 1.25rem;
1914
+ --mf-space-xl: 1.5rem;
1915
+ }
1916
+
1917
+ .magicfeedback-container {
1918
+ padding: 12px;
1919
+ border-radius: var(--mf-radius-md);
1920
+ }
1921
+
1922
+ .magicfeedback-form {
1923
+ padding: 14px;
1924
+ border-radius: var(--mf-radius-md);
1925
+ }
1926
+
1927
+ .magicfeedback-div {
1928
+ padding: 12px;
1929
+ gap: var(--mf-space-lg)
1930
+ }
1931
+
1932
+ .magicfeedback-label {
1933
+ font-size: var(--mf-font-size-base);
1934
+ }
1935
+
1936
+ .deepdots-popup input[type="date"],
1937
+ .deepdots-popup input[type="text"],
1938
+ .deepdots-popup input[type="number"],
1939
+ .deepdots-popup input[type="email"],
1940
+ .deepdots-popup input[type="password"],
1941
+ .deepdots-popup textarea,
1942
+ .deepdots-popup select {
1943
+ padding: 0.85rem 0.95rem;
1944
+ font-size: 1rem;
1945
+ min-height: 46px;
1946
+ }
1947
+
1948
+ /*
1949
+ .magicfeedback-radio-container,
1950
+ .magicfeedback-checkbox-container,
1951
+ .magicfeedback-boolean-container,
1952
+ .magicfeedback-consent-container {
1953
+ width: 100%;
1954
+ }
1955
+ */
1956
+
1957
+ .magicfeedback-radio-container,
1958
+ .magicfeedback-checkbox-container {
1959
+ padding: 10px 12px;
1960
+ border-radius: var(--mf-radius-md);
1961
+ border: 1px solid var(--mf-border);
1962
+ gap: 10px;
1963
+ }
1964
+
1965
+ .magicfeedback-rating-container,
1966
+ .magicfeedback-rating-number-container,
1967
+ .magicfeedback-rating-star-container {
1968
+ gap: 10px;
1969
+ }
1970
+
1971
+ .magicfeedback-boolean-container {
1972
+ flex-direction: column;
1973
+ gap: 10px;
1974
+ }
1975
+
1976
+ .magicfeedback-rating-number-container-row,
1977
+ .magicfeedback-rating-number-container-row-reverse {
1978
+ gap: 6px;
1979
+ }
1980
+
1981
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
1982
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
1983
+ min-height: 44px;
1984
+ padding: var(--mf-space-xs);
1985
+ font-size: 0.9rem;
1986
+ }
1987
+
1988
+ .magicfeedback-action-container {
1989
+ flex-direction: column-reverse;
1990
+ }
1991
+
1992
+ .magicfeedback-submit,
1993
+ .magicfeedback-back {
1994
+ width: 100%;
1995
+ text-align: center;
1996
+ min-height: 48px;
1997
+ }
1998
+ }
1999
+
2000
+ /* ========================================
2001
+ ACCESSIBILITY
2002
+ ======================================== */
2003
+ @media (prefers-reduced-motion: reduce) {
2004
+ *,
2005
+ *::before,
2006
+ *::after {
2007
+ animation-duration: 0.01ms !important;
2008
+ animation-iteration-count: 1 !important;
2009
+ transition-duration: 0.01ms !important;
2010
+ }
2011
+ }
2012
+
2013
+
2014
+ /* ========================================
2015
+ UTILITY CLASSES
2016
+ ======================================== */
2017
+ .magicfeedback-visually-hidden {
2018
+ position: absolute;
2019
+ width: 1px;
2020
+ height: 1px;
2021
+ padding: 0;
2022
+ margin: -1px;
2023
+ overflow: hidden;
2024
+ clip: rect(0, 0, 0, 0);
2025
+ white-space: nowrap;
2026
+ border-width: 0;
2027
+ }
2028
+
2029
+ .magicfeedback-modal-close {
2030
+ position: absolute;
2031
+ top: 8px;
2032
+ inset-inline-end: 8px;
2033
+ background: transparent;
2034
+ border: none;
2035
+ font-size: 20px;
2036
+ line-height: 1;
2037
+ cursor: pointer;
2038
+ color: #666;
2039
+ }
2040
+
2041
+ .magicfeedback-modal-close:focus {
2042
+ color: #000;
2043
+ outline: none;
2044
+ }
2045
+
2046
+ @media (hover: hover) {
2047
+ .magicfeedback-modal-close:hover {
2048
+ color: #000;
2049
+ outline: none;
2050
+ }
2051
+ }
2052
+
2053
+ /* ========================================
2054
+ FILE / IMAGE UPLOAD
2055
+ ======================================== */
2056
+ .magicfeedback-upload {
2057
+ display: flex;
2058
+ flex-direction: column;
2059
+ gap: var(--mf-space-md);
2060
+ width: 100%;
2061
+ margin: 10px 0;
2062
+ }
2063
+
2064
+ /* The native input is an invisible, focusable overlay covering the dropzone. */
2065
+ .magicfeedback-upload-native {
2066
+ position: absolute;
2067
+ inset: 0;
2068
+ width: 100%;
2069
+ height: 100%;
2070
+ margin: 0;
2071
+ padding: 0;
2072
+ opacity: 0;
2073
+ cursor: pointer;
2074
+ z-index: 2;
2075
+ }
2076
+
2077
+ .magicfeedback-upload-dropzone {
2078
+ position: relative;
2079
+ display: flex;
2080
+ flex-direction: column;
2081
+ align-items: center;
2082
+ justify-content: center;
2083
+ gap: var(--mf-space-sm);
2084
+ box-sizing: border-box;
2085
+ width: 100%;
2086
+ min-height: 150px;
2087
+ padding: var(--mf-space-xl);
2088
+ text-align: center;
2089
+ border: 2px dashed var(--mf-border);
2090
+ border-radius: var(--mf-radius-md);
2091
+ background-color: var(--mf-surface-alt);
2092
+ cursor: pointer;
2093
+ transition: var(--mf-transition);
2094
+ }
2095
+
2096
+ @media (hover: hover) {
2097
+ .magicfeedback-upload-dropzone:hover {
2098
+ border-color: var(--mf-primary);
2099
+ background-color: var(--mf-bg-hover);
2100
+ }
2101
+ }
2102
+
2103
+ .magicfeedback-upload-dropzone:focus-within {
2104
+ border-color: var(--mf-primary);
2105
+ box-shadow: var(--mf-shadow-focus);
2106
+ }
2107
+
2108
+ .magicfeedback-upload-dropzone.is-dragover {
2109
+ border-color: var(--mf-primary);
2110
+ border-style: solid;
2111
+ background-color: var(--mf-primary-light);
2112
+ box-shadow: var(--mf-shadow-focus);
2113
+ }
2114
+
2115
+ .magicfeedback-upload-icon {
2116
+ display: inline-flex;
2117
+ align-items: center;
2118
+ justify-content: center;
2119
+ width: 46px;
2120
+ height: 46px;
2121
+ color: var(--mf-primary);
2122
+ background-color: var(--mf-surface);
2123
+ border-radius: var(--mf-radius-full);
2124
+ box-shadow: var(--mf-shadow-sm);
2125
+ pointer-events: none;
2126
+ }
2127
+
2128
+ .magicfeedback-upload-icon svg {
2129
+ width: 24px;
2130
+ height: 24px;
2131
+ }
2132
+
2133
+ .magicfeedback-upload-cta {
2134
+ font-family: inherit;
2135
+ font-weight: var(--mf-font-weight-semibold);
2136
+ font-size: var(--mf-font-size-base);
2137
+ color: var(--mf-text-primary);
2138
+ pointer-events: none;
2139
+ }
2140
+
2141
+ .magicfeedback-upload-hint {
2142
+ font-family: inherit;
2143
+ font-size: var(--mf-font-size-sm);
2144
+ color: var(--mf-text-muted);
2145
+ pointer-events: none;
2146
+ }
2147
+
2148
+ .magicfeedback-upload-list {
2149
+ display: flex;
2150
+ flex-direction: column;
2151
+ gap: var(--mf-space-sm);
2152
+ width: 100%;
2153
+ margin: 0;
2154
+ padding: 0;
2155
+ list-style: none;
2156
+ }
2157
+
2158
+ .magicfeedback-upload-list:empty {
2159
+ display: none;
2160
+ }
2161
+
2162
+ .magicfeedback-upload-file-item {
2163
+ display: flex;
2164
+ align-items: center;
2165
+ gap: var(--mf-space-md);
2166
+ padding: var(--mf-space-sm) var(--mf-space-md);
2167
+ background-color: var(--mf-surface);
2168
+ border: 1px solid var(--mf-border);
2169
+ border-radius: var(--mf-radius-sm);
2170
+ box-shadow: var(--mf-shadow-sm);
2171
+ animation: mf-scale-in 0.2s ease-out;
2172
+ }
2173
+
2174
+ .magicfeedback-upload-thumb {
2175
+ flex: 0 0 auto;
2176
+ display: inline-flex;
2177
+ align-items: center;
2178
+ justify-content: center;
2179
+ width: 40px;
2180
+ height: 40px;
2181
+ overflow: hidden;
2182
+ color: var(--mf-text-secondary);
2183
+ background-color: var(--mf-surface-alt);
2184
+ border-radius: var(--mf-radius-sm);
2185
+ }
2186
+
2187
+ .magicfeedback-upload-thumb img {
2188
+ width: 100%;
2189
+ height: 100%;
2190
+ object-fit: cover;
2191
+ }
2192
+
2193
+ .magicfeedback-upload-thumb svg {
2194
+ width: 20px;
2195
+ height: 20px;
2196
+ }
2197
+
2198
+ .magicfeedback-upload-file-info {
2199
+ display: flex;
2200
+ flex-direction: column;
2201
+ flex: 1 1 auto;
2202
+ min-width: 0;
2203
+ text-align: start;
2204
+ }
2205
+
2206
+ .magicfeedback-upload-file-name {
2207
+ font-family: inherit;
2208
+ font-size: var(--mf-font-size-sm);
2209
+ font-weight: var(--mf-font-weight-semibold);
2210
+ color: var(--mf-text-primary);
2211
+ white-space: nowrap;
2212
+ overflow: hidden;
2213
+ text-overflow: ellipsis;
2214
+ }
2215
+
2216
+ .magicfeedback-upload-file-size {
2217
+ font-family: inherit;
2218
+ font-size: 0.75rem;
2219
+ color: var(--mf-text-muted);
2220
+ }
2221
+
2222
+ .magicfeedback-upload-remove {
2223
+ flex: 0 0 auto;
2224
+ display: inline-flex;
2225
+ align-items: center;
2226
+ justify-content: center;
2227
+ width: 30px;
2228
+ height: 30px;
2229
+ padding: 0;
2230
+ color: var(--mf-text-muted);
2231
+ background-color: transparent;
2232
+ border: none;
2233
+ border-radius: var(--mf-radius-full);
2234
+ cursor: pointer;
2235
+ transition: var(--mf-transition-fast);
2236
+ }
2237
+
2238
+ .magicfeedback-upload-remove:focus-visible {
2239
+ color: var(--mf-error);
2240
+ background-color: var(--mf-primary-light);
2241
+ outline: none;
2242
+ }
2243
+
2244
+ @media (hover: hover) {
2245
+ .magicfeedback-upload-remove:hover {
2246
+ color: var(--mf-error);
2247
+ background-color: var(--mf-primary-light);
2248
+ outline: none;
2249
+ }
2250
+ }
2251
+
2252
+ .magicfeedback-upload-remove svg {
2253
+ width: 16px;
2254
+ height: 16px;
2255
+ }
2256
+
2257
+ .magicfeedback-upload-error {
2258
+ display: none;
2259
+ font-family: inherit;
2260
+ font-size: var(--mf-font-size-sm);
2261
+ color: var(--mf-error);
2262
+ }
2263
+
2264
+ .magicfeedback-upload-error.is-visible {
2265
+ display: block;
2266
+ }
2267
+
2268
+ /* ========================================
2269
+ RTL (Arabic)
2270
+ ========================================
2271
+ The SDK stamps dir="rtl" (and .magicfeedback-rtl) on the survey container
2272
+ for right-to-left languages. Everything else in this stylesheet uses logical
2273
+ properties (text-align: start, padding-inline-*, inset-inline-*), so it
2274
+ mirrors on its own; only the handful of rules that cannot be expressed
2275
+ logically live here.
2276
+
2277
+ Rules are scoped to [dir="rtl"] inside our own subtree so a host page that is
2278
+ itself RTL, or one that embeds an Arabic survey in an LTR page, both render
2279
+ correctly. */
2280
+
2281
+ /* background-position has no logical form: move the select caret to the
2282
+ left edge, opposite the padding that inset-inline-end already mirrored. */
2283
+ [dir="rtl"] select {
2284
+ background-position: left var(--mf-space-md) center;
2285
+ }
2286
+
2287
+ /* Emails, URLs, numbers, dates and phone numbers are latin/numeric content
2288
+ even in an Arabic survey: keep their own direction LTR so punctuation
2289
+ (@, ., +, /) lands where the user expects, but align them to the start of
2290
+ the RTL line so they still read as part of the form. */
2291
+ [dir="rtl"] input[type="email"],
2292
+ [dir="rtl"] input[type="url"],
2293
+ [dir="rtl"] input[type="number"],
2294
+ [dir="rtl"] input[type="tel"],
2295
+ [dir="rtl"] input[type="date"],
2296
+ [dir="rtl"] input[type="time"] {
2297
+ direction: ltr;
2298
+ text-align: right;
2299
+ }
2300
+
2301
+ /* Mirror of mf-slide-in: questions enter from the reading edge. */
2302
+ @keyframes mf-slide-in-rtl {
2303
+ from {
2304
+ opacity: 0;
2305
+ transform: translateX(16px);
2306
+ }
2307
+ to {
2308
+ opacity: 1;
2309
+ transform: translateX(0);
2310
+ }
2311
+ }
2312
+
2313
+ [dir="rtl"] .magicfeedback-div {
2314
+ animation-name: mf-slide-in-rtl;
2315
+ }
2316
+
2317
+ /* ========================================
2318
+ LOCAL — reglas del popup, no vienen del paquete
2319
+ ======================================== */
2320
+
2321
+ /* Los controles de formulario no heredan font-family: cuando el popup trae fuente propia
2322
+ (clase deepdots-has-font), se les fuerza la del contenedor. */
2323
+ .deepdots-popup.deepdots-has-font button,
2324
+ .deepdots-popup.deepdots-has-font input,
2325
+ .deepdots-popup.deepdots-has-font textarea,
2326
+ .deepdots-popup.deepdots-has-font select {
2327
+ font-family: var(--deepdots-font, inherit);
2328
+ }
2329
+
2330
+ /* WebKit sí aplica el padding al radio nativo: con padding el control se dibuja enorme (se vio
2331
+ en iOS, WebView de RN y Safari, no en Chrome). El paquete ya no lo pone, pero la regla es
2332
+ barata y evita que vuelva. */
2333
+ .deepdots-popup input[type="radio"] {
2334
+ padding: 0;
2335
+ }