herald-exchange-onramp_offramp-widget 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.babelrc +3 -0
  2. package/Readme.md +166 -0
  3. package/dist/index.css +1 -0
  4. package/dist/index.d.ts +24 -0
  5. package/dist/index.js +47 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +47 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +59 -0
  10. package/rollup.config.js +90 -0
  11. package/src/assets/css/style.module.css +1435 -0
  12. package/src/assets/icons-one.png +0 -0
  13. package/src/assets/react.svg +1 -0
  14. package/src/components/ButtonStepper.tsx +144 -0
  15. package/src/components/BuyField.tsx +632 -0
  16. package/src/components/CommonCenterLoader.tsx +119 -0
  17. package/src/components/CustomeSelect.tsx +180 -0
  18. package/src/components/DotLoader.tsx +8 -0
  19. package/src/components/NewBuyField.tsx +687 -0
  20. package/src/components/SellAdminCryptoAccount.tsx +601 -0
  21. package/src/components/SellField.tsx +712 -0
  22. package/src/components/WidgetBankDetails.tsx +612 -0
  23. package/src/components/WidgetComponent.tsx +49 -0
  24. package/src/components/WidgetContent.tsx +71 -0
  25. package/src/components/WidgetSuccesDetails.tsx +113 -0
  26. package/src/components/api.ts +59 -0
  27. package/src/components/chains.ts +319 -0
  28. package/src/components/images.d.ts +5 -0
  29. package/src/components/loader.tsx +14 -0
  30. package/src/components/style.module.css.d.ts +4 -0
  31. package/src/components/toast.tsx +51 -0
  32. package/src/components/types.ts +237 -0
  33. package/src/components/utils.ts +17 -0
  34. package/src/hooks/toastProvider.tsx +64 -0
  35. package/src/hooks/useSocketExchange.tsx +48 -0
  36. package/src/index.ts +3 -0
  37. package/tsconfig.json +118 -0
