@funnelsgrove/payments 0.15.7 → 0.15.10

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,781 @@
1
+ export const sharedStripeCheckoutV2Styles = `
2
+ .shared-checkout-v2-overlay {
3
+ position: fixed;
4
+ inset: 0;
5
+ z-index: 110;
6
+ display: flex;
7
+ align-items: stretch;
8
+ justify-content: center;
9
+ overflow: hidden;
10
+ background: #fff;
11
+ }
12
+
13
+ .shared-checkout-v2-dialog {
14
+ width: min(100%, 430px);
15
+ height: 100svh;
16
+ max-height: 100svh;
17
+ overflow: hidden;
18
+ background: #fff;
19
+ }
20
+
21
+ @media (min-width: 640px) {
22
+ .shared-checkout-v2-overlay:has(.shared-checkout-v2-dialog[data-variant='compact']) {
23
+ align-items: center;
24
+ padding: 24px;
25
+ background: rgb(0 0 0 / 48%);
26
+ }
27
+
28
+ .shared-checkout-v2-dialog[data-variant='compact'] {
29
+ width: min(100%, 520px);
30
+ height: auto;
31
+ max-height: calc(100svh - 48px);
32
+ border-radius: 24px;
33
+ box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
34
+ }
35
+ }
36
+
37
+ .shared-checkout-v2-shell[data-variant='compact'] {
38
+ height: auto;
39
+ max-height: min(100svh, 760px);
40
+ }
41
+
42
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-header {
43
+ min-height: 88px;
44
+ padding: 0 72px;
45
+ }
46
+
47
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-header h2 {
48
+ font-size: 27px;
49
+ }
50
+
51
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-close {
52
+ right: 22px;
53
+ left: auto;
54
+ }
55
+
56
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-summary {
57
+ padding: 0 36px;
58
+ }
59
+
60
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-total {
61
+ min-height: 82px;
62
+ border: 1px solid #ececef;
63
+ border-radius: 16px;
64
+ padding: 0 22px;
65
+ background: #fbfbfc;
66
+ }
67
+
68
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-total svg {
69
+ display: none;
70
+ }
71
+
72
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-payment {
73
+ padding-right: 36px;
74
+ padding-left: 36px;
75
+ }
76
+
77
+ .shared-checkout-v2-shell[data-variant='compact'] .shared-checkout-v2-card-submit {
78
+ border-radius: 14px;
79
+ background: var(--shared-checkout-v2-button-color);
80
+ text-transform: none;
81
+ }
82
+
83
+ .shared-checkout-v2-shell {
84
+ height: 100%;
85
+ max-height: 100svh;
86
+ box-sizing: border-box;
87
+ display: flex;
88
+ flex-direction: column;
89
+ overflow-y: auto;
90
+ overflow-x: hidden;
91
+ -webkit-overflow-scrolling: touch;
92
+ background: #fff;
93
+ color: #303136;
94
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
95
+ }
96
+
97
+ .shared-checkout-v2-header {
98
+ position: relative;
99
+ min-height: 70px;
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ padding: 0 56px;
104
+ background: #fff;
105
+ }
106
+
107
+ .shared-checkout-v2-header h2 {
108
+ margin: 0;
109
+ color: #020203;
110
+ font-size: 24px;
111
+ font-weight: 900;
112
+ line-height: 1.15;
113
+ letter-spacing: 0;
114
+ text-align: center;
115
+ }
116
+
117
+ .shared-checkout-v2-close {
118
+ position: absolute;
119
+ left: 16px;
120
+ top: 50%;
121
+ width: 40px;
122
+ height: 40px;
123
+ border: 0;
124
+ border-radius: 999px;
125
+ background: #f2f2f3;
126
+ color: #aaa;
127
+ transform: translateY(-50%);
128
+ cursor: pointer;
129
+ }
130
+
131
+ .shared-checkout-v2-close span,
132
+ .shared-checkout-v2-close span::after {
133
+ position: absolute;
134
+ left: 50%;
135
+ top: 50%;
136
+ width: 28px;
137
+ height: 4px;
138
+ border-radius: 999px;
139
+ background: currentColor;
140
+ content: '';
141
+ }
142
+
143
+ .shared-checkout-v2-close span {
144
+ transform: translate(-50%, -50%) rotate(45deg);
145
+ }
146
+
147
+ .shared-checkout-v2-close span::after {
148
+ transform: translate(-50%, -50%) rotate(90deg);
149
+ }
150
+
151
+ .shared-checkout-v2-summary {
152
+ padding: 0 17px 0;
153
+ background: #fff;
154
+ }
155
+
156
+ .shared-checkout-v2-countdown {
157
+ margin: 0;
158
+ min-height: 37px;
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ border-radius: 12px;
163
+ background: color-mix(in srgb, var(--shared-checkout-v2-theme-color) 10%, #fff);
164
+ color: var(--shared-checkout-v2-theme-color);
165
+ font-size: 16px;
166
+ font-weight: 900;
167
+ line-height: 1.2;
168
+ letter-spacing: 0;
169
+ text-align: center;
170
+ }
171
+
172
+ .shared-checkout-v2-satisfaction {
173
+ margin: 17px 0 21px;
174
+ color: #2f3034;
175
+ font-size: 19px;
176
+ font-weight: 800;
177
+ line-height: 1.15;
178
+ letter-spacing: 0;
179
+ text-align: center;
180
+ }
181
+
182
+ .shared-checkout-v2-satisfaction strong {
183
+ color: var(--shared-checkout-v2-theme-color);
184
+ }
185
+
186
+ .shared-checkout-v2-price-stack {
187
+ display: flex;
188
+ flex-direction: column;
189
+ gap: 8px;
190
+ }
191
+
192
+ .shared-checkout-v2-price-row {
193
+ display: flex;
194
+ align-items: center;
195
+ justify-content: space-between;
196
+ gap: 12px;
197
+ font-size: 18px;
198
+ line-height: 1.2;
199
+ letter-spacing: 0;
200
+ }
201
+
202
+ .shared-checkout-v2-price-row.is-muted {
203
+ color: #9d9d9f;
204
+ font-size: 17px;
205
+ font-weight: 500;
206
+ }
207
+
208
+ .shared-checkout-v2-strike {
209
+ text-decoration-line: line-through;
210
+ text-decoration-thickness: 2px;
211
+ }
212
+
213
+ .shared-checkout-v2-price-row.is-discount {
214
+ color: #040508;
215
+ font-size: 17px;
216
+ font-weight: 900;
217
+ }
218
+
219
+ .shared-checkout-v2-price-row.is-discount strong:last-child {
220
+ color: #ff2544;
221
+ }
222
+
223
+ .shared-checkout-v2-promo {
224
+ min-height: 42px;
225
+ box-sizing: border-box;
226
+ display: flex;
227
+ align-items: center;
228
+ justify-content: space-between;
229
+ gap: 12px;
230
+ border-radius: 13px;
231
+ background: #f0f0f0;
232
+ padding: 0 14px;
233
+ color: #8d8d90;
234
+ font-size: 16px;
235
+ font-weight: 500;
236
+ line-height: 1.1;
237
+ }
238
+
239
+ .shared-checkout-v2-promo strong {
240
+ color: #050609;
241
+ font-weight: 900;
242
+ }
243
+
244
+ .shared-checkout-v2-total {
245
+ margin-top: 20px;
246
+ min-height: 76px;
247
+ border-top: 1px solid #dedede;
248
+ display: flex;
249
+ align-items: center;
250
+ justify-content: space-between;
251
+ gap: 16px;
252
+ color: #303136;
253
+ }
254
+
255
+ .shared-checkout-v2-total span {
256
+ font-size: 23px;
257
+ font-weight: 800;
258
+ line-height: 1;
259
+ }
260
+
261
+ .shared-checkout-v2-total strong {
262
+ display: inline-flex;
263
+ align-items: center;
264
+ gap: 7px;
265
+ color: #303136;
266
+ font-size: 25px;
267
+ font-weight: 900;
268
+ line-height: 1;
269
+ }
270
+
271
+ .shared-checkout-v2-total svg {
272
+ width: 25px;
273
+ height: 25px;
274
+ fill: none;
275
+ stroke: currentColor;
276
+ stroke-width: 2;
277
+ stroke-linejoin: round;
278
+ }
279
+
280
+ .shared-checkout-v2-total.is-plain {
281
+ margin-top: 0;
282
+ }
283
+
284
+ .shared-checkout-v2-saved {
285
+ width: fit-content;
286
+ min-height: 36px;
287
+ box-sizing: border-box;
288
+ display: flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ gap: 8px;
292
+ margin: -8px 0 9px auto;
293
+ border-radius: 12px;
294
+ background: #ffdce3;
295
+ padding: 0 14px;
296
+ color: #ff2544;
297
+ font-size: 14px;
298
+ font-weight: 900;
299
+ line-height: 1.1;
300
+ letter-spacing: 0;
301
+ }
302
+
303
+ .shared-checkout-v2-payment {
304
+ min-height: 0;
305
+ display: flex;
306
+ flex-direction: column;
307
+ gap: 12px;
308
+ background: #f2f2f3;
309
+ padding: 9px 17px 32px;
310
+ }
311
+
312
+ .shared-checkout-v2-methods {
313
+ display: grid;
314
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
315
+ gap: 42px;
316
+ }
317
+
318
+ .shared-checkout-v2-method {
319
+ min-width: 0;
320
+ min-height: 74px;
321
+ box-sizing: border-box;
322
+ border: 2px solid #e6e7eb;
323
+ border-radius: 13px;
324
+ background: #fff;
325
+ color: #344376;
326
+ padding: 9px 8px;
327
+ display: flex;
328
+ flex-direction: column;
329
+ align-items: center;
330
+ justify-content: center;
331
+ gap: 6px;
332
+ cursor: pointer;
333
+ }
334
+
335
+ .shared-checkout-v2-method.is-selected {
336
+ border: 3px solid #050505;
337
+ }
338
+
339
+ .shared-checkout-v2-tab-wallet {
340
+ width: 58px;
341
+ height: 36px;
342
+ }
343
+
344
+ .shared-checkout-v2-tab-wallet svg {
345
+ display: block;
346
+ width: 100%;
347
+ height: 100%;
348
+ }
349
+
350
+ .shared-checkout-v2-tab-wallets {
351
+ display: flex;
352
+ align-items: center;
353
+ justify-content: center;
354
+ gap: 8px;
355
+ }
356
+
357
+ .shared-checkout-v2-method strong {
358
+ color: #344376;
359
+ font-size: 20px;
360
+ font-weight: 900;
361
+ line-height: 1;
362
+ letter-spacing: 0;
363
+ }
364
+
365
+ .shared-checkout-v2-tab-brands {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: center;
369
+ max-width: 100%;
370
+ gap: 4px;
371
+ }
372
+
373
+ .shared-checkout-v2-tab-brand {
374
+ min-width: 0;
375
+ width: 24px;
376
+ height: 15px;
377
+ }
378
+
379
+ .shared-checkout-v2-tab-brand svg {
380
+ display: block;
381
+ width: 100%;
382
+ height: 100%;
383
+ }
384
+
385
+ .shared-checkout-v2-wallet-panel,
386
+ .shared-checkout-v2-card-panel {
387
+ display: flex;
388
+ flex-direction: column;
389
+ height: 0;
390
+ overflow: hidden;
391
+ opacity: 0;
392
+ pointer-events: none;
393
+ }
394
+
395
+ .shared-checkout-v2-wallet-panel[hidden],
396
+ .shared-checkout-v2-card-panel[hidden] {
397
+ display: none;
398
+ }
399
+
400
+ .shared-checkout-v2-wallet-panel {
401
+ align-items: center;
402
+ gap: 22px;
403
+ padding-top: 5px;
404
+ }
405
+
406
+ .shared-checkout-v2-secure-pill {
407
+ width: fit-content;
408
+ min-height: 47px;
409
+ box-sizing: border-box;
410
+ display: inline-flex;
411
+ align-items: center;
412
+ justify-content: center;
413
+ gap: 12px;
414
+ margin: 0 auto;
415
+ border-radius: 12px;
416
+ background: #dcffd0;
417
+ padding: 0 22px;
418
+ color: #207733;
419
+ font-size: 18px;
420
+ font-weight: 600;
421
+ line-height: 1.1;
422
+ letter-spacing: 0;
423
+ }
424
+
425
+ .shared-checkout-v2-secure-pill-icon {
426
+ width: 24px;
427
+ height: 24px;
428
+ flex: none;
429
+ color: #147232;
430
+ }
431
+
432
+ .shared-checkout-v2-wallet-shell {
433
+ width: 100%;
434
+ min-height: 124px;
435
+ display: flex;
436
+ flex-direction: column;
437
+ justify-content: center;
438
+ }
439
+
440
+ .shared-checkout-v2-express-buttons {
441
+ width: 100%;
442
+ }
443
+
444
+ .shared-checkout-v2-card-panel {
445
+ position: relative;
446
+ gap: 10px;
447
+ margin-inline: -17px;
448
+ background: #f2f2f3;
449
+ padding: 16px 32px 92px;
450
+ }
451
+
452
+ .shared-checkout-v2-wallet-panel.is-visible,
453
+ .shared-checkout-v2-card-panel.is-visible {
454
+ height: auto;
455
+ overflow: visible;
456
+ opacity: 1;
457
+ pointer-events: auto;
458
+ }
459
+
460
+ .shared-checkout-v2-wallet-panel:not(.is-visible),
461
+ .shared-checkout-v2-card-panel:not(.is-visible) {
462
+ padding-top: 0;
463
+ padding-bottom: 0;
464
+ }
465
+
466
+ .shared-checkout-v2-email-field {
467
+ box-sizing: border-box;
468
+ display: flex;
469
+ flex-direction: column;
470
+ gap: 7px;
471
+ border: 0;
472
+ border-radius: 0;
473
+ background: transparent;
474
+ margin-bottom: 14px;
475
+ padding: 0;
476
+ color: #303136;
477
+ font-size: 14px;
478
+ font-weight: 400;
479
+ line-height: 1.2;
480
+ }
481
+
482
+ .shared-checkout-v2-email-field.is-disabled {
483
+ cursor: default;
484
+ }
485
+
486
+ .shared-checkout-v2-email-label {
487
+ padding: 0 14px;
488
+ color: #303136;
489
+ font-size: 14px;
490
+ font-weight: 400;
491
+ line-height: 1.2;
492
+ }
493
+
494
+ .shared-checkout-v2-email-control {
495
+ min-height: 50px;
496
+ box-sizing: border-box;
497
+ display: flex;
498
+ align-items: center;
499
+ border: 1px solid #dedede;
500
+ background: #fff;
501
+ box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
502
+ padding: 0 14px;
503
+ }
504
+
505
+ .shared-checkout-v2-email-input {
506
+ width: 100%;
507
+ min-height: 48px;
508
+ box-sizing: border-box;
509
+ border: 0;
510
+ background: transparent;
511
+ padding: 0;
512
+ color: #303136;
513
+ font: inherit;
514
+ font-size: 18px;
515
+ font-weight: 400;
516
+ line-height: 1.2;
517
+ outline: none;
518
+ }
519
+
520
+ .shared-checkout-v2-email-input:disabled {
521
+ color: #74767c;
522
+ opacity: 1;
523
+ -webkit-text-fill-color: #74767c;
524
+ }
525
+
526
+ .shared-checkout-v2-email-input::placeholder {
527
+ color: #8c909a;
528
+ }
529
+
530
+ .shared-checkout-v2-card-box {
531
+ overflow: visible;
532
+ border: 0;
533
+ border-radius: 6px;
534
+ background: transparent;
535
+ box-shadow: none;
536
+ }
537
+
538
+ .shared-checkout-v2-country-field {
539
+ box-sizing: border-box;
540
+ display: flex;
541
+ flex-direction: column;
542
+ gap: 7px;
543
+ margin: 14px 0 0;
544
+ color: #303136;
545
+ font-size: 14px;
546
+ font-weight: 400;
547
+ line-height: 1.2;
548
+ }
549
+
550
+ .shared-checkout-v2-country-label {
551
+ padding: 0 14px;
552
+ }
553
+
554
+ .shared-checkout-v2-country-control {
555
+ position: relative;
556
+ display: block;
557
+ }
558
+
559
+ .shared-checkout-v2-country-control::after {
560
+ position: absolute;
561
+ right: 17px;
562
+ top: 50%;
563
+ width: 8px;
564
+ height: 8px;
565
+ border-right: 2px solid #6f7380;
566
+ border-bottom: 2px solid #6f7380;
567
+ content: '';
568
+ pointer-events: none;
569
+ transform: translateY(-65%) rotate(45deg);
570
+ }
571
+
572
+ .shared-checkout-v2-country-select {
573
+ width: 100%;
574
+ min-height: 50px;
575
+ box-sizing: border-box;
576
+ appearance: none;
577
+ border: 1px solid #dedede;
578
+ border-radius: 0;
579
+ background: #fff;
580
+ box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
581
+ color: #303136;
582
+ font: inherit;
583
+ font-size: 18px;
584
+ font-weight: 400;
585
+ line-height: 1.2;
586
+ outline: none;
587
+ padding: 0 44px 0 14px;
588
+ }
589
+
590
+ .shared-checkout-v2-error {
591
+ margin: 0;
592
+ color: #c43737;
593
+ font-size: 13px;
594
+ font-weight: 600;
595
+ line-height: 1.35;
596
+ }
597
+
598
+ .shared-checkout-v2-card-submit {
599
+ min-height: 60px;
600
+ border: 0;
601
+ border-radius: 11px;
602
+ background: var(--shared-checkout-v2-button-color);
603
+ color: #fff;
604
+ display: inline-flex;
605
+ align-items: center;
606
+ justify-content: center;
607
+ gap: 14px;
608
+ font-size: 22px;
609
+ font-weight: 900;
610
+ line-height: 1;
611
+ letter-spacing: 0;
612
+ cursor: pointer;
613
+ }
614
+
615
+ .shared-checkout-v2-card-submit:disabled {
616
+ cursor: wait;
617
+ opacity: 0.72;
618
+ }
619
+
620
+ .shared-checkout-v2-card-submit-icon {
621
+ width: 26px;
622
+ height: 26px;
623
+ }
624
+
625
+ .shared-checkout-v2-card-brands {
626
+ min-height: 34px;
627
+ display: flex;
628
+ align-items: center;
629
+ justify-content: center;
630
+ gap: 12px;
631
+ opacity: 0.95;
632
+ }
633
+
634
+ .shared-checkout-v2-card-brand {
635
+ width: 42px;
636
+ height: 25px;
637
+ }
638
+
639
+ .shared-checkout-v2-secure-pill--card {
640
+ position: absolute;
641
+ left: 50%;
642
+ bottom: 16px;
643
+ transform: translateX(-50%);
644
+ white-space: nowrap;
645
+ }
646
+
647
+ .shared-checkout-v2-sr-only {
648
+ position: absolute;
649
+ width: 1px;
650
+ height: 1px;
651
+ padding: 0;
652
+ margin: -1px;
653
+ overflow: hidden;
654
+ clip: rect(0, 0, 0, 0);
655
+ white-space: nowrap;
656
+ border: 0;
657
+ }
658
+
659
+ .shared-checkout-special-offer-overlay {
660
+ position: fixed;
661
+ inset: 0;
662
+ z-index: 120;
663
+ display: flex;
664
+ align-items: center;
665
+ justify-content: center;
666
+ box-sizing: border-box;
667
+ padding: 22px;
668
+ background: rgb(0 0 0 / 48%);
669
+ }
670
+
671
+ .shared-checkout-special-offer-dialog {
672
+ width: min(100%, 386px);
673
+ box-sizing: border-box;
674
+ border-radius: 14px;
675
+ background: #fff;
676
+ padding: 55px 26px 28px;
677
+ color: #303136;
678
+ text-align: center;
679
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
680
+ }
681
+
682
+ .shared-checkout-special-offer-gift {
683
+ display: block;
684
+ width: min(100%, 260px);
685
+ height: auto;
686
+ margin: 0 auto 22px;
687
+ }
688
+
689
+ .shared-checkout-special-offer-gift--image {
690
+ position: relative;
691
+ width: min(100%, 250px);
692
+ aspect-ratio: 1;
693
+ }
694
+
695
+ .shared-checkout-special-offer-gift-image {
696
+ display: block;
697
+ width: 100%;
698
+ height: 100%;
699
+ background-position: center;
700
+ background-repeat: no-repeat;
701
+ background-size: contain;
702
+ user-select: none;
703
+ }
704
+
705
+ .shared-checkout-special-offer-image-discount {
706
+ position: absolute;
707
+ top: 69%;
708
+ left: 50%;
709
+ transform: translate(-50%, -50%);
710
+ color: #1f8f4d;
711
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
712
+ font-size: 34px;
713
+ font-weight: 900;
714
+ line-height: 1;
715
+ letter-spacing: 0;
716
+ pointer-events: none;
717
+ white-space: nowrap;
718
+ }
719
+
720
+ .shared-checkout-special-offer-dialog h2 {
721
+ margin: 0;
722
+ color: #303136;
723
+ font-size: 36px;
724
+ font-weight: 900;
725
+ line-height: 1.1;
726
+ letter-spacing: 0;
727
+ }
728
+
729
+ .shared-checkout-special-offer-dialog p {
730
+ margin: 26px 0 32px;
731
+ color: #77787e;
732
+ font-size: 24px;
733
+ font-weight: 500;
734
+ line-height: 1.18;
735
+ letter-spacing: 0;
736
+ }
737
+
738
+ .shared-checkout-special-offer-button {
739
+ width: 100%;
740
+ min-height: 76px;
741
+ border: 0;
742
+ border-radius: 12px;
743
+ background: var(--shared-checkout-v2-button-color);
744
+ color: #fff;
745
+ font-size: 23px;
746
+ font-weight: 900;
747
+ line-height: 1;
748
+ letter-spacing: 0;
749
+ cursor: pointer;
750
+ }
751
+
752
+ @media (max-width: 429px) {
753
+ .shared-checkout-v2-header {
754
+ min-height: 64px;
755
+ }
756
+
757
+ .shared-checkout-v2-header h2 {
758
+ font-size: 24px;
759
+ }
760
+
761
+ .shared-checkout-v2-summary {
762
+ padding-inline: 17px;
763
+ }
764
+
765
+ .shared-checkout-v2-satisfaction {
766
+ font-size: 19px;
767
+ }
768
+
769
+ .shared-checkout-v2-methods {
770
+ gap: 42px;
771
+ }
772
+
773
+ .shared-checkout-v2-method strong {
774
+ font-size: 19px;
775
+ }
776
+
777
+ .shared-checkout-v2-card-panel {
778
+ padding-inline: 32px;
779
+ }
780
+ }
781
+ `;