@magicfeedback/popup-sdk 1.4.0 → 1.6.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.
@@ -0,0 +1,1944 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
6
+ });
7
+
8
+ // src/tracking/tracking-manager.ts
9
+ var InMemoryStorage = class {
10
+ constructor() {
11
+ this.map = /* @__PURE__ */ new Map();
12
+ }
13
+ getItem(key) {
14
+ return this.map.has(key) ? this.map.get(key) : null;
15
+ }
16
+ setItem(key, value) {
17
+ this.map.set(key, value);
18
+ }
19
+ removeItem(key) {
20
+ this.map.delete(key);
21
+ }
22
+ };
23
+ function createDefaultStorage() {
24
+ try {
25
+ if (typeof window !== "undefined" && window.localStorage) {
26
+ const ls = window.localStorage;
27
+ const probe = "__deepdots_probe__";
28
+ ls.setItem(probe, "1");
29
+ ls.removeItem(probe);
30
+ return {
31
+ getItem: (k) => ls.getItem(k),
32
+ setItem: (k, v) => ls.setItem(k, v),
33
+ removeItem: (k) => ls.removeItem(k)
34
+ };
35
+ }
36
+ } catch {
37
+ }
38
+ return new InMemoryStorage();
39
+ }
40
+ var STORAGE_KEYS = {
41
+ userId: "deepdots.user_id",
42
+ firstSeen: "deepdots.user.first_seen",
43
+ contactAttributes: "deepdots.contact.attributes"
44
+ };
45
+ function buildSurveyIdentity(userId, sessionId, miniService = null, analyticsFeedbackSessionId = null) {
46
+ const profile = userId ? [{ key: "external-user-id", value: [userId] }] : [];
47
+ const metadata = [];
48
+ if (sessionId) metadata.push({ key: "session_id", value: [sessionId] });
49
+ if (userId) metadata.push({ key: "user_id", value: [userId] });
50
+ if (miniService) metadata.push({ key: "mini_service", value: [miniService] });
51
+ if (analyticsFeedbackSessionId) metadata.push({ key: "deepdots_analytics_feedback_session_id", value: [analyticsFeedbackSessionId] });
52
+ return { profile, metadata };
53
+ }
54
+ function defaultUuid() {
55
+ const g = typeof globalThis !== "undefined" ? globalThis : {};
56
+ if (g.crypto?.randomUUID) return g.crypto.randomUUID();
57
+ const bytes = new Uint8Array(16);
58
+ if (g.crypto?.getRandomValues) {
59
+ g.crypto.getRandomValues(bytes);
60
+ } else {
61
+ for (let i = 0; i < 16; i++) bytes[i] = Math.floor(Math.random() * 256);
62
+ }
63
+ bytes[6] = bytes[6] & 15 | 64;
64
+ bytes[8] = bytes[8] & 63 | 128;
65
+ const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0"));
66
+ return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10, 16).join("")}`;
67
+ }
68
+ var TrackingManager = class {
69
+ constructor(options) {
70
+ /** session_id cacheado, provisto por el backend (no se genera ni se persiste). */
71
+ this.sessionId = null;
72
+ this.userWasJustCreated = false;
73
+ this.storage = options.storage;
74
+ this.clientUserId = options.clientUserId;
75
+ this.now = options.now ?? (() => Date.now());
76
+ this.uuid = options.uuid ?? defaultUuid;
77
+ this.enabled = options.enabled ?? true;
78
+ }
79
+ isTrackingEnabled() {
80
+ return this.enabled;
81
+ }
82
+ setTrackingEnabled(enabled) {
83
+ this.enabled = enabled;
84
+ }
85
+ /** Resuelve el user_id según la regla: cliente > persistido > generar+persistir. */
86
+ getUserId() {
87
+ if (!this.enabled) return null;
88
+ if (this.clientUserId) return this.clientUserId;
89
+ const persisted = this.storage.getItem(STORAGE_KEYS.userId);
90
+ if (persisted) return persisted;
91
+ const id = this.uuid();
92
+ this.storage.setItem(STORAGE_KEYS.userId, id);
93
+ this.storage.setItem(STORAGE_KEYS.firstSeen, String(this.now()));
94
+ this.userWasJustCreated = true;
95
+ return id;
96
+ }
97
+ /** `true` solo en la primera sesión tras crear el user_id propio del SDK. */
98
+ isNewUser() {
99
+ return this.userWasJustCreated;
100
+ }
101
+ /** session_id actual provisto por el backend, o null si aún no llegó. */
102
+ getSessionId() {
103
+ if (!this.enabled) return null;
104
+ return this.sessionId;
105
+ }
106
+ /** Cachea el session_id devuelto por el backend (respuesta de POST /sdk/popups). */
107
+ setSessionId(sessionId) {
108
+ if (!this.enabled) return;
109
+ this.sessionId = sessionId;
110
+ }
111
+ };
112
+
113
+ // src/ui/font.ts
114
+ var FORMAT_BY_EXT = {
115
+ woff2: "woff2",
116
+ woff: "woff",
117
+ ttf: "truetype",
118
+ otf: "opentype"
119
+ };
120
+ function fontFormatFromUrl(url) {
121
+ const clean = url.split("?")[0].split("#")[0];
122
+ const ext = clean.slice(clean.lastIndexOf(".") + 1).toLowerCase();
123
+ return FORMAT_BY_EXT[ext];
124
+ }
125
+ function sanitizeFamily(family) {
126
+ return family.replace(/[^A-Za-z0-9 ._-]/g, "").trim();
127
+ }
128
+ function isSafeFontUrl(url) {
129
+ if (!/^(https?:|data:)/i.test(url)) return false;
130
+ return !/[\x00-\x20"<>\\]/.test(url);
131
+ }
132
+ function buildFontFamilyValue(family) {
133
+ const safe = sanitizeFamily(family);
134
+ return `"${safe}", -apple-system, system-ui, sans-serif`;
135
+ }
136
+ function buildFontFaceCss(family, url) {
137
+ if (!url || !isSafeFontUrl(url)) return "";
138
+ const safe = sanitizeFamily(family);
139
+ const fmt = fontFormatFromUrl(url);
140
+ const src = fmt ? `url("${url}") format("${fmt}")` : `url("${url}")`;
141
+ return `@font-face{font-family:"${safe}";src:${src};font-display:swap;}`;
142
+ }
143
+
144
+ // src/assets/style.css
145
+ var style_default = `/**
146
+ * NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
147
+ *
148
+ * Copia de @magicfeedback/native@2.2.8 \u2192 dist/styles/magicfeedback-default.css
149
+ * (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
150
+ *
151
+ * 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
152
+ * p\xE1gina del host, y la tipograf\xEDa la decide el popup.
153
+ * 2. .magicfeedback-container hereda la fuente del popup (var(--deepdots-font, inherit)).
154
+ * 3. Los selectores desnudos (h2, p, input, textarea, select, ::placeholder, .error) van
155
+ * acotados a .deepdots-popup: este CSS se inyecta en el <head> del host y sin acotar
156
+ * repintar\xEDa su web.
157
+ * 4. El grupo .magicfeedback-radio se cualifica como div.magicfeedback-radio (la clase acaba
158
+ * tambi\xE9n en el <input> del boolean).
159
+ * 5. Al final, un bloque de reglas propias del popup (fuente en los controles y padding del
160
+ * radio nativo).
161
+ *
162
+ * Las variables --mf-* se dejan en :root a prop\xF3sito: el modal del priority-list se portea a
163
+ * <body>, fuera de .deepdots-popup, y ah\xED las necesita.
164
+ *
165
+ * Para subir de versi\xF3n: npm i @magicfeedback/native@<v> && node scripts/vendor-survey-css.mjs
166
+ */
167
+
168
+ /**
169
+ * @magicfeedback/native - Default Styles
170
+ * Clean, minimal, and elegant survey rendering
171
+ */
172
+
173
+ /* @import de Google Fonts (Nunito) eliminado al vendorizar: la fuente la pone el popup. */
174
+
175
+ /* ========================================
176
+ CSS VARIABLES - Design SYSTEM
177
+ ======================================== */
178
+ :root {
179
+ /* Colors - Minimal Pastel */
180
+ /* --mf-primary is the one source of truth for brand/accent color \u2014
181
+ every token below derives from it via color-mix() (or references
182
+ it directly) so changing this single value, here or via a
183
+ per-integration override, keeps hover/light/border states in
184
+ sync automatically instead of going stale independently. Scoped
185
+ to genuinely interactive/accent surfaces (buttons, selected
186
+ chips, focus rings) \u2014 general body text stays on its own neutral
187
+ scale below, not tied to the brand color. */
188
+ --mf-primary: #5d7bad;
189
+ --mf-primary-hover: color-mix(in srgb, var(--mf-primary) 85%, black);
190
+ --mf-primary-light: color-mix(in srgb, var(--mf-primary) 15%, white);
191
+ /* a translucent tint \u2014 mixed with transparent (opacity), not white,
192
+ so it reads as a soft shadow of the brand color rather than a
193
+ pastel of it. */
194
+ --mf-primary-border: color-mix(in srgb, var(--mf-primary) 35%, transparent);
195
+
196
+ --mf-text-primary: #1E293B;
197
+ --mf-text-secondary: #475569;
198
+ --mf-text-muted: #94A3B8;
199
+
200
+ --mf-bg-primary: #F8FAFC;
201
+ --mf-bg-secondary: #FFFFFF;
202
+ --mf-bg-hover: #EEF2F6;
203
+
204
+ --mf-border: #E2E8F0;
205
+ --mf-border-focus: var(--mf-primary);
206
+
207
+ --mf-success: #16A34A;
208
+ --mf-error: #EF4444;
209
+ --mf-warning: #F59E0B;
210
+
211
+ --mf-surface: #FFFFFF;
212
+ --mf-surface-alt: #F1F5F9;
213
+ --mf-accent: #38BDF8;
214
+
215
+ /* Spacing */
216
+ --mf-space-xs: 0.25rem;
217
+ --mf-space-sm: 0.5rem;
218
+ --mf-space-md: 0.75rem;
219
+ --mf-space-lg: 1rem;
220
+ --mf-space-xl: 1.5rem;
221
+
222
+ /* Border Radius */
223
+ --mf-radius-sm: 0.5rem;
224
+ --mf-radius-md: 0.75rem;
225
+ --mf-radius-lg: 1.25rem;
226
+ --mf-radius-full: 9999px;
227
+
228
+ /* Shadows */
229
+ --mf-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
230
+ --mf-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
231
+ --mf-shadow-lg: 0 16px 30px rgba(15, 23, 42, 0.12);
232
+ --mf-shadow-focus: 0 0 0 3px rgba(30, 41, 59, 0.15);
233
+ --mf-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
234
+
235
+ /* Typography */
236
+ --mf-font-sans: "Nunito", "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
237
+ --mf-font-size-sm: 0.875rem;
238
+ --mf-font-size-base: 1rem;
239
+ --mf-font-size-lg: 1.125rem;
240
+ --mf-font-size-xl: 1.25rem;
241
+ --mf-line-height: 1.6;
242
+
243
+ /* Font Weights */
244
+ --mf-font-weight-normal: 400;
245
+ --mf-font-weight-medium: 500;
246
+ --mf-font-weight-semibold: 600;
247
+ --mf-font-weight-bold: 700;
248
+ --mf-font-weight-extrabold: 800;
249
+
250
+ /* Transitions */
251
+ --mf-transition: all 0.2s ease;
252
+ --mf-transition-fast: all 0.15s ease;
253
+ }
254
+
255
+ /* ========================================
256
+ ANIMATIONS
257
+ ======================================== */
258
+ @keyframes mf-fade-in {
259
+ from {
260
+ opacity: 0;
261
+ transform: translateY(8px);
262
+ }
263
+ to {
264
+ opacity: 1;
265
+ transform: translateY(0);
266
+ }
267
+ }
268
+
269
+ @keyframes mf-slide-in {
270
+ from {
271
+ opacity: 0;
272
+ transform: translateX(-16px);
273
+ }
274
+ to {
275
+ opacity: 1;
276
+ transform: translateX(0);
277
+ }
278
+ }
279
+
280
+ @keyframes mf-scale-in {
281
+ from {
282
+ opacity: 0;
283
+ transform: scale(0.95);
284
+ }
285
+ to {
286
+ opacity: 1;
287
+ transform: scale(1);
288
+ }
289
+ }
290
+
291
+ @keyframes mf-pulse {
292
+ 0%,
293
+ 100% {
294
+ opacity: 1;
295
+ }
296
+ 50% {
297
+ opacity: 0.8;
298
+ }
299
+ }
300
+
301
+ /* ========================================
302
+ BASE CONTAINER
303
+ ======================================== */
304
+ .magicfeedback-container {
305
+ /* Local: hereda la fuente del popup; --deepdots-font viene de PopupStyle.font. */
306
+ font-family: var(--deepdots-font, inherit);
307
+ color: var(--mf-text-primary);
308
+ line-height: var(--mf-line-height);
309
+ animation: mf-fade-in 0.4s ease-out;
310
+ border-radius: var(--mf-radius-lg);
311
+ }
312
+
313
+ /* ========================================
314
+ MESSAGES
315
+ ======================================== */
316
+ .magicfeedback-success-message,
317
+ .magicfeedback-info-message,
318
+ .magicfeedback-start-message {
319
+ padding: var(--mf-space-lg);
320
+ margin: var(--mf-space-lg) 0;
321
+ animation: mf-scale-in 0.3s ease-out;
322
+ }
323
+
324
+ /* .magicfeedback-info-message/-start-message are set via innerHTML (see
325
+ renderInfoPage.ts / questions.service.ts's renderStartMessage) \u2014 whatever
326
+ rich text a survey author writes lands here as real HTML, not just the
327
+ <p>/<img> pair this used to style. Covering the rest of what a rich-text
328
+ editor commonly outputs (headings, lists, links, emphasis, quotes, code,
329
+ rules) keeps that content on the same type scale and palette as the rest
330
+ of the widget instead of falling back to unstyled browser defaults. */
331
+ .magicfeedback-success-message > :first-child,
332
+ .magicfeedback-info-message > :first-child,
333
+ .magicfeedback-start-message > :first-child {
334
+ margin-top: 0;
335
+ }
336
+
337
+ .magicfeedback-success-message > :last-child,
338
+ .magicfeedback-info-message > :last-child,
339
+ .magicfeedback-start-message > :last-child {
340
+ margin-bottom: 0;
341
+ }
342
+
343
+ .magicfeedback-success-message p,
344
+ .magicfeedback-info-message p,
345
+ .magicfeedback-start-message p {
346
+ font-size: var(--mf-font-size-base);
347
+ color: var(--mf-text-secondary);
348
+ margin: 0 0 var(--mf-space-md);
349
+ line-height: var(--mf-line-height);
350
+ }
351
+
352
+ .magicfeedback-info-message h1,
353
+ .magicfeedback-info-message h2,
354
+ .magicfeedback-info-message h3,
355
+ .magicfeedback-info-message h4,
356
+ .magicfeedback-info-message h5,
357
+ .magicfeedback-info-message h6,
358
+ .magicfeedback-start-message h1,
359
+ .magicfeedback-start-message h2,
360
+ .magicfeedback-start-message h3,
361
+ .magicfeedback-start-message h4,
362
+ .magicfeedback-start-message h5,
363
+ .magicfeedback-start-message h6 {
364
+ color: var(--mf-text-primary);
365
+ font-weight: var(--mf-font-weight-bold);
366
+ line-height: 1.3;
367
+ margin: var(--mf-space-lg) 0 var(--mf-space-sm);
368
+ text-align: left;
369
+ }
370
+
371
+ .magicfeedback-info-message h1, .magicfeedback-start-message h1 { font-size: var(--mf-font-size-xl); }
372
+ .magicfeedback-info-message h2, .magicfeedback-start-message h2 { font-size: var(--mf-font-size-lg); }
373
+ .magicfeedback-info-message h3,
374
+ .magicfeedback-info-message h4,
375
+ .magicfeedback-info-message h5,
376
+ .magicfeedback-info-message h6,
377
+ .magicfeedback-start-message h3,
378
+ .magicfeedback-start-message h4,
379
+ .magicfeedback-start-message h5,
380
+ .magicfeedback-start-message h6 { font-size: var(--mf-font-size-base); }
381
+
382
+ .magicfeedback-info-message strong,
383
+ .magicfeedback-info-message b,
384
+ .magicfeedback-start-message strong,
385
+ .magicfeedback-start-message b {
386
+ font-weight: var(--mf-font-weight-bold);
387
+ color: var(--mf-text-primary);
388
+ }
389
+
390
+ .magicfeedback-info-message a,
391
+ .magicfeedback-start-message a {
392
+ color: var(--mf-primary);
393
+ text-decoration: underline;
394
+ text-underline-offset: 2px;
395
+ }
396
+
397
+ .magicfeedback-info-message a:hover,
398
+ .magicfeedback-start-message a:hover {
399
+ color: var(--mf-primary-hover);
400
+ }
401
+
402
+ .magicfeedback-info-message ul,
403
+ .magicfeedback-info-message ol,
404
+ .magicfeedback-start-message ul,
405
+ .magicfeedback-start-message ol {
406
+ margin: 0 0 var(--mf-space-md);
407
+ padding-left: var(--mf-space-xl);
408
+ color: var(--mf-text-secondary);
409
+ line-height: var(--mf-line-height);
410
+ }
411
+
412
+ .magicfeedback-info-message li + li,
413
+ .magicfeedback-start-message li + li {
414
+ margin-top: var(--mf-space-xs);
415
+ }
416
+
417
+ .magicfeedback-info-message blockquote,
418
+ .magicfeedback-start-message blockquote {
419
+ margin: 0 0 var(--mf-space-md);
420
+ padding: var(--mf-space-sm) var(--mf-space-md);
421
+ border-left: 3px solid var(--mf-primary-border);
422
+ color: var(--mf-text-secondary);
423
+ font-style: italic;
424
+ }
425
+
426
+ .magicfeedback-info-message code,
427
+ .magicfeedback-start-message code {
428
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
429
+ font-size: 0.9em;
430
+ background: var(--mf-bg-hover);
431
+ padding: 0.15em 0.4em;
432
+ border-radius: var(--mf-radius-sm);
433
+ }
434
+
435
+ .magicfeedback-info-message pre,
436
+ .magicfeedback-start-message pre {
437
+ margin: 0 0 var(--mf-space-md);
438
+ padding: var(--mf-space-md);
439
+ background: var(--mf-bg-hover);
440
+ border-radius: var(--mf-radius-md);
441
+ overflow-x: auto;
442
+ }
443
+
444
+ .magicfeedback-info-message pre code,
445
+ .magicfeedback-start-message pre code {
446
+ background: none;
447
+ padding: 0;
448
+ }
449
+
450
+ .magicfeedback-info-message hr,
451
+ .magicfeedback-start-message hr {
452
+ border: none;
453
+ border-top: 1px solid var(--mf-border);
454
+ margin: var(--mf-space-lg) 0;
455
+ }
456
+
457
+ .magicfeedback-success-message img,
458
+ .magicfeedback-info-message img,
459
+ .magicfeedback-start-message img {
460
+ max-width: 100%;
461
+ height: auto;
462
+ margin: var(--mf-space-lg) auto;
463
+ display: block;
464
+ border-radius: var(--mf-radius-md);
465
+ }
466
+
467
+ .magicfeedback-image {
468
+ max-height: 400px;
469
+ height: auto;
470
+ max-width: 100%;
471
+ margin: var(--mf-space-lg) auto;
472
+ display: block;
473
+ border-radius: var(--mf-radius-md);
474
+ }
475
+
476
+ /* ========================================
477
+ FORM STRUCTURE
478
+ ======================================== */
479
+ .magicfeedback-form {
480
+ display: flex;
481
+ flex-direction: column;
482
+ gap: var(--mf-space-lg);
483
+ padding: clamp(16px, 2.5vw, 28px);
484
+ }
485
+
486
+ .magicfeedback-questions {
487
+ display: flex;
488
+ flex-direction: column;
489
+ gap: var(--mf-space-xl);
490
+ width: 100%;
491
+ }
492
+
493
+ .magicfeedback-div {
494
+ display: flex;
495
+ flex-direction: column;
496
+ gap: var(--mf-space-sm);
497
+ animation: mf-slide-in 0.3s ease-out;
498
+ background: var(--mf-bg-secondary);
499
+ border-radius: var(--mf-radius-md);
500
+ }
501
+
502
+ /* ========================================
503
+ LABELS & TYPOGRAPHY
504
+ ======================================== */
505
+ .magicfeedback-label {
506
+ font-size: var(--mf-font-size-lg);
507
+ font-weight: var(--mf-font-weight-bold);
508
+ color: var(--mf-text-primary);
509
+ line-height: var(--mf-line-height);
510
+ text-align: left;
511
+ letter-spacing: -0.01em;
512
+ }
513
+
514
+ .magicfeedback-sublabel {
515
+ font-size: var(--mf-font-size-base);
516
+ font-weight: var(--mf-font-weight-normal);
517
+ color: var(--mf-text-secondary);
518
+ margin-bottom: var(--mf-space-sm);
519
+ }
520
+
521
+ .deepdots-popup h2 {
522
+ font-size: var(--mf-font-size-xl);
523
+ font-weight: 600;
524
+ color: var(--mf-text-primary);
525
+ margin: 0 0 var(--mf-space-xl) 0;
526
+ text-align: center;
527
+ letter-spacing: -0.01em;
528
+ }
529
+
530
+ .deepdots-popup p {
531
+ margin: 0;
532
+ font-size: var(--mf-font-size-sm);
533
+ color: var(--mf-text-secondary);
534
+ }
535
+
536
+ /* ========================================
537
+ FORM INPUTS
538
+ ======================================== */
539
+ .deepdots-popup input[type="date"],
540
+ .deepdots-popup input[type="text"],
541
+ .deepdots-popup input[type="number"],
542
+ .deepdots-popup input[type="email"],
543
+ .deepdots-popup input[type="password"],
544
+ .deepdots-popup textarea,
545
+ .deepdots-popup select {
546
+ padding: 0.75rem 0.9rem;
547
+ font-size: var(--mf-font-size-base);
548
+ font-family: inherit;
549
+ color: var(--mf-text-primary);
550
+ background-color: var(--mf-surface);
551
+ border: 2px solid var(--mf-border);
552
+ border-radius: var(--mf-radius-md);
553
+ outline: none;
554
+ transition: var(--mf-transition);
555
+ -webkit-appearance: none;
556
+ appearance: none;
557
+ box-shadow: var(--mf-shadow-sm);
558
+ }
559
+
560
+ .deepdots-popup textarea {
561
+ min-height: 100px;
562
+ resize: vertical;
563
+ }
564
+
565
+ .deepdots-popup input::placeholder,
566
+ .deepdots-popup textarea::placeholder {
567
+ color: var(--mf-text-muted);
568
+ }
569
+
570
+ /* Remove number input spinners */
571
+ .deepdots-popup input::-webkit-outer-spin-button,
572
+ .deepdots-popup input::-webkit-inner-spin-button {
573
+ -webkit-appearance: none;
574
+ margin: 0;
575
+ }
576
+
577
+ .deepdots-popup input[type="number"] {
578
+ /* -moz-appearance: textfield; removed for lint compatibility */
579
+ }
580
+
581
+ /* Custom Select Arrow */
582
+ .deepdots-popup select {
583
+ 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");
584
+ background-repeat: no-repeat;
585
+ background-position: right var(--mf-space-md) center;
586
+ padding-right: var(--mf-space-xl);
587
+ }
588
+
589
+ /* Error State */
590
+ .deepdots-popup input.error,
591
+ .deepdots-popup select.error,
592
+ .deepdots-popup textarea.error {
593
+ border-color: var(--mf-error);
594
+ }
595
+
596
+ .magicfeedback-error {
597
+ margin-top: var(--mf-space-xs);
598
+ font-size: var(--mf-font-size-sm);
599
+ color: var(--mf-error);
600
+ }
601
+
602
+ /* ========================================
603
+ CHECKBOX & RADIO OPTIONS
604
+ ======================================== */
605
+ .magicfeedback-checkbox,
606
+ div.magicfeedback-radio {
607
+ display: flex;
608
+ flex-direction: column;
609
+ gap: var(--mf-space-sm);
610
+ width: 100%;
611
+ }
612
+
613
+ .magicfeedback-checkbox-container,
614
+ .magicfeedback-radio-container {
615
+ display: flex;
616
+ align-items: center;
617
+ gap: var(--mf-space-sm);
618
+ padding: var(--mf-space-md);
619
+ border: 1.5px solid var(--mf-border);
620
+ border-radius: var(--mf-radius-md);
621
+ cursor: pointer;
622
+ transition: var(--mf-transition-fast);
623
+ }
624
+
625
+ .magicfeedback-checkbox-container:hover,
626
+ .magicfeedback-radio-container:hover {
627
+ background-color: var(--mf-bg-hover);
628
+ border-color: var(--mf-primary);
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: left;
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
+ .magicfeedback-boolean-option label:hover {
696
+ background-color: var(--mf-bg-hover);
697
+ border-color: var(--mf-primary);
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 \u2014 min on one side, max on the other (swapped
730
+ for order: "rtl") \u2014 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: right;
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
+ .magicfeedback-rating-option-label-container img:hover {
769
+ transform: scale(1.1);
770
+ border-color: var(--mf-primary);
771
+ }
772
+
773
+ .magicfeedback-rating-option-label-container input[type="radio"]:checked + img {
774
+ border-color: var(--mf-primary);
775
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
776
+ }
777
+
778
+ .magicfeedback-rating-option-label-container label {
779
+ display: block;
780
+ text-align: center;
781
+ font-size: var(--mf-font-size-sm);
782
+ color: var(--mf-text-secondary);
783
+ margin-top: var(--mf-space-xs);
784
+ cursor: pointer;
785
+ }
786
+
787
+ /* Rating Numbers \u2014 each option is its own outlined chip in the survey's
788
+ primary color, with a gap between them. Row and column use the same
789
+ chip; column additionally has room to show each option's own text
790
+ plainly next to its number. */
791
+
792
+ /* Every size here is width:100%/flex:1 combined with the chip's own
793
+ padding and border. Without border-box, the browser's default
794
+ content-box adds that padding/border on TOP of the declared size, so
795
+ the chip quietly overflows past its flex slot \u2014 reading as "not quite
796
+ full width" or, worse, pushing into the next chip. */
797
+ .magicfeedback-rating-number-container,
798
+ .magicfeedback-rating-number-option,
799
+ .magicfeedback-rating-number-option-label-container,
800
+ .magicfeedback-rating-number-value {
801
+ box-sizing: border-box;
802
+ }
803
+
804
+ /* The shared rating-container rule (above, reused by star rating) sets
805
+ align-items:center for its row-of-chips layout \u2014 in a stacked column
806
+ that still nudges a 100%-wide chip inward instead of a true 0 offset.
807
+ Force stretch so every chip fills the exact same width, flush on
808
+ both sides. */
809
+ .magicfeedback-rating-number-container-column,
810
+ .magicfeedback-rating-number-container-column-reverse {
811
+ align-items: stretch;
812
+ }
813
+
814
+ /* Caption line below the row \u2014 the single place min/max labels live
815
+ for row mode, shared by mobile and desktop. */
816
+ .magicfeedback-rating-number-scale-labels {
817
+ display: flex;
818
+ justify-content: space-between;
819
+ gap: var(--mf-space-md);
820
+ margin-top: var(--mf-space-sm);
821
+ font-size: var(--mf-font-size-sm);
822
+ font-weight: var(--mf-font-weight-semibold);
823
+ color: var(--mf-text-secondary);
824
+ }
825
+
826
+ .magicfeedback-rating-number-scale-label {
827
+ overflow-wrap: anywhere;
828
+ }
829
+
830
+ .magicfeedback-rating-number-scale-label:last-child {
831
+ text-align: right;
832
+ }
833
+
834
+ /* Column, no per-option text: each row is its own separated chip, so
835
+ the min/max labels bookend the stack from outside it \u2014 one line
836
+ above the first chip, one below the last. Margin goes on whichever
837
+ side actually faces the list \u2014 the "before" label (always the first
838
+ child) gets space below it, the "after" one (always right after the
839
+ container, extra option row or not) gets space above it \u2014 so both
840
+ sit the same distance from the chips regardless of which one it is. */
841
+ .magicfeedback-rating-number-scale-label-block {
842
+ font-size: var(--mf-font-size-sm);
843
+ font-weight: var(--mf-font-weight-semibold);
844
+ color: var(--mf-text-secondary);
845
+ text-align: center;
846
+ }
847
+
848
+ .magicfeedback-rating-number-scale-label-block:first-child {
849
+ margin-bottom: var(--mf-space-sm);
850
+ }
851
+
852
+ .magicfeedback-rating-number-container + .magicfeedback-rating-number-scale-label-block {
853
+ margin-top: var(--mf-space-sm);
854
+ }
855
+
856
+ .magicfeedback-rating-number-option {
857
+ display: flex;
858
+ }
859
+
860
+ .magicfeedback-rating-number-option-label-container {
861
+ position: relative;
862
+ width: 100%;
863
+ display: flex;
864
+ cursor: pointer;
865
+ }
866
+
867
+ .magicfeedback-rating-number-option-label-container input[type="radio"] {
868
+ position: absolute;
869
+ opacity: 0;
870
+ width: 0;
871
+ height: 0;
872
+ }
873
+
874
+ .magicfeedback-rating-number-value {
875
+ display: flex;
876
+ align-items: center;
877
+ justify-content: center;
878
+ width: 100%;
879
+ transition: var(--mf-transition-fast);
880
+ color: var(--mf-text-secondary);
881
+ font-weight: var(--mf-font-weight-semibold);
882
+ }
883
+
884
+ /* Row: individual outlined chips in the survey's own primary color \u2014
885
+ var(--mf-primary) so whatever brand color a given survey sets carries
886
+ through automatically, no color hardcoded here. */
887
+ .magicfeedback-rating-number-container-row,
888
+ .magicfeedback-rating-number-container-row-reverse {
889
+ flex-wrap: nowrap;
890
+ gap: var(--mf-space-sm);
891
+ }
892
+
893
+ .magicfeedback-rating-number-option-row,
894
+ .magicfeedback-rating-number-option-row-reverse {
895
+ flex: 1 1 0;
896
+ min-width: 0;
897
+ }
898
+
899
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
900
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
901
+ min-height: 56px;
902
+ padding: var(--mf-space-sm);
903
+ border: 2px solid var(--mf-primary-border);
904
+ border-radius: var(--mf-radius-md);
905
+ background: var(--mf-bg-secondary);
906
+ color: var(--mf-primary);
907
+ font-size: var(--mf-font-size-lg);
908
+ font-weight: var(--mf-font-weight-bold);
909
+ }
910
+
911
+ /* More than 6 options (e.g. a 0-10 NPS scale): still one row, never
912
+ wraps \u2014 but scaled down on purpose, so it reads as a compact chip
913
+ rather than the same 56px button stretched thin. */
914
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
915
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
916
+ min-height: 36px;
917
+ padding: var(--mf-space-xs);
918
+ border-radius: var(--mf-radius-sm);
919
+ font-size: 0.8rem;
920
+ }
921
+
922
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
923
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
924
+ background: var(--mf-primary-light);
925
+ }
926
+
927
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
928
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
929
+ color: #fff;
930
+ background-color: var(--mf-primary);
931
+ box-shadow: var(--mf-shadow-md);
932
+ }
933
+
934
+ /* Extra option: always its own row below the scale, and styled like every
935
+ other chip now \u2014 "doesn't apply" is still not a point on the 1..N
936
+ continuum, but it no longer needs a different border style to say so. */
937
+ .magicfeedback-rating-number-extra-row {
938
+ display: flex;
939
+ justify-content: center;
940
+ margin-top: var(--mf-space-sm);
941
+ }
942
+
943
+ .magicfeedback-rating-number-option--extra {
944
+ flex: 0 1 auto;
945
+ }
946
+
947
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container {
948
+ width: auto;
949
+ }
950
+
951
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-value {
952
+ min-height: 36px;
953
+ padding: 0 var(--mf-space-md);
954
+ border: 2px solid var(--mf-primary-border);
955
+ border-radius: var(--mf-radius-md);
956
+ background: var(--mf-bg-secondary);
957
+ color: var(--mf-primary);
958
+ font-size: var(--mf-font-size-sm);
959
+ }
960
+
961
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
962
+ background: var(--mf-primary-light);
963
+ }
964
+
965
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
966
+ color: #fff;
967
+ background-color: var(--mf-primary);
968
+ box-shadow: var(--mf-shadow-md);
969
+ }
970
+
971
+ /* Column: the same separated chips as row, just stacked \u2014 each option is
972
+ its own outlined chip with a gap between them, not one shared box. */
973
+ .magicfeedback-rating-number-container-column,
974
+ .magicfeedback-rating-number-container-column-reverse {
975
+ gap: var(--mf-space-sm);
976
+ }
977
+
978
+ .magicfeedback-rating-number-option-column,
979
+ .magicfeedback-rating-number-option-column-reverse {
980
+ width: 100%;
981
+ }
982
+
983
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-value,
984
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-value {
985
+ justify-content: flex-start;
986
+ gap: var(--mf-space-sm);
987
+ min-height: 48px;
988
+ padding: var(--mf-space-sm) var(--mf-space-md);
989
+ border: 2px solid var(--mf-primary-border);
990
+ border-radius: var(--mf-radius-md);
991
+ background: var(--mf-bg-secondary);
992
+ color: var(--mf-primary);
993
+ }
994
+
995
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
996
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
997
+ background: var(--mf-primary-light);
998
+ }
999
+
1000
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1001
+ .magicfeedback-rating-number-option-column-reverse .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
+ .magicfeedback-rating-number-value-num {
1008
+ font-weight: var(--mf-font-weight-bold);
1009
+ }
1010
+
1011
+ /* Column with per-option text: a min-width so "1".."9" and "10" line up,
1012
+ with the label text starting at the same x. Skipped entirely when the
1013
+ column has no per-option text at all (--bare below) \u2014 with nothing to
1014
+ align against, the same left-shift bug from row mode would resurface. */
1015
+ .magicfeedback-rating-number-container-column:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num,
1016
+ .magicfeedback-rating-number-container-column-reverse:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num {
1017
+ flex: none;
1018
+ min-width: 1.4em;
1019
+ }
1020
+
1021
+ /* Column, no per-option text at all (only min/max, or nothing): a bare
1022
+ numbered list has nothing to left-align against, so center each
1023
+ number instead of stranding it on the left with blank space beside it. */
1024
+ .magicfeedback-rating-number-container-column--bare .magicfeedback-rating-number-value {
1025
+ justify-content: center;
1026
+ }
1027
+
1028
+ .magicfeedback-rating-number-value-label {
1029
+ font-weight: var(--mf-font-weight-medium);
1030
+ }
1031
+
1032
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1033
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1034
+ color: #fff;
1035
+ background-color: var(--mf-primary);
1036
+ }
1037
+
1038
+ /* Star Rating */
1039
+ .magicfeedback-rating-star-container {
1040
+ justify-content: center;
1041
+ }
1042
+
1043
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star {
1044
+ font-size: 40px;
1045
+ color: var(--mf-border);
1046
+ cursor: pointer;
1047
+ margin: 0 var(--mf-space-xs);
1048
+ transition: var(--mf-transition-fast);
1049
+ }
1050
+
1051
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover,
1052
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover ~ span {
1053
+ color: #fbbf24;
1054
+ transform: scale(1.1);
1055
+ }
1056
+
1057
+ .magicfeedback-rating-star-selected {
1058
+ color: #fbbf24 !important;
1059
+ }
1060
+
1061
+ /* ========================================
1062
+ MULTIPLE CHOICE WITH IMAGES
1063
+ ======================================== */
1064
+ .magicfeedback-multiple-choice-image-option {
1065
+ display: flex;
1066
+ border-radius: var(--mf-radius-md);
1067
+ overflow: hidden;
1068
+ transition: var(--mf-transition-fast);
1069
+ }
1070
+
1071
+ .magicfeedback-image-option-label-container {
1072
+ cursor: pointer;
1073
+ border-radius: var(--mf-radius-md);
1074
+ overflow: hidden;
1075
+ transition: var(--mf-transition-fast);
1076
+ }
1077
+
1078
+ .magicfeedback-image-option-label-container input[type="radio"],
1079
+ .magicfeedback-image-option-label-container input[type="checkbox"] {
1080
+ position: absolute;
1081
+ opacity: 0;
1082
+ width: 0;
1083
+ height: 0;
1084
+ }
1085
+
1086
+ .magicfeedback-image-option-label-container img {
1087
+ width: 100%;
1088
+ height: auto;
1089
+ display: block;
1090
+ border: 2px solid var(--mf-border);
1091
+ border-radius: var(--mf-radius-md);
1092
+ transition: var(--mf-transition-fast);
1093
+ }
1094
+
1095
+ .magicfeedback-image-option-label-container:hover img {
1096
+ border-color: var(--mf-primary);
1097
+ box-shadow: var(--mf-shadow-md);
1098
+ }
1099
+
1100
+ .magicfeedback-image-option-label-container input:checked + img {
1101
+ border-color: var(--mf-primary);
1102
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
1103
+ }
1104
+
1105
+ /* ========================================
1106
+ MATRIX QUESTIONS
1107
+ ======================================== */
1108
+ .magicfeedback-multi-question-matrix-container {
1109
+ width: 100%;
1110
+ overflow-x: auto;
1111
+ border-radius: var(--mf-radius-md);
1112
+ }
1113
+
1114
+ .magicfeedback-multi-question-matrix-table {
1115
+ width: 100%;
1116
+ border-collapse: separate;
1117
+ border-spacing: 0 var(--mf-space-xs);
1118
+ }
1119
+
1120
+ .magicfeedback-multi-question-matrix-table th {
1121
+ padding: var(--mf-space-md);
1122
+ text-align: center;
1123
+ font-size: var(--mf-font-size-sm);
1124
+ font-weight: 500;
1125
+ color: var(--mf-text-secondary);
1126
+ }
1127
+
1128
+ .magicfeedback-multi-question-matrix-row-tr {
1129
+ background-color: var(--mf-bg-primary);
1130
+ border-radius: var(--mf-radius-md);
1131
+ transition: var(--mf-transition-fast);
1132
+ }
1133
+
1134
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
1135
+ background-color: var(--mf-bg-secondary);
1136
+ }
1137
+
1138
+ .magicfeedback-multi-question-matrix-row-tr:hover {
1139
+ background-color: var(--mf-bg-hover);
1140
+ box-shadow: var(--mf-shadow-sm);
1141
+ }
1142
+
1143
+ .magicfeedback-multi-question-matrix-table td {
1144
+ padding: var(--mf-space-md);
1145
+ text-align: center;
1146
+ }
1147
+
1148
+ .magicfeedback-multi-question-matrix-label {
1149
+ text-align: left;
1150
+ font-size: var(--mf-font-size-base);
1151
+ color: var(--mf-text-primary);
1152
+ }
1153
+
1154
+ .magicfeedback-multi-question-matrix-table input[type="radio"] {
1155
+ width: 20px;
1156
+ height: 20px;
1157
+ cursor: pointer;
1158
+ accent-color: var(--mf-primary);
1159
+ }
1160
+
1161
+ /* ========================================
1162
+ PRIORITY LIST
1163
+ ======================================== */
1164
+ .magicfeedback-priority-list-item {
1165
+ display: flex;
1166
+ align-items: center;
1167
+ justify-content: space-between;
1168
+ padding: var(--mf-space-md);
1169
+ margin: var(--mf-space-sm) 0;
1170
+ background-color: var(--mf-bg-primary);
1171
+ border: 1.5px solid var(--mf-border);
1172
+ border-radius: var(--mf-radius-md);
1173
+ transition: var(--mf-transition-fast);
1174
+ }
1175
+
1176
+ .magicfeedback-priority-list-item:hover {
1177
+ box-shadow: var(--mf-shadow-sm);
1178
+ border-color: var(--mf-primary);
1179
+ }
1180
+
1181
+ .magicfeedback-priority-list-item-label {
1182
+ flex: 1;
1183
+ font-size: var(--mf-font-size-base);
1184
+ text-align: left;
1185
+ color: var(--mf-text-primary);
1186
+ margin: 0;
1187
+ }
1188
+
1189
+ .magicfeedback-priority-list-arrow-up,
1190
+ .magicfeedback-priority-list-arrow-down {
1191
+ padding: var(--mf-space-xs);
1192
+ font-size: var(--mf-font-size-lg);
1193
+ color: var(--mf-text-secondary);
1194
+ cursor: pointer;
1195
+ transition: var(--mf-transition-fast);
1196
+ user-select: none;
1197
+ }
1198
+
1199
+ .magicfeedback-priority-list-arrow-up:hover,
1200
+ .magicfeedback-priority-list-arrow-down:hover {
1201
+ color: var(--mf-primary);
1202
+ transform: scale(1.2);
1203
+ }
1204
+
1205
+ /* ========================================
1206
+ POINT SYSTEM
1207
+ ======================================== */
1208
+ .magicfeedback-point-system-item {
1209
+ display: flex;
1210
+ align-items: center;
1211
+ justify-content: space-between;
1212
+ padding: var(--mf-space-md);
1213
+ margin: var(--mf-space-sm) 0;
1214
+ background-color: var(--mf-bg-primary);
1215
+ border: 1.5px solid var(--mf-border);
1216
+ border-radius: var(--mf-radius-md);
1217
+ min-height: 45px;
1218
+ }
1219
+
1220
+ .magicfeedback-point-system-item label {
1221
+ flex: 1;
1222
+ font-size: var(--mf-font-size-base);
1223
+ color: var(--mf-text-primary);
1224
+ margin: 0;
1225
+ }
1226
+
1227
+ .magicfeedback-point-system-input-container {
1228
+ display: flex;
1229
+ align-items: center;
1230
+ gap: var(--mf-space-sm);
1231
+ }
1232
+
1233
+ .magicfeedback-point-system-item input {
1234
+ width: 80px;
1235
+ min-width: 80px;
1236
+ padding: var(--mf-space-sm);
1237
+ text-align: center;
1238
+ font-size: var(--mf-font-size-base);
1239
+ border: 1.5px solid var(--mf-border);
1240
+ border-radius: var(--mf-radius-md);
1241
+ margin: 0;
1242
+ }
1243
+
1244
+ .magicfeedback-point-system-total {
1245
+ display: flex;
1246
+ justify-content: flex-end;
1247
+ margin-top: var(--mf-space-md);
1248
+ font-size: var(--mf-font-size-base);
1249
+ font-weight: 600;
1250
+ color: var(--mf-text-primary);
1251
+ }
1252
+
1253
+ /* ========================================
1254
+ CONSENT
1255
+ ======================================== */
1256
+ .magicfeedback-consent-container {
1257
+ display: flex;
1258
+ flex-direction: row;
1259
+ align-items: center;
1260
+ gap: var(--mf-space-sm);
1261
+ padding: var(--mf-space-md);
1262
+ background-color: var(--mf-bg-secondary);
1263
+ border-radius: var(--mf-radius-md);
1264
+ margin: var(--mf-space-md) 0;
1265
+ }
1266
+
1267
+ .magicfeedback-consent-container input[type="checkbox"] {
1268
+ margin-top: 2px;
1269
+ flex-shrink: 0;
1270
+ accent-color: var(--mf-primary);
1271
+ }
1272
+
1273
+ .magicfeedback-consent-container label {
1274
+ flex: 1;
1275
+ font-size: var(--mf-font-size-sm);
1276
+ text-align: left;
1277
+ color: var(--mf-text-secondary);
1278
+ line-height: var(--mf-line-height);
1279
+ cursor: pointer;
1280
+ margin-bottom: 0;
1281
+ }
1282
+
1283
+ /* ========================================
1284
+ ACTION BUTTONS
1285
+ ======================================== */
1286
+ .magicfeedback-action-container {
1287
+ display: flex;
1288
+ align-items: center;
1289
+ justify-content: space-between;
1290
+ gap: var(--mf-space-md);
1291
+ margin-top: var(--mf-space-xl);
1292
+ padding-top: var(--mf-space-lg);
1293
+ border-top: 1px solid var(--mf-border);
1294
+ }
1295
+
1296
+ .magicfeedback-submit {
1297
+ padding: 0.8rem 1.6rem;
1298
+ font-size: var(--mf-font-size-base);
1299
+ font-weight: 800;
1300
+ color: #FFFFFF;
1301
+ background-color: var(--mf-primary);
1302
+ border: 2px solid var(--mf-primary);
1303
+ border-radius: var(--mf-radius-full);
1304
+ cursor: pointer;
1305
+ transition: var(--mf-transition-fast);
1306
+ box-shadow: var(--mf-shadow-md);
1307
+ }
1308
+
1309
+ .magicfeedback-submit:hover {
1310
+ background-color: var(--mf-primary-hover);
1311
+ box-shadow: var(--mf-shadow-lg);
1312
+ transform: translateY(-2px);
1313
+ }
1314
+
1315
+ .magicfeedback-submit:active {
1316
+ transform: translateY(0);
1317
+ box-shadow: var(--mf-shadow-sm);
1318
+ }
1319
+
1320
+ .magicfeedback-submit:disabled {
1321
+ opacity: 0.5;
1322
+ cursor: not-allowed;
1323
+ transform: none;
1324
+ }
1325
+
1326
+ .magicfeedback-back {
1327
+ padding: 0.65rem 1rem;
1328
+ font-size: var(--mf-font-size-base);
1329
+ font-weight: 700;
1330
+ color: var(--mf-primary);
1331
+ background-color: var(--mf-bg-secondary);
1332
+ border: 2px solid var(--mf-border);
1333
+ border-radius: var(--mf-radius-full);
1334
+ cursor: pointer;
1335
+ transition: var(--mf-transition-fast);
1336
+ }
1337
+
1338
+ .magicfeedback-back:hover {
1339
+ border-color: var(--mf-primary);
1340
+ background-color: var(--mf-bg-hover);
1341
+ }
1342
+
1343
+ /* ========================================
1344
+ SKIP & COUNTER
1345
+ ======================================== */
1346
+ .magicfeedback-skip-container {
1347
+ display: flex;
1348
+ align-items: center;
1349
+ gap: var(--mf-space-xs);
1350
+ padding: 0;
1351
+ margin: 0;
1352
+ font-size: var(--mf-font-size-sm);
1353
+ color: var(--mf-text-muted);
1354
+ background: transparent;
1355
+ border: none;
1356
+ cursor: pointer;
1357
+ transition: var(--mf-transition-fast);
1358
+ }
1359
+
1360
+ .magicfeedback-skip-container:hover {
1361
+ color: var(--mf-primary);
1362
+ }
1363
+
1364
+ .magicfeedback-skip-container input[type="checkbox"] {
1365
+ margin: 0;
1366
+ cursor: pointer;
1367
+ accent-color: var(--mf-primary);
1368
+ }
1369
+
1370
+ .magicfeedback-counter {
1371
+ display: flex;
1372
+ justify-content: flex-end;
1373
+ margin-top: var(--mf-space-md);
1374
+ font-size: var(--mf-font-size-sm);
1375
+ color: var(--mf-text-muted);
1376
+ }
1377
+
1378
+ /* ========================================
1379
+ MODAL STYLES
1380
+ ======================================== */
1381
+ /* Modal backdrop */
1382
+ .magicfeedback-modal-backdrop {
1383
+ position: fixed;
1384
+ top: 0;
1385
+ left: 0;
1386
+ width: 100vw;
1387
+ height: 100vh;
1388
+ background: rgba(0,0,0,0.4);
1389
+ display: none; /* toggled to flex when open */
1390
+ align-items: center;
1391
+ justify-content: center;
1392
+ z-index: 9999;
1393
+ }
1394
+
1395
+ /* Modal container */
1396
+ .magicfeedback-modal {
1397
+ background: #fff;
1398
+ border-radius: 8px;
1399
+ box-shadow: 0 8px 24px rgba(0,0,0,0.2);
1400
+ max-width: 520px;
1401
+ width: 90%;
1402
+ max-height: 80vh;
1403
+ /* Flex column so the options list scrolls while the actions footer
1404
+ (counter + confirm button) stays pinned and always visible. */
1405
+ display: flex;
1406
+ flex-direction: column;
1407
+ overflow: hidden;
1408
+ padding: 16px;
1409
+ position: relative;
1410
+ /* Portalled to document.body (see renderPriorityList.ts) to escape the
1411
+ host page's overflow/z-index \u2014 so it never inherits
1412
+ .magicfeedback-container's neutral text color and instead inherits
1413
+ whatever color the host page's own <body> happens to set. Needs its
1414
+ own explicit baseline rather than relying on that inheritance. */
1415
+ color: var(--mf-text-primary);
1416
+ }
1417
+
1418
+ /* Modal actions */
1419
+ .magicfeedback-modal-actions {
1420
+ display: flex;
1421
+ justify-content: flex-end;
1422
+ gap: 8px;
1423
+ margin-top: 12px;
1424
+ flex-shrink: 0;
1425
+ }
1426
+
1427
+ .magicfeedback-modal-counter {
1428
+ margin-right: auto;
1429
+ display: flex;
1430
+ align-items: center;
1431
+ font-size: 14px;
1432
+ color: var(--mf-text-secondary);
1433
+ }
1434
+
1435
+ /* Modal list */
1436
+ .magicfeedback-modal-list {
1437
+ display: flex;
1438
+ flex-direction: column;
1439
+ gap: 8px;
1440
+ /* Scrollable area; footer stays fixed below it. */
1441
+ flex: 1 1 auto;
1442
+ overflow-y: auto;
1443
+ min-height: 0;
1444
+ }
1445
+
1446
+ .magicfeedback-modal-row {
1447
+ display: flex;
1448
+ align-items: center;
1449
+ gap: 10px;
1450
+ cursor: pointer;
1451
+ }
1452
+
1453
+ /* Priority list header */
1454
+ .magicfeedback-priority-list-header {
1455
+ display: flex;
1456
+ align-items: center;
1457
+ justify-content: space-between;
1458
+ gap: 12px;
1459
+ margin-bottom: 8px;
1460
+ }
1461
+
1462
+ .magicfeedback-priority-list-reorder {
1463
+ margin-top: 8px;
1464
+ }
1465
+
1466
+ .magicfeedback-priority-list-list {
1467
+ padding: 0;
1468
+ list-style: none;
1469
+ }
1470
+
1471
+ .magicfeedback-priority-list-item {
1472
+ display: flex;
1473
+ justify-content: space-between;
1474
+ align-items: center;
1475
+ margin: 5px 0;
1476
+ }
1477
+
1478
+ .magicfeedback-priority-list-item-label {
1479
+ font-size: 15px;
1480
+ }
1481
+
1482
+ .magicfeedback-priority-list-arrows {
1483
+ display: flex;
1484
+ align-items: center;
1485
+ gap: 6px;
1486
+ }
1487
+
1488
+ /* Buttons */
1489
+ .magicfeedback-button {
1490
+ appearance: none;
1491
+ border: 2px solid var(--mf-border);
1492
+ border-radius: var(--mf-radius-full);
1493
+ background: var(--mf-bg-secondary);
1494
+ color: var(--mf-text-primary);
1495
+ padding: 0.6rem 1rem;
1496
+ font-size: 14px;
1497
+ font-weight: 700;
1498
+ cursor: pointer;
1499
+ box-shadow: var(--mf-shadow-sm);
1500
+ }
1501
+
1502
+ .magicfeedback-button:hover {
1503
+ background: var(--mf-bg-hover);
1504
+ border-color: var(--mf-primary);
1505
+ }
1506
+
1507
+ .magicfeedback-button:active {
1508
+ transform: translateY(1px);
1509
+ }
1510
+
1511
+ .magicfeedback-button-primary {
1512
+ border-color: var(--mf-primary);
1513
+ background: var(--mf-primary);
1514
+ color: #fff;
1515
+ box-shadow: var(--mf-shadow-md);
1516
+ }
1517
+
1518
+ .magicfeedback-button-primary:hover {
1519
+ background: var(--mf-primary-hover);
1520
+ }
1521
+
1522
+ .magicfeedback-button-primary:active {
1523
+ background: var(--mf-primary-hover);
1524
+ }
1525
+
1526
+ /* Warning flash */
1527
+ .magicfeedback-warning {
1528
+ color: #C70039;
1529
+ }
1530
+
1531
+ /* Start message button */
1532
+ .magicfeedback-start-message-button {
1533
+ appearance: none;
1534
+ border: 2px solid var(--mf-primary);
1535
+ border-radius: var(--mf-radius-full);
1536
+ background: var(--mf-primary);
1537
+ color: #fff;
1538
+ padding: 0.8rem 1.4rem;
1539
+ font-size: 15px;
1540
+ font-weight: 800;
1541
+ cursor: pointer;
1542
+ box-shadow: var(--mf-shadow-md);
1543
+ }
1544
+
1545
+ .magicfeedback-start-message-button:hover {
1546
+ background: var(--mf-primary-hover);
1547
+ }
1548
+
1549
+ /* ========================================
1550
+ RESPONSIVE DESIGN
1551
+ ======================================== */
1552
+ @media (max-width: 768px) {
1553
+ :root {
1554
+ --mf-space-lg: 1.25rem;
1555
+ --mf-space-xl: 1.5rem;
1556
+ }
1557
+
1558
+ .magicfeedback-container {
1559
+ padding: 12px;
1560
+ border-radius: var(--mf-radius-md);
1561
+ }
1562
+
1563
+ .magicfeedback-form {
1564
+ padding: 14px;
1565
+ border-radius: var(--mf-radius-md);
1566
+ }
1567
+
1568
+ .magicfeedback-div {
1569
+ padding: 12px;
1570
+ gap: var(--mf-space-lg)
1571
+ }
1572
+
1573
+ .magicfeedback-label {
1574
+ font-size: var(--mf-font-size-base);
1575
+ }
1576
+
1577
+ .deepdots-popup input[type="date"],
1578
+ .deepdots-popup input[type="text"],
1579
+ .deepdots-popup input[type="number"],
1580
+ .deepdots-popup input[type="email"],
1581
+ .deepdots-popup input[type="password"],
1582
+ .deepdots-popup textarea,
1583
+ .deepdots-popup select {
1584
+ padding: 0.85rem 0.95rem;
1585
+ font-size: 1rem;
1586
+ min-height: 46px;
1587
+ }
1588
+
1589
+ /*
1590
+ .magicfeedback-radio-container,
1591
+ .magicfeedback-checkbox-container,
1592
+ .magicfeedback-boolean-container,
1593
+ .magicfeedback-consent-container {
1594
+ width: 100%;
1595
+ }
1596
+ */
1597
+
1598
+ .magicfeedback-radio-container,
1599
+ .magicfeedback-checkbox-container {
1600
+ padding: 10px 12px;
1601
+ border-radius: var(--mf-radius-md);
1602
+ border: 1px solid var(--mf-border);
1603
+ gap: 10px;
1604
+ }
1605
+
1606
+ .magicfeedback-rating-container,
1607
+ .magicfeedback-rating-number-container,
1608
+ .magicfeedback-rating-star-container {
1609
+ gap: 10px;
1610
+ }
1611
+
1612
+ .magicfeedback-boolean-container {
1613
+ flex-direction: column;
1614
+ gap: 10px;
1615
+ }
1616
+
1617
+ .magicfeedback-rating-number-container-row,
1618
+ .magicfeedback-rating-number-container-row-reverse {
1619
+ gap: 6px;
1620
+ }
1621
+
1622
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
1623
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
1624
+ min-height: 44px;
1625
+ padding: var(--mf-space-xs);
1626
+ font-size: 0.9rem;
1627
+ }
1628
+
1629
+ .magicfeedback-action-container {
1630
+ flex-direction: column-reverse;
1631
+ }
1632
+
1633
+ .magicfeedback-submit,
1634
+ .magicfeedback-back {
1635
+ width: 100%;
1636
+ text-align: center;
1637
+ min-height: 48px;
1638
+ }
1639
+ }
1640
+
1641
+ /* ========================================
1642
+ ACCESSIBILITY
1643
+ ======================================== */
1644
+ @media (prefers-reduced-motion: reduce) {
1645
+ *,
1646
+ *::before,
1647
+ *::after {
1648
+ animation-duration: 0.01ms !important;
1649
+ animation-iteration-count: 1 !important;
1650
+ transition-duration: 0.01ms !important;
1651
+ }
1652
+ }
1653
+
1654
+
1655
+ /* ========================================
1656
+ UTILITY CLASSES
1657
+ ======================================== */
1658
+ .magicfeedback-visually-hidden {
1659
+ position: absolute;
1660
+ width: 1px;
1661
+ height: 1px;
1662
+ padding: 0;
1663
+ margin: -1px;
1664
+ overflow: hidden;
1665
+ clip: rect(0, 0, 0, 0);
1666
+ white-space: nowrap;
1667
+ border-width: 0;
1668
+ }
1669
+
1670
+ .magicfeedback-modal-close {
1671
+ position: absolute;
1672
+ top: 8px;
1673
+ right: 8px;
1674
+ background: transparent;
1675
+ border: none;
1676
+ font-size: 20px;
1677
+ line-height: 1;
1678
+ cursor: pointer;
1679
+ color: #666;
1680
+ }
1681
+
1682
+ .magicfeedback-modal-close:hover,
1683
+ .magicfeedback-modal-close:focus {
1684
+ color: #000;
1685
+ outline: none;
1686
+ }
1687
+
1688
+ /* ========================================
1689
+ FILE / IMAGE UPLOAD
1690
+ ======================================== */
1691
+ .magicfeedback-upload {
1692
+ display: flex;
1693
+ flex-direction: column;
1694
+ gap: var(--mf-space-md);
1695
+ width: 100%;
1696
+ margin: 10px 0;
1697
+ }
1698
+
1699
+ /* The native input is an invisible, focusable overlay covering the dropzone. */
1700
+ .magicfeedback-upload-native {
1701
+ position: absolute;
1702
+ inset: 0;
1703
+ width: 100%;
1704
+ height: 100%;
1705
+ margin: 0;
1706
+ padding: 0;
1707
+ opacity: 0;
1708
+ cursor: pointer;
1709
+ z-index: 2;
1710
+ }
1711
+
1712
+ .magicfeedback-upload-dropzone {
1713
+ position: relative;
1714
+ display: flex;
1715
+ flex-direction: column;
1716
+ align-items: center;
1717
+ justify-content: center;
1718
+ gap: var(--mf-space-sm);
1719
+ box-sizing: border-box;
1720
+ width: 100%;
1721
+ min-height: 150px;
1722
+ padding: var(--mf-space-xl);
1723
+ text-align: center;
1724
+ border: 2px dashed var(--mf-border);
1725
+ border-radius: var(--mf-radius-md);
1726
+ background-color: var(--mf-surface-alt);
1727
+ cursor: pointer;
1728
+ transition: var(--mf-transition);
1729
+ }
1730
+
1731
+ .magicfeedback-upload-dropzone:hover {
1732
+ border-color: var(--mf-primary);
1733
+ background-color: var(--mf-bg-hover);
1734
+ }
1735
+
1736
+ .magicfeedback-upload-dropzone:focus-within {
1737
+ border-color: var(--mf-primary);
1738
+ box-shadow: var(--mf-shadow-focus);
1739
+ }
1740
+
1741
+ .magicfeedback-upload-dropzone.is-dragover {
1742
+ border-color: var(--mf-primary);
1743
+ border-style: solid;
1744
+ background-color: var(--mf-primary-light);
1745
+ box-shadow: var(--mf-shadow-focus);
1746
+ }
1747
+
1748
+ .magicfeedback-upload-icon {
1749
+ display: inline-flex;
1750
+ align-items: center;
1751
+ justify-content: center;
1752
+ width: 46px;
1753
+ height: 46px;
1754
+ color: var(--mf-primary);
1755
+ background-color: var(--mf-surface);
1756
+ border-radius: var(--mf-radius-full);
1757
+ box-shadow: var(--mf-shadow-sm);
1758
+ pointer-events: none;
1759
+ }
1760
+
1761
+ .magicfeedback-upload-icon svg {
1762
+ width: 24px;
1763
+ height: 24px;
1764
+ }
1765
+
1766
+ .magicfeedback-upload-cta {
1767
+ font-family: inherit;
1768
+ font-weight: var(--mf-font-weight-semibold);
1769
+ font-size: var(--mf-font-size-base);
1770
+ color: var(--mf-text-primary);
1771
+ pointer-events: none;
1772
+ }
1773
+
1774
+ .magicfeedback-upload-hint {
1775
+ font-family: inherit;
1776
+ font-size: var(--mf-font-size-sm);
1777
+ color: var(--mf-text-muted);
1778
+ pointer-events: none;
1779
+ }
1780
+
1781
+ .magicfeedback-upload-list {
1782
+ display: flex;
1783
+ flex-direction: column;
1784
+ gap: var(--mf-space-sm);
1785
+ width: 100%;
1786
+ margin: 0;
1787
+ padding: 0;
1788
+ list-style: none;
1789
+ }
1790
+
1791
+ .magicfeedback-upload-list:empty {
1792
+ display: none;
1793
+ }
1794
+
1795
+ .magicfeedback-upload-file-item {
1796
+ display: flex;
1797
+ align-items: center;
1798
+ gap: var(--mf-space-md);
1799
+ padding: var(--mf-space-sm) var(--mf-space-md);
1800
+ background-color: var(--mf-surface);
1801
+ border: 1px solid var(--mf-border);
1802
+ border-radius: var(--mf-radius-sm);
1803
+ box-shadow: var(--mf-shadow-sm);
1804
+ animation: mf-scale-in 0.2s ease-out;
1805
+ }
1806
+
1807
+ .magicfeedback-upload-thumb {
1808
+ flex: 0 0 auto;
1809
+ display: inline-flex;
1810
+ align-items: center;
1811
+ justify-content: center;
1812
+ width: 40px;
1813
+ height: 40px;
1814
+ overflow: hidden;
1815
+ color: var(--mf-text-secondary);
1816
+ background-color: var(--mf-surface-alt);
1817
+ border-radius: var(--mf-radius-sm);
1818
+ }
1819
+
1820
+ .magicfeedback-upload-thumb img {
1821
+ width: 100%;
1822
+ height: 100%;
1823
+ object-fit: cover;
1824
+ }
1825
+
1826
+ .magicfeedback-upload-thumb svg {
1827
+ width: 20px;
1828
+ height: 20px;
1829
+ }
1830
+
1831
+ .magicfeedback-upload-file-info {
1832
+ display: flex;
1833
+ flex-direction: column;
1834
+ flex: 1 1 auto;
1835
+ min-width: 0;
1836
+ text-align: start;
1837
+ }
1838
+
1839
+ .magicfeedback-upload-file-name {
1840
+ font-family: inherit;
1841
+ font-size: var(--mf-font-size-sm);
1842
+ font-weight: var(--mf-font-weight-semibold);
1843
+ color: var(--mf-text-primary);
1844
+ white-space: nowrap;
1845
+ overflow: hidden;
1846
+ text-overflow: ellipsis;
1847
+ }
1848
+
1849
+ .magicfeedback-upload-file-size {
1850
+ font-family: inherit;
1851
+ font-size: 0.75rem;
1852
+ color: var(--mf-text-muted);
1853
+ }
1854
+
1855
+ .magicfeedback-upload-remove {
1856
+ flex: 0 0 auto;
1857
+ display: inline-flex;
1858
+ align-items: center;
1859
+ justify-content: center;
1860
+ width: 30px;
1861
+ height: 30px;
1862
+ padding: 0;
1863
+ color: var(--mf-text-muted);
1864
+ background-color: transparent;
1865
+ border: none;
1866
+ border-radius: var(--mf-radius-full);
1867
+ cursor: pointer;
1868
+ transition: var(--mf-transition-fast);
1869
+ }
1870
+
1871
+ .magicfeedback-upload-remove:hover,
1872
+ .magicfeedback-upload-remove:focus-visible {
1873
+ color: var(--mf-error);
1874
+ background-color: var(--mf-primary-light);
1875
+ outline: none;
1876
+ }
1877
+
1878
+ .magicfeedback-upload-remove svg {
1879
+ width: 16px;
1880
+ height: 16px;
1881
+ }
1882
+
1883
+ .magicfeedback-upload-error {
1884
+ display: none;
1885
+ font-family: inherit;
1886
+ font-size: var(--mf-font-size-sm);
1887
+ color: var(--mf-error);
1888
+ }
1889
+
1890
+ .magicfeedback-upload-error.is-visible {
1891
+ display: block;
1892
+ }
1893
+
1894
+ /* ========================================
1895
+ LOCAL \u2014 reglas del popup, no vienen del paquete
1896
+ ======================================== */
1897
+
1898
+ /* Los controles de formulario no heredan font-family: cuando el popup trae fuente propia
1899
+ (clase deepdots-has-font), se les fuerza la del contenedor. */
1900
+ .deepdots-popup.deepdots-has-font button,
1901
+ .deepdots-popup.deepdots-has-font input,
1902
+ .deepdots-popup.deepdots-has-font textarea,
1903
+ .deepdots-popup.deepdots-has-font select {
1904
+ font-family: var(--deepdots-font, inherit);
1905
+ }
1906
+
1907
+ /* WebKit s\xED aplica el padding al radio nativo: con padding el control se dibuja enorme (se vio
1908
+ en iOS, WebView de RN y Safari, no en Chrome). El paquete ya no lo pone, pero la regla es
1909
+ barata y evita que vuelva. */
1910
+ .deepdots-popup input[type="radio"] {
1911
+ padding: 0;
1912
+ }
1913
+ `;
1914
+
1915
+ // src/util/logger.ts
1916
+ var active = console;
1917
+ function setLogger(logger) {
1918
+ active = logger ?? console;
1919
+ }
1920
+ function sdkLog(...args) {
1921
+ active.log(...args);
1922
+ }
1923
+ function sdkWarn(...args) {
1924
+ (active.warn ?? active.log)(...args);
1925
+ }
1926
+ function sdkError(...args) {
1927
+ (active.error ?? active.log)(...args);
1928
+ }
1929
+
1930
+ export {
1931
+ __require,
1932
+ createDefaultStorage,
1933
+ STORAGE_KEYS,
1934
+ buildSurveyIdentity,
1935
+ TrackingManager,
1936
+ buildFontFamilyValue,
1937
+ buildFontFaceCss,
1938
+ style_default,
1939
+ setLogger,
1940
+ sdkLog,
1941
+ sdkWarn,
1942
+ sdkError
1943
+ };
1944
+ //# sourceMappingURL=chunk-Z3LLJMSH.mjs.map