@magicfeedback/popup-sdk 1.17.2 → 1.19.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 +33 -1
  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 +165 -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-7ZQOAKXR.mjs +3335 -0
  17. package/dist/chunk-7ZQOAKXR.mjs.map +1 -0
  18. package/dist/chunk-BJTO5JO5.mjs +11 -0
  19. package/dist/chunk-BJTO5JO5.mjs.map +1 -0
  20. package/dist/{chunk-AFRHPS3K.mjs → chunk-EW2ARDEY.mjs} +591 -51
  21. package/dist/chunk-EW2ARDEY.mjs.map +1 -0
  22. package/dist/{chunk-VHTN5UXD.mjs → chunk-XOEEBDBJ.mjs} +630 -10
  23. package/dist/chunk-XOEEBDBJ.mjs.map +1 -0
  24. package/dist/index.d.mts +159 -10
  25. package/dist/index.d.ts +159 -10
  26. package/dist/index.js +7275 -1466
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +318 -41
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/index.native.d.mts +1616 -0
  31. package/dist/index.native.d.ts +1616 -0
  32. package/dist/index.native.js +15853 -0
  33. package/dist/index.native.js.map +1 -0
  34. package/dist/index.native.mjs +3914 -0
  35. package/dist/index.native.mjs.map +1 -0
  36. package/dist/react-native.d.mts +105 -8
  37. package/dist/react-native.d.ts +105 -8
  38. package/dist/react-native.js +5827 -132
  39. package/dist/react-native.js.map +1 -1
  40. package/dist/react-native.mjs +313 -43
  41. package/dist/react-native.mjs.map +1 -1
  42. package/dist/renderPopup-2Y4QMWR7.mjs +3847 -0
  43. package/dist/renderPopup-2Y4QMWR7.mjs.map +1 -0
  44. package/dist/renderPopup-YDJUON42.mjs +3847 -0
  45. package/dist/renderPopup-YDJUON42.mjs.map +1 -0
  46. package/dist/{renderPopup-L2Q3KJAZ.mjs → renderPopup-ZHTRMFO2.mjs} +142 -9
  47. package/dist/renderPopup-ZHTRMFO2.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-AFRHPS3K.mjs.map +0 -1
  52. package/dist/chunk-VHTN5UXD.mjs.map +0 -1
  53. package/dist/renderPopup-L2Q3KJAZ.mjs.map +0 -1
  54. package/dist/renderPopup-PQWJSBOY.mjs +0 -3622
  55. package/dist/renderPopup-PQWJSBOY.mjs.map +0 -1
