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