@@ -0,0 +1,1435 @@
1
+ /* @import url('https://fonts.cdnfonts.com/css/segoe-ui-4'); */
2
+ @import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@300;400;500;600;700&display=swap");
3
+
4
+ @-webkit-viewport {
5
+ width: device-width;
6
+ }
7
+
8
+ @-moz-viewport {
9
+ width: device-width;
10
+ }
11
+
12
+ @-ms-viewport {
13
+ width: device-width;
14
+ }
15
+
16
+ @-o-viewport {
17
+ width: device-width;
18
+ }
19
+
20
+ @viewport {
21
+ width: device-width;
22
+ }
23
+
24
+ :root {
25
+ --primay-sdk-color: #f9c201;
26
+ --light-color: #ffffff;
27
+ --dark-sdk-color: #000;
28
+ --quaternary-sdk-color: #6b7178;
29
+ --overlay-sdk-bg: #f5f5f5;
30
+ --faile-sdk-color: #ff2222;
31
+ --no-fill: transparent;
32
+ /* border */
33
+ --line-color: #e5eaf4;
34
+ }
35
+
36
+ /*------------- Body -------------*/
37
+
38
+ body {
39
+ -webkit-font-smoothing: antialiased;
40
+ -moz-osx-font-smoothing: grayscale;
41
+ /* -webkit-transition: 0.25s ease;
42
+ transition: 0.25s ease; */
43
+ overflow-x: hidden;
44
+ position: relative;
45
+ font-family: "Red Hat Text", sans-serif;
46
+ color: var(--dark-sdk-color);
47
+ background-color: var(--light-color);
48
+ /* font-size:calc(.5 * (1.5vh + 1.1vw)) !important; */
49
+ font-size: 12px !important;
50
+ letter-spacing: 0.8px;
51
+ background-size: cover;
52
+ -webkit-text-size-adjust: none;
53
+ -ms-text-size-adjust: none;
54
+ -moz-text-size-adjust: none;
55
+ text-size-adjust: none;
56
+ }
57
+
58
+ /* Unwanter Space */
59
+ * {
60
+ padding: 0;
61
+ margin: 0;
62
+ }
63
+
64
+ *,
65
+ :after,
66
+ :before {
67
+ box-sizing: border-box;
68
+ }
69
+
70
+ a,
71
+ button {
72
+ cursor: pointer;
73
+ }
74
+
75
+ p,
76
+ h1,
77
+ h2,
78
+ h3,
79
+ h4,
80
+ h5,
81
+ h6,
82
+ a,
83
+ span,
84
+ div {
85
+ font-family: "Red Hat Text", sans-serif;
86
+ }
87
+
88
+ button:disabled {
89
+ opacity: 0.7;
90
+ cursor: not-allowed;
91
+ }
92
+
93
+ .action_btn {
94
+ --_background: var(--background, var(--primay-sdk-color));
95
+ --_color: var(--color, var(--dark-sdk-color));
96
+ --_border: var(--border, transparent);
97
+ --_btn-width: var(--btn-width, auto);
98
+ background: var(--_background);
99
+ color: var(--_color);
100
+ border: 1px solid var(--_border);
101
+ width: var(--_btn-width);
102
+ padding: 0.8em 2em;
103
+ text-align: center;
104
+ -webkit-transition: all 0.5s ease-in-out;
105
+ -moz-transition: all 0.5s ease-in-out;
106
+ -ms-transition: all 0.5s ease-in-out;
107
+ -o-transition: all 0.5s ease-in-out;
108
+ transition: all 0.5s ease-in-out;
109
+ position: relative;
110
+ overflow: hidden;
111
+ -webkit-border-radius: 10px;
112
+ -moz-border-radius: 10px;
113
+ -o-border-radius: 10px;
114
+ -ms-border-radius: 10px;
115
+ border-radius: 10px;
116
+ display: flex;
117
+ align-items: center;
118
+ gap: 0.5em;
119
+ justify-content: center;
120
+ font-size: 0.85em;
121
+ font-weight: 600;
122
+ z-index: 0;
123
+ font-family: "Red Hat Text", sans-serif;
124
+ }
125
+
126
+ .primary {
127
+ --background: var(--primay-sdk-color);
128
+ --color: var(--dark-sdk-color);
129
+ --btn-width: 100%;
130
+ --border: transparent;
131
+ }
132
+
133
+ .secondary {
134
+ --background: #f9f9f9;
135
+ --color: var(--dark-sdk-color);
136
+ --btn-width: auto;
137
+ --border: transparent;
138
+ }
139
+
140
+ .overlay {
141
+ --background: transparent;
142
+ --color: var(--dark-sdk-color);
143
+ --btn-width: auto;
144
+ --border: #e5eaf4;
145
+ padding: 0.5em;
146
+ }
147
+
148
+ /* widegt Layout css */
149
+ .tabs_link {
150
+ display: flex;
151
+ align-items: flex-start;
152
+ justify-content: space-between;
153
+ }
154
+
155
+ .tabs_box {
156
+ background: #ffffff47;
157
+ padding: 0.7em;
158
+ border-radius: 10px;
159
+ display: flex;
160
+ align-items: center;
161
+ gap: 1em;
162
+ margin-bottom: 1.5em;
163
+ }
164
+
165
+ .tabs_box button {
166
+ background-color: initial;
167
+ border-radius: 0;
168
+ color: #666;
169
+ font-size: 0.85em;
170
+ font-weight: 600;
171
+ border: 0;
172
+ padding: 0.8em 1em;
173
+ font-family: "Red Hat Text", sans-serif;
174
+ }
175
+
176
+ .tabs_box button.active_btn {
177
+ background: var(--light-color);
178
+ border-radius: 10px;
179
+ }
180
+
181
+ .tabs_box button:first-child.active_btn {
182
+ color: #008826 !important;
183
+ }
184
+
185
+ .tabs_box button:last-child.active_btn {
186
+ color: #ff0000 !important;
187
+ }
188
+
189
+ .widegt-tabs-close button {
190
+ background-color: transparent;
191
+ border: 0;
192
+ }
193
+
194
+ .tabs_content {
195
+ background: #ffffff47;
196
+ padding: 2em;
197
+ border-radius: 10px;
198
+ }
199
+
200
+ /* Modal For Widegt */
201
+ .widget_wrapped {
202
+ --spacing-modal: 1.75rem;
203
+ width: auto;
204
+ /* height: 100%;
205
+ overflow-x: hidden;
206
+ overflow-y: auto;
207
+ position: fixed;
208
+ width: 100%;
209
+ top: 50%;
210
+ left: 50%;
211
+ -ms-transform: translate(-50%, -50%);
212
+ transform: translate(-50%, -50%); */
213
+ }
214
+
215
+ @media (max-width: 768.98px) {
216
+ .widget_wrapped {
217
+ height: 100%;
218
+ }
219
+ .widget_modal {
220
+ padding: 0em !important;
221
+ border-radius: 0px !important;
222
+ }
223
+ }
224
+
225
+ .widget_modal {
226
+ /* display: block;
227
+ overflow: hidden;
228
+ min-width: 600px;
229
+ max-width: 600px;
230
+ min-height:600px;
231
+ background-color: #f3e2c3;
232
+ border-radius: 12px;
233
+ padding: 2em; */
234
+ }
235
+
236
+ .widgetcomponent {
237
+ width: 100%;
238
+ display: block;
239
+ overflow: hidden;
240
+ min-width: 600px;
241
+ max-width: 600px;
242
+ min-height: 600px;
243
+ background-color: #f3e2c3;
244
+ border-radius: 12px;
245
+ padding: 2em;
246
+ }
247
+
248
+ @media (max-width: 769.98px) {
249
+ .exchange-widget-modal {
250
+ padding: 1em !important;
251
+ }
252
+ .widgetcomponent {
253
+ position: relative;
254
+ width: 100%;
255
+ min-width: unset !important;
256
+ max-width: unset !important;
257
+ top: unset;
258
+ left: unset;
259
+ transform: unset;
260
+ border-radius: 0px;
261
+ padding: 0em !important;
262
+ }
263
+ }
264
+
265
+ .widget_content {
266
+ /* background-color: #f3e2c3;
267
+ border-radius: 12px; */
268
+
269
+ position: relative;
270
+ }
271
+ .tabs_wrapped {
272
+ }
273
+
274
+ /* Sell Feilds Style section start */
275
+ .field_card {
276
+ border-radius: 10px;
277
+ display: flex;
278
+ }
279
+ .field_label {
280
+ font-size: 1em;
281
+ font-weight: 600;
282
+ color: #010101;
283
+ margin-bottom: 0.5em;
284
+ }
285
+
286
+ .field_form .input_control {
287
+ background: var(--no-fill);
288
+ border: 0;
289
+ border-radius: 0;
290
+ height: 45px;
291
+ padding: 12px;
292
+ font-size: 1.8em;
293
+ font-weight: 600;
294
+ width: 100%;
295
+ color: #7d7d7d;
296
+ padding-left: 0;
297
+ }
298
+
299
+ .field_form .input_control:focus,
300
+ .field_form .input_control:active,
301
+ .field_form .input_control:focus-within,
302
+ .field_form .input_control:focus-visible {
303
+ background: var(--no-fill);
304
+ border: 0;
305
+ border-radius: 0;
306
+ outline: 0;
307
+ }
308
+ .field_form .input_control:focus-visible {
309
+ background: var(--no-fill);
310
+ border: 0;
311
+ border-radius: 0;
312
+ outline: 0;
313
+ }
314
+
315
+ .field_select {
316
+ /* display: grid;
317
+ grid-template-columns: 20px auto;
318
+ align-items: center;
319
+ gap: 1em; */
320
+ /* margin-bottom: 1em; */
321
+ }
322
+
323
+ .ramp_modal_img {
324
+ width: 1.5em;
325
+ height: 1.5em;
326
+ object-fit: contain;
327
+ }
328
+
329
+ .off-ramp-selected-badges {
330
+ background: #0000000a;
331
+ border: 1px dashed #0000003b;
332
+ border-radius: 10px;
333
+ padding: 0.5em;
334
+ color: #010101;
335
+ font-size: 0.85em;
336
+ font-weight: 600;
337
+ line-height: 1.8;
338
+ margin-bottom: 0;
339
+ text-align: center;
340
+ }
341
+
342
+ .selected__two {
343
+ background: #0000000a;
344
+ border: 1px dashed #0000003b;
345
+ border-radius: 10px;
346
+ color: #010101;
347
+ font-size: 0.85em;
348
+ font-weight: 600;
349
+ line-height: 1.8;
350
+ margin-bottom: 0;
351
+ margin-top: 10px;
352
+ /* text-align: center; */
353
+ }
354
+ @media (max-width: 768.98px) {
355
+ .field_card {
356
+ flex-direction: column;
357
+ }
358
+ .field_select_card {
359
+ width: 100% !important;
360
+ border-bottom-left-radius: 10px !important;
361
+ border-top-right-radius: 0px !important;
362
+ border-bottom-right-radius: 10px !important;
363
+ }
364
+ .off-ramp-details-card {
365
+ grid-template-columns: repeat(1, 1fr) !important;
366
+ }
367
+ .off-ramp-details-card span:last-child {
368
+ text-align: start !important;
369
+ }
370
+ .span-d-align {
371
+ justify-content: start !important;
372
+ }
373
+ .field_box {
374
+ width: 100% !important;
375
+ border-bottom-left-radius: 0px !important;
376
+ border-top-right-radius: 10px !important;
377
+ border-bottom-right-radius: 0px !important;
378
+ }
379
+ .widget_modal {
380
+ /* display: block; */
381
+ /* width: calc(100% - 60%); */
382
+ width: 100% !important;
383
+ min-width: unset !important;
384
+ max-width: unset !important;
385
+ }
386
+ .widget_content {
387
+ padding: 1em !important;
388
+ }
389
+ .tabs_content {
390
+ padding: 1em !important;
391
+ }
392
+ }
393
+ .field_box {
394
+ width: 75%;
395
+ background: #fff9;
396
+ padding: 1em;
397
+ border-bottom-left-radius: 10px;
398
+ border-top-left-radius: 10px;
399
+ display: flex;
400
+ flex-direction: column;
401
+ justify-content: center;
402
+ }
403
+
404
+ .field_select_card {
405
+ width: 50%;
406
+ background-color: #f8f9fa;
407
+ padding: 1em;
408
+ border-bottom-right-radius: 10px;
409
+ border-top-right-radius: 10px;
410
+ display: flex;
411
+ flex-direction: column;
412
+ justify-content: center;
413
+ }
414
+
415
+ .label_icons {
416
+ width: 2em;
417
+ height: 2em;
418
+ display: grid;
419
+ place-items: center;
420
+ background-color: #f8f9fa;
421
+ border-radius: 50%;
422
+ font-weight: 700;
423
+ font-size: 1.2em;
424
+ }
425
+
426
+ .label_value {
427
+ font-size: 1.1em;
428
+ font-weight: 600;
429
+ color: #010101;
430
+ display: flex;
431
+ gap: 10;
432
+ align-items: center;
433
+ }
434
+
435
+ .label_value span {
436
+ font-weight: 500;
437
+ color: #7d7d7d;
438
+ }
439
+ .label_card {
440
+ }
441
+ .label_titles {
442
+ }
443
+ .ramp_space {
444
+ display: grid;
445
+ grid-template-columns: 50px auto;
446
+ align-items: center;
447
+ }
448
+
449
+ .ramp_space_top {
450
+ display: grid;
451
+ grid-template-columns: 50px auto;
452
+ align-items: start;
453
+ }
454
+
455
+ .label_dots {
456
+ width: 1em;
457
+ height: 1em;
458
+ border-radius: 50%;
459
+ background-color: #f8f9fa;
460
+ margin-left: 10px;
461
+ }
462
+ .ramp_details {
463
+ }
464
+ .ramp_head {
465
+ font-size: 1.2em;
466
+ font-weight: 500;
467
+ color: #7d7d7d;
468
+ line-height: 0.9;
469
+ }
470
+
471
+ .payment_check_card {
472
+ display: flex;
473
+ align-items: center;
474
+ justify-content: space-between;
475
+ gap: 8px;
476
+ border: 1px solid #fff;
477
+ border-radius: 8px;
478
+ padding: 10px 15px;
479
+ cursor: pointer;
480
+ transition: all 0.3s ease;
481
+ background-color: var(--light-color);
482
+ position: relative;
483
+ }
484
+
485
+ .payment_box {
486
+ display: flex;
487
+ align-items: center;
488
+ gap: 1em;
489
+ margin-top: 1em;
490
+ }
491
+
492
+ .payment_check_card input[type="radio"] {
493
+ position: absolute;
494
+ opacity: 0;
495
+ width: 0;
496
+ height: 0;
497
+ }
498
+
499
+ .payment_check_card.selected {
500
+ border-color: var(--primay-sdk-color);
501
+ background-color: #fff7d1;
502
+ }
503
+
504
+ .info_box {
505
+ display: flex;
506
+ flex-direction: column;
507
+ gap: 2em;
508
+ padding: 2em 0;
509
+ position: relative;
510
+ z-index: 999;
511
+ }
512
+
513
+ .info_box::after {
514
+ content: "";
515
+ position: absolute;
516
+ width: 2px;
517
+ height: 100%;
518
+ top: 0;
519
+ background: #ffffff73;
520
+ left: 16px;
521
+ z-index: -1;
522
+ }
523
+
524
+ .ramp_action {
525
+ margin-top: 2em;
526
+ }
527
+ .space_from {
528
+ margin-top: 5em;
529
+ }
530
+ .efi-swap-action {
531
+ margin-bottom: 1em;
532
+ }
533
+ /* Sell Feilds Style section end */
534
+
535
+ /* Bank Details Section Start */
536
+ .bank_head {
537
+ display: grid;
538
+ grid-template-columns: 24px auto;
539
+ align-items: center;
540
+ gap: 1em;
541
+ margin-bottom: 2em;
542
+ cursor: pointer;
543
+ }
544
+
545
+ .bank_titles {
546
+ font-size: 1.2em;
547
+ color: #000;
548
+ font-weight: 600;
549
+ /* line-height: 3; */
550
+ }
551
+
552
+ .bank_head a {
553
+ width: 18px;
554
+ height: 18px;
555
+ }
556
+
557
+ .bank_tabs_link {
558
+ display: grid;
559
+ grid-template-columns: repeat(2, 1fr);
560
+ /* border-bottom: 1px solid #fff; */
561
+ }
562
+
563
+ .bank_tabs_link button {
564
+ width: 100%;
565
+ background-color: var(--no-fill);
566
+ padding: 1em 2em;
567
+ border: 0;
568
+ border-radius: 0;
569
+ border-bottom: 1px solid #fff;
570
+ font-size: 1.1em;
571
+ font-weight: 600;
572
+ color: #000;
573
+ }
574
+
575
+ .bank_tabs_link button.active {
576
+ border-bottom: 1px solid var(--primay-sdk-color);
577
+ }
578
+
579
+ .bank_tabs_content {
580
+ /* padding: 2em; */
581
+ padding-top: 2em;
582
+ }
583
+
584
+ .bank_exist_feilds_frame {
585
+ margin-bottom: 2em;
586
+ }
587
+
588
+ .bank_exist_label {
589
+ font-size: 1em;
590
+ font-weight: 600;
591
+ color: #010101;
592
+ margin-bottom: 0.5em;
593
+ }
594
+
595
+ .info_card {
596
+ border-radius: 10px;
597
+ padding: 0.5em;
598
+ display: grid;
599
+ grid-template-columns: 40px auto;
600
+ align-items: center;
601
+ background: #ffffff47;
602
+ }
603
+
604
+ .caution_info {
605
+ font-size: 0.8em;
606
+ font-weight: 400;
607
+ color: var(--dark-sdk-color);
608
+ line-height: 1.8;
609
+ }
610
+
611
+ .new_bank_label {
612
+ font-size: 1em;
613
+ font-weight: 600;
614
+ color: #010101;
615
+ margin-bottom: 0.5em;
616
+ }
617
+
618
+ .new_bank_fields .input_control {
619
+ height: 45px;
620
+ background-color: var(--light-color);
621
+ width: 100%;
622
+ border: 1px soild var(--light-color);
623
+ border-radius: 10px;
624
+ padding: 10px;
625
+ font-size: 0.9em !important;
626
+ font-weight: 400 !important;
627
+ color: var(--dark-sdk-color);
628
+ }
629
+
630
+ .new_bank_fields .input_control:focus,
631
+ .new_bank_fields .input_control:active,
632
+ .new_bank_fields .input_control:focus-within,
633
+ .new_bank_fields .input_control:focus-visible {
634
+ border: 1px soild var(--light-color);
635
+ outline: 0;
636
+ }
637
+ .new_bank_fields .input_control:focus-visible {
638
+ border: 1px soild var(--light-color);
639
+ outline: 0;
640
+ }
641
+
642
+ .ramp_bank_box {
643
+ margin-bottom: 2em;
644
+ }
645
+
646
+ /* Bank Details Section end */
647
+
648
+ /* Bank Succes Details Section start */
649
+ .f_details_head {
650
+ display: grid;
651
+ grid-template-columns: 24px auto;
652
+ align-items: center;
653
+ gap: 1em;
654
+ margin-bottom: 2em;
655
+ }
656
+
657
+ .f_details_titles {
658
+ font-size: 1.2em;
659
+ color: #000;
660
+ font-weight: 600;
661
+ /* line-height: 3; */
662
+ }
663
+
664
+ .off-ramp-details-head a {
665
+ width: 18px;
666
+ height: 18px;
667
+ }
668
+
669
+ .f_details_info_box {
670
+ padding: 2em;
671
+ background-color: var(--light-color);
672
+ border-radius: 10px;
673
+ }
674
+
675
+ .f_details_card {
676
+ display: grid;
677
+ grid-template-columns: repeat(2, 1fr);
678
+ align-items: center;
679
+ gap: 2em;
680
+ margin-bottom: 1.5em;
681
+ padding-bottom: 1.5em;
682
+ border-bottom: 1px dashed #ededed;
683
+ }
684
+
685
+ .f_details_card:last-child {
686
+ border-bottom: 0px dashed #fff;
687
+ margin-bottom: 0;
688
+ padding: 0;
689
+ }
690
+
691
+ .f_details_card span:first-child {
692
+ font-size: 1em;
693
+ font-weight: 600;
694
+ color: #7d7d7d;
695
+ text-align: start;
696
+ }
697
+
698
+ .f_details_card span:last-child {
699
+ text-align: end;
700
+ font-size: 1em;
701
+ font-weight: 500;
702
+ color: #010101;
703
+ }
704
+
705
+ .span_d_align a {
706
+ -webkit-line-clamp: 1;
707
+ -webkit-box-orient: vertical;
708
+ display: -webkit-box;
709
+ font-size: 0.85em;
710
+ font-weight: 500;
711
+ overflow: hidden;
712
+ text-overflow: ellipsis;
713
+ word-break: break-all;
714
+ }
715
+ .span_d_align {
716
+ display: grid;
717
+ grid-template-columns: 24px auto;
718
+ align-items: center;
719
+ gap: 1em;
720
+ justify-content: end;
721
+ }
722
+
723
+ .span_d_copy {
724
+ display: grid;
725
+ grid-template-columns: auto 24px;
726
+ align-items: center;
727
+ gap: 1em;
728
+ justify-content: end;
729
+ }
730
+
731
+ /* Bank Succes Details Section end */
732
+
733
+ .ramp_option {
734
+ display: flex;
735
+ align-items: center;
736
+ gap: 2em;
737
+ }
738
+
739
+ /* Toast css */
740
+
741
+ .toast_container {
742
+ position: absolute;
743
+ top: 20px;
744
+ right: 20px;
745
+ display: flex;
746
+ flex-direction: column;
747
+ gap: 10px;
748
+ z-index: 9999;
749
+ }
750
+
751
+ .toast {
752
+ min-width: 250px;
753
+ background-color: #333;
754
+ color: white;
755
+ padding: 12px 16px;
756
+ border-radius: 6px;
757
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
758
+ display: flex;
759
+ justify-content: space-between;
760
+ align-items: center;
761
+ animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s;
762
+ transition: opacity 0.3s;
763
+ }
764
+
765
+ .toast.success {
766
+ background-color: #4caf50;
767
+ }
768
+
769
+ .toast.error {
770
+ background-color: #f44336;
771
+ }
772
+
773
+ .toast.info {
774
+ background-color: #2196f3;
775
+ }
776
+
777
+ .toast button {
778
+ background: none;
779
+ border: none;
780
+ color: white;
781
+ font-size: 18px;
782
+ cursor: pointer;
783
+ }
784
+
785
+ @keyframes slideIn {
786
+ from {
787
+ opacity: 0;
788
+ transform: translateX(100%);
789
+ }
790
+ to {
791
+ opacity: 1;
792
+ transform: translateX(0);
793
+ }
794
+ }
795
+
796
+ @keyframes fadeOut {
797
+ to {
798
+ opacity: 0;
799
+ }
800
+ }
801
+
802
+ /* Loader */
803
+
804
+ .preloading_sec {
805
+ width: 100px;
806
+ height: 20px;
807
+ border-radius: 40px;
808
+ color: var(--primay-sdk-color);
809
+ border: 2px solid;
810
+ position: relative;
811
+ }
812
+
813
+ .preloading_sec::before {
814
+ content: "";
815
+ position: absolute;
816
+ margin: 2px;
817
+ width: 25%;
818
+ top: 0;
819
+ bottom: 0;
820
+ left: 0;
821
+ border-radius: inherit;
822
+ background: currentColor;
823
+ animation: l3 1s infinite linear;
824
+ }
825
+
826
+ @keyframes l3 {
827
+ 50% {
828
+ left: 100%;
829
+ transform: translateX(calc(-100% - 4px));
830
+ }
831
+ }
832
+
833
+ /* Dot loader */
834
+ /* HTML: <div class="loader"></div> */
835
+
836
+ .dot_loader {
837
+ width: 45px;
838
+ aspect-ratio: 1;
839
+ --c: no-repeat linear-gradient(var(--primay-sdk-color) 0 0);
840
+ background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
841
+ background-size: 20% 100%;
842
+ animation: l1 1s infinite linear;
843
+ }
844
+ @keyframes l1 {
845
+ 0% {
846
+ background-size: 20% 100%, 20% 100%, 20% 100%;
847
+ }
848
+ 33% {
849
+ background-size: 20% 10%, 20% 100%, 20% 100%;
850
+ }
851
+ 50% {
852
+ background-size: 20% 100%, 20% 10%, 20% 100%;
853
+ }
854
+ 66% {
855
+ background-size: 20% 100%, 20% 100%, 20% 10%;
856
+ }
857
+ 100% {
858
+ background-size: 20% 100%, 20% 100%, 20% 100%;
859
+ }
860
+ }
861
+ .off-ramp-field-form .dot_loader {
862
+ height: 20px;
863
+ }
864
+
865
+ .off_currency_option h3 {
866
+ font-weight: 500;
867
+ color: var(--dark-sdk-color);
868
+ font-size: 0.85em;
869
+ }
870
+ .off_currency_option {
871
+ display: flex;
872
+ align-items: center;
873
+ justify-content: space-between;
874
+ gap: 8px;
875
+ border: 1px solid var(--light-color);
876
+ border-radius: 8px;
877
+ padding: 10px 15px;
878
+ cursor: pointer;
879
+ transition: all 0.3s ease;
880
+ background-color: var(--light-color);
881
+ position: relative;
882
+ width: 100%;
883
+ }
884
+ /* .off-ramp-check-wrap + .form-check-input:checked[type=checkbox] + .off-currency-option {
885
+ border-color: var( --primay-sdk-color);
886
+ background-color: #fff7d1;
887
+ } */
888
+ .check_wrap {
889
+ display: grid;
890
+ grid-template-columns: repeat(3, 1fr);
891
+ align-items: center;
892
+ gap: 1em;
893
+ margin-bottom: 1.5em;
894
+ }
895
+ .form_check .form_check_input:checked ~ .off_currency_option {
896
+ border-color: var(--primay-sdk-color);
897
+ background-color: #fff7d1;
898
+ }
899
+ .form_check_input {
900
+ display: none;
901
+ }
902
+
903
+ .space-bottom {
904
+ margin-bottom: 1rem;
905
+ }
906
+
907
+ .input-error {
908
+ color: var(--faile-sdk-color);
909
+ }
910
+
911
+ .required {
912
+ color: var(--faile-sdk-color);
913
+ }
914
+ .ramp_bank_box {
915
+ position: relative;
916
+ }
917
+ .ramp_bank_box .input_error {
918
+ background-color: #e34f4f;
919
+ border-radius: 3px;
920
+ color: #fff;
921
+ display: inline-block;
922
+ font-size: 12px;
923
+ font-weight: 400;
924
+ height: 25px;
925
+ line-height: 1;
926
+ padding: 6px 8px;
927
+ position: absolute;
928
+ right: -15px;
929
+ top: 0px;
930
+ z-index: 99;
931
+ }
932
+ .ramp_bank_box .input_error:after {
933
+ border-color: #0000 #e34f4f;
934
+ border-style: solid;
935
+ border-width: 0 6px 6px 0;
936
+ bottom: -6px;
937
+ content: "";
938
+ display: block;
939
+ position: absolute;
940
+ right: 1.2em;
941
+ width: 0;
942
+ z-index: 99;
943
+ }
944
+
945
+ .error_msg {
946
+ color: #e34f4f;
947
+ margin-top: 0.5em;
948
+ }
949
+
950
+ /* Sell Payment Module UI */
951
+ .sell-payment-head {
952
+ margin-bottom: 1.5em;
953
+ }
954
+ .back-arrow-btn-sec {
955
+ display: flex;
956
+ gap: 1em;
957
+ align-items: center;
958
+ cursor: pointer;
959
+ }
960
+ .back-arrow-btn-sec .back-arrow-btn {
961
+ cursor: pointer;
962
+ width: 2em;
963
+ }
964
+ .back-arrow-btn-sec h4 {
965
+ font-size: 1.1em;
966
+ font-weight: 600;
967
+ color: var(--dark-sdk-color);
968
+ margin-bottom: 0;
969
+ }
970
+ .sell_qr_payemnt_wrap {
971
+ grid-gap: 2em;
972
+ background-color: var(--light-color);
973
+ border-radius: 10px;
974
+ display: grid;
975
+ gap: 2em;
976
+ grid-template-columns: repeat(2, 1fr);
977
+ margin-bottom: 1em !important;
978
+ padding: 1.5em;
979
+ position: relative;
980
+ }
981
+ @media (max-width: 991.98px) {
982
+ .sell_qr_payemnt_wrap {
983
+ grid-template-columns: repeat(1, 1fr);
984
+ gap: 1em;
985
+ }
986
+ }
987
+ .sell_amt_details {
988
+ background-color: var(--light-color);
989
+ border-radius: 10px;
990
+ display: flex;
991
+ flex-direction: column;
992
+ justify-content: space-between;
993
+ margin-bottom: 1em !important;
994
+ grid-area: 1 / 1 / 2 / 3;
995
+ }
996
+ @media (max-width: 991.98px) {
997
+ .sell_amt_details {
998
+ grid-area: unset;
999
+ gap: 1em;
1000
+ }
1001
+ .sell_payment_qr_frame {
1002
+ display: grid;
1003
+ place-items: center;
1004
+ }
1005
+ }
1006
+ .sell_amt_details_wrap {
1007
+ align-items: center;
1008
+ display: flex;
1009
+ justify-content: space-between;
1010
+ margin-bottom: 1em;
1011
+ }
1012
+ .sell_amt_pay {
1013
+ display: flex;
1014
+ flex-direction: column;
1015
+ }
1016
+ .sell_pay_amt {
1017
+ display: flex;
1018
+ flex-direction: column;
1019
+ text-align: end;
1020
+ }
1021
+ .sell_pay_label {
1022
+ color: var(--quaternary-sdk-color);
1023
+ font-size: 0.8em;
1024
+ font-weight: 300;
1025
+ margin-bottom: 0.5em;
1026
+ }
1027
+ .sell-pay-amt {
1028
+ color: var(--dark-sdk-color);
1029
+ font-size: 0.85em;
1030
+ font-weight: 500;
1031
+ margin-bottom: 0;
1032
+ }
1033
+ .sell-amt-get {
1034
+ align-items: flex-end;
1035
+ display: flex;
1036
+ flex-direction: column;
1037
+ }
1038
+ .sell_estimated_info {
1039
+ background: #0000000a;
1040
+ border: 1px dashed #0000003b;
1041
+ border-radius: 10px;
1042
+ padding: 0.7em;
1043
+ }
1044
+ .sell_estimated_info p {
1045
+ color: var(--dark-sdk-color);
1046
+ font-size: 0.85em;
1047
+ font-weight: 600;
1048
+ margin-bottom: 0;
1049
+ align-items: center;
1050
+ display: flex;
1051
+ justify-content: space-between;
1052
+ }
1053
+ .sell_payment_qr_box {
1054
+ grid-area: 1 / 3 / 2 / 4;
1055
+ }
1056
+ @media (max-width: 991.98px) {
1057
+ .sell_payment_qr_box {
1058
+ grid-area: unset;
1059
+ }
1060
+ }
1061
+ .sell_wallet_address_card {
1062
+ background: var(--overlay-sdk-bg);
1063
+ padding: 1.5em;
1064
+ border-radius: 10px;
1065
+ margin-bottom: 1.5em;
1066
+ }
1067
+ .sell_wallet_data_card {
1068
+ margin-bottom: 1em;
1069
+ }
1070
+ .sell_wallet_data_card h6 {
1071
+ font-size: 0.8em;
1072
+ font-weight: 500;
1073
+ color: var(--dark-sdk-color);
1074
+ margin-bottom: 0.5em;
1075
+ }
1076
+ .sell_hash_label {
1077
+ font-size: 0.8em;
1078
+ font-weight: 500;
1079
+ color: var(--dark-sdk-color);
1080
+ margin-bottom: 0.5em;
1081
+ }
1082
+ .sell_hash_label span {
1083
+ color: red;
1084
+ }
1085
+ .sell_wallet_code_card {
1086
+ grid-gap: 0.5em;
1087
+ display: grid;
1088
+ gap: 0.5em;
1089
+ grid-template-columns: auto 65px;
1090
+ }
1091
+ .sell_wallet_code {
1092
+ border: 1px solid var(--line-color);
1093
+ border-radius: 10px;
1094
+ padding: 0.8em 1em;
1095
+ }
1096
+ .sell_wallet_code span {
1097
+ -webkit-line-clamp: 1;
1098
+ -webkit-box-orient: vertical;
1099
+ color: var(--dark-sdk-color);
1100
+ display: -webkit-box;
1101
+ font-size: 0.85em;
1102
+ font-weight: 500;
1103
+ overflow: hidden;
1104
+ text-overflow: ellipsis;
1105
+ word-break: break-all;
1106
+ }
1107
+ .sell_hash_fields {
1108
+ border-radius: 10px;
1109
+ border: 1px solid var(--line-color);
1110
+ font-size: 0.9em;
1111
+ font-weight: 400;
1112
+ color: var(--dark-sdk-color);
1113
+ background: transparent;
1114
+ width: 100%;
1115
+ padding: 0.8em 1em;
1116
+ }
1117
+ .sell_hash_fields:focus {
1118
+ border-radius: 10px;
1119
+ border: 1px solid var(--line-color);
1120
+ outline: 1px solid var(--line-color);
1121
+ font-size: 0.9em;
1122
+ font-weight: 400;
1123
+ color: var(--dark-sdk-color);
1124
+ background: transparent;
1125
+ width: 100%;
1126
+ padding: 0.8em 1em;
1127
+ }
1128
+ .sell_hash_fields::placeholder {
1129
+ font-size: 0.9em;
1130
+ font-weight: 400;
1131
+ font-family: "Red Hat Text", sans-serif;
1132
+ }
1133
+ .no_wallet_details {
1134
+ display: flex;
1135
+ align-items: center;
1136
+ justify-content: center;
1137
+ gap: 1em;
1138
+ }
1139
+
1140
+ .sell_final_box {
1141
+ display: flex;
1142
+ align-items: center;
1143
+ justify-content: center;
1144
+ gap: 0.2em;
1145
+ flex-direction: column;
1146
+ background-color: #fff;
1147
+ padding: 2em;
1148
+ border-radius: 12px;
1149
+ }
1150
+ .sell_final_info p {
1151
+ font-size: 0.95em;
1152
+ font-weight: 500;
1153
+ margin-bottom: 0.5em;
1154
+ line-height: 2;
1155
+ }
1156
+
1157
+ @media (max-width: 991.98px) {
1158
+ }
1159
+ @media (max-width: 767.98px) {
1160
+ body {
1161
+ font-size: 11px !important;
1162
+ }
1163
+ }
1164
+ @media (max-width: 1199px) {
1165
+ }
1166
+
1167
+ .manual_hash_btn {
1168
+ font-size: 0.8em;
1169
+ padding: 0.2em;
1170
+ outline: none;
1171
+ border: none;
1172
+ color: var(--senary-color);
1173
+ background: none;
1174
+ }
1175
+
1176
+ .flow_stepper_frame ul li {
1177
+ list-style: none !important;
1178
+ }
1179
+
1180
+ .flow_stepper_frame ul {
1181
+ display: flex;
1182
+ align-items: self-start;
1183
+ justify-content: space-between;
1184
+ width: 100%;
1185
+ margin: auto;
1186
+ position: relative;
1187
+ overflow: hidden;
1188
+ min-height: 70px;
1189
+ }
1190
+
1191
+ .withdraw_stepper .flow_stepper_frame ul {
1192
+ width: 100%;
1193
+ }
1194
+
1195
+ .withdraw_stepper .flow_stepper_frame ul::after {
1196
+ transform: scale(0.68);
1197
+ }
1198
+
1199
+ .flow_stepper_card span {
1200
+ text-align: center;
1201
+ position: absolute;
1202
+ top: 40px;
1203
+ white-space: nowrap;
1204
+ }
1205
+
1206
+ .flow_stepper_frame ul li {
1207
+ z-index: 1050;
1208
+ /* flex: 0 1; */
1209
+ position: relative;
1210
+ }
1211
+
1212
+ .flow_stepper_frame ul li::after {
1213
+ content: " ";
1214
+ position: absolute;
1215
+ width: 90vw;
1216
+ height: 2px;
1217
+ background-color: #fff;
1218
+ top: 10px;
1219
+ left: 18px;
1220
+ transform-origin: center;
1221
+ z-index: -1;
1222
+ /* transform: scale(0.95); */
1223
+ }
1224
+
1225
+ .dark_stepper .flow_stepper_frame ul li::after {
1226
+ background-color: #efefef;
1227
+ }
1228
+
1229
+ .flow_stepper_frame ul li:last-child:after {
1230
+ display: none;
1231
+ }
1232
+
1233
+ .flow_stepper_frame ul li.failed::after {
1234
+ background-color: #e70f0f;
1235
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1236
+ }
1237
+
1238
+ .flow_stepper_frame ul li.completed::after {
1239
+ background-color: #32cd32;
1240
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1241
+ }
1242
+
1243
+ .flow_stepper_frame ul li.hash_completed::after {
1244
+ background-color: none;
1245
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1246
+ }
1247
+
1248
+ .flow_stepper_frame ul li.hash_completed .flow_stepper_process {
1249
+ background-color: #32cd32;
1250
+ }
1251
+
1252
+ .flow_stepper_frame ul li.hash_failed::after {
1253
+ background-color: none;
1254
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1255
+ }
1256
+
1257
+ .flow_stepper_frame ul li.hash_failed .flow_stepper_process {
1258
+ background-color: #e70f0f;
1259
+ }
1260
+
1261
+ .flow_stepper_frame ul li.hash_failed_1::after {
1262
+ background-color: #e70f0f;
1263
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1264
+ }
1265
+
1266
+ .flow_stepper_frame ul li.hash_failed_1 .flow_stepper_process {
1267
+ background-color: #32cd32;
1268
+ }
1269
+
1270
+ .flow_stepper_frame ul li.completed .flow_stepper_process {
1271
+ background-color: #32cd32;
1272
+ }
1273
+
1274
+ .flow_stepper_frame ul li.failed .flow_stepper_process {
1275
+ background-color: #e70f0f;
1276
+ }
1277
+
1278
+ .flow_stepper_frame ul li {
1279
+ }
1280
+
1281
+ .flow_stepper_frame ul li:last-child .flow_stepper_card {
1282
+ align-items: flex-end;
1283
+ }
1284
+
1285
+ .flow_stepper_frame ul li:first-child .flow_stepper_card {
1286
+ align-items: flex-start;
1287
+ }
1288
+
1289
+ .flow_stepper_frame ul li:last-child .flow_stepper_card span {
1290
+ text-align: end;
1291
+ }
1292
+
1293
+ .flow_stepper_frame ul::after {
1294
+ /* content: ' ';
1295
+ position: absolute;
1296
+ width: 100%;
1297
+ height: 2px;
1298
+ background-color: #fff;
1299
+ top: 30px;
1300
+ left: 0;
1301
+ background: #fff;
1302
+ transform-origin: center;
1303
+ transform: scale(0.95); */
1304
+ }
1305
+
1306
+ .flow_stepper_card.completed .flow_stepper_process {
1307
+ /* border: 1px dashed #fff; */
1308
+ }
1309
+
1310
+ .flow_stepper_frame ul.completed::after {
1311
+ background-color: #32cd32;
1312
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1313
+ }
1314
+
1315
+ .flow_stepper_frame ul.failed::after {
1316
+ background-color: #e70f0f;
1317
+ animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) wipe-in-right both;
1318
+ }
1319
+
1320
+ .flow_stepper_card {
1321
+ display: flex;
1322
+ align-items: center;
1323
+ justify-content: center;
1324
+ flex-direction: column;
1325
+ gap: 1em;
1326
+ font-size: 0.65em;
1327
+ font-weight: 600;
1328
+ /* background-color: #f3e2c33b; */
1329
+ color: var(--quaternary-sdk-color);
1330
+ border-radius: 10px;
1331
+ }
1332
+
1333
+ .flow_stepper_card.completed {
1334
+ color: var(--dark-sdk-color);
1335
+ }
1336
+
1337
+ .flow_stepper_card .spinner-loader {
1338
+ margin: 0 !important;
1339
+ border-right-color: var(--primay-sdk-color) !important;
1340
+ border: 4px solid #6e6a6a29 !important;
1341
+ }
1342
+
1343
+ .flow_stepper_process {
1344
+ /* background-color: var(--light-color); */
1345
+ background-color: #fff;
1346
+ width: 2.5em;
1347
+ height: 2.5em;
1348
+ border-radius: 50%;
1349
+ display: flex;
1350
+ align-items: center;
1351
+ justify-content: center;
1352
+ padding: 3px;
1353
+ }
1354
+
1355
+ .dark_stepper .flow_stepper_process {
1356
+ background-color: #efefef;
1357
+ }
1358
+
1359
+ .flow_stepper_card.completed .flow_stepper_process {
1360
+ background-color: #32cd32;
1361
+ }
1362
+
1363
+ .flow_stepper_card.failed .flow_stepper_process {
1364
+ background-color: #ea0909;
1365
+ }
1366
+
1367
+ .flow_stepper_success.completed .flow_stepper_process {
1368
+ background-color: #32cd32;
1369
+ }
1370
+
1371
+ .flow_stepper_success {
1372
+ display: flex;
1373
+ align-items: center;
1374
+ justify-content: center;
1375
+ flex-direction: column;
1376
+ gap: 1em;
1377
+ font-size: 0.75em;
1378
+ font-weight: 600;
1379
+ color: var(--quaternary-sdk-color);
1380
+ padding: 1em;
1381
+ border-radius: 10px;
1382
+ }
1383
+
1384
+ .flow_stepper_success.completed {
1385
+ color: var(--dark-sdk-color);
1386
+ }
1387
+
1388
+ .flow_stepper_bar {
1389
+ background-color: #efefef;
1390
+ width: 1.4em;
1391
+ height: 1.4em;
1392
+ border-radius: 50%;
1393
+ }
1394
+
1395
+ .flow_loader {
1396
+ width: 100%;
1397
+ aspect-ratio: 1;
1398
+ border-radius: 50%;
1399
+ background: radial-gradient(farthest-side, #ffa516 94%, #0000) top/4.5px 4.5px no-repeat,
1400
+ conic-gradient(#0000 30%, #ffa516);
1401
+ -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4.5px), #000 0);
1402
+ animation: l13 1s infinite linear;
1403
+ }
1404
+
1405
+ @keyframes l13 {
1406
+ 100% {
1407
+ transform: rotate(1turn);
1408
+ }
1409
+ }
1410
+
1411
+ @keyframes wipe-in-right {
1412
+ from {
1413
+ clip-path: inset(0 100% 0 0);
1414
+ }
1415
+
1416
+ to {
1417
+ clip-path: inset(0 0 0 0);
1418
+ }
1419
+ }
1420
+
1421
+ /* HTML: <div class="loader"></div> */
1422
+ .spinnerLoader {
1423
+ width: 20px;
1424
+ aspect-ratio: 1;
1425
+ border-radius: 50%;
1426
+ background: radial-gradient(farthest-side, #000000 94%, #0000) top/4px 4px no-repeat,
1427
+ conic-gradient(#0000 30%, #000000);
1428
+ -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
1429
+ animation: spinnerLoadingAnimation 1s infinite linear;
1430
+ }
1431
+ @keyframes spinnerLoadingAnimation {
1432
+ 100% {
1433
+ transform: rotate(1turn);
1434
+ }
1435
+ }