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