@ghemrim/slickpay-bridge-studio 0.0.0-stage → 1.1.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.
@@ -0,0 +1,422 @@
1
+ :host,
2
+ :host *,
3
+ :host *::before,
4
+ :host *::after {
5
+ box-sizing: border-box;
6
+ }
7
+ :host {
8
+ all: initial;
9
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
10
+ color: #0a2540;
11
+ -webkit-font-smoothing: antialiased;
12
+ }
13
+
14
+ /* Bouton déclencheur style Stripe */
15
+ .slickpay-trigger-btn {
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ gap: 10px;
20
+ background: var(--sp-brand, #635bff);
21
+ color: #ffffff;
22
+ border: 1px solid rgba(0, 0, 0, 0.08);
23
+ padding: 11px 20px;
24
+ border-radius: 6px;
25
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
26
+ font-size: 14px;
27
+ font-weight: 600;
28
+ letter-spacing: 0.01em;
29
+ cursor: pointer;
30
+ box-shadow: 0 2px 5px rgba(50, 50, 93, 0.1), 0 1px 1px rgba(0, 0, 0, 0.07);
31
+ transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
32
+ }
33
+ .slickpay-trigger-btn:hover {
34
+ filter: brightness(0.92);
35
+ box-shadow: 0 4px 11px rgba(50, 50, 93, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
36
+ }
37
+ .slickpay-trigger-btn svg {
38
+ width: 16px;
39
+ height: 16px;
40
+ flex-shrink: 0;
41
+ }
42
+
43
+ /* Overlay minimaliste */
44
+ .sp-overlay {
45
+ position: fixed;
46
+ inset: 0;
47
+ background: rgba(10, 37, 64, 0.42);
48
+ backdrop-filter: blur(2px);
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ z-index: 999999;
53
+ padding: 16px;
54
+ }
55
+
56
+ /* Carte modale style Stripe Payment Element */
57
+ .sp-modal {
58
+ background: #ffffff;
59
+ color: #0a2540;
60
+ width: 100%;
61
+ max-width: 440px;
62
+ border-radius: 12px;
63
+ border: 1px solid #e6ebf1;
64
+ box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
65
+ overflow: hidden;
66
+ display: flex;
67
+ flex-direction: column;
68
+ }
69
+
70
+ /* En-tête épuré blanc */
71
+ .sp-header {
72
+ padding: 20px 24px 16px;
73
+ border-bottom: 1px solid #f0f3f7;
74
+ display: flex;
75
+ align-items: flex-start;
76
+ justify-content: space-between;
77
+ }
78
+ .sp-merchant-info {
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: 4px;
82
+ }
83
+ .sp-merchant-tag {
84
+ display: inline-flex;
85
+ align-items: center;
86
+ gap: 6px;
87
+ font-size: 12px;
88
+ font-weight: 600;
89
+ color: #697386;
90
+ text-transform: uppercase;
91
+ letter-spacing: 0.04em;
92
+ }
93
+ .sp-dot {
94
+ width: 7px;
95
+ height: 7px;
96
+ border-radius: 50%;
97
+ background: var(--sp-brand, #635bff);
98
+ }
99
+ .sp-amount-hero {
100
+ font-size: 24px;
101
+ font-weight: 700;
102
+ color: #0a2540;
103
+ letter-spacing: -0.02em;
104
+ margin: 2px 0 0;
105
+ }
106
+ .sp-product-sub {
107
+ font-size: 13px;
108
+ color: #697386;
109
+ margin: 0;
110
+ }
111
+ .sp-close {
112
+ background: transparent;
113
+ border: none;
114
+ width: 28px;
115
+ height: 28px;
116
+ border-radius: 6px;
117
+ cursor: pointer;
118
+ font-size: 15px;
119
+ color: #8792a2;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ transition: background 0.15s, color 0.15s;
124
+ }
125
+ .sp-close:hover {
126
+ background: #f6f9fc;
127
+ color: #0a2540;
128
+ }
129
+
130
+ /* Barre de progression multi-étapes (Stepper Stripe) */
131
+ .sp-steps-bar {
132
+ display: flex;
133
+ align-items: center;
134
+ padding: 12px 24px;
135
+ background: #f6f9fc;
136
+ border-bottom: 1px solid #e6ebf1;
137
+ gap: 8px;
138
+ }
139
+ .sp-step-item {
140
+ display: flex;
141
+ align-items: center;
142
+ gap: 6px;
143
+ font-size: 12px;
144
+ font-weight: 500;
145
+ color: #8792a2;
146
+ }
147
+ .sp-step-item.active {
148
+ color: #0a2540;
149
+ font-weight: 600;
150
+ }
151
+ .sp-step-item.done {
152
+ color: var(--sp-brand, #635bff);
153
+ }
154
+ .sp-step-num {
155
+ width: 18px;
156
+ height: 18px;
157
+ border-radius: 50%;
158
+ font-size: 11px;
159
+ font-weight: 600;
160
+ display: inline-flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ background: #e3e8ee;
164
+ color: #697386;
165
+ }
166
+ .sp-step-item.active .sp-step-num {
167
+ background: #0a2540;
168
+ color: #ffffff;
169
+ }
170
+ .sp-step-item.done .sp-step-num {
171
+ background: var(--sp-brand, #635bff);
172
+ color: #ffffff;
173
+ }
174
+ .sp-step-sep {
175
+ flex: 1;
176
+ height: 1px;
177
+ background: #e3e8ee;
178
+ min-width: 12px;
179
+ }
180
+
181
+ /* Corps de l'étape active (aéré, max 2-3 champs par étape) */
182
+ .sp-body {
183
+ padding: 24px;
184
+ }
185
+ .sp-step-title {
186
+ font-size: 14px;
187
+ font-weight: 600;
188
+ color: #0a2540;
189
+ margin: 0 0 16px;
190
+ }
191
+
192
+ /* Sélecteur de quantité discret */
193
+ .sp-qty-bar {
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: space-between;
197
+ padding: 10px 12px;
198
+ background: #f6f9fc;
199
+ border: 1px solid #e3e8ee;
200
+ border-radius: 6px;
201
+ margin-bottom: 16px;
202
+ font-size: 13px;
203
+ color: #3c4257;
204
+ }
205
+ .sp-stepper {
206
+ display: flex;
207
+ align-items: center;
208
+ gap: 10px;
209
+ }
210
+ .sp-stepper button {
211
+ width: 24px;
212
+ height: 24px;
213
+ border-radius: 4px;
214
+ border: 1px solid #d8dee4;
215
+ background: #ffffff;
216
+ color: #0a2540;
217
+ cursor: pointer;
218
+ font-weight: 600;
219
+ font-size: 13px;
220
+ display: flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
224
+ }
225
+ .sp-stepper button:disabled {
226
+ opacity: 0.35;
227
+ cursor: not-allowed;
228
+ }
229
+ .sp-stepper output {
230
+ font-weight: 600;
231
+ font-size: 13px;
232
+ min-width: 16px;
233
+ text-align: center;
234
+ }
235
+
236
+ /* Champs de formulaire style Stripe Input */
237
+ .sp-field {
238
+ margin-bottom: 14px;
239
+ display: flex;
240
+ flex-direction: column;
241
+ min-width: 0;
242
+ }
243
+ .sp-field label {
244
+ font-size: 12px;
245
+ font-weight: 500;
246
+ color: #3c4257;
247
+ margin-bottom: 6px;
248
+ }
249
+ .sp-field input,
250
+ .sp-field select {
251
+ width: 100%;
252
+ box-sizing: border-box;
253
+ padding: 10px 12px;
254
+ border: 1px solid #e3e8ee;
255
+ border-radius: 6px;
256
+ font-size: 14px;
257
+ color: #0a2540;
258
+ background: #ffffff;
259
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
260
+ outline: none;
261
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
262
+ }
263
+ .sp-field input::placeholder {
264
+ color: #a3acb9;
265
+ }
266
+ .sp-field input:focus,
267
+ .sp-field select:focus {
268
+ border-color: var(--sp-brand, #635bff);
269
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 0 0 3px rgba(99, 91, 255, 0.16);
270
+ }
271
+
272
+ .sp-grid-2 {
273
+ display: grid;
274
+ grid-template-columns: 1fr 1fr;
275
+ gap: 12px;
276
+ }
277
+ @media (max-width: 440px) {
278
+ .sp-grid-2 {
279
+ grid-template-columns: 1fr;
280
+ }
281
+ }
282
+
283
+ /* Récapitulatif épuré (Étape finale) */
284
+ .sp-summary-card {
285
+ background: #f6f9fc;
286
+ border: 1px solid #e3e8ee;
287
+ border-radius: 8px;
288
+ padding: 14px 16px;
289
+ margin-bottom: 18px;
290
+ }
291
+ .sp-summary-row {
292
+ display: flex;
293
+ justify-content: space-between;
294
+ align-items: center;
295
+ font-size: 13px;
296
+ color: #697386;
297
+ padding: 5px 0;
298
+ }
299
+ .sp-summary-row strong {
300
+ color: #0a2540;
301
+ font-weight: 600;
302
+ }
303
+ .sp-summary-row code {
304
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
305
+ font-size: 12px;
306
+ background: #ffffff;
307
+ border: 1px solid #e3e8ee;
308
+ padding: 2px 6px;
309
+ border-radius: 4px;
310
+ color: #0a2540;
311
+ }
312
+ .sp-summary-row.sp-total {
313
+ border-top: 1px solid #e3e8ee;
314
+ margin-top: 8px;
315
+ padding-top: 10px;
316
+ font-size: 14px;
317
+ color: #0a2540;
318
+ font-weight: 600;
319
+ }
320
+
321
+ /* Badge de statut discret */
322
+ .sp-status-pill {
323
+ display: inline-flex;
324
+ align-items: center;
325
+ gap: 6px;
326
+ background: #f0fdf4;
327
+ color: #15803d;
328
+ border: 1px solid #bbf7d0;
329
+ font-weight: 600;
330
+ font-size: 12px;
331
+ padding: 4px 10px;
332
+ border-radius: 999px;
333
+ margin-bottom: 10px;
334
+ }
335
+ .sp-reserve-note {
336
+ font-size: 12px;
337
+ color: #697386;
338
+ margin: 0 0 14px;
339
+ }
340
+
341
+ /* Boutons d'action navigation multi-étapes */
342
+ .sp-actions-row {
343
+ display: flex;
344
+ gap: 10px;
345
+ margin-top: 18px;
346
+ }
347
+ .sp-btn-primary {
348
+ flex: 1;
349
+ display: inline-flex;
350
+ align-items: center;
351
+ justify-content: center;
352
+ gap: 8px;
353
+ box-sizing: border-box;
354
+ text-align: center;
355
+ text-decoration: none;
356
+ background: var(--sp-brand, #635bff);
357
+ color: #ffffff;
358
+ border: none;
359
+ padding: 11px 16px;
360
+ border-radius: 6px;
361
+ font-weight: 600;
362
+ font-size: 14px;
363
+ cursor: pointer;
364
+ box-shadow: 0 2px 5px rgba(50, 50, 93, 0.1), 0 1px 1px rgba(0, 0, 0, 0.07);
365
+ transition: filter 0.15s ease;
366
+ }
367
+ .sp-btn-primary:hover {
368
+ filter: brightness(0.92);
369
+ }
370
+ .sp-btn-primary:disabled {
371
+ opacity: 0.6;
372
+ cursor: not-allowed;
373
+ }
374
+ .sp-btn-secondary {
375
+ display: inline-flex;
376
+ align-items: center;
377
+ justify-content: center;
378
+ background: #ffffff;
379
+ color: #3c4257;
380
+ border: 1px solid #d8dee4;
381
+ padding: 11px 14px;
382
+ border-radius: 6px;
383
+ font-weight: 500;
384
+ font-size: 13px;
385
+ cursor: pointer;
386
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
387
+ transition: background-color 0.15s ease;
388
+ }
389
+ .sp-btn-secondary:hover {
390
+ background: #f6f9fc;
391
+ }
392
+
393
+ .sp-error {
394
+ background: #fff5f5;
395
+ color: #cd3d64;
396
+ border: 1px solid #fbd5e0;
397
+ padding: 10px 12px;
398
+ border-radius: 6px;
399
+ font-size: 12px;
400
+ margin-bottom: 12px;
401
+ }
402
+
403
+ /* Pied de modale sobre style Stripe */
404
+ .sp-footer {
405
+ padding: 12px 24px;
406
+ background: #f6f9fc;
407
+ border-top: 1px solid #e6ebf1;
408
+ display: flex;
409
+ align-items: center;
410
+ justify-content: space-between;
411
+ font-size: 11px;
412
+ color: #8792a2;
413
+ }
414
+ .sp-footer a {
415
+ color: #697386;
416
+ text-decoration: none;
417
+ font-weight: 500;
418
+ }
419
+ .sp-footer a:hover {
420
+ color: #0a2540;
421
+ text-decoration: underline;
422
+ }