@edel-finance/swap-widget 0.0.0-stage → 0.0.2

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.
package/dist/theme.js ADDED
@@ -0,0 +1,740 @@
1
+ /**
2
+ * Alpine Forest II theme tokens and CSS-isolated style sheet for @edel-finance/swap-widget.
3
+ *
4
+ * Visual tokens, radii, spacing, and typography are lifted directly from
5
+ * edel-markets-frontend's Alpine Forest II Deposit Bridge modal so the embeddable
6
+ * swap widget matches the production trading terminal 1:1.
7
+ *
8
+ * All rules are scoped to `.edel-sw-root` with an explicit reset so the widget
9
+ * never inherits or leaks styles when embedded in SuperNova, Loop, or partner dApps.
10
+ */
11
+ export const ALPINE_FOREST_THEMES = {
12
+ dark: {
13
+ bg: "#020c0a",
14
+ cardBg: "#0e1312",
15
+ panel2: "#121716",
16
+ surfaceBg: "rgba(172, 231, 204, 0.045)",
17
+ surfaceHover: "rgba(172, 231, 204, 0.08)",
18
+ surface4: "rgba(172, 231, 204, 0.115)",
19
+ border: "rgba(172, 231, 204, 0.06)",
20
+ borderStrong: "rgba(172, 231, 204, 0.12)",
21
+ textStrong: "#ffffff",
22
+ text: "#eff3f1",
23
+ text2: "#9ba8a2",
24
+ textMuted: "#818e88",
25
+ accent: "#8bfbd5",
26
+ accentRgb: "139, 251, 213",
27
+ tintRgb: "172, 231, 204",
28
+ accentHover: "#a4fde0",
29
+ accentText: "#03130e",
30
+ buttonPrimaryBg: "#8bfbd5",
31
+ buttonPrimaryHover: "#a4fde0",
32
+ buttonPrimaryText: "#03130e",
33
+ buttonDisabledBg: "rgba(139, 251, 213, 0.095)",
34
+ buttonDisabledText: "rgba(139, 251, 213, 0.62)",
35
+ success: "#62e0b2",
36
+ warning: "#f0be6d",
37
+ danger: "#f2738e",
38
+ dangerSoft: "rgba(242, 115, 142, 0.1)",
39
+ dangerLine: "rgba(242, 115, 142, 0.24)",
40
+ shadow: "0 32px 96px rgba(0, 0, 0, 0.55)",
41
+ shadowPop: "0 24px 64px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.32)",
42
+ },
43
+ light: {
44
+ bg: "#e7eeec",
45
+ cardBg: "#ffffff",
46
+ panel2: "#ffffff",
47
+ surfaceBg: "rgba(10, 36, 28, 0.045)",
48
+ surfaceHover: "rgba(10, 36, 28, 0.075)",
49
+ surface4: "rgba(10, 36, 28, 0.11)",
50
+ border: "rgba(10, 36, 28, 0.1)",
51
+ borderStrong: "rgba(10, 36, 28, 0.16)",
52
+ textStrong: "#04130e",
53
+ text: "#0b1e17",
54
+ text2: "#3f514a",
55
+ textMuted: "#56685f",
56
+ accent: "#006a52",
57
+ accentRgb: "0, 150, 110",
58
+ tintRgb: "10, 36, 28",
59
+ accentHover: "#2bd3a4",
60
+ accentText: "#032419",
61
+ buttonPrimaryBg: "#3ae0b1",
62
+ buttonPrimaryHover: "#2bd3a4",
63
+ buttonPrimaryText: "#032419",
64
+ buttonDisabledBg: "rgba(0, 150, 110, 0.1)",
65
+ buttonDisabledText: "rgba(0, 106, 82, 0.55)",
66
+ success: "#0a734f",
67
+ warning: "#a2650a",
68
+ danger: "#ae2844",
69
+ dangerSoft: "rgba(174, 40, 68, 0.08)",
70
+ dangerLine: "rgba(174, 40, 68, 0.24)",
71
+ shadow: "0 30px 90px rgba(10, 36, 28, 0.14)",
72
+ shadowPop: "0 24px 64px rgba(10, 36, 28, 0.15), 0 2px 8px rgba(10, 36, 28, 0.07)",
73
+ },
74
+ };
75
+ export function getIsolatedWidgetCss(theme) {
76
+ const t = ALPINE_FOREST_THEMES[theme];
77
+ const ease = "cubic-bezier(0.2, 0.9, 0.3, 1)";
78
+ return `
79
+ .edel-sw-root {
80
+ all: initial;
81
+ display: grid;
82
+ gap: 12px;
83
+ box-sizing: border-box;
84
+ font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
85
+ color: ${t.text};
86
+ background: ${t.cardBg};
87
+ border: 1px solid ${t.border};
88
+ border-radius: 18px;
89
+ padding: 20px;
90
+ width: min(452px, 100%);
91
+ max-width: 452px;
92
+ box-shadow: ${t.shadow};
93
+ line-height: 1.4;
94
+ -webkit-font-smoothing: antialiased;
95
+ color-scheme: ${theme};
96
+ }
97
+ .edel-sw-root *, .edel-sw-root *::before, .edel-sw-root *::after {
98
+ box-sizing: border-box;
99
+ font-family: inherit;
100
+ }
101
+ .edel-sw-header {
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: space-between;
105
+ gap: 10px;
106
+ }
107
+ .edel-sw-brand {
108
+ display: inline-flex;
109
+ align-items: center;
110
+ gap: 8px;
111
+ min-width: 0;
112
+ }
113
+ .edel-sw-brand-mark {
114
+ color: ${t.accent};
115
+ flex-shrink: 0;
116
+ display: block;
117
+ }
118
+ .edel-sw-title {
119
+ font-size: 15px;
120
+ font-weight: 600;
121
+ letter-spacing: -0.01em;
122
+ color: ${t.textStrong};
123
+ }
124
+ .edel-sw-badge {
125
+ display: inline-flex;
126
+ align-items: center;
127
+ height: 22px;
128
+ padding: 0 8px;
129
+ border-radius: 999px;
130
+ background: rgba(${t.tintRgb}, 0.06);
131
+ color: ${t.text2};
132
+ font-size: 11.5px;
133
+ font-weight: 500;
134
+ font-variant-numeric: tabular-nums;
135
+ white-space: nowrap;
136
+ }
137
+
138
+ /* 4-Step Progress Rail (verbatim from bridge-rail) */
139
+ .edel-sw-rail {
140
+ display: grid;
141
+ grid-template-columns: repeat(4, minmax(0, 1fr));
142
+ margin: 0;
143
+ padding: 0;
144
+ list-style: none;
145
+ }
146
+ .edel-sw-rail-step {
147
+ position: relative;
148
+ display: flex;
149
+ justify-content: center;
150
+ min-width: 0;
151
+ }
152
+ .edel-sw-rail-step:not(:first-child)::before {
153
+ content: "";
154
+ position: absolute;
155
+ top: 10px;
156
+ right: calc(50% + 15px);
157
+ left: calc(-50% + 15px);
158
+ height: 2px;
159
+ border-radius: 1px;
160
+ background: rgba(${t.tintRgb}, 0.1);
161
+ transition: background-color 300ms ${ease};
162
+ }
163
+ .edel-sw-rail-step[data-state="done"]::before,
164
+ .edel-sw-rail-step[data-state="current"]::before {
165
+ background: rgba(${t.accentRgb}, 0.55);
166
+ }
167
+ .edel-sw-rail-inner {
168
+ display: flex;
169
+ flex-direction: column;
170
+ align-items: center;
171
+ gap: 5px;
172
+ width: 100%;
173
+ min-width: 0;
174
+ }
175
+ .edel-sw-rail-marker {
176
+ display: grid;
177
+ place-items: center;
178
+ width: 22px;
179
+ height: 22px;
180
+ border-radius: 50%;
181
+ box-shadow: inset 0 0 0 1.5px rgba(${t.tintRgb}, 0.16);
182
+ color: ${t.textMuted};
183
+ font-size: 11px;
184
+ font-variant-numeric: tabular-nums;
185
+ font-weight: 600;
186
+ transition: background-color 240ms ${ease}, box-shadow 240ms ${ease}, color 240ms ${ease};
187
+ }
188
+ .edel-sw-rail-step[data-state="current"] .edel-sw-rail-marker {
189
+ background: rgba(${t.accentRgb}, 0.12);
190
+ box-shadow: inset 0 0 0 1.5px ${t.accent};
191
+ color: ${t.accent};
192
+ }
193
+ .edel-sw-rail-step[data-state="done"] .edel-sw-rail-marker {
194
+ background: ${t.accent};
195
+ box-shadow: none;
196
+ color: ${t.buttonPrimaryText};
197
+ }
198
+ .edel-sw-rail-label {
199
+ max-width: 100%;
200
+ overflow: hidden;
201
+ color: ${t.textMuted};
202
+ font-size: 11.5px;
203
+ line-height: 15px;
204
+ text-overflow: ellipsis;
205
+ white-space: nowrap;
206
+ }
207
+ .edel-sw-rail-step[data-state="current"] .edel-sw-rail-label {
208
+ color: ${t.textStrong};
209
+ font-weight: 600;
210
+ }
211
+
212
+ /* Send / Receive Pair (verbatim from bridge-pair & bridge-box) */
213
+ .edel-sw-pair {
214
+ position: relative;
215
+ display: grid;
216
+ gap: 6px;
217
+ }
218
+ .edel-sw-box-wrap {
219
+ position: relative;
220
+ min-width: 0;
221
+ }
222
+ .edel-sw-box {
223
+ display: grid;
224
+ gap: 8px;
225
+ padding: 14px 16px;
226
+ border-radius: 16px;
227
+ background: ${t.surfaceBg};
228
+ transition: box-shadow 140ms ${ease};
229
+ }
230
+ .edel-sw-box[data-pay]:focus-within {
231
+ box-shadow: inset 0 0 0 1px rgba(${t.accentRgb}, 0.45);
232
+ }
233
+ .edel-sw-box[data-invalid] {
234
+ box-shadow: inset 0 0 0 1px ${t.dangerLine};
235
+ }
236
+ .edel-sw-label {
237
+ display: flex;
238
+ align-items: center;
239
+ justify-content: space-between;
240
+ gap: 8px;
241
+ min-height: 22px;
242
+ color: ${t.textMuted};
243
+ font-size: 12.5px;
244
+ font-weight: 400;
245
+ }
246
+ .edel-sw-label-meta {
247
+ color: ${t.textMuted};
248
+ font-size: 11.5px;
249
+ font-variant-numeric: tabular-nums;
250
+ }
251
+ .edel-sw-row {
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: space-between;
255
+ gap: 10px;
256
+ min-width: 0;
257
+ }
258
+ .edel-sw-input {
259
+ flex: 1 1 auto;
260
+ min-width: 0;
261
+ height: 40px;
262
+ padding: 0;
263
+ border: 0;
264
+ border-radius: 0;
265
+ background: transparent;
266
+ box-shadow: none;
267
+ color: ${t.textStrong};
268
+ font-size: 30px;
269
+ font-variant-numeric: tabular-nums;
270
+ font-weight: 400;
271
+ letter-spacing: -0.02em;
272
+ outline: 0;
273
+ }
274
+ .edel-sw-input[data-empty="true"] {
275
+ color: ${t.textMuted};
276
+ }
277
+ .edel-sw-input::placeholder {
278
+ color: ${t.textMuted};
279
+ }
280
+ .edel-sw-box-sub {
281
+ display: flex;
282
+ align-items: center;
283
+ justify-content: space-between;
284
+ gap: 8px;
285
+ min-height: 17px;
286
+ color: ${t.textMuted};
287
+ font-size: 12px;
288
+ font-variant-numeric: tabular-nums;
289
+ }
290
+
291
+ /* Overlapping Center Flip Button (verbatim from bridge-pair__arrow) */
292
+ .edel-sw-flip {
293
+ position: absolute;
294
+ top: 50%;
295
+ left: 50%;
296
+ z-index: 3;
297
+ display: grid;
298
+ place-items: center;
299
+ width: 32px;
300
+ height: 32px;
301
+ padding: 0;
302
+ border: 4px solid ${t.cardBg};
303
+ border-radius: 11px;
304
+ background:
305
+ linear-gradient(${t.surfaceHover}, ${t.surfaceHover}) padding-box,
306
+ ${t.cardBg} padding-box;
307
+ color: ${t.text};
308
+ cursor: pointer;
309
+ outline: 0;
310
+ box-sizing: content-box;
311
+ transform: translate(-50%, -50%);
312
+ transition: background-color 140ms ${ease}, color 140ms ${ease}, box-shadow 140ms ${ease};
313
+ }
314
+ .edel-sw-flip:hover {
315
+ background:
316
+ linear-gradient(${t.surface4}, ${t.surface4}) padding-box,
317
+ ${t.cardBg} padding-box;
318
+ color: ${t.accent};
319
+ }
320
+ .edel-sw-flip:focus-visible {
321
+ box-shadow: 0 0 0 1.5px rgba(${t.accentRgb}, 0.55);
322
+ }
323
+ .edel-sw-flip-icon {
324
+ display: block;
325
+ transition: transform 220ms ${ease};
326
+ }
327
+
328
+ /* Token Pill Trigger & Canton Mini-Badge (verbatim from bridge-token-button & bridge-on-chain) */
329
+ .edel-sw-token-picker {
330
+ flex: none;
331
+ }
332
+ .edel-sw-token-trigger {
333
+ display: inline-flex;
334
+ flex: none;
335
+ align-items: center;
336
+ gap: 8px;
337
+ height: 38px;
338
+ padding: 0 10px 0 7px;
339
+ border: 0;
340
+ border-radius: 999px;
341
+ background: ${t.surfaceHover};
342
+ color: ${t.textStrong};
343
+ font: inherit;
344
+ font-size: 14px;
345
+ font-weight: 500;
346
+ cursor: pointer;
347
+ outline: 0;
348
+ white-space: nowrap;
349
+ transition: background-color 140ms ${ease}, box-shadow 140ms ${ease};
350
+ }
351
+ .edel-sw-token-trigger:hover {
352
+ background: ${t.surface4};
353
+ }
354
+ .edel-sw-token-trigger:focus-visible,
355
+ .edel-sw-token-trigger[aria-expanded="true"] {
356
+ background: ${t.surface4};
357
+ box-shadow: inset 0 0 0 1.5px rgba(${t.accentRgb}, 0.55);
358
+ }
359
+ .edel-sw-on-chain {
360
+ position: relative;
361
+ display: inline-flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+ flex: none;
365
+ }
366
+ .edel-sw-on-chain-badge {
367
+ position: absolute;
368
+ right: -3px;
369
+ bottom: -3px;
370
+ display: grid;
371
+ place-items: center;
372
+ border-radius: 50%;
373
+ background: ${t.cardBg};
374
+ }
375
+ .edel-sw-token-icon {
376
+ display: block;
377
+ flex-shrink: 0;
378
+ border-radius: 50%;
379
+ }
380
+ .edel-sw-token-symbol {
381
+ letter-spacing: -0.01em;
382
+ }
383
+ .edel-sw-token-chevron {
384
+ color: ${t.textMuted};
385
+ flex-shrink: 0;
386
+ transition: transform 160ms ${ease};
387
+ }
388
+ .edel-sw-token-trigger[aria-expanded="true"] .edel-sw-token-chevron {
389
+ transform: rotate(180deg);
390
+ }
391
+
392
+ /* Searchable Token Dropdown (verbatim from bridge-select) */
393
+ @keyframes edel-sw-select-in {
394
+ from {
395
+ opacity: 0;
396
+ transform: translateY(-6px) scale(0.98);
397
+ }
398
+ }
399
+ .edel-sw-token-menu {
400
+ position: absolute;
401
+ top: calc(100% + 6px);
402
+ right: 0;
403
+ left: 0;
404
+ z-index: 20;
405
+ display: flex;
406
+ flex-direction: column;
407
+ gap: 4px;
408
+ max-height: 340px;
409
+ overflow: hidden;
410
+ padding: 6px;
411
+ border-radius: 14px;
412
+ background: ${t.panel2};
413
+ box-shadow: ${t.shadowPop}, inset 0 0 0 1px rgba(${t.tintRgb}, 0.08);
414
+ animation: edel-sw-select-in 160ms ${ease} both;
415
+ }
416
+ .edel-sw-token-search {
417
+ display: flex;
418
+ flex: none;
419
+ align-items: center;
420
+ gap: 8px;
421
+ height: 38px;
422
+ padding: 0 10px;
423
+ border-radius: 10px;
424
+ background: ${t.surfaceBg};
425
+ color: ${t.textMuted};
426
+ }
427
+ .edel-sw-token-search input {
428
+ flex: 1;
429
+ min-width: 0;
430
+ border: 0;
431
+ background: transparent;
432
+ color: ${t.textStrong};
433
+ font: inherit;
434
+ font-size: 13px;
435
+ outline: 0;
436
+ }
437
+ .edel-sw-token-search input::placeholder {
438
+ color: ${t.textMuted};
439
+ }
440
+ .edel-sw-token-list {
441
+ display: flex;
442
+ flex: 1 1 auto;
443
+ flex-direction: column;
444
+ gap: 2px;
445
+ min-height: 0;
446
+ max-height: 264px;
447
+ overflow-x: hidden;
448
+ overflow-y: auto;
449
+ overscroll-behavior: contain;
450
+ }
451
+ .edel-sw-token-option {
452
+ display: grid;
453
+ flex: none;
454
+ grid-template-columns: 28px minmax(0, 1fr) auto 16px;
455
+ align-items: center;
456
+ gap: 10px;
457
+ width: 100%;
458
+ min-height: 52px;
459
+ padding: 8px 10px;
460
+ border: 0;
461
+ border-radius: 10px;
462
+ background: transparent;
463
+ color: inherit;
464
+ font: inherit;
465
+ text-align: left;
466
+ cursor: pointer;
467
+ outline: 0;
468
+ transition: background-color 120ms ${ease};
469
+ }
470
+ .edel-sw-token-option:hover,
471
+ .edel-sw-token-option:focus-visible {
472
+ background: ${t.surfaceHover};
473
+ }
474
+ .edel-sw-token-option[aria-selected="true"] {
475
+ background: ${t.surfaceBg};
476
+ }
477
+ .edel-sw-token-option-text {
478
+ display: grid;
479
+ min-width: 0;
480
+ line-height: 17px;
481
+ }
482
+ .edel-sw-token-option-text strong {
483
+ color: ${t.textStrong};
484
+ font-size: 13.5px;
485
+ font-weight: 500;
486
+ }
487
+ .edel-sw-token-option-text span {
488
+ overflow: hidden;
489
+ color: ${t.textMuted};
490
+ font-size: 12px;
491
+ text-overflow: ellipsis;
492
+ white-space: nowrap;
493
+ }
494
+ .edel-sw-token-option-aside {
495
+ color: ${t.text2};
496
+ font-size: 12px;
497
+ font-variant-numeric: tabular-nums;
498
+ }
499
+ .edel-sw-token-check {
500
+ display: inline-flex;
501
+ align-items: center;
502
+ justify-content: center;
503
+ color: ${t.accent};
504
+ }
505
+ .edel-sw-token-empty {
506
+ padding: 16px 10px;
507
+ color: ${t.textMuted};
508
+ font-size: 12.5px;
509
+ text-align: center;
510
+ }
511
+
512
+ /* Max Slippage Presets (verbatim from bridge-preset) */
513
+ .edel-sw-slippage {
514
+ display: grid;
515
+ gap: 8px;
516
+ padding: 10px 12px;
517
+ border-radius: 14px;
518
+ box-shadow: inset 0 0 0 1px rgba(${t.tintRgb}, 0.08);
519
+ }
520
+ .edel-sw-slippage-header {
521
+ display: flex;
522
+ align-items: center;
523
+ justify-content: space-between;
524
+ font-size: 12.5px;
525
+ color: ${t.textMuted};
526
+ }
527
+ .edel-sw-slippage-header strong {
528
+ color: ${t.text};
529
+ font-weight: 500;
530
+ font-variant-numeric: tabular-nums;
531
+ }
532
+ .edel-sw-slippage-pills {
533
+ display: flex;
534
+ align-items: center;
535
+ gap: 6px;
536
+ border: 0;
537
+ margin: 0;
538
+ padding: 0;
539
+ }
540
+ .edel-sw-pill {
541
+ flex: 1;
542
+ height: 28px;
543
+ padding: 0 9px;
544
+ border: 0;
545
+ border-radius: 999px;
546
+ background: rgba(${t.tintRgb}, 0.06);
547
+ color: ${t.text2};
548
+ font: inherit;
549
+ font-size: 12px;
550
+ font-variant-numeric: tabular-nums;
551
+ font-weight: 500;
552
+ cursor: pointer;
553
+ outline: 0;
554
+ text-align: center;
555
+ transition: background-color 140ms ${ease}, color 140ms ${ease};
556
+ }
557
+ .edel-sw-pill:hover {
558
+ background: ${t.surface4};
559
+ color: ${t.textStrong};
560
+ }
561
+ .edel-sw-pill:focus-visible {
562
+ box-shadow: inset 0 0 0 1.5px rgba(${t.accentRgb}, 0.55);
563
+ }
564
+ .edel-sw-pill[data-active="true"] {
565
+ background: rgba(${t.accentRgb}, 0.14);
566
+ color: ${t.accent};
567
+ }
568
+ .edel-sw-custom-wrap {
569
+ display: flex;
570
+ align-items: center;
571
+ flex: 1.25;
572
+ height: 28px;
573
+ background: rgba(${t.tintRgb}, 0.06);
574
+ border-radius: 999px;
575
+ padding: 0 10px;
576
+ transition: box-shadow 140ms ${ease}, background-color 140ms ${ease};
577
+ }
578
+ .edel-sw-custom-wrap:focus-within,
579
+ .edel-sw-custom-wrap[data-active="true"] {
580
+ background: rgba(${t.accentRgb}, 0.1);
581
+ box-shadow: inset 0 0 0 1px rgba(${t.accentRgb}, 0.45);
582
+ }
583
+ .edel-sw-custom-input {
584
+ width: 100%;
585
+ background: transparent;
586
+ border: 0;
587
+ outline: 0;
588
+ color: ${t.textStrong};
589
+ font-size: 12px;
590
+ font-variant-numeric: tabular-nums;
591
+ font-weight: 500;
592
+ min-width: 0;
593
+ }
594
+ .edel-sw-custom-input::placeholder {
595
+ color: ${t.textMuted};
596
+ }
597
+ .edel-sw-custom-suffix {
598
+ font-size: 11.5px;
599
+ color: ${t.textMuted};
600
+ margin-left: 2px;
601
+ }
602
+
603
+ /* Quote Details Card (verbatim from bridge-quote & bridge-rows) */
604
+ .edel-sw-fees {
605
+ display: grid;
606
+ gap: 0;
607
+ padding: 10px 12px;
608
+ border-radius: 14px;
609
+ box-shadow: inset 0 0 0 1px rgba(${t.tintRgb}, 0.08);
610
+ font-size: 12.5px;
611
+ }
612
+ .edel-sw-fee-line {
613
+ display: flex;
614
+ align-items: baseline;
615
+ justify-content: space-between;
616
+ gap: 12px;
617
+ padding: 6px 0;
618
+ border-top: 1px solid rgba(${t.tintRgb}, 0.06);
619
+ color: ${t.textMuted};
620
+ line-height: 18px;
621
+ }
622
+ .edel-sw-fee-line:first-child {
623
+ border-top: 0;
624
+ padding-top: 0;
625
+ }
626
+ .edel-sw-fee-line strong {
627
+ color: ${t.text};
628
+ font-weight: 500;
629
+ font-variant-numeric: tabular-nums;
630
+ text-align: right;
631
+ white-space: nowrap;
632
+ }
633
+ .edel-sw-ttl-bar {
634
+ height: 3px;
635
+ width: 100%;
636
+ border-radius: 999px;
637
+ background: rgba(${t.tintRgb}, 0.1);
638
+ overflow: hidden;
639
+ margin-top: 6px;
640
+ }
641
+ .edel-sw-ttl-fill {
642
+ height: 100%;
643
+ background: ${t.accent};
644
+ transition: width 0.25s linear;
645
+ }
646
+
647
+ /* Active Order Tracker */
648
+ .edel-sw-tracker {
649
+ display: grid;
650
+ gap: 8px;
651
+ padding: 12px 14px;
652
+ border-radius: 14px;
653
+ background: ${t.surfaceBg};
654
+ box-shadow: inset 0 0 0 1px rgba(${t.tintRgb}, 0.08);
655
+ }
656
+ .edel-sw-steps {
657
+ display: flex;
658
+ justify-content: space-between;
659
+ gap: 4px;
660
+ }
661
+ .edel-sw-step {
662
+ flex: 1;
663
+ text-align: center;
664
+ font-size: 10.5px;
665
+ font-weight: 500;
666
+ padding: 5px 4px;
667
+ border-radius: 8px;
668
+ background: rgba(${t.tintRgb}, 0.05);
669
+ color: ${t.textMuted};
670
+ }
671
+ .edel-sw-step[data-state="active"] {
672
+ background: rgba(${t.accentRgb}, 0.14);
673
+ box-shadow: inset 0 0 0 1px rgba(${t.accentRgb}, 0.45);
674
+ color: ${t.accent};
675
+ }
676
+ .edel-sw-step[data-state="done"] {
677
+ background: ${t.buttonPrimaryBg};
678
+ color: ${t.buttonPrimaryText};
679
+ font-weight: 600;
680
+ }
681
+ .edel-sw-submit-btn {
682
+ width: 100%;
683
+ min-height: 38px;
684
+ padding: 0 14px;
685
+ border-radius: 10px;
686
+ border: 1px solid rgba(${t.accentRgb}, 0.45);
687
+ background: rgba(${t.accentRgb}, 0.12);
688
+ color: ${t.accent};
689
+ font-size: 13px;
690
+ font-weight: 600;
691
+ cursor: pointer;
692
+ transition: background-color 140ms ${ease};
693
+ }
694
+ .edel-sw-submit-btn:hover:not(:disabled) {
695
+ background: rgba(${t.accentRgb}, 0.2);
696
+ }
697
+ .edel-sw-submit-btn:disabled {
698
+ opacity: 0.5;
699
+ cursor: not-allowed;
700
+ }
701
+
702
+ /* Primary Mint CTA Button (verbatim from bridge-cta & alpine-forest-2) */
703
+ .edel-sw-cta {
704
+ width: 100%;
705
+ min-height: 46px;
706
+ padding: 0 16px;
707
+ border-radius: 12px;
708
+ border: 0;
709
+ background: ${t.buttonPrimaryBg};
710
+ color: ${t.buttonPrimaryText};
711
+ font-size: 14.5px;
712
+ font-weight: 600;
713
+ cursor: pointer;
714
+ outline: 0;
715
+ transition: background-color 140ms ${ease}, color 140ms ${ease}, box-shadow 140ms ${ease};
716
+ }
717
+ .edel-sw-cta:hover:not(:disabled) {
718
+ background: ${t.buttonPrimaryHover};
719
+ }
720
+ .edel-sw-cta:focus-visible {
721
+ box-shadow: 0 0 0 2px rgba(${t.accentRgb}, 0.45);
722
+ }
723
+ .edel-sw-cta:disabled {
724
+ background: ${t.buttonDisabledBg};
725
+ color: ${t.buttonDisabledText};
726
+ cursor: not-allowed;
727
+ }
728
+
729
+ /* Error Notice (verbatim from bridge-notice[data-tone="error"]) */
730
+ .edel-sw-error {
731
+ padding: 10px 12px;
732
+ border-radius: 12px;
733
+ background: ${t.dangerSoft};
734
+ box-shadow: inset 0 0 0 1px ${t.dangerLine};
735
+ font-size: 12.5px;
736
+ line-height: 18px;
737
+ color: ${t.danger};
738
+ }
739
+ `.trim();
740
+ }