@@ -0,0 +1,2336 @@
1
+ /**
2
+ * NO EDITAR A MANO — generado por scripts/vendor-survey-css.mjs
3
+ *
4
+ * Copia de @magicfeedback/native@2.2.39 → 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
+ text-align: start;
537
+ font-size: var(--mf-font-size-sm);
538
+ line-height: 1.45;
539
+ color: var(--mf-text-secondary);
540
+ }
541
+
542
+ .magicfeedback-email-hint b {
543
+ font-weight: var(--mf-font-weight-extrabold);
544
+ color: var(--mf-text-primary);
545
+ }
546
+
547
+ /* Custom Select Arrow */
548
+ .deepdots-popup select {
549
+ 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");
550
+ background-repeat: no-repeat;
551
+ background-position: right var(--mf-space-md) center;
552
+ padding-inline-end: var(--mf-space-xl);
553
+ }
554
+
555
+ /* Error State */
556
+ .deepdots-popup input.error,
557
+ .deepdots-popup select.error,
558
+ .deepdots-popup textarea.error {
559
+ border-color: var(--mf-error);
560
+ }
561
+
562
+ .magicfeedback-error {
563
+ margin-top: var(--mf-space-xs);
564
+ font-size: var(--mf-font-size-sm);
565
+ color: var(--mf-error);
566
+ }
567
+
568
+ /* ========================================
569
+ CHECKBOX & RADIO OPTIONS
570
+ ======================================== */
571
+ .magicfeedback-checkbox,
572
+ div.magicfeedback-radio {
573
+ display: flex;
574
+ flex-direction: column;
575
+ gap: var(--mf-space-sm);
576
+ width: 100%;
577
+ }
578
+
579
+ /* Single choice in a row (assets.direction "row"): one equal box per
580
+ option. The "other" text field wraps to its own line below. Stacked
581
+ (phone, or too narrow) it is the usual vertical list again. */
582
+ .magicfeedback-radio--row {
583
+ flex-direction: row;
584
+ flex-wrap: wrap;
585
+ }
586
+
587
+ .magicfeedback-radio--row > .magicfeedback-radio-container {
588
+ flex: 1 1 0;
589
+ min-width: 0;
590
+ }
591
+
592
+ .magicfeedback-radio--row > .magicfeedback-extra-option {
593
+ flex-basis: 100%;
594
+ }
595
+
596
+ .magicfeedback-radio--row.magicfeedback-radio--stacked {
597
+ flex-direction: column;
598
+ flex-wrap: nowrap;
599
+ }
600
+
601
+ .magicfeedback-radio--row.magicfeedback-radio--stacked > .magicfeedback-radio-container {
602
+ flex: none;
603
+ }
604
+
605
+ .magicfeedback-radio--row .magicfeedback-radio-container label {
606
+ overflow-wrap: anywhere;
607
+ }
608
+
609
+ .magicfeedback-checkbox-container,
610
+ .magicfeedback-radio-container {
611
+ display: flex;
612
+ align-items: center;
613
+ gap: var(--mf-space-sm);
614
+ padding: var(--mf-space-md);
615
+ border: 1.5px solid var(--mf-border);
616
+ border-radius: var(--mf-radius-md);
617
+ cursor: pointer;
618
+ transition: var(--mf-transition-fast);
619
+ }
620
+
621
+ @media (hover: hover) {
622
+ .magicfeedback-checkbox-container:hover,
623
+ .magicfeedback-radio-container:hover {
624
+ background-color: var(--mf-bg-hover);
625
+ border-color: var(--mf-primary);
626
+ }
627
+ }
628
+
629
+ .magicfeedback-checkbox-container:has(input:checked),
630
+ .magicfeedback-radio-container:has(input:checked) {
631
+ background-color: var(--mf-primary-light);
632
+ border-color: var(--mf-primary);
633
+ }
634
+
635
+ .magicfeedback-checkbox input[type="checkbox"],
636
+ .magicfeedback-radio-container input[type="radio"] {
637
+ width: 18px;
638
+ height: 18px;
639
+ margin: 0;
640
+ cursor: pointer;
641
+ flex-shrink: 0;
642
+ accent-color: var(--mf-primary);
643
+ }
644
+
645
+ .magicfeedback-checkbox label,
646
+ .magicfeedback-radio-container label {
647
+ font-size: var(--mf-font-size-base);
648
+ text-align: start;
649
+ color: var(--mf-text-primary);
650
+ cursor: pointer;
651
+ margin: 0;
652
+ flex: 1;
653
+ }
654
+
655
+ /* ========================================
656
+ BOOLEAN OPTIONS
657
+ ======================================== */
658
+ .magicfeedback-boolean-container {
659
+ display: flex;
660
+ gap: var(--mf-space-md);
661
+ width: 100%;
662
+ }
663
+
664
+ .magicfeedback-boolean-option {
665
+ flex: 1;
666
+ position: relative;
667
+ }
668
+
669
+ .magicfeedback-boolean-option input[type="radio"] {
670
+ position: absolute;
671
+ opacity: 0;
672
+ width: 0;
673
+ height: 0;
674
+ }
675
+
676
+ .magicfeedback-boolean-option label {
677
+ display: flex;
678
+ align-items: center;
679
+ justify-content: center;
680
+ padding: var(--mf-space-md);
681
+ font-size: var(--mf-font-size-base);
682
+ font-weight: 500;
683
+ color: var(--mf-text-secondary);
684
+ border: 1.5px solid var(--mf-border);
685
+ border-radius: var(--mf-radius-md);
686
+ cursor: pointer;
687
+ transition: var(--mf-transition-fast);
688
+ margin: 0;
689
+ width: -webkit-fill-available;
690
+ height: inherit;
691
+ }
692
+
693
+ @media (hover: hover) {
694
+ .magicfeedback-boolean-option label:hover {
695
+ background-color: var(--mf-bg-hover);
696
+ border-color: var(--mf-primary);
697
+ }
698
+ }
699
+
700
+ .magicfeedback-boolean-option input[type="radio"]:checked + label {
701
+ color: var(--mf-primary);
702
+ background-color: var(--mf-primary-light);
703
+ border-color: var(--mf-primary);
704
+ font-weight: 600;
705
+ }
706
+
707
+ /* ========================================
708
+ RATING SYSTEMS
709
+ ======================================== */
710
+ .magicfeedback-rating,
711
+ .magicfeedback-rating-number,
712
+ .magicfeedback-rating-star {
713
+ width: 100%;
714
+ }
715
+
716
+ .magicfeedback-rating-container,
717
+ .magicfeedback-rating-number-container,
718
+ .magicfeedback-rating-star-container {
719
+ display: flex;
720
+ flex-wrap: wrap;
721
+ gap: var(--mf-space-sm);
722
+ justify-content: center;
723
+ align-items: center;
724
+ padding: var(--mf-space-md) 0;
725
+ list-style: none;
726
+ margin: 0;
727
+ }
728
+
729
+ /* Caption line below the row — min on one side, max on the other (swapped
730
+ for order: "rtl") — same simple, non-responsive pattern as the
731
+ rating-number row caption. Used by rating-star and rating-emoji. */
732
+ .magicfeedback-rating-placeholder {
733
+ display: flex;
734
+ justify-content: space-between;
735
+ gap: var(--mf-space-md);
736
+ width: 100%;
737
+ margin-top: var(--mf-space-sm);
738
+ font-size: var(--mf-font-size-sm);
739
+ font-weight: var(--mf-font-weight-semibold);
740
+ color: var(--mf-text-secondary);
741
+ }
742
+
743
+ .magicfeedback-rating-placeholder-value {
744
+ overflow-wrap: anywhere;
745
+ }
746
+
747
+ .magicfeedback-rating-placeholder-value:last-child {
748
+ text-align: end;
749
+ }
750
+
751
+ /* Rating with Images */
752
+ .magicfeedback-rating-option-label-container input[type="radio"] {
753
+ position: absolute;
754
+ opacity: 0;
755
+ width: 0;
756
+ height: 0;
757
+ }
758
+
759
+ .magicfeedback-rating-option-label-container img {
760
+ width: 56px;
761
+ height: 56px;
762
+ cursor: pointer;
763
+ transition: var(--mf-transition-fast);
764
+ border-radius: var(--mf-radius-full);
765
+ border: 2px solid transparent;
766
+ }
767
+
768
+ @media (hover: hover) {
769
+ .magicfeedback-rating-option-label-container img:hover {
770
+ transform: scale(1.1);
771
+ border-color: var(--mf-primary);
772
+ }
773
+ }
774
+
775
+ .magicfeedback-rating-option-label-container input[type="radio"]:checked + img {
776
+ border-color: var(--mf-primary);
777
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
778
+ }
779
+
780
+ .magicfeedback-rating-option-label-container label {
781
+ display: block;
782
+ text-align: center;
783
+ font-size: var(--mf-font-size-sm);
784
+ color: var(--mf-text-secondary);
785
+ margin-top: var(--mf-space-xs);
786
+ cursor: pointer;
787
+ }
788
+
789
+ /* Rating Numbers — each option is its own outlined chip in the survey's
790
+ primary color, with a gap between them. Row and column use the same
791
+ chip; column additionally has room to show each option's own text
792
+ plainly next to its number. */
793
+
794
+ /* Every size here is width:100%/flex:1 combined with the chip's own
795
+ padding and border. Without border-box, the browser's default
796
+ content-box adds that padding/border on TOP of the declared size, so
797
+ the chip quietly overflows past its flex slot — reading as "not quite
798
+ full width" or, worse, pushing into the next chip. */
799
+ .magicfeedback-rating-number-container,
800
+ .magicfeedback-rating-number-option,
801
+ .magicfeedback-rating-number-option-label-container,
802
+ .magicfeedback-rating-number-value {
803
+ box-sizing: border-box;
804
+ }
805
+
806
+ /* The shared rating-container rule (above, reused by star rating) sets
807
+ align-items:center for its row-of-chips layout — in a stacked column
808
+ that still nudges a 100%-wide chip inward instead of a true 0 offset.
809
+ Force stretch so every chip fills the exact same width, flush on
810
+ both sides. */
811
+ .magicfeedback-rating-number-container-column,
812
+ .magicfeedback-rating-number-container-column-reverse {
813
+ align-items: stretch;
814
+ }
815
+
816
+ /* Caption line below the row — the single place min/max labels live
817
+ for row mode, shared by mobile and desktop. */
818
+ .magicfeedback-rating-number-scale-labels {
819
+ display: flex;
820
+ justify-content: space-between;
821
+ gap: var(--mf-space-md);
822
+ margin-top: var(--mf-space-sm);
823
+ font-size: var(--mf-font-size-sm);
824
+ font-weight: var(--mf-font-weight-semibold);
825
+ color: var(--mf-text-secondary);
826
+ }
827
+
828
+ .magicfeedback-rating-number-scale-label {
829
+ overflow-wrap: anywhere;
830
+ }
831
+
832
+ /* assets.minMaxPlaceholderPosition: the caption above or below the row. */
833
+ .magicfeedback-rating-number-scale-labels--top {
834
+ margin-top: 0;
835
+ margin-bottom: var(--mf-space-sm);
836
+ }
837
+
838
+ .magicfeedback-rating-number-scale-labels--bottom {
839
+ margin-top: var(--mf-space-sm);
840
+ margin-bottom: 0;
841
+ }
842
+
843
+ /* Row with a text per number: the text sits above each chip (below with
844
+ numberPlaceholdersPosition "bottom"). The option is a column laid out
845
+ inline; this only spaces and styles the text. */
846
+ .magicfeedback-rating-number-option--captioned {
847
+ gap: var(--mf-space-xs);
848
+ }
849
+
850
+ .magicfeedback-rating-number-option-caption {
851
+ font-size: var(--mf-font-size-sm);
852
+ font-weight: var(--mf-font-weight-semibold);
853
+ color: var(--mf-text-secondary);
854
+ text-align: center;
855
+ line-height: 1.25;
856
+ overflow-wrap: anywhere;
857
+ cursor: pointer;
858
+ }
859
+
860
+ .magicfeedback-rating-number-scale-label:last-child {
861
+ text-align: end;
862
+ }
863
+
864
+ /* Column, no per-option text: each row is its own separated chip, so
865
+ the min/max labels bookend the stack from outside it — one line
866
+ above the first chip, one below the last. Margin goes on whichever
867
+ side actually faces the list — the "before" label (always the first
868
+ child) gets space below it, the "after" one (always right after the
869
+ container, extra option row or not) gets space above it — so both
870
+ sit the same distance from the chips regardless of which one it is. */
871
+ .magicfeedback-rating-number-scale-label-block {
872
+ font-size: var(--mf-font-size-sm);
873
+ font-weight: var(--mf-font-weight-semibold);
874
+ color: var(--mf-text-secondary);
875
+ text-align: center;
876
+ }
877
+
878
+ .magicfeedback-rating-number-scale-label-block:first-child {
879
+ margin-bottom: var(--mf-space-sm);
880
+ }
881
+
882
+ .magicfeedback-rating-number-container + .magicfeedback-rating-number-scale-label-block {
883
+ margin-top: var(--mf-space-sm);
884
+ }
885
+
886
+ .magicfeedback-rating-number-option {
887
+ display: flex;
888
+ }
889
+
890
+ .magicfeedback-rating-number-option-label-container {
891
+ position: relative;
892
+ width: 100%;
893
+ display: flex;
894
+ cursor: pointer;
895
+ }
896
+
897
+ .magicfeedback-rating-number-option-label-container input[type="radio"] {
898
+ position: absolute;
899
+ opacity: 0;
900
+ width: 0;
901
+ height: 0;
902
+ }
903
+
904
+ .magicfeedback-rating-number-value {
905
+ display: flex;
906
+ align-items: center;
907
+ justify-content: center;
908
+ width: 100%;
909
+ transition: var(--mf-transition-fast);
910
+ color: var(--mf-text-secondary);
911
+ font-weight: var(--mf-font-weight-semibold);
912
+ }
913
+
914
+ /* Row: individual outlined chips in the survey's own primary color —
915
+ var(--mf-primary) so whatever brand color a given survey sets carries
916
+ through automatically, no color hardcoded here. */
917
+ .magicfeedback-rating-number-container-row,
918
+ .magicfeedback-rating-number-container-row-reverse {
919
+ flex-wrap: nowrap;
920
+ gap: var(--mf-space-sm);
921
+ }
922
+
923
+ .magicfeedback-rating-number-option-row,
924
+ .magicfeedback-rating-number-option-row-reverse {
925
+ flex: 1 1 0;
926
+ min-width: 0;
927
+ }
928
+
929
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
930
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
931
+ min-height: 56px;
932
+ padding: var(--mf-space-sm);
933
+ border: 2px solid var(--mf-primary-border);
934
+ border-radius: var(--mf-radius-md);
935
+ background: var(--mf-bg-secondary);
936
+ color: var(--mf-primary);
937
+ font-size: var(--mf-font-size-lg);
938
+ font-weight: var(--mf-font-weight-bold);
939
+ }
940
+
941
+ /* More than 6 options (e.g. a 0-10 NPS scale): still one row, never
942
+ wraps — but scaled down on purpose, so it reads as a compact chip
943
+ rather than the same 56px button stretched thin. */
944
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
945
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
946
+ min-height: 36px;
947
+ padding: var(--mf-space-xs);
948
+ border-radius: var(--mf-radius-sm);
949
+ font-size: 0.8rem;
950
+ }
951
+
952
+ @media (hover: hover) {
953
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
954
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
955
+ background: var(--mf-primary-light);
956
+ }
957
+ }
958
+
959
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
960
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
961
+ color: #fff;
962
+ background-color: var(--mf-primary);
963
+ box-shadow: var(--mf-shadow-md);
964
+ }
965
+
966
+ /* Extra option: always its own row below the scale, and styled like every
967
+ other chip now — "doesn't apply" is still not a point on the 1..N
968
+ continuum, but it no longer needs a different border style to say so. */
969
+ .magicfeedback-rating-number-extra-row {
970
+ display: flex;
971
+ justify-content: center;
972
+ margin-top: var(--mf-space-sm);
973
+ }
974
+
975
+ .magicfeedback-rating-number-option--extra {
976
+ flex: 0 1 auto;
977
+ }
978
+
979
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container {
980
+ width: auto;
981
+ }
982
+
983
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-value {
984
+ min-height: 36px;
985
+ padding: 0 var(--mf-space-md);
986
+ border: 2px solid var(--mf-primary-border);
987
+ border-radius: var(--mf-radius-md);
988
+ background: var(--mf-bg-secondary);
989
+ color: var(--mf-primary);
990
+ font-size: var(--mf-font-size-sm);
991
+ }
992
+
993
+ @media (hover: hover) {
994
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
995
+ background: var(--mf-primary-light);
996
+ }
997
+ }
998
+
999
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1000
+ color: #fff;
1001
+ background-color: var(--mf-primary);
1002
+ box-shadow: var(--mf-shadow-md);
1003
+ }
1004
+
1005
+ /* Column: the same separated chips as row, just stacked — each option is
1006
+ its own outlined chip with a gap between them, not one shared box. */
1007
+ .magicfeedback-rating-number-container-column,
1008
+ .magicfeedback-rating-number-container-column-reverse {
1009
+ gap: var(--mf-space-sm);
1010
+ }
1011
+
1012
+ .magicfeedback-rating-number-option-column,
1013
+ .magicfeedback-rating-number-option-column-reverse {
1014
+ width: 100%;
1015
+ }
1016
+
1017
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-value,
1018
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-value {
1019
+ justify-content: flex-start;
1020
+ gap: var(--mf-space-sm);
1021
+ min-height: 48px;
1022
+ padding: var(--mf-space-sm) var(--mf-space-md);
1023
+ border: 2px solid var(--mf-primary-border);
1024
+ border-radius: var(--mf-radius-md);
1025
+ background: var(--mf-bg-secondary);
1026
+ color: var(--mf-primary);
1027
+ }
1028
+
1029
+ @media (hover: hover) {
1030
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
1031
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
1032
+ background: var(--mf-primary-light);
1033
+ }
1034
+ }
1035
+
1036
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1037
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1038
+ color: #fff;
1039
+ background-color: var(--mf-primary);
1040
+ box-shadow: var(--mf-shadow-md);
1041
+ }
1042
+
1043
+ .magicfeedback-rating-number-value-num {
1044
+ font-weight: var(--mf-font-weight-bold);
1045
+ }
1046
+
1047
+ /* Column with per-option text: a min-width so "1".."9" and "10" line up,
1048
+ with the label text starting at the same x. Skipped entirely when the
1049
+ column has no per-option text at all (--bare below) — with nothing to
1050
+ align against, the same left-shift bug from row mode would resurface. */
1051
+ .magicfeedback-rating-number-container-column:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num,
1052
+ .magicfeedback-rating-number-container-column-reverse:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num {
1053
+ flex: none;
1054
+ min-width: 1.4em;
1055
+ }
1056
+
1057
+ /* Column, no per-option text at all (only min/max, or nothing): a bare
1058
+ numbered list has nothing to left-align against, so center each
1059
+ number instead of stranding it on the left with blank space beside it. */
1060
+ .magicfeedback-rating-number-container-column--bare .magicfeedback-rating-number-value {
1061
+ justify-content: center;
1062
+ }
1063
+
1064
+ .magicfeedback-rating-number-value-label {
1065
+ font-weight: var(--mf-font-weight-medium);
1066
+ }
1067
+
1068
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1069
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1070
+ color: #fff;
1071
+ background-color: var(--mf-primary);
1072
+ }
1073
+
1074
+ /* Star Rating */
1075
+ .magicfeedback-rating-star-container {
1076
+ justify-content: center;
1077
+ }
1078
+
1079
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star {
1080
+ font-size: 40px;
1081
+ color: var(--mf-border);
1082
+ cursor: pointer;
1083
+ margin: 0 var(--mf-space-xs);
1084
+ transition: var(--mf-transition-fast);
1085
+ }
1086
+
1087
+ @media (hover: hover) {
1088
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover,
1089
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover ~ span {
1090
+ color: #fbbf24;
1091
+ transform: scale(1.1);
1092
+ }
1093
+ }
1094
+
1095
+ .magicfeedback-rating-star-selected {
1096
+ color: #fbbf24 !important;
1097
+ }
1098
+
1099
+ /* ========================================
1100
+ MULTIPLE CHOICE WITH IMAGES
1101
+ ======================================== */
1102
+ .magicfeedback-multiple-choice-image-option {
1103
+ display: flex;
1104
+ border-radius: var(--mf-radius-md);
1105
+ overflow: hidden;
1106
+ transition: var(--mf-transition-fast);
1107
+ }
1108
+
1109
+ .magicfeedback-image-option-label-container {
1110
+ cursor: pointer;
1111
+ border-radius: var(--mf-radius-md);
1112
+ overflow: hidden;
1113
+ transition: var(--mf-transition-fast);
1114
+ }
1115
+
1116
+ .magicfeedback-image-option-label-container input[type="radio"],
1117
+ .magicfeedback-image-option-label-container input[type="checkbox"] {
1118
+ position: absolute;
1119
+ opacity: 0;
1120
+ width: 0;
1121
+ height: 0;
1122
+ }
1123
+
1124
+ .magicfeedback-image-option-label-container img {
1125
+ width: 100%;
1126
+ height: auto;
1127
+ display: block;
1128
+ border: 2px solid var(--mf-border);
1129
+ border-radius: var(--mf-radius-md);
1130
+ transition: var(--mf-transition-fast);
1131
+ }
1132
+
1133
+ @media (hover: hover) {
1134
+ .magicfeedback-image-option-label-container:hover img {
1135
+ border-color: var(--mf-primary);
1136
+ box-shadow: var(--mf-shadow-md);
1137
+ }
1138
+ }
1139
+
1140
+ .magicfeedback-image-option-label-container input:checked + img {
1141
+ border-color: var(--mf-primary);
1142
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
1143
+ }
1144
+
1145
+ /* ========================================
1146
+ MATRIX QUESTIONS
1147
+ ======================================== */
1148
+ .magicfeedback-multi-question-matrix-container {
1149
+ width: 100%;
1150
+ overflow-x: auto;
1151
+ border-radius: var(--mf-radius-md);
1152
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
1153
+ not the size of the window */
1154
+ container-type: inline-size;
1155
+ }
1156
+
1157
+ .magicfeedback-multi-question-matrix-table {
1158
+ width: 100%;
1159
+ border-collapse: separate;
1160
+ border-spacing: 0 var(--mf-space-xs);
1161
+ }
1162
+
1163
+ .magicfeedback-multi-question-matrix-table th {
1164
+ padding: var(--mf-space-md);
1165
+ text-align: center;
1166
+ font-size: var(--mf-font-size-sm);
1167
+ font-weight: 500;
1168
+ color: var(--mf-text-secondary);
1169
+ }
1170
+
1171
+ .magicfeedback-multi-question-matrix-row-tr {
1172
+ background-color: var(--mf-bg-primary);
1173
+ border-radius: var(--mf-radius-md);
1174
+ transition: var(--mf-transition-fast);
1175
+ }
1176
+
1177
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
1178
+ background-color: var(--mf-bg-secondary);
1179
+ }
1180
+
1181
+ @media (hover: hover) {
1182
+ .magicfeedback-multi-question-matrix-row-tr:hover {
1183
+ background-color: var(--mf-bg-hover);
1184
+ box-shadow: var(--mf-shadow-sm);
1185
+ }
1186
+ }
1187
+
1188
+ .magicfeedback-multi-question-matrix-table td {
1189
+ padding: var(--mf-space-md);
1190
+ text-align: center;
1191
+ }
1192
+
1193
+ .magicfeedback-multi-question-matrix-label {
1194
+ text-align: start;
1195
+ font-size: var(--mf-font-size-base);
1196
+ color: var(--mf-text-primary);
1197
+ }
1198
+
1199
+ .magicfeedback-multi-question-matrix-table input[type="radio"] {
1200
+ width: 20px;
1201
+ height: 20px;
1202
+ cursor: pointer;
1203
+ accent-color: var(--mf-primary);
1204
+ }
1205
+
1206
+ .magicfeedback-multi-question-matrix-question {
1207
+ min-width: 200px;
1208
+ padding: 10px;
1209
+ }
1210
+
1211
+ /* the column header names the option in a table; the per-cell label is for
1212
+ screen readers until the rows stack */
1213
+ .magicfeedback-multi-question-matrix-option-label {
1214
+ position: absolute;
1215
+ width: 1px;
1216
+ height: 1px;
1217
+ overflow: hidden;
1218
+ clip: rect(0, 0, 0, 0);
1219
+ white-space: nowrap;
1220
+ }
1221
+
1222
+ /* narrow container: every row becomes its own question with the options
1223
+ stacked underneath, instead of a table cut off at the side */
1224
+ @container (max-width: 599px) {
1225
+ .magicfeedback-multi-question-matrix-table,
1226
+ .magicfeedback-multi-question-matrix-table tbody,
1227
+ .magicfeedback-multi-question-matrix-table tr,
1228
+ .magicfeedback-multi-question-matrix-table td {
1229
+ display: block;
1230
+ width: 100%;
1231
+ }
1232
+
1233
+ .magicfeedback-multi-question-matrix-table thead {
1234
+ display: none;
1235
+ }
1236
+
1237
+ .magicfeedback-multi-question-matrix-row-tr,
1238
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
1239
+ margin-bottom: var(--mf-space-lg);
1240
+ background: transparent;
1241
+ box-shadow: none;
1242
+ }
1243
+
1244
+ @media (hover: hover) {
1245
+ .magicfeedback-multi-question-matrix-row-tr:hover {
1246
+ margin-bottom: var(--mf-space-lg);
1247
+ background: transparent;
1248
+ box-shadow: none;
1249
+ }
1250
+ }
1251
+
1252
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-question {
1253
+ min-width: 0;
1254
+ padding: 0 0 var(--mf-space-sm);
1255
+ text-align: start;
1256
+ }
1257
+
1258
+ .magicfeedback-multi-question-matrix-question .magicfeedback-multi-question-matrix-label {
1259
+ font-weight: 600;
1260
+ }
1261
+
1262
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-option {
1263
+ display: flex;
1264
+ align-items: center;
1265
+ gap: var(--mf-space-sm);
1266
+ margin-bottom: var(--mf-space-sm);
1267
+ padding: 0 var(--mf-space-md);
1268
+ text-align: start;
1269
+ background: var(--mf-bg-secondary);
1270
+ border: 2px solid var(--mf-border);
1271
+ border-radius: var(--mf-radius-md);
1272
+ cursor: pointer;
1273
+ transition: var(--mf-transition-fast);
1274
+ }
1275
+
1276
+ @media (hover: hover) {
1277
+ .magicfeedback-multi-question-matrix-option:hover {
1278
+ border-color: var(--mf-primary-border);
1279
+ }
1280
+ }
1281
+
1282
+ .magicfeedback-multi-question-matrix-option:has(input:checked) {
1283
+ border-color: var(--mf-primary);
1284
+ background: var(--mf-primary-light);
1285
+ }
1286
+
1287
+ .magicfeedback-multi-question-matrix-table .magicfeedback-multi-question-matrix-option input[type="radio"] {
1288
+ flex-shrink: 0;
1289
+ }
1290
+
1291
+ /* the whole card is the click target */
1292
+ .magicfeedback-multi-question-matrix-option-label {
1293
+ position: static;
1294
+ flex: 1;
1295
+ width: auto;
1296
+ height: auto;
1297
+ padding: var(--mf-space-md) 0;
1298
+ overflow: visible;
1299
+ clip: auto;
1300
+ white-space: normal;
1301
+ font-size: var(--mf-font-size-base);
1302
+ color: var(--mf-text-primary);
1303
+ cursor: pointer;
1304
+ }
1305
+ }
1306
+
1307
+ /* ========================================
1308
+ MAXDIFF (BEST–WORST)
1309
+ ======================================== */
1310
+ .magicfeedback-max-diff {
1311
+ /* "least" gets its own hue, apart from the brand color "most" uses; dark
1312
+ enough to read as header text and to hold the white center dot */
1313
+ --mf-max-diff-worst: #b45309;
1314
+ width: 100%;
1315
+ }
1316
+
1317
+ .magicfeedback-max-diff-container {
1318
+ width: 100%;
1319
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
1320
+ not the size of the window */
1321
+ container-type: inline-size;
1322
+ }
1323
+
1324
+ .magicfeedback-max-diff-progress {
1325
+ display: flex;
1326
+ align-items: center;
1327
+ gap: var(--mf-space-md);
1328
+ margin-bottom: var(--mf-space-lg);
1329
+ }
1330
+
1331
+ .magicfeedback-max-diff-progress-label {
1332
+ font-size: 0.8125rem;
1333
+ font-weight: var(--mf-font-weight-bold);
1334
+ letter-spacing: 0.04em;
1335
+ text-transform: uppercase;
1336
+ white-space: nowrap;
1337
+ color: var(--mf-text-secondary);
1338
+ }
1339
+
1340
+ .magicfeedback-max-diff-progress-track {
1341
+ flex: 1;
1342
+ height: 6px;
1343
+ overflow: hidden;
1344
+ border-radius: var(--mf-radius-full);
1345
+ background: var(--mf-border);
1346
+ }
1347
+
1348
+ .magicfeedback-max-diff-progress-fill {
1349
+ display: block;
1350
+ height: 100%;
1351
+ border-radius: var(--mf-radius-full);
1352
+ background: var(--mf-primary);
1353
+ }
1354
+
1355
+ .magicfeedback-max-diff-table {
1356
+ width: 100%;
1357
+ border-collapse: collapse;
1358
+ }
1359
+
1360
+ .magicfeedback-max-diff-head,
1361
+ .magicfeedback-max-diff-head-spacer {
1362
+ border-bottom: 1px solid var(--mf-border);
1363
+ }
1364
+
1365
+ .magicfeedback-max-diff-head {
1366
+ width: 11rem;
1367
+ padding: 0 var(--mf-space-sm) var(--mf-space-sm);
1368
+ font-size: 0.8125rem;
1369
+ font-weight: var(--mf-font-weight-extrabold);
1370
+ letter-spacing: 0.04em;
1371
+ text-transform: uppercase;
1372
+ text-align: center;
1373
+ vertical-align: bottom;
1374
+ }
1375
+
1376
+ .magicfeedback-max-diff-head-best {
1377
+ color: var(--mf-primary);
1378
+ }
1379
+
1380
+ .magicfeedback-max-diff-head-worst {
1381
+ color: var(--mf-max-diff-worst);
1382
+ }
1383
+
1384
+ .magicfeedback-max-diff-head-label {
1385
+ display: inline-flex;
1386
+ align-items: center;
1387
+ gap: 6px;
1388
+ }
1389
+
1390
+ .magicfeedback-max-diff-row {
1391
+ transition: background-color 0.15s ease;
1392
+ }
1393
+
1394
+ .magicfeedback-max-diff-row > * {
1395
+ border-bottom: 1px solid var(--mf-border);
1396
+ }
1397
+
1398
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-best:checked) {
1399
+ background-color: color-mix(in srgb, var(--mf-primary) 8%, transparent);
1400
+ }
1401
+
1402
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-worst:checked) {
1403
+ background-color: color-mix(in srgb, var(--mf-max-diff-worst) 8%, transparent);
1404
+ }
1405
+
1406
+ .magicfeedback-max-diff-item {
1407
+ padding: var(--mf-space-md) var(--mf-space-sm);
1408
+ font-size: 1.0625rem;
1409
+ font-weight: var(--mf-font-weight-semibold);
1410
+ line-height: 1.4;
1411
+ text-align: center;
1412
+ color: var(--mf-text-primary);
1413
+ }
1414
+
1415
+ .magicfeedback-max-diff-row:has(input:checked) .magicfeedback-max-diff-item {
1416
+ font-weight: var(--mf-font-weight-extrabold);
1417
+ }
1418
+
1419
+ .magicfeedback-max-diff-cell {
1420
+ padding: 0;
1421
+ }
1422
+
1423
+ /* the whole cell is the click target */
1424
+ .magicfeedback-max-diff-pick {
1425
+ display: flex;
1426
+ align-items: center;
1427
+ justify-content: center;
1428
+ min-height: 64px;
1429
+ cursor: pointer;
1430
+ }
1431
+
1432
+ .magicfeedback-max-diff-input {
1433
+ appearance: none;
1434
+ -webkit-appearance: none;
1435
+ flex-shrink: 0;
1436
+ width: 26px;
1437
+ height: 26px;
1438
+ margin: 0;
1439
+ border: 2px solid color-mix(in srgb, var(--mf-text-secondary) 80%, white);
1440
+ border-radius: var(--mf-radius-full);
1441
+ background: var(--mf-bg-secondary);
1442
+ cursor: pointer;
1443
+ transition: var(--mf-transition-fast);
1444
+ }
1445
+
1446
+ @media (hover: hover) {
1447
+ .magicfeedback-max-diff-pick:hover .magicfeedback-max-diff-input {
1448
+ transform: scale(1.08);
1449
+ }
1450
+ }
1451
+
1452
+ .magicfeedback-max-diff-best:checked {
1453
+ border-color: var(--mf-primary);
1454
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-primary) 4.5px);
1455
+ }
1456
+
1457
+ .magicfeedback-max-diff-worst:checked {
1458
+ border-color: var(--mf-max-diff-worst);
1459
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-max-diff-worst) 4.5px);
1460
+ }
1461
+
1462
+ .magicfeedback-max-diff-input:focus-visible {
1463
+ outline: 3px solid var(--mf-primary-border);
1464
+ outline-offset: 3px;
1465
+ }
1466
+
1467
+ /* narrow container: same table, slimmer pick columns and the header icon
1468
+ stacked over its label */
1469
+ @container (max-width: 599px) {
1470
+ .magicfeedback-max-diff-head {
1471
+ width: 4.75rem;
1472
+ padding-inline: 2px;
1473
+ font-size: 0.6875rem;
1474
+ }
1475
+
1476
+ .magicfeedback-max-diff-head-label {
1477
+ flex-direction: column;
1478
+ gap: 2px;
1479
+ }
1480
+
1481
+ .magicfeedback-max-diff-item {
1482
+ padding-inline: 4px;
1483
+ font-size: var(--mf-font-size-base);
1484
+ }
1485
+
1486
+ .magicfeedback-max-diff-pick {
1487
+ min-height: 68px;
1488
+ }
1489
+
1490
+ .magicfeedback-max-diff-input {
1491
+ width: 28px;
1492
+ height: 28px;
1493
+ }
1494
+ }
1495
+
1496
+ /* ========================================
1497
+ PRIORITY LIST
1498
+ ======================================== */
1499
+ .magicfeedback-priority-list-item {
1500
+ display: flex;
1501
+ align-items: center;
1502
+ justify-content: space-between;
1503
+ padding: var(--mf-space-md);
1504
+ margin: var(--mf-space-sm) 0;
1505
+ background-color: var(--mf-bg-primary);
1506
+ border: 1.5px solid var(--mf-border);
1507
+ border-radius: var(--mf-radius-md);
1508
+ transition: var(--mf-transition-fast);
1509
+ }
1510
+
1511
+ @media (hover: hover) {
1512
+ .magicfeedback-priority-list-item:hover {
1513
+ box-shadow: var(--mf-shadow-sm);
1514
+ border-color: var(--mf-primary);
1515
+ }
1516
+ }
1517
+
1518
+ .magicfeedback-priority-list-item-label {
1519
+ flex: 1;
1520
+ font-size: var(--mf-font-size-base);
1521
+ text-align: start;
1522
+ color: var(--mf-text-primary);
1523
+ margin: 0;
1524
+ }
1525
+
1526
+ .magicfeedback-priority-list-arrow-up,
1527
+ .magicfeedback-priority-list-arrow-down {
1528
+ padding: var(--mf-space-xs);
1529
+ font-size: var(--mf-font-size-lg);
1530
+ color: var(--mf-text-secondary);
1531
+ cursor: pointer;
1532
+ transition: var(--mf-transition-fast);
1533
+ user-select: none;
1534
+ }
1535
+
1536
+ @media (hover: hover) {
1537
+ .magicfeedback-priority-list-arrow-up:hover,
1538
+ .magicfeedback-priority-list-arrow-down:hover {
1539
+ color: var(--mf-primary);
1540
+ transform: scale(1.2);
1541
+ }
1542
+ }
1543
+
1544
+ /* ========================================
1545
+ POINT SYSTEM
1546
+ ======================================== */
1547
+ .magicfeedback-point-system-item {
1548
+ display: flex;
1549
+ align-items: center;
1550
+ justify-content: space-between;
1551
+ padding: var(--mf-space-md);
1552
+ margin: var(--mf-space-sm) 0;
1553
+ background-color: var(--mf-bg-primary);
1554
+ border: 1.5px solid var(--mf-border);
1555
+ border-radius: var(--mf-radius-md);
1556
+ min-height: 45px;
1557
+ }
1558
+
1559
+ .magicfeedback-point-system-item label {
1560
+ flex: 1;
1561
+ font-size: var(--mf-font-size-base);
1562
+ color: var(--mf-text-primary);
1563
+ margin: 0;
1564
+ }
1565
+
1566
+ .magicfeedback-point-system-input-container {
1567
+ display: flex;
1568
+ align-items: center;
1569
+ gap: var(--mf-space-sm);
1570
+ }
1571
+
1572
+ .magicfeedback-point-system-item input {
1573
+ width: 80px;
1574
+ min-width: 80px;
1575
+ padding: var(--mf-space-sm);
1576
+ text-align: center;
1577
+ font-size: var(--mf-font-size-base);
1578
+ border: 1.5px solid var(--mf-border);
1579
+ border-radius: var(--mf-radius-md);
1580
+ margin: 0;
1581
+ }
1582
+
1583
+ .magicfeedback-point-system-total {
1584
+ display: flex;
1585
+ justify-content: flex-end;
1586
+ margin-top: var(--mf-space-md);
1587
+ font-size: var(--mf-font-size-base);
1588
+ font-weight: 600;
1589
+ color: var(--mf-text-primary);
1590
+ }
1591
+
1592
+ /* ========================================
1593
+ CONSENT
1594
+ ======================================== */
1595
+ .magicfeedback-consent-container {
1596
+ display: flex;
1597
+ flex-direction: row;
1598
+ align-items: center;
1599
+ gap: var(--mf-space-sm);
1600
+ padding: var(--mf-space-md);
1601
+ background-color: var(--mf-bg-secondary);
1602
+ border-radius: var(--mf-radius-md);
1603
+ margin: var(--mf-space-md) 0;
1604
+ }
1605
+
1606
+ .magicfeedback-consent-container input[type="checkbox"] {
1607
+ margin-top: 2px;
1608
+ flex-shrink: 0;
1609
+ accent-color: var(--mf-primary);
1610
+ }
1611
+
1612
+ .magicfeedback-consent-container label {
1613
+ flex: 1;
1614
+ font-size: var(--mf-font-size-sm);
1615
+ text-align: start;
1616
+ color: var(--mf-text-secondary);
1617
+ line-height: var(--mf-line-height);
1618
+ cursor: pointer;
1619
+ margin-bottom: 0;
1620
+ }
1621
+
1622
+ /* ========================================
1623
+ ACTION BUTTONS
1624
+ ======================================== */
1625
+ .magicfeedback-action-container {
1626
+ display: flex;
1627
+ align-items: center;
1628
+ justify-content: space-between;
1629
+ gap: var(--mf-space-md);
1630
+ margin-top: var(--mf-space-xl);
1631
+ padding-top: var(--mf-space-lg);
1632
+ border-top: 1px solid var(--mf-border);
1633
+ }
1634
+
1635
+ .magicfeedback-submit {
1636
+ padding: 0.8rem 1.6rem;
1637
+ font-size: var(--mf-font-size-base);
1638
+ font-weight: 800;
1639
+ color: #FFFFFF;
1640
+ background-color: var(--mf-primary);
1641
+ border: 2px solid var(--mf-primary);
1642
+ border-radius: var(--mf-radius-full);
1643
+ cursor: pointer;
1644
+ transition: var(--mf-transition-fast);
1645
+ box-shadow: var(--mf-shadow-md);
1646
+ }
1647
+
1648
+ @media (hover: hover) {
1649
+ .magicfeedback-submit:hover {
1650
+ background-color: var(--mf-primary-hover);
1651
+ box-shadow: var(--mf-shadow-lg);
1652
+ transform: translateY(-2px);
1653
+ }
1654
+ }
1655
+
1656
+ .magicfeedback-submit:active {
1657
+ transform: translateY(0);
1658
+ box-shadow: var(--mf-shadow-sm);
1659
+ }
1660
+
1661
+ .magicfeedback-submit:disabled {
1662
+ opacity: 0.5;
1663
+ cursor: not-allowed;
1664
+ transform: none;
1665
+ }
1666
+
1667
+ .magicfeedback-back {
1668
+ padding: 0.65rem 1rem;
1669
+ font-size: var(--mf-font-size-base);
1670
+ font-weight: 700;
1671
+ color: var(--mf-primary);
1672
+ background-color: var(--mf-bg-secondary);
1673
+ border: 2px solid var(--mf-border);
1674
+ border-radius: var(--mf-radius-full);
1675
+ cursor: pointer;
1676
+ transition: var(--mf-transition-fast);
1677
+ }
1678
+
1679
+ @media (hover: hover) {
1680
+ .magicfeedback-back:hover {
1681
+ border-color: var(--mf-primary);
1682
+ background-color: var(--mf-bg-hover);
1683
+ }
1684
+ }
1685
+
1686
+ /* hidden on the first page; keep the submit button on the right */
1687
+ .magicfeedback-back[hidden] {
1688
+ display: none;
1689
+ }
1690
+
1691
+ .magicfeedback-action-container .magicfeedback-submit {
1692
+ margin-left: auto;
1693
+ }
1694
+
1695
+ /* ========================================
1696
+ SKIP & COUNTER
1697
+ ======================================== */
1698
+ .magicfeedback-skip-container {
1699
+ display: flex;
1700
+ align-items: center;
1701
+ gap: var(--mf-space-xs);
1702
+ padding: 0;
1703
+ margin: 0;
1704
+ font-size: var(--mf-font-size-sm);
1705
+ color: var(--mf-text-muted);
1706
+ background: transparent;
1707
+ border: none;
1708
+ cursor: pointer;
1709
+ transition: var(--mf-transition-fast);
1710
+ }
1711
+
1712
+ @media (hover: hover) {
1713
+ .magicfeedback-skip-container:hover {
1714
+ color: var(--mf-primary);
1715
+ }
1716
+ }
1717
+
1718
+ .magicfeedback-skip-container input[type="checkbox"] {
1719
+ margin: 0;
1720
+ cursor: pointer;
1721
+ accent-color: var(--mf-primary);
1722
+ }
1723
+
1724
+ .magicfeedback-counter {
1725
+ display: flex;
1726
+ justify-content: flex-end;
1727
+ margin-top: var(--mf-space-md);
1728
+ font-size: var(--mf-font-size-sm);
1729
+ color: var(--mf-text-muted);
1730
+ }
1731
+
1732
+ /* ========================================
1733
+ MODAL STYLES
1734
+ ======================================== */
1735
+ /* Modal backdrop */
1736
+ .magicfeedback-modal-backdrop {
1737
+ position: fixed;
1738
+ top: 0;
1739
+ left: 0;
1740
+ width: 100vw;
1741
+ height: 100vh;
1742
+ background: rgba(0,0,0,0.4);
1743
+ display: none; /* toggled to flex when open */
1744
+ align-items: center;
1745
+ justify-content: center;
1746
+ z-index: 9999;
1747
+ }
1748
+
1749
+ /* Modal container */
1750
+ .magicfeedback-modal {
1751
+ background: #fff;
1752
+ border-radius: 8px;
1753
+ box-shadow: 0 8px 24px rgba(0,0,0,0.2);
1754
+ max-width: 520px;
1755
+ width: 90%;
1756
+ max-height: 80vh;
1757
+ /* Flex column so the options list scrolls while the actions footer
1758
+ (counter + confirm button) stays pinned and always visible. */
1759
+ display: flex;
1760
+ flex-direction: column;
1761
+ overflow: hidden;
1762
+ padding: 16px;
1763
+ position: relative;
1764
+ /* Portalled to document.body (see renderPriorityList.ts) to escape the
1765
+ host page's overflow/z-index — so it never inherits
1766
+ .magicfeedback-container's neutral text color and instead inherits
1767
+ whatever color the host page's own <body> happens to set. Needs its
1768
+ own explicit baseline rather than relying on that inheritance. */
1769
+ color: var(--mf-text-primary);
1770
+ }
1771
+
1772
+ /* Modal actions */
1773
+ .magicfeedback-modal-actions {
1774
+ display: flex;
1775
+ justify-content: flex-end;
1776
+ gap: 8px;
1777
+ margin-top: 12px;
1778
+ flex-shrink: 0;
1779
+ }
1780
+
1781
+ .magicfeedback-modal-counter {
1782
+ margin-inline-end: auto;
1783
+ display: flex;
1784
+ align-items: center;
1785
+ font-size: 14px;
1786
+ color: var(--mf-text-secondary);
1787
+ }
1788
+
1789
+ /* Modal list */
1790
+ .magicfeedback-modal-list {
1791
+ display: flex;
1792
+ flex-direction: column;
1793
+ gap: 8px;
1794
+ /* Scrollable area; footer stays fixed below it. */
1795
+ flex: 1 1 auto;
1796
+ overflow-y: auto;
1797
+ min-height: 0;
1798
+ }
1799
+
1800
+ .magicfeedback-modal-row {
1801
+ display: flex;
1802
+ align-items: center;
1803
+ gap: 10px;
1804
+ cursor: pointer;
1805
+ }
1806
+
1807
+ /* Priority list header */
1808
+ .magicfeedback-priority-list-header {
1809
+ display: flex;
1810
+ align-items: center;
1811
+ justify-content: space-between;
1812
+ gap: 12px;
1813
+ margin-bottom: 8px;
1814
+ }
1815
+
1816
+ .magicfeedback-priority-list-reorder {
1817
+ margin-top: 8px;
1818
+ }
1819
+
1820
+ .magicfeedback-priority-list-list {
1821
+ padding: 0;
1822
+ list-style: none;
1823
+ }
1824
+
1825
+ .magicfeedback-priority-list-item {
1826
+ display: flex;
1827
+ justify-content: space-between;
1828
+ align-items: center;
1829
+ margin: 5px 0;
1830
+ }
1831
+
1832
+ .magicfeedback-priority-list-item-label {
1833
+ font-size: 15px;
1834
+ }
1835
+
1836
+ .magicfeedback-priority-list-arrows {
1837
+ display: flex;
1838
+ align-items: center;
1839
+ gap: 6px;
1840
+ }
1841
+
1842
+ /* Buttons */
1843
+ .magicfeedback-button {
1844
+ appearance: none;
1845
+ border: 2px solid var(--mf-border);
1846
+ border-radius: var(--mf-radius-full);
1847
+ background: var(--mf-bg-secondary);
1848
+ color: var(--mf-text-primary);
1849
+ padding: 0.6rem 1rem;
1850
+ font-size: 14px;
1851
+ font-weight: 700;
1852
+ cursor: pointer;
1853
+ box-shadow: var(--mf-shadow-sm);
1854
+ }
1855
+
1856
+ @media (hover: hover) {
1857
+ .magicfeedback-button:hover {
1858
+ background: var(--mf-bg-hover);
1859
+ border-color: var(--mf-primary);
1860
+ }
1861
+ }
1862
+
1863
+ .magicfeedback-button:active {
1864
+ transform: translateY(1px);
1865
+ }
1866
+
1867
+ .magicfeedback-button-primary {
1868
+ border-color: var(--mf-primary);
1869
+ background: var(--mf-primary);
1870
+ color: #fff;
1871
+ box-shadow: var(--mf-shadow-md);
1872
+ }
1873
+
1874
+ @media (hover: hover) {
1875
+ .magicfeedback-button-primary:hover {
1876
+ background: var(--mf-primary-hover);
1877
+ }
1878
+ }
1879
+
1880
+ .magicfeedback-button-primary:active {
1881
+ background: var(--mf-primary-hover);
1882
+ }
1883
+
1884
+ /* Warning flash */
1885
+ .magicfeedback-warning {
1886
+ color: #C70039;
1887
+ }
1888
+
1889
+ /* Start message button */
1890
+ .magicfeedback-start-message-button {
1891
+ appearance: none;
1892
+ border: 2px solid var(--mf-primary);
1893
+ border-radius: var(--mf-radius-full);
1894
+ background: var(--mf-primary);
1895
+ color: #fff;
1896
+ padding: 0.8rem 1.4rem;
1897
+ font-size: 15px;
1898
+ font-weight: 800;
1899
+ cursor: pointer;
1900
+ box-shadow: var(--mf-shadow-md);
1901
+ }
1902
+
1903
+ @media (hover: hover) {
1904
+ .magicfeedback-start-message-button:hover {
1905
+ background: var(--mf-primary-hover);
1906
+ }
1907
+ }
1908
+
1909
+ /* ========================================
1910
+ RESPONSIVE DESIGN
1911
+ ======================================== */
1912
+ @media (max-width: 768px) {
1913
+ :root {
1914
+ --mf-space-lg: 1.25rem;
1915
+ --mf-space-xl: 1.5rem;
1916
+ }
1917
+
1918
+ .magicfeedback-container {
1919
+ padding: 12px;
1920
+ border-radius: var(--mf-radius-md);
1921
+ }
1922
+
1923
+ .magicfeedback-form {
1924
+ padding: 14px;
1925
+ border-radius: var(--mf-radius-md);
1926
+ }
1927
+
1928
+ .magicfeedback-div {
1929
+ padding: 12px;
1930
+ gap: var(--mf-space-lg)
1931
+ }
1932
+
1933
+ .magicfeedback-label {
1934
+ font-size: var(--mf-font-size-base);
1935
+ }
1936
+
1937
+ .deepdots-popup input[type="date"],
1938
+ .deepdots-popup input[type="text"],
1939
+ .deepdots-popup input[type="number"],
1940
+ .deepdots-popup input[type="email"],
1941
+ .deepdots-popup input[type="password"],
1942
+ .deepdots-popup textarea,
1943
+ .deepdots-popup select {
1944
+ padding: 0.85rem 0.95rem;
1945
+ font-size: 1rem;
1946
+ min-height: 46px;
1947
+ }
1948
+
1949
+ /*
1950
+ .magicfeedback-radio-container,
1951
+ .magicfeedback-checkbox-container,
1952
+ .magicfeedback-boolean-container,
1953
+ .magicfeedback-consent-container {
1954
+ width: 100%;
1955
+ }
1956
+ */
1957
+
1958
+ .magicfeedback-radio-container,
1959
+ .magicfeedback-checkbox-container {
1960
+ padding: 10px 12px;
1961
+ border-radius: var(--mf-radius-md);
1962
+ border: 1px solid var(--mf-border);
1963
+ gap: 10px;
1964
+ }
1965
+
1966
+ .magicfeedback-rating-container,
1967
+ .magicfeedback-rating-number-container,
1968
+ .magicfeedback-rating-star-container {
1969
+ gap: 10px;
1970
+ }
1971
+
1972
+ .magicfeedback-boolean-container {
1973
+ flex-direction: column;
1974
+ gap: 10px;
1975
+ }
1976
+
1977
+ .magicfeedback-rating-number-container-row,
1978
+ .magicfeedback-rating-number-container-row-reverse {
1979
+ gap: 6px;
1980
+ }
1981
+
1982
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
1983
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
1984
+ min-height: 44px;
1985
+ padding: var(--mf-space-xs);
1986
+ font-size: 0.9rem;
1987
+ }
1988
+
1989
+ .magicfeedback-action-container {
1990
+ flex-direction: column-reverse;
1991
+ }
1992
+
1993
+ .magicfeedback-submit,
1994
+ .magicfeedback-back {
1995
+ width: 100%;
1996
+ text-align: center;
1997
+ min-height: 48px;
1998
+ }
1999
+ }
2000
+
2001
+ /* ========================================
2002
+ ACCESSIBILITY
2003
+ ======================================== */
2004
+ @media (prefers-reduced-motion: reduce) {
2005
+ *,
2006
+ *::before,
2007
+ *::after {
2008
+ animation-duration: 0.01ms !important;
2009
+ animation-iteration-count: 1 !important;
2010
+ transition-duration: 0.01ms !important;
2011
+ }
2012
+ }
2013
+
2014
+
2015
+ /* ========================================
2016
+ UTILITY CLASSES
2017
+ ======================================== */
2018
+ .magicfeedback-visually-hidden {
2019
+ position: absolute;
2020
+ width: 1px;
2021
+ height: 1px;
2022
+ padding: 0;
2023
+ margin: -1px;
2024
+ overflow: hidden;
2025
+ clip: rect(0, 0, 0, 0);
2026
+ white-space: nowrap;
2027
+ border-width: 0;
2028
+ }
2029
+
2030
+ .magicfeedback-modal-close {
2031
+ position: absolute;
2032
+ top: 8px;
2033
+ inset-inline-end: 8px;
2034
+ background: transparent;
2035
+ border: none;
2036
+ font-size: 20px;
2037
+ line-height: 1;
2038
+ cursor: pointer;
2039
+ color: #666;
2040
+ }
2041
+
2042
+ .magicfeedback-modal-close:focus {
2043
+ color: #000;
2044
+ outline: none;
2045
+ }
2046
+
2047
+ @media (hover: hover) {
2048
+ .magicfeedback-modal-close:hover {
2049
+ color: #000;
2050
+ outline: none;
2051
+ }
2052
+ }
2053
+
2054
+ /* ========================================
2055
+ FILE / IMAGE UPLOAD
2056
+ ======================================== */
2057
+ .magicfeedback-upload {
2058
+ display: flex;
2059
+ flex-direction: column;
2060
+ gap: var(--mf-space-md);
2061
+ width: 100%;
2062
+ margin: 10px 0;
2063
+ }
2064
+
2065
+ /* The native input is an invisible, focusable overlay covering the dropzone. */
2066
+ .magicfeedback-upload-native {
2067
+ position: absolute;
2068
+ inset: 0;
2069
+ width: 100%;
2070
+ height: 100%;
2071
+ margin: 0;
2072
+ padding: 0;
2073
+ opacity: 0;
2074
+ cursor: pointer;
2075
+ z-index: 2;
2076
+ }
2077
+
2078
+ .magicfeedback-upload-dropzone {
2079
+ position: relative;
2080
+ display: flex;
2081
+ flex-direction: column;
2082
+ align-items: center;
2083
+ justify-content: center;
2084
+ gap: var(--mf-space-sm);
2085
+ box-sizing: border-box;
2086
+ width: 100%;
2087
+ min-height: 150px;
2088
+ padding: var(--mf-space-xl);
2089
+ text-align: center;
2090
+ border: 2px dashed var(--mf-border);
2091
+ border-radius: var(--mf-radius-md);
2092
+ background-color: var(--mf-surface-alt);
2093
+ cursor: pointer;
2094
+ transition: var(--mf-transition);
2095
+ }
2096
+
2097
+ @media (hover: hover) {
2098
+ .magicfeedback-upload-dropzone:hover {
2099
+ border-color: var(--mf-primary);
2100
+ background-color: var(--mf-bg-hover);
2101
+ }
2102
+ }
2103
+
2104
+ .magicfeedback-upload-dropzone:focus-within {
2105
+ border-color: var(--mf-primary);
2106
+ box-shadow: var(--mf-shadow-focus);
2107
+ }
2108
+
2109
+ .magicfeedback-upload-dropzone.is-dragover {
2110
+ border-color: var(--mf-primary);
2111
+ border-style: solid;
2112
+ background-color: var(--mf-primary-light);
2113
+ box-shadow: var(--mf-shadow-focus);
2114
+ }
2115
+
2116
+ .magicfeedback-upload-icon {
2117
+ display: inline-flex;
2118
+ align-items: center;
2119
+ justify-content: center;
2120
+ width: 46px;
2121
+ height: 46px;
2122
+ color: var(--mf-primary);
2123
+ background-color: var(--mf-surface);
2124
+ border-radius: var(--mf-radius-full);
2125
+ box-shadow: var(--mf-shadow-sm);
2126
+ pointer-events: none;
2127
+ }
2128
+
2129
+ .magicfeedback-upload-icon svg {
2130
+ width: 24px;
2131
+ height: 24px;
2132
+ }
2133
+
2134
+ .magicfeedback-upload-cta {
2135
+ font-family: inherit;
2136
+ font-weight: var(--mf-font-weight-semibold);
2137
+ font-size: var(--mf-font-size-base);
2138
+ color: var(--mf-text-primary);
2139
+ pointer-events: none;
2140
+ }
2141
+
2142
+ .magicfeedback-upload-hint {
2143
+ font-family: inherit;
2144
+ font-size: var(--mf-font-size-sm);
2145
+ color: var(--mf-text-muted);
2146
+ pointer-events: none;
2147
+ }
2148
+
2149
+ .magicfeedback-upload-list {
2150
+ display: flex;
2151
+ flex-direction: column;
2152
+ gap: var(--mf-space-sm);
2153
+ width: 100%;
2154
+ margin: 0;
2155
+ padding: 0;
2156
+ list-style: none;
2157
+ }
2158
+
2159
+ .magicfeedback-upload-list:empty {
2160
+ display: none;
2161
+ }
2162
+
2163
+ .magicfeedback-upload-file-item {
2164
+ display: flex;
2165
+ align-items: center;
2166
+ gap: var(--mf-space-md);
2167
+ padding: var(--mf-space-sm) var(--mf-space-md);
2168
+ background-color: var(--mf-surface);
2169
+ border: 1px solid var(--mf-border);
2170
+ border-radius: var(--mf-radius-sm);
2171
+ box-shadow: var(--mf-shadow-sm);
2172
+ animation: mf-scale-in 0.2s ease-out;
2173
+ }
2174
+
2175
+ .magicfeedback-upload-thumb {
2176
+ flex: 0 0 auto;
2177
+ display: inline-flex;
2178
+ align-items: center;
2179
+ justify-content: center;
2180
+ width: 40px;
2181
+ height: 40px;
2182
+ overflow: hidden;
2183
+ color: var(--mf-text-secondary);
2184
+ background-color: var(--mf-surface-alt);
2185
+ border-radius: var(--mf-radius-sm);
2186
+ }
2187
+
2188
+ .magicfeedback-upload-thumb img {
2189
+ width: 100%;
2190
+ height: 100%;
2191
+ object-fit: cover;
2192
+ }
2193
+
2194
+ .magicfeedback-upload-thumb svg {
2195
+ width: 20px;
2196
+ height: 20px;
2197
+ }
2198
+
2199
+ .magicfeedback-upload-file-info {
2200
+ display: flex;
2201
+ flex-direction: column;
2202
+ flex: 1 1 auto;
2203
+ min-width: 0;
2204
+ text-align: start;
2205
+ }
2206
+
2207
+ .magicfeedback-upload-file-name {
2208
+ font-family: inherit;
2209
+ font-size: var(--mf-font-size-sm);
2210
+ font-weight: var(--mf-font-weight-semibold);
2211
+ color: var(--mf-text-primary);
2212
+ white-space: nowrap;
2213
+ overflow: hidden;
2214
+ text-overflow: ellipsis;
2215
+ }
2216
+
2217
+ .magicfeedback-upload-file-size {
2218
+ font-family: inherit;
2219
+ font-size: 0.75rem;
2220
+ color: var(--mf-text-muted);
2221
+ }
2222
+
2223
+ .magicfeedback-upload-remove {
2224
+ flex: 0 0 auto;
2225
+ display: inline-flex;
2226
+ align-items: center;
2227
+ justify-content: center;
2228
+ width: 30px;
2229
+ height: 30px;
2230
+ padding: 0;
2231
+ color: var(--mf-text-muted);
2232
+ background-color: transparent;
2233
+ border: none;
2234
+ border-radius: var(--mf-radius-full);
2235
+ cursor: pointer;
2236
+ transition: var(--mf-transition-fast);
2237
+ }
2238
+
2239
+ .magicfeedback-upload-remove:focus-visible {
2240
+ color: var(--mf-error);
2241
+ background-color: var(--mf-primary-light);
2242
+ outline: none;
2243
+ }
2244
+
2245
+ @media (hover: hover) {
2246
+ .magicfeedback-upload-remove:hover {
2247
+ color: var(--mf-error);
2248
+ background-color: var(--mf-primary-light);
2249
+ outline: none;
2250
+ }
2251
+ }
2252
+
2253
+ .magicfeedback-upload-remove svg {
2254
+ width: 16px;
2255
+ height: 16px;
2256
+ }
2257
+
2258
+ .magicfeedback-upload-error {
2259
+ display: none;
2260
+ font-family: inherit;
2261
+ font-size: var(--mf-font-size-sm);
2262
+ color: var(--mf-error);
2263
+ }
2264
+
2265
+ .magicfeedback-upload-error.is-visible {
2266
+ display: block;
2267
+ }
2268
+
2269
+ /* ========================================
2270
+ RTL (Arabic)
2271
+ ========================================
2272
+ The SDK stamps dir="rtl" (and .magicfeedback-rtl) on the survey container
2273
+ for right-to-left languages. Everything else in this stylesheet uses logical
2274
+ properties (text-align: start, padding-inline-*, inset-inline-*), so it
2275
+ mirrors on its own; only the handful of rules that cannot be expressed
2276
+ logically live here.
2277
+
2278
+ Rules are scoped to [dir="rtl"] inside our own subtree so a host page that is
2279
+ itself RTL, or one that embeds an Arabic survey in an LTR page, both render
2280
+ correctly. */
2281
+
2282
+ /* background-position has no logical form: move the select caret to the
2283
+ left edge, opposite the padding that inset-inline-end already mirrored. */
2284
+ [dir="rtl"] select {
2285
+ background-position: left var(--mf-space-md) center;
2286
+ }
2287
+
2288
+ /* Emails, URLs, numbers, dates and phone numbers are latin/numeric content
2289
+ even in an Arabic survey: keep their own direction LTR so punctuation
2290
+ (@, ., +, /) lands where the user expects, but align them to the start of
2291
+ the RTL line so they still read as part of the form. */
2292
+ [dir="rtl"] input[type="email"],
2293
+ [dir="rtl"] input[type="url"],
2294
+ [dir="rtl"] input[type="number"],
2295
+ [dir="rtl"] input[type="tel"],
2296
+ [dir="rtl"] input[type="date"],
2297
+ [dir="rtl"] input[type="time"] {
2298
+ direction: ltr;
2299
+ text-align: right;
2300
+ }
2301
+
2302
+ /* Mirror of mf-slide-in: questions enter from the reading edge. */
2303
+ @keyframes mf-slide-in-rtl {
2304
+ from {
2305
+ opacity: 0;
2306
+ transform: translateX(16px);
2307
+ }
2308
+ to {
2309
+ opacity: 1;
2310
+ transform: translateX(0);
2311
+ }
2312
+ }
2313
+
2314
+ [dir="rtl"] .magicfeedback-div {
2315
+ animation-name: mf-slide-in-rtl;
2316
+ }
2317
+
2318
+ /* ========================================
2319
+ LOCAL — reglas del popup, no vienen del paquete
2320
+ ======================================== */
2321
+
2322
+ /* Los controles de formulario no heredan font-family: cuando el popup trae fuente propia
2323
+ (clase deepdots-has-font), se les fuerza la del contenedor. */
2324
+ .deepdots-popup.deepdots-has-font button,
2325
+ .deepdots-popup.deepdots-has-font input,
2326
+ .deepdots-popup.deepdots-has-font textarea,
2327
+ .deepdots-popup.deepdots-has-font select {
2328
+ font-family: var(--deepdots-font, inherit);
2329
+ }
2330
+
2331
+ /* WebKit sí aplica el padding al radio nativo: con padding el control se dibuja enorme (se vio
2332
+ en iOS, WebView de RN y Safari, no en Chrome). El paquete ya no lo pone, pero la regla es
2333
+ barata y evita que vuelva. */
2334
+ .deepdots-popup input[type="radio"] {
2335
+ padding: 0;
2336
+ }