apirocket 0.3.1 → 0.4.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.
@@ -1,417 +1,137 @@
1
- :root {
2
- --cart-width: 540px;
3
- --cart-background-color: #fff;
4
- --cart-padding: 32px;
5
- --cart-font-family: Arial, Helvetica, sans-serif;
6
-
7
- --cart-header-background-color: #f5f5f5;
8
- --cart-header-border-color: #f5f5f5;
9
- --cart-header-border-width: 1px;
10
- --cart-header-text-font-size: 18px;
11
- --cart-header-text-font-weight: normal;
12
- --cart-header-text-font-color: #404040;
13
- --cart-header-text-close-icon-color: #a3a3a3;
14
- --cart-header-text-close-icon-size: 24px;
15
-
16
- --cart-footer-background-color: #fff;
17
- --cart-footer-border-color: #e5e5e5;
18
- --cart-footer-border-width: 1px;
19
- --cart-footer-text-font-size: 16px;
20
- --cart-footer-text-font-weight: lighter;
21
- --cart-footer-text-font-color: #404040;
22
- --cart-footer-total-font-size: 18px;
23
- --cart-footer-total-font-weight: bold;
24
- --cart-footer-total-font-color: #000;
25
1
 
26
- --cart-item-border-color: #e5e5e5;
27
- --cart-item-border-width: 1px;
28
- --cart-item-padding: 32px;
29
- --cart-item-label-font-size: 14px;
30
- --cart-item-label-font-weight: lighter;
31
- --cart-item-label-font-color: #737373;
32
- --cart-item-image-display: inherit;
33
- --cart-item-image-width: 100px;
34
- --cart-item-image-width-fullscreen: 150px;
35
- --cart-item-name-font-size: 18px;
36
- --cart-item-name-font-weight: bold;
37
- --cart-item-name-font-color: #000;
38
- --cart-item-description-font-size: 14px;
39
- --cart-item-description-font-weight: lighter;
40
- --cart-item-description-font-color: #000;
41
- --cart-item-delete-icon-color: #404040;
42
- --cart-item-delete-icon-color-hover: #000;
43
- --cart-item-delete-icon-size: 18px;
44
- --cart-item-form-border-color: #e5e5e5;
45
- --cart-item-form-border-color-hover: #000;
46
- --cart-item-form-border-width: 1px;
47
- --cart-item-form-text-size: 14px;
48
- --cart-item-form-text-weight: normal;
49
- --cart-item-form-text-color: #000;
50
- --cart-item-quantity-icon-color: #737373;
51
- --cart-item-quantity-icon-background-color: transparent;
52
- --cart-item-quantity-icon-size: 16px;
53
- --cart-item-price-font-size: 16px;
54
- --cart-item-price-font-weight: bold;
55
- --cart-item-price-font-color: #404040;
2
+ .apirocket-button,
3
+ button.apirocket-button {
4
+ box-sizing: border-box !important;
5
+ display: block;
6
+ width: 100%;
7
+ padding: var(--cart-button-padding-y, 16px) var(--cart-button-padding-x, 16px);
8
+ margin: 0px;
9
+ border-radius: var(--cart-button-border-radius, 4px);
10
+ background-color: var(--cart-button-background-color, transparent);
11
+ border: 1px solid var(--cart-button-border-color, #e5e5e5);
12
+ color: var(--cart-button-font-color, #737373);
13
+ line-height: 1;
14
+ font-size: var(--cart-button-font-size, 16px);
15
+ font-weight: var(--cart-button-font-weight, normal);
16
+ text-align: center;
17
+ transition-property: color, border-color, background-color, box-shadow;
18
+ transition-timing-function: ease;
19
+ transition-duration: 350ms;
20
+ cursor: pointer;
21
+ }
56
22
 
57
- --cart-button-font-size: 16px;
58
- --cart-button-font-weight: normal;
59
- --cart-button-font-color: #737373;
60
- --cart-button-font-color-hover: #404040;
61
- --cart-button-border-color: #e5e5e5;
62
- --cart-button-border-color-hover: #404040;
63
- --cart-button-border-radius: 4px;
64
- --cart-button-background-color: transparent;
65
- --cart-button-background-color-hover: transparent;
66
- --cart-button-padding-x: 16px;
67
- --cart-button-padding-y: 16px;
23
+ .apirocket-button:hover {
24
+ background-color: var(--cart-button-background-color-hover, transparent);
25
+ border-color: var(--cart-button-border-color-hover, #404040);
26
+ color: var(--cart-button-font-color-hover, #404040);
27
+ }
68
28
 
69
- --cart-button-primary-text-color: #fff;
70
- --cart-button-primary-text-color-hover: #fff;
71
- --cart-button-primary-border-color: #1d4ed8;
72
- --cart-button-primary-border-color-hover: #0d59f4;
73
- --cart-button-primary-background-color: #1d4ed8;
74
- --cart-button-primary-background-color-hover: #0d59f4;
75
- /* --cart-shadow-button-primary-hover: 0 10px 4px -8px rgba(0,0,0,.5); */
29
+ .apirocket-button:focus {
30
+ outline: none;
31
+ text-decoration: underline;
76
32
  }
33
+ /*
34
+ .apirocket-button-loading {
35
+ position: relative;
36
+ } */
77
37
 
78
- .apirocket-cart * { box-sizing: content-box; }
38
+ .apirocket-button-wraper {
39
+ position: relative;
40
+ display: inline-block;
41
+ width: 32px;
42
+ }
79
43
 
80
- .apirocket-cart {
81
- position: fixed;
82
- z-index: 10000;
44
+ .apirocket-button-spinner {
45
+ position: absolute;
46
+ width: 22px;
47
+ height: 22px;
48
+ top: -11px;
49
+ left: 0;
83
50
  right: 0;
84
- top: 0;
85
- overflow: hidden;
86
- width: var(--cart-width, 540px);
87
- height: 100vh;
88
- box-shadow: 1px 20px 8px rgba(0,0,0,.1);
89
- font-family: var(--cart-font-family, "Arial, Helvetica, sans-serif");
90
- background-color: var(--cart-background-color, #fff);
51
+ bottom: 0;
52
+ margin: auto;
53
+ border: 4px solid currentColor;
54
+ border-top-color: transparent !important;
55
+ border-radius: 50%;
56
+ animation: button-loading-spinner 1s ease infinite;
91
57
  }
92
58
 
93
- .apirocket-cart-content {
94
- display: flex;
95
- flex-direction: column;
96
- height: 100%;
97
- background-color: var(--cart-background-color, #fff);
59
+ @keyframes button-loading-spinner {
60
+ from { transform: rotate(0turn) }
61
+ to { transform: rotate(1turn) }
98
62
  }
99
63
 
100
- .apirocket-cart-header {
64
+ .apirocket-button-link,
65
+ button.apirocket-button-link {
101
66
  display: flex;
102
- flex: 0 0 96px;
103
67
  align-items: center;
104
- justify-content: space-between;
105
- padding: 0px var(--cart-padding);
106
- background-color: var(--cart-header-background-color, #f5f5f5);
107
- border-bottom: var(--cart-header-border-width, 1px) solid var(--cart-header-border-color, #f5f5f5);
68
+ text-align: left;
69
+ justify-content: flex-start;
70
+ align-items: center;
71
+ border: none;
72
+ padding-left: 0;
73
+ padding-right: 0;
74
+ width: auto;
75
+ overflow: hidden;
76
+ white-space: nowrap;
77
+ text-overflow: ellipsis;
108
78
  }
109
79
 
110
- .apirocket-cart-header-title {
111
- font-size: var(--cart-header-text-font-size, 18px);
112
- font-weight: var(--cart-header-text-font-weight, normal);
113
- color: var(--cart-header-text-font-color, #404040)
80
+ .apirocket-button-link span {
81
+ margin-left: 16px;
82
+ margin-right: 16px;
114
83
  }
115
84
 
116
- .apirocket-cart-header-close-icon {
117
- height: var(--cart-header-text-close-icon-size, 24px);
118
- width: var(--cart-header-text-close-icon-size, 24px);
119
- color: var(--cart-header-text-close-icon-color, #a3a3a3);
120
- cursor: pointer;
85
+ .apirocket-button-primary,
86
+ button.apirocket-button-primary {
87
+ background-color: var(--cart-button-primary-background-color, #1d4ed8);
88
+ border-color: var(--cart-button-primary-border-color, #1d4ed8);
89
+ color: var(--cart-button-primary-text-color, #fff);
121
90
  }
122
91
 
123
- .apirocket-cart-header-continue {
124
- display: none;
125
- align-items: center;
126
- text-align: left;
127
- color: #737373;
128
- font-size: 16px;
129
- font-weight: normal;
130
- cursor: pointer;
92
+ button.apirocket-button-primary:disabled {
93
+ background-color: #eee;
94
+ border-color: #eee;
95
+ color: #ccc;
131
96
  }
132
97
 
133
- .apirocket-cart-header-login {
134
- display: none;
135
- align-items: center;
136
- text-align: right;
137
- color: #737373;
138
- font-size: 16px;
139
- font-weight: normal;
140
- cursor: pointer;
98
+ .apirocket-button-primary:hover {
99
+ background-color: var(--cart-button-primary-background-color-hover, #1d4ed8);
100
+ border-color: var(--cart-button-primary-border-color-hover, #1d4ed8);
101
+ color: var(--cart-button-primary-text-color-hover, #fff);
102
+ box-shadow: var(--cart-shadow-button-primary-hover, none);
141
103
  }
142
104
 
143
- .apirocket-cart-header-login svg,
144
- .apirocket-cart-header-continue svg { margin-right: 16px; }
145
105
 
146
- .apirocket-cart-body {
147
- flex: 1 1 auto;
148
- padding: 0px;
149
- background: var(--cart-background-color, #fff);
150
- overflow-y: auto;
151
- }
106
+ @media (max-width: 720px) {
152
107
 
153
- .apirocket-cart-body-message {
154
- font-size: 18px;
155
- font-weight: var(--cart-item-description-font-weight, lighter);
156
- color: #666;
157
- padding: var(--cart-item-padding, 32px) var(--cart-padding, 32px);
158
- border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
159
- }
108
+ .apirocket-button-link {
109
+ width: 100%;
110
+ justify-content: center;
111
+ }
160
112
 
161
- .apirocket-cart-footer {
162
- flex: 0 0 auto;
163
- padding: var(--cart-padding, 32px);
164
- background-color: var(--cart-footer-background-color, transparent);
165
- border-top: var(--cart-footer-border-width, 1px) solid var(--cart-footer-border-color, #e5e5e5);
166
- font-size: var(--cart-footer-text-font-size, 16px);
167
- font-weight: var(--cart-footer-text-font-weight, lighter);
168
- color: var(--cart-footer-text-font-color, #737373);
169
113
  }
170
114
 
171
- .apirocket-cart-footer-total {
172
- font-size: var(--cart-footer-total-font-size, 18px);
173
- font-weight: var(--cart-footer-total-font-weight, bold);
174
- color: var(--cart-footer-total-font-color, #000);
115
+ .apirocket-summary {}
116
+
117
+ .apirocket-summary-top {
118
+ margin-top: 56px;
119
+ margin-bottom: 32px;
175
120
  }
176
121
 
177
- .apirocket-cart-row {
122
+ .apirocket-summary-header {
178
123
  display: flex;
179
- justify-content: space-between;
180
- align-items: center;
124
+ justify-content: flex-start;
125
+ align-items: center;
126
+ margin-bottom: 32px;
181
127
  }
182
128
 
183
- .apirocket-cart-col {
184
- flex: 1 1 auto;
185
- margin-bottom: 16px;
129
+ .apirocket-summary-header-icon {
130
+ flex: 0 1;
131
+ margin-right: 16px;
186
132
  }
187
133
 
188
- .apirocket-cart-item {
189
- padding: var(--cart-item-padding, 32px) var(--cart-padding, 32px);
190
- border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
191
- }
192
-
193
- .apirocket-cart-item:last-child {
194
- border-bottom: none;
195
- margin-bottom: var(--cart-padding, 32px);
196
- }
197
-
198
- .apirocket-cart-item-row {
199
- display: flex;
200
- justify-content: space-between;
201
- align-items: center;
202
- }
203
-
204
- .apirocket-cart-item-col-image {
205
- display: var(--cart-item-image-display, inherit);
206
- flex: 0 0 var(--cart-item-image-width, 100px);
207
- align-self: flex-start;
208
- margin-right: 16px;
209
- }
210
-
211
- .apirocket-cart-item-col-image img {
212
- display: block;
213
- max-width: 100%;
214
- }
215
-
216
- .apirocket-cart-item-col-description {
217
- align-self: flex-start;
218
- padding-right: 32px;
219
- flex-grow: 1;
220
- }
221
-
222
- .apirocket-cart-item-col-description-name {
223
- font-size: var(--cart-item-name-font-size, 18px);
224
- font-weight: var(--cart-item-name-font-weight, bold);
225
- color: var(--cart-item-name-font-color, #000);
226
- }
227
-
228
- .apirocket-cart-item-col-description-text {
229
- font-size: var(--cart-item-description-font-size, 14px);
230
- font-weight: var(--cart-item-description-font-weight, lighter);
231
- color: var(--cart-item-description-font-color, #000);
232
- }
233
-
234
- .apirocket-cart-item-col-delete {
235
- flex: 1 0 auto;
236
- align-self: flex-start;
237
- color: var(--cart-item-delete-icon-color, #404040);
238
- width: var(--cart-item-delete-icon-size, 24px);
239
- cursor: pointer;
240
- text-align: center;
241
- }
242
-
243
- .apirocket-cart-item-col-delete:hover {
244
- color: var(--cart-item-delete-icon-color-hover, #000);
245
- }
246
-
247
- .apirocket-cart-item-col-delete svg {
248
- width: var(--cart-item-delete-icon-size, 18px);
249
- height: var(--cart-item-delete-icon-size, 18px);
250
- }
251
-
252
- .apirocket-cart-item-label {
253
- font-size: var(--cart-item-label-font-size, 14px);
254
- font-weight: var(--cart-item-label-font-weight, lighter);
255
- color: var(--cart-item-label-font-color, #737373);
256
- margin-bottom: 4px;
257
- }
258
-
259
- .apirocket-cart-item-col-quantity {
260
- margin-top: 16px;
261
- }
262
-
263
- .apirocket-cart-item-quantity-wrapper {
264
- display: flex;
265
- justify-content: space-between;
266
- border: var(--cart-item-form-border-width, 1px) solid var(--cart-item-form-border-color, #e5e5e5);
267
- min-width: 160px;
268
- user-select: none;
269
- transition-property: border-color;
270
- transition-timing-function: ease;
271
- transition-duration: 350ms;
272
- }
273
-
274
- .apirocket-cart-item-quantity-wrapper:hover {
275
- border-color: var(--cart-item-form-border-color-hover, #000);
276
- }
277
-
278
- .apirocket-cart-item-quantity-number {
279
- flex: 1 1 auto;
280
- font-size: var(--cart-item-form-text-size, 14px);
281
- font-weight: var(--cart-item-form-text-weight, normal);
282
- color: var(--cart-item-form-text-color, #000);
283
- padding: 16px;
284
- line-height: 1;
285
- text-align: center;
286
- }
287
-
288
- .apirocket-cart-item-quantity-button {
289
- display: flex;
290
- align-items: center;
291
- background-color: var(--cart-item-quantity-icon-background-color, transparent);
292
- padding: 0px 12px;
293
- cursor: pointer;
294
- }
295
-
296
- .apirocket-cart-item-quantity-button svg {
297
- color: var(--cart-item-quantity-icon-color, #737373);
298
- width: var(--cart-item-quantity-icon-size, 16px);
299
- height: var(--cart-item-quantity-icon-size, 16px);
300
- }
301
-
302
- .apirocket-cart-item-col-price {
303
- margin-top: 36px;
304
- font-size: var(--cart-item-price-font-size, 16px);
305
- font-weight: var(--cart-item-price-font-weight, normal);
306
- color: var(--cart-item-price-font-color, #404040);
307
- }
308
-
309
-
310
- @media (min-width: 720px) {
311
-
312
- .apirocket-cart.apirocket-cart-full-screen {
313
- width: 100%;
314
- overflow-y: auto;
315
- }
316
-
317
- .apirocket-cart-full-screen .apirocket-cart-content {
318
- display: block;
319
- width: 90%;
320
- max-width: 980px;
321
- margin: 0 auto;
322
- }
323
-
324
- .apirocket-cart-full-screen .apirocket-cart-header {
325
- background-color: #fff;
326
- border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
327
- padding: 40px 0px;
328
- }
329
-
330
- .apirocket-cart-full-screen .apirocket-cart-header-continue { display: flex; }
331
- .apirocket-cart-full-screen .apirocket-cart-header-login { display: flex; }
332
-
333
- .apirocket-cart-full-screen .apirocket-cart-header-close { display: none; }
334
-
335
- .apirocket-cart-full-screen .apirocket-cart-footer {
336
- width: 40%;
337
- border-top: none;
338
- margin-left: auto;
339
- margin-right: 0;
340
- padding: 0px;
341
- padding-top: 32px;
342
- padding-bottom: 96px;
343
- }
344
-
345
- .apirocket-cart-full-screen .apirocket-cart-item {
346
- display: flex;
347
- position: relative;
348
- padding-left: 0;
349
- padding-right: 0;
350
- }
351
-
352
- .apirocket-cart-full-screen .apirocket-cart-item-row:first-child { flex: 1 1 60%; }
353
- .apirocket-cart-full-screen .apirocket-cart-item-row:last-child { flex: 1 1 40%; }
354
-
355
- .apirocket-cart-full-screen .apirocket-cart-item:last-child {
356
- border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
357
- }
358
-
359
- .apirocket-cart-full-screen .apirocket-cart-item-col-quantity { margin-top: 0px; }
360
- .apirocket-cart-full-screen .apirocket-cart-item-col-price {
361
- align-self: flex-end;
362
- line-height: 48px;
363
- }
364
-
365
- .apirocket-cart-full-screen .apirocket-cart-item-col-image {
366
- flex: 0 0 var(--cart-item-image-width-fullscreen, 150px);
367
- }
368
-
369
- .apirocket-cart-full-screen .apirocket-cart-item-col-description { align-self: flex-start; }
370
- .apirocket-cart-full-screen .apirocket-cart-item-col-quantity { align-self: flex-end; }
371
-
372
- .apirocket-cart-full-screen .apirocket-cart-item-col-delete {
373
- position: absolute;
374
- right: 0px;
375
- top: var(--cart-item-padding, 32px);
376
- }
377
- }
378
-
379
- @media (min-width: 720px) and (max-width: 920px) {
380
- .apirocket-cart-full-screen .apirocket-cart-item-row:first-child { flex: 1 1 55%; }
381
- .apirocket-cart-full-screen .apirocket-cart-item-row:last-child { flex: 1 1 35%; }
382
- }
383
-
384
- /* Mobile version */
385
-
386
- @media (max-width: 720px) {
387
-
388
- .apirocket-cart {
389
- width: 100%;
390
- box-shadow: none;
391
- }
392
-
393
- .apirocket-cart-header-continue { display: none; }
394
- .apirocket-cart-header-login { display: none; }
395
- }.apirocket-summary {}
396
-
397
- .apirocket-summary-top {
398
- margin-top: 56px;
399
- margin-bottom: 32px;
400
- }
401
-
402
- .apirocket-summary-header {
403
- display: flex;
404
- justify-content: flex-start;
405
- align-items: center;
406
- margin-bottom: 32px;
407
- }
408
-
409
- .apirocket-summary-header-icon {
410
- flex: 0 1;
411
- margin-right: 16px;
412
- }
413
-
414
- .apirocket-summary-header-content {}
134
+ .apirocket-summary-header-content {}
415
135
 
416
136
  .apirocket-summary-header-title {
417
137
  font-size: 24px;
@@ -1186,22 +906,589 @@
1186
906
  }
1187
907
 
1188
908
 
1189
- .apirocket-error-block {
1190
- display: flex;
1191
- justify-content: start;
1192
- align-items: center;
1193
- background-color: #fef2f2;
1194
- padding: 16px;
1195
- color: #dc2626;
1196
- font-size: 14px;
1197
- line-height: 18px;
1198
- border-radius: 8px;
1199
- margin-top: 16px;
1200
- margin-bottom: 0px;
1201
- }
909
+ :root {
910
+ --cart-width: 540px;
911
+ --cart-background-color: #fff;
912
+ --cart-padding: 32px;
913
+ --cart-font-family: Arial, Helvetica, sans-serif;
1202
914
 
1203
- .apirocket-error-block-icon {
1204
- margin-right: 12px;
915
+ --cart-header-background-color: #f5f5f5;
916
+ --cart-header-border-color: #f5f5f5;
917
+ --cart-header-border-width: 1px;
918
+ --cart-header-text-font-size: 18px;
919
+ --cart-header-text-font-weight: normal;
920
+ --cart-header-text-font-color: #404040;
921
+ --cart-header-text-close-icon-color: #a3a3a3;
922
+ --cart-header-text-close-icon-size: 24px;
923
+
924
+ --cart-footer-background-color: #fff;
925
+ --cart-footer-border-color: #e5e5e5;
926
+ --cart-footer-border-width: 1px;
927
+ --cart-footer-text-font-size: 16px;
928
+ --cart-footer-text-font-weight: lighter;
929
+ --cart-footer-text-font-color: #404040;
930
+ --cart-footer-total-font-size: 18px;
931
+ --cart-footer-total-font-weight: bold;
932
+ --cart-footer-total-font-color: #000;
933
+
934
+ --cart-item-border-color: #e5e5e5;
935
+ --cart-item-border-width: 1px;
936
+ --cart-item-padding: 32px;
937
+ --cart-item-label-font-size: 14px;
938
+ --cart-item-label-font-weight: lighter;
939
+ --cart-item-label-font-color: #737373;
940
+ --cart-item-image-display: inherit;
941
+ --cart-item-image-width: 100px;
942
+ --cart-item-image-width-fullscreen: 150px;
943
+ --cart-item-name-font-size: 18px;
944
+ --cart-item-name-font-weight: bold;
945
+ --cart-item-name-font-color: #000;
946
+ --cart-item-description-font-size: 14px;
947
+ --cart-item-description-font-weight: lighter;
948
+ --cart-item-description-font-color: #000;
949
+ --cart-item-delete-icon-color: #404040;
950
+ --cart-item-delete-icon-color-hover: #000;
951
+ --cart-item-delete-icon-size: 18px;
952
+ --cart-item-form-border-color: #e5e5e5;
953
+ --cart-item-form-border-color-hover: #000;
954
+ --cart-item-form-border-width: 1px;
955
+ --cart-item-form-text-size: 14px;
956
+ --cart-item-form-text-weight: normal;
957
+ --cart-item-form-text-color: #000;
958
+ --cart-item-quantity-icon-color: #737373;
959
+ --cart-item-quantity-icon-background-color: transparent;
960
+ --cart-item-quantity-icon-size: 16px;
961
+ --cart-item-price-font-size: 16px;
962
+ --cart-item-price-font-weight: bold;
963
+ --cart-item-price-font-color: #404040;
964
+
965
+ --cart-button-font-size: 16px;
966
+ --cart-button-font-weight: normal;
967
+ --cart-button-font-color: #737373;
968
+ --cart-button-font-color-hover: #404040;
969
+ --cart-button-border-color: #e5e5e5;
970
+ --cart-button-border-color-hover: #404040;
971
+ --cart-button-border-radius: 4px;
972
+ --cart-button-background-color: transparent;
973
+ --cart-button-background-color-hover: transparent;
974
+ --cart-button-padding-x: 16px;
975
+ --cart-button-padding-y: 16px;
976
+
977
+ --cart-button-primary-text-color: #fff;
978
+ --cart-button-primary-text-color-hover: #fff;
979
+ --cart-button-primary-border-color: #1d4ed8;
980
+ --cart-button-primary-border-color-hover: #0d59f4;
981
+ --cart-button-primary-background-color: #1d4ed8;
982
+ --cart-button-primary-background-color-hover: #0d59f4;
983
+ /* --cart-shadow-button-primary-hover: 0 10px 4px -8px rgba(0,0,0,.5); */
984
+ }
985
+
986
+ .apirocket-cart * { box-sizing: content-box; }
987
+
988
+ .apirocket-cart {
989
+ position: fixed;
990
+ z-index: 10000;
991
+ right: 0;
992
+ top: 0;
993
+ overflow: hidden;
994
+ width: var(--cart-width, 540px);
995
+ height: 100vh;
996
+ box-shadow: 1px 20px 8px rgba(0,0,0,.1);
997
+ font-family: var(--cart-font-family, "Arial, Helvetica, sans-serif");
998
+ background-color: var(--cart-background-color, #fff);
999
+ }
1000
+
1001
+ .apirocket-cart-content {
1002
+ display: flex;
1003
+ flex-direction: column;
1004
+ height: 100%;
1005
+ background-color: var(--cart-background-color, #fff);
1006
+ }
1007
+
1008
+ .apirocket-cart-header {
1009
+ display: flex;
1010
+ flex: 0 0 96px;
1011
+ align-items: center;
1012
+ justify-content: space-between;
1013
+ padding: 0px var(--cart-padding);
1014
+ background-color: var(--cart-header-background-color, #f5f5f5);
1015
+ border-bottom: var(--cart-header-border-width, 1px) solid var(--cart-header-border-color, #f5f5f5);
1016
+ }
1017
+
1018
+ .apirocket-cart-header-title {
1019
+ font-size: var(--cart-header-text-font-size, 18px);
1020
+ font-weight: var(--cart-header-text-font-weight, normal);
1021
+ color: var(--cart-header-text-font-color, #404040)
1022
+ }
1023
+
1024
+ .apirocket-cart-header-close-icon {
1025
+ height: var(--cart-header-text-close-icon-size, 24px);
1026
+ width: var(--cart-header-text-close-icon-size, 24px);
1027
+ color: var(--cart-header-text-close-icon-color, #a3a3a3);
1028
+ cursor: pointer;
1029
+ }
1030
+
1031
+ .apirocket-cart-header-continue {
1032
+ display: none;
1033
+ align-items: center;
1034
+ text-align: left;
1035
+ color: #737373;
1036
+ font-size: 16px;
1037
+ font-weight: normal;
1038
+ cursor: pointer;
1039
+ }
1040
+
1041
+ .apirocket-cart-header-login {
1042
+ display: none;
1043
+ align-items: center;
1044
+ text-align: right;
1045
+ color: #737373;
1046
+ font-size: 16px;
1047
+ font-weight: normal;
1048
+ cursor: pointer;
1049
+ }
1050
+
1051
+ .apirocket-cart-header-login svg,
1052
+ .apirocket-cart-header-continue svg { margin-right: 16px; }
1053
+
1054
+ .apirocket-cart-body {
1055
+ flex: 1 1 auto;
1056
+ padding: 0px;
1057
+ background: var(--cart-background-color, #fff);
1058
+ overflow-y: auto;
1059
+ }
1060
+
1061
+ .apirocket-cart-body-message {
1062
+ font-size: 18px;
1063
+ font-weight: var(--cart-item-description-font-weight, lighter);
1064
+ color: #666;
1065
+ padding: var(--cart-item-padding, 32px) var(--cart-padding, 32px);
1066
+ border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
1067
+ }
1068
+
1069
+ .apirocket-cart-footer {
1070
+ flex: 0 0 auto;
1071
+ padding: var(--cart-padding, 32px);
1072
+ background-color: var(--cart-footer-background-color, transparent);
1073
+ border-top: var(--cart-footer-border-width, 1px) solid var(--cart-footer-border-color, #e5e5e5);
1074
+ font-size: var(--cart-footer-text-font-size, 16px);
1075
+ font-weight: var(--cart-footer-text-font-weight, lighter);
1076
+ color: var(--cart-footer-text-font-color, #737373);
1077
+ }
1078
+
1079
+ .apirocket-cart-footer-total {
1080
+ font-size: var(--cart-footer-total-font-size, 18px);
1081
+ font-weight: var(--cart-footer-total-font-weight, bold);
1082
+ color: var(--cart-footer-total-font-color, #000);
1083
+ }
1084
+
1085
+ .apirocket-cart-row {
1086
+ display: flex;
1087
+ justify-content: space-between;
1088
+ align-items: center;
1089
+ }
1090
+
1091
+ .apirocket-cart-col {
1092
+ flex: 1 1 auto;
1093
+ margin-bottom: 16px;
1094
+ }
1095
+
1096
+ .apirocket-cart-item {
1097
+ padding: var(--cart-item-padding, 32px) var(--cart-padding, 32px);
1098
+ border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
1099
+ }
1100
+
1101
+ .apirocket-cart-item:last-child {
1102
+ border-bottom: none;
1103
+ margin-bottom: var(--cart-padding, 32px);
1104
+ }
1105
+
1106
+ .apirocket-cart-item-row {
1107
+ display: flex;
1108
+ justify-content: space-between;
1109
+ align-items: center;
1110
+ }
1111
+
1112
+ .apirocket-cart-item-col-image {
1113
+ display: var(--cart-item-image-display, inherit);
1114
+ flex: 0 0 var(--cart-item-image-width, 100px);
1115
+ align-self: flex-start;
1116
+ margin-right: 16px;
1117
+ }
1118
+
1119
+ .apirocket-cart-item-col-image img {
1120
+ display: block;
1121
+ max-width: 100%;
1122
+ }
1123
+
1124
+ .apirocket-cart-item-col-description {
1125
+ align-self: flex-start;
1126
+ padding-right: 32px;
1127
+ flex-grow: 1;
1128
+ }
1129
+
1130
+ .apirocket-cart-item-col-description-name {
1131
+ font-size: var(--cart-item-name-font-size, 18px);
1132
+ font-weight: var(--cart-item-name-font-weight, bold);
1133
+ color: var(--cart-item-name-font-color, #000);
1134
+ }
1135
+
1136
+ .apirocket-cart-item-col-description-text {
1137
+ font-size: var(--cart-item-description-font-size, 14px);
1138
+ font-weight: var(--cart-item-description-font-weight, lighter);
1139
+ color: var(--cart-item-description-font-color, #000);
1140
+ }
1141
+
1142
+ .apirocket-cart-item-col-delete {
1143
+ flex: 1 0 auto;
1144
+ align-self: flex-start;
1145
+ color: var(--cart-item-delete-icon-color, #404040);
1146
+ width: var(--cart-item-delete-icon-size, 24px);
1147
+ cursor: pointer;
1148
+ text-align: center;
1149
+ }
1150
+
1151
+ .apirocket-cart-item-col-delete:hover {
1152
+ color: var(--cart-item-delete-icon-color-hover, #000);
1153
+ }
1154
+
1155
+ .apirocket-cart-item-col-delete svg {
1156
+ width: var(--cart-item-delete-icon-size, 18px);
1157
+ height: var(--cart-item-delete-icon-size, 18px);
1158
+ }
1159
+
1160
+ .apirocket-cart-item-label {
1161
+ font-size: var(--cart-item-label-font-size, 14px);
1162
+ font-weight: var(--cart-item-label-font-weight, lighter);
1163
+ color: var(--cart-item-label-font-color, #737373);
1164
+ margin-bottom: 4px;
1165
+ }
1166
+
1167
+ .apirocket-cart-item-col-quantity {
1168
+ margin-top: 16px;
1169
+ }
1170
+
1171
+ .apirocket-cart-item-quantity-wrapper {
1172
+ display: flex;
1173
+ justify-content: space-between;
1174
+ border: var(--cart-item-form-border-width, 1px) solid var(--cart-item-form-border-color, #e5e5e5);
1175
+ min-width: 160px;
1176
+ user-select: none;
1177
+ transition-property: border-color;
1178
+ transition-timing-function: ease;
1179
+ transition-duration: 350ms;
1180
+ }
1181
+
1182
+ .apirocket-cart-item-quantity-wrapper:hover {
1183
+ border-color: var(--cart-item-form-border-color-hover, #000);
1184
+ }
1185
+
1186
+ .apirocket-cart-item-quantity-number {
1187
+ flex: 1 1 auto;
1188
+ font-size: var(--cart-item-form-text-size, 14px);
1189
+ font-weight: var(--cart-item-form-text-weight, normal);
1190
+ color: var(--cart-item-form-text-color, #000);
1191
+ padding: 16px;
1192
+ line-height: 1;
1193
+ text-align: center;
1194
+ }
1195
+
1196
+ .apirocket-cart-item-quantity-button {
1197
+ display: flex;
1198
+ align-items: center;
1199
+ background-color: var(--cart-item-quantity-icon-background-color, transparent);
1200
+ padding: 0px 12px;
1201
+ cursor: pointer;
1202
+ }
1203
+
1204
+ .apirocket-cart-item-quantity-button svg {
1205
+ color: var(--cart-item-quantity-icon-color, #737373);
1206
+ width: var(--cart-item-quantity-icon-size, 16px);
1207
+ height: var(--cart-item-quantity-icon-size, 16px);
1208
+ }
1209
+
1210
+ .apirocket-cart-item-col-price {
1211
+ margin-top: 36px;
1212
+ font-size: var(--cart-item-price-font-size, 16px);
1213
+ font-weight: var(--cart-item-price-font-weight, normal);
1214
+ color: var(--cart-item-price-font-color, #404040);
1215
+ }
1216
+
1217
+
1218
+ @media (min-width: 720px) {
1219
+
1220
+ .apirocket-cart.apirocket-cart-full-screen {
1221
+ width: 100%;
1222
+ overflow-y: auto;
1223
+ }
1224
+
1225
+ .apirocket-cart-full-screen .apirocket-cart-content {
1226
+ display: block;
1227
+ width: 90%;
1228
+ max-width: 980px;
1229
+ margin: 0 auto;
1230
+ }
1231
+
1232
+ .apirocket-cart-full-screen .apirocket-cart-header {
1233
+ background-color: #fff;
1234
+ border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
1235
+ padding: 40px 0px;
1236
+ }
1237
+
1238
+ .apirocket-cart-full-screen .apirocket-cart-header-continue { display: flex; }
1239
+ .apirocket-cart-full-screen .apirocket-cart-header-login { display: flex; }
1240
+
1241
+ .apirocket-cart-full-screen .apirocket-cart-header-close { display: none; }
1242
+
1243
+ .apirocket-cart-full-screen .apirocket-cart-footer {
1244
+ width: 40%;
1245
+ border-top: none;
1246
+ margin-left: auto;
1247
+ margin-right: 0;
1248
+ padding: 0px;
1249
+ padding-top: 32px;
1250
+ padding-bottom: 96px;
1251
+ }
1252
+
1253
+ .apirocket-cart-full-screen .apirocket-cart-item {
1254
+ display: flex;
1255
+ position: relative;
1256
+ padding-left: 0;
1257
+ padding-right: 0;
1258
+ }
1259
+
1260
+ .apirocket-cart-full-screen .apirocket-cart-item-row:first-child { flex: 1 1 60%; }
1261
+ .apirocket-cart-full-screen .apirocket-cart-item-row:last-child { flex: 1 1 40%; }
1262
+
1263
+ .apirocket-cart-full-screen .apirocket-cart-item:last-child {
1264
+ border-bottom: var(--cart-item-border-width, 1px) solid var(--cart-item-border-color, #e5e5e5);
1265
+ }
1266
+
1267
+ .apirocket-cart-full-screen .apirocket-cart-item-col-quantity { margin-top: 0px; }
1268
+ .apirocket-cart-full-screen .apirocket-cart-item-col-price {
1269
+ align-self: flex-end;
1270
+ line-height: 48px;
1271
+ }
1272
+
1273
+ .apirocket-cart-full-screen .apirocket-cart-item-col-image {
1274
+ flex: 0 0 var(--cart-item-image-width-fullscreen, 150px);
1275
+ }
1276
+
1277
+ .apirocket-cart-full-screen .apirocket-cart-item-col-description { align-self: flex-start; }
1278
+ .apirocket-cart-full-screen .apirocket-cart-item-col-quantity { align-self: flex-end; }
1279
+
1280
+ .apirocket-cart-full-screen .apirocket-cart-item-col-delete {
1281
+ position: absolute;
1282
+ right: 0px;
1283
+ top: var(--cart-item-padding, 32px);
1284
+ }
1285
+ }
1286
+
1287
+ @media (min-width: 720px) and (max-width: 920px) {
1288
+ .apirocket-cart-full-screen .apirocket-cart-item-row:first-child { flex: 1 1 55%; }
1289
+ .apirocket-cart-full-screen .apirocket-cart-item-row:last-child { flex: 1 1 35%; }
1290
+ }
1291
+
1292
+ /* Mobile version */
1293
+
1294
+ @media (max-width: 720px) {
1295
+
1296
+ .apirocket-cart {
1297
+ width: 100%;
1298
+ box-shadow: none;
1299
+ }
1300
+
1301
+ .apirocket-cart-header-continue { display: none; }
1302
+ .apirocket-cart-header-login { display: none; }
1303
+ }.apirocket-modal *,
1304
+ .apirocket-modal *::before,
1305
+ .apirocket-modal *::after { box-sizing: border-box; }
1306
+
1307
+ .apirocket-modal {
1308
+ display: flex;
1309
+ justify-content: center;
1310
+ align-items: flex-start;
1311
+ position: fixed;
1312
+ z-index: 10001;
1313
+ right: 0;
1314
+ top: 0;
1315
+ overflow: hidden;
1316
+ overflow-y: auto;
1317
+ width: 100%;
1318
+ height: 100vh;
1319
+ font-family: var(--cart-font-family, "Arial, Helvetica, sans-serif");
1320
+ background-color: #f5f5f5;
1321
+ }
1322
+
1323
+ .apirocket-modal-nav {
1324
+ position: absolute;
1325
+ display: flex;
1326
+ align-items: center;
1327
+ width: 90%;
1328
+ max-width: 1100px;
1329
+ height: 96px;
1330
+ }
1331
+
1332
+ .apirocket-modal-nav-button {
1333
+ display: flex;
1334
+ align-items: center;
1335
+ text-align: left;
1336
+ color: #737373;
1337
+ font-size: 16px;
1338
+ font-weight: normal;
1339
+ cursor: pointer;
1340
+ }
1341
+
1342
+ .apirocket-modal-nav-button svg { margin-right: 16px; }
1343
+
1344
+ .apirocket-modal-content {
1345
+ display: flex;
1346
+ flex-flow: column;
1347
+ width: 480px;
1348
+ height: auto;
1349
+ padding: 32px;
1350
+ background-color: #fff;
1351
+ margin-top: 96px;
1352
+ margin-bottom: 32px;
1353
+ }
1354
+
1355
+ .apirocket-modal-header {
1356
+ position: relative;
1357
+ padding-bottom: 32px;
1358
+ }
1359
+
1360
+ .apirocket-modal-title {
1361
+ font-size: 18px;
1362
+ font-weight: bold;
1363
+ line-height: 1;
1364
+ color: #404040;
1365
+ margin-bottom: 8px;
1366
+ }
1367
+
1368
+ .apirocket-modal-subtitle {
1369
+ font-size: 14px;
1370
+ font-weight: normal;
1371
+ line-height: 16px;
1372
+ color: #737373;
1373
+ }
1374
+
1375
+ .apirocket-modal-close {
1376
+ position: absolute;
1377
+ right: -16px;
1378
+ top: -16px;
1379
+ }
1380
+
1381
+ .apirocket-modal-close-icon {
1382
+ height: var(--cart-header-text-close-icon-size, 24px);
1383
+ width: var(--cart-header-text-close-icon-size, 24px);
1384
+ color: var(--cart-header-text-close-icon-color, #a3a3a3);
1385
+ cursor: pointer;
1386
+ }
1387
+
1388
+ .apirocket-modal-body-text-password {
1389
+ color: #404040;
1390
+ font-size: 14px;
1391
+ font-weight: normal;
1392
+ line-height: 16px;
1393
+ margin-top: -8px;text-align: right;
1394
+ cursor: pointer;
1395
+ }
1396
+
1397
+ .apirocket-modal-body-text-password:hover { text-decoration: underline; }
1398
+
1399
+ .apirocket-modal-footer-text {
1400
+ color: #a3a3a3;
1401
+ font-size: 14px;
1402
+ font-weight: normal;
1403
+ line-height: 16px;
1404
+ text-align: center;
1405
+ margin-top: 16px;
1406
+ }
1407
+
1408
+ .apirocket-modal-footer-text span {
1409
+ color: #404040;
1410
+ cursor: pointer;
1411
+ }
1412
+
1413
+ .apirocket-modal-footer-text span:hover { text-decoration: underline; }
1414
+
1415
+
1416
+ .apirocket-modal-body {}
1417
+
1418
+ .apirocket-modal-footer {
1419
+ padding-top: 32px;
1420
+ }
1421
+
1422
+ .apirocket-modal-row {
1423
+ display: flex;
1424
+ justify-content: space-between;
1425
+ align-items: flex-start;
1426
+ }
1427
+
1428
+ .apirocket-modal-row > * {
1429
+ flex: 1 1;
1430
+ margin-right: 16px;
1431
+ }
1432
+
1433
+ .apirocket-modal-row > *:last-child { margin-right: 0; }
1434
+
1435
+
1436
+ @media (max-width: 720px) {
1437
+ .apirocket-modal-row { display: block; }
1438
+ .apirocket-modal-row > * { margin-right: 0; }
1439
+
1440
+ .apirocket-modal-nav { display: none; }
1441
+
1442
+ .apirocket-modal-content {
1443
+ width: 95%;
1444
+ margin-top: 32px;
1445
+ padding: 24px;
1446
+ }
1447
+
1448
+ .apirocket-modal-close {
1449
+ right: -8px;
1450
+ top: -8px;
1451
+ }
1452
+ }
1453
+
1454
+ .apirocket-modal-messaje {
1455
+ margin-top: 32px;
1456
+ margin-bottom: 32px;
1457
+ text-align: center;
1458
+ }
1459
+
1460
+ .apirocket-modal-message-icon {
1461
+ display: inline-flex;
1462
+ justify-content: center;
1463
+ align-items: center;
1464
+ width: 48px;
1465
+ height: 48px;
1466
+ border-radius: 24px;
1467
+ margin: auto;
1468
+ margin-bottom: 32px;
1469
+ }
1470
+
1471
+ .apirocket-modal-message-icon-ok {
1472
+ background-color: #d1fae5;
1473
+ color: #10b981;
1474
+ }
1475
+
1476
+ .apirocket-modal-message-title {
1477
+ font-size: 18px;
1478
+ font-weight: bold;
1479
+ line-height: 1;
1480
+ text-align: center;
1481
+ color: #404040;
1482
+ margin-bottom: 16px;
1483
+ }
1484
+
1485
+ .apirocket-modal-message-text {
1486
+ color: #737373;
1487
+ font-size: 14px;
1488
+ font-weight: normal;
1489
+ text-align: center;
1490
+ line-height: 16px;
1491
+ margin-bottom: 32px;
1205
1492
  }.apirocket-form-input {
1206
1493
  display: block;
1207
1494
  position: relative;
@@ -1453,445 +1740,158 @@
1453
1740
  cursor: pointer;
1454
1741
  transition: all 0.3s ease;
1455
1742
  overflow: hidden;
1456
- background-color: #fff;
1457
- }
1458
-
1459
- .apirocket-form-radio input:focus {
1460
- border-color: #404040;
1461
- box-shadow: 0 0 0 1px #404040;
1462
- }
1463
-
1464
- .apirocket-form-radio input:checked {
1465
- background-color: #404040;
1466
- border-color: #404040;
1467
- }
1468
-
1469
- .apirocket-form-radio input::after {
1470
- display: block;
1471
- position: absolute;
1472
- width: 20px;
1473
- height: 20px;
1474
- content: "";
1475
- background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23fff'/%3E%3C/svg%3E%0A");
1476
- background-repeat: no-repeat;
1477
- background-position: 6px 6px;
1478
- transition: all 0.4s ease;
1479
- transform: scale(0);
1480
- }
1481
-
1482
- .apirocket-form-radio input:checked::after {
1483
- transform: scale(1);
1484
- }
1485
-
1486
- .apirocket-form-radio-error-message {
1487
- display: none;
1488
- position: absolute;
1489
- left: 32px;
1490
- bottom: -16px;
1491
- font-size: 14px;
1492
- line-height: 1.2;
1493
- color: #dc2626;
1494
- }
1495
-
1496
- .apirocket-form-radio.invalid.touched input {
1497
- border-color: #dc2626;
1498
- box-shadow: 0 0 0 1px #dc2626;
1499
- }
1500
-
1501
- .apirocket-form-radio.invalid.touched .apirocket-form-radio-error-message { display: block; }
1502
-
1503
- .apirocket-form-select {
1504
- display: block;
1505
- position: relative;
1506
- margin-bottom: 16px;
1507
- }
1508
-
1509
- .apirocket-form-select select {
1510
- all: unset;
1511
- appearance: none;
1512
- -moz-appearance: none;
1513
- -webkit-appearance: none;
1514
- outline: none;
1515
- width: 100%;
1516
- height: 46px;
1517
- border-radius: 4px;
1518
- border: 1px solid #D9D9D9;
1519
- font-size: 14px;
1520
- line-height: 16px;
1521
- padding-left: 14px;
1522
- padding-right: 50px;
1523
- padding-top: 14px;
1524
- padding-bottom: 14px;
1525
- transition: all 0.3s ease;
1526
- box-sizing: border-box;
1527
- cursor: pointer;
1528
- }
1529
-
1530
- .apirocket-form-select select:focus {
1531
- border-color: #404040;
1532
- box-shadow: 0 0 0 1px #404040;
1533
- }
1534
-
1535
- .apirocket-form-select select:not(:placeholder-shown) {
1536
- padding-top: 22px;
1537
- padding-bottom: 6px;
1538
- }
1539
-
1540
- .apirocket-form-select select:disabled { background-color: #f5f5f5; color: #404040; opacity: 0.8; }
1541
-
1542
- .apirocket-form-select::before {
1543
- display: block;
1544
- position: absolute;
1545
- top: 8px;
1546
- right: 0px;
1547
- width: 40px;
1548
- height: 30px;
1549
- content: "";
1550
- background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683416 -0.097631 1.31658 -0.097631 1.7071 0.292893L4.99999 3.58579L8.29288 0.292893C8.6834 -0.0976311 9.31657 -0.0976311 9.70709 0.292893C10.0976 0.683417 10.0976 1.31658 9.70709 1.70711L5.7071 5.70711C5.31657 6.09763 4.68341 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976309 1.31658 -0.0976309 0.683417 0.292893 0.292893Z' fill='%23A3A3A3'/%3E%3C/svg%3E%0A");
1551
- background-repeat: no-repeat;
1552
- background-position: center;
1553
- border-left: 1px solid #d9d9d9;
1554
- pointer-events: none;
1555
- }
1556
-
1557
- .apirocket-form-select-placeholder {
1558
- position: absolute;
1559
- font-size: 12px;
1560
- line-height: 1;
1561
- color: #737373;
1562
- transform: translateY(50%);
1563
- opacity: 0;
1564
- top: 8px;
1565
- left: 15px;
1566
- transition: all 0.3s ease;
1567
- overflow: hidden;
1568
- white-space: nowrap;
1569
- text-overflow: ellipsis;
1570
- }
1571
-
1572
- .apirocket-form-select select:not(:placeholder-shown) ~ span.apirocket-form-select-placeholder {
1573
- opacity: 1;
1574
- transform: translateY(0%);
1575
- }
1576
-
1577
- .apirocket-form-select .apirocket-form-select-error-message {
1578
- display: none;
1579
- font-size: 14px;
1580
- line-height: 1.2;
1581
- margin-top: 4px;
1582
- margin-left: 8px;
1583
- color: #dc2626;
1584
- }
1585
-
1586
- .apirocket-form-select.invalid.touched select {
1587
- border-color: #dc2626;
1588
- box-shadow: 0 0 0 1px #dc2626;
1589
- }
1590
-
1591
- .apirocket-form-select.invalid.touched .apirocket-form-select-placeholder { color: #dc2626; }
1592
- .apirocket-form-select.invalid.touched .apirocket-form-select-error-message { display: block; }
1593
-
1594
- .apirocket-modal *,
1595
- .apirocket-modal *::before,
1596
- .apirocket-modal *::after { box-sizing: border-box; }
1597
-
1598
- .apirocket-modal {
1599
- display: flex;
1600
- justify-content: center;
1601
- align-items: flex-start;
1602
- position: fixed;
1603
- z-index: 10001;
1604
- right: 0;
1605
- top: 0;
1606
- overflow: hidden;
1607
- overflow-y: auto;
1608
- width: 100%;
1609
- height: 100vh;
1610
- font-family: var(--cart-font-family, "Arial, Helvetica, sans-serif");
1611
- background-color: #f5f5f5;
1612
- }
1613
-
1614
- .apirocket-modal-nav {
1615
- position: absolute;
1616
- display: flex;
1617
- align-items: center;
1618
- width: 90%;
1619
- max-width: 1100px;
1620
- height: 96px;
1621
- }
1622
-
1623
- .apirocket-modal-nav-button {
1624
- display: flex;
1625
- align-items: center;
1626
- text-align: left;
1627
- color: #737373;
1628
- font-size: 16px;
1629
- font-weight: normal;
1630
- cursor: pointer;
1631
- }
1632
-
1633
- .apirocket-modal-nav-button svg { margin-right: 16px; }
1634
-
1635
- .apirocket-modal-content {
1636
- display: flex;
1637
- flex-flow: column;
1638
- width: 480px;
1639
- height: auto;
1640
- padding: 32px;
1641
- background-color: #fff;
1642
- margin-top: 96px;
1643
- margin-bottom: 32px;
1644
- }
1645
-
1646
- .apirocket-modal-header {
1647
- position: relative;
1648
- padding-bottom: 32px;
1649
- }
1650
-
1651
- .apirocket-modal-title {
1652
- font-size: 18px;
1653
- font-weight: bold;
1654
- line-height: 1;
1655
- color: #404040;
1656
- margin-bottom: 8px;
1657
- }
1658
-
1659
- .apirocket-modal-subtitle {
1660
- font-size: 14px;
1661
- font-weight: normal;
1662
- line-height: 16px;
1663
- color: #737373;
1664
- }
1665
-
1666
- .apirocket-modal-close {
1667
- position: absolute;
1668
- right: -16px;
1669
- top: -16px;
1670
- }
1671
-
1672
- .apirocket-modal-close-icon {
1673
- height: var(--cart-header-text-close-icon-size, 24px);
1674
- width: var(--cart-header-text-close-icon-size, 24px);
1675
- color: var(--cart-header-text-close-icon-color, #a3a3a3);
1676
- cursor: pointer;
1677
- }
1678
-
1679
- .apirocket-modal-body-text-password {
1680
- color: #404040;
1681
- font-size: 14px;
1682
- font-weight: normal;
1683
- line-height: 16px;
1684
- margin-top: -8px;text-align: right;
1685
- cursor: pointer;
1686
- }
1687
-
1688
- .apirocket-modal-body-text-password:hover { text-decoration: underline; }
1689
-
1690
- .apirocket-modal-footer-text {
1691
- color: #a3a3a3;
1692
- font-size: 14px;
1693
- font-weight: normal;
1694
- line-height: 16px;
1695
- text-align: center;
1696
- margin-top: 16px;
1697
- }
1698
-
1699
- .apirocket-modal-footer-text span {
1700
- color: #404040;
1701
- cursor: pointer;
1702
- }
1703
-
1704
- .apirocket-modal-footer-text span:hover { text-decoration: underline; }
1705
-
1706
-
1707
- .apirocket-modal-body {}
1708
-
1709
- .apirocket-modal-footer {
1710
- padding-top: 32px;
1743
+ background-color: #fff;
1711
1744
  }
1712
1745
 
1713
- .apirocket-modal-row {
1714
- display: flex;
1715
- justify-content: space-between;
1716
- align-items: flex-start;
1746
+ .apirocket-form-radio input:focus {
1747
+ border-color: #404040;
1748
+ box-shadow: 0 0 0 1px #404040;
1717
1749
  }
1718
1750
 
1719
- .apirocket-modal-row > * {
1720
- flex: 1 1;
1721
- margin-right: 16px;
1751
+ .apirocket-form-radio input:checked {
1752
+ background-color: #404040;
1753
+ border-color: #404040;
1722
1754
  }
1723
1755
 
1724
- .apirocket-modal-row > *:last-child { margin-right: 0; }
1725
-
1726
-
1727
- @media (max-width: 720px) {
1728
- .apirocket-modal-row { display: block; }
1729
- .apirocket-modal-row > * { margin-right: 0; }
1730
-
1731
- .apirocket-modal-nav { display: none; }
1732
-
1733
- .apirocket-modal-content {
1734
- width: 95%;
1735
- margin-top: 32px;
1736
- padding: 24px;
1737
- }
1738
-
1739
- .apirocket-modal-close {
1740
- right: -8px;
1741
- top: -8px;
1742
- }
1756
+ .apirocket-form-radio input::after {
1757
+ display: block;
1758
+ position: absolute;
1759
+ width: 20px;
1760
+ height: 20px;
1761
+ content: "";
1762
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23fff'/%3E%3C/svg%3E%0A");
1763
+ background-repeat: no-repeat;
1764
+ background-position: 6px 6px;
1765
+ transition: all 0.4s ease;
1766
+ transform: scale(0);
1743
1767
  }
1744
1768
 
1745
- .apirocket-modal-messaje {
1746
- margin-top: 32px;
1747
- margin-bottom: 32px;
1748
- text-align: center;
1769
+ .apirocket-form-radio input:checked::after {
1770
+ transform: scale(1);
1749
1771
  }
1750
1772
 
1751
- .apirocket-modal-message-icon {
1752
- display: inline-flex;
1753
- justify-content: center;
1754
- align-items: center;
1755
- width: 48px;
1756
- height: 48px;
1757
- border-radius: 24px;
1758
- margin: auto;
1759
- margin-bottom: 32px;
1773
+ .apirocket-form-radio-error-message {
1774
+ display: none;
1775
+ position: absolute;
1776
+ left: 32px;
1777
+ bottom: -16px;
1778
+ font-size: 14px;
1779
+ line-height: 1.2;
1780
+ color: #dc2626;
1760
1781
  }
1761
1782
 
1762
- .apirocket-modal-message-icon-ok {
1763
- background-color: #d1fae5;
1764
- color: #10b981;
1783
+ .apirocket-form-radio.invalid.touched input {
1784
+ border-color: #dc2626;
1785
+ box-shadow: 0 0 0 1px #dc2626;
1765
1786
  }
1766
1787
 
1767
- .apirocket-modal-message-title {
1768
- font-size: 18px;
1769
- font-weight: bold;
1770
- line-height: 1;
1771
- text-align: center;
1772
- color: #404040;
1773
- margin-bottom: 16px;
1788
+ .apirocket-form-radio.invalid.touched .apirocket-form-radio-error-message { display: block; }
1789
+
1790
+ .apirocket-form-select {
1791
+ display: block;
1792
+ position: relative;
1793
+ margin-bottom: 16px;
1774
1794
  }
1775
1795
 
1776
- .apirocket-modal-message-text {
1777
- color: #737373;
1796
+ .apirocket-form-select select {
1797
+ all: unset;
1798
+ appearance: none;
1799
+ -moz-appearance: none;
1800
+ -webkit-appearance: none;
1801
+ outline: none;
1802
+ width: 100%;
1803
+ height: 46px;
1804
+ border-radius: 4px;
1805
+ border: 1px solid #D9D9D9;
1778
1806
  font-size: 14px;
1779
- font-weight: normal;
1780
- text-align: center;
1781
1807
  line-height: 16px;
1782
- margin-bottom: 32px;
1783
- }
1784
- .apirocket-button,
1785
- button.apirocket-button {
1786
- box-sizing: border-box !important;
1787
- display: block;
1788
- width: 100%;
1789
- padding: var(--cart-button-padding-y, 16px) var(--cart-button-padding-x, 16px);
1790
- margin: 0px;
1791
- border-radius: var(--cart-button-border-radius, 4px);
1792
- background-color: var(--cart-button-background-color, transparent);
1793
- border: 1px solid var(--cart-button-border-color, #e5e5e5);
1794
- color: var(--cart-button-font-color, #737373);
1795
- line-height: 1;
1796
- font-size: var(--cart-button-font-size, 16px);
1797
- font-weight: var(--cart-button-font-weight, normal);
1798
- text-align: center;
1799
- transition-property: color, border-color, background-color, box-shadow;
1800
- transition-timing-function: ease;
1801
- transition-duration: 350ms;
1808
+ padding-left: 14px;
1809
+ padding-right: 50px;
1810
+ padding-top: 14px;
1811
+ padding-bottom: 14px;
1812
+ transition: all 0.3s ease;
1813
+ box-sizing: border-box;
1802
1814
  cursor: pointer;
1803
1815
  }
1804
1816
 
1805
- .apirocket-button:hover {
1806
- background-color: var(--cart-button-background-color-hover, transparent);
1807
- border-color: var(--cart-button-border-color-hover, #404040);
1808
- color: var(--cart-button-font-color-hover, #404040);
1817
+ .apirocket-form-select select:focus {
1818
+ border-color: #404040;
1819
+ box-shadow: 0 0 0 1px #404040;
1809
1820
  }
1810
1821
 
1811
- .apirocket-button:focus {
1812
- outline: none;
1813
- text-decoration: underline;
1822
+ .apirocket-form-select select:not(:placeholder-shown) {
1823
+ padding-top: 22px;
1824
+ padding-bottom: 6px;
1814
1825
  }
1815
- /*
1816
- .apirocket-button-loading {
1817
- position: relative;
1818
- } */
1819
1826
 
1820
- .apirocket-button-wraper {
1821
- position: relative;
1822
- display: inline-block;
1823
- width: 32px;
1824
- }
1827
+ .apirocket-form-select select:disabled { background-color: #f5f5f5; color: #404040; opacity: 0.8; }
1825
1828
 
1826
- .apirocket-button-spinner {
1829
+ .apirocket-form-select::before {
1830
+ display: block;
1827
1831
  position: absolute;
1828
- width: 22px;
1829
- height: 22px;
1830
- top: -11px;
1831
- left: 0;
1832
- right: 0;
1833
- bottom: 0;
1834
- margin: auto;
1835
- border: 4px solid currentColor;
1836
- border-top-color: transparent !important;
1837
- border-radius: 50%;
1838
- animation: button-loading-spinner 1s ease infinite;
1839
- }
1840
-
1841
- @keyframes button-loading-spinner {
1842
- from { transform: rotate(0turn) }
1843
- to { transform: rotate(1turn) }
1832
+ top: 8px;
1833
+ right: 0px;
1834
+ width: 40px;
1835
+ height: 30px;
1836
+ content: "";
1837
+ background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683416 -0.097631 1.31658 -0.097631 1.7071 0.292893L4.99999 3.58579L8.29288 0.292893C8.6834 -0.0976311 9.31657 -0.0976311 9.70709 0.292893C10.0976 0.683417 10.0976 1.31658 9.70709 1.70711L5.7071 5.70711C5.31657 6.09763 4.68341 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976309 1.31658 -0.0976309 0.683417 0.292893 0.292893Z' fill='%23A3A3A3'/%3E%3C/svg%3E%0A");
1838
+ background-repeat: no-repeat;
1839
+ background-position: center;
1840
+ border-left: 1px solid #d9d9d9;
1841
+ pointer-events: none;
1844
1842
  }
1845
1843
 
1846
- .apirocket-button-link,
1847
- button.apirocket-button-link {
1848
- display: flex;
1849
- align-items: center;
1850
- text-align: left;
1851
- justify-content: flex-start;
1852
- align-items: center;
1853
- border: none;
1854
- padding-left: 0;
1855
- padding-right: 0;
1856
- width: auto;
1844
+ .apirocket-form-select-placeholder {
1845
+ position: absolute;
1846
+ font-size: 12px;
1847
+ line-height: 1;
1848
+ color: #737373;
1849
+ transform: translateY(50%);
1850
+ opacity: 0;
1851
+ top: 8px;
1852
+ left: 15px;
1853
+ transition: all 0.3s ease;
1857
1854
  overflow: hidden;
1858
1855
  white-space: nowrap;
1859
1856
  text-overflow: ellipsis;
1860
1857
  }
1861
1858
 
1862
- .apirocket-button-link span {
1863
- margin-left: 16px;
1864
- margin-right: 16px;
1865
- }
1866
-
1867
- .apirocket-button-primary,
1868
- button.apirocket-button-primary {
1869
- background-color: var(--cart-button-primary-background-color, #1d4ed8);
1870
- border-color: var(--cart-button-primary-border-color, #1d4ed8);
1871
- color: var(--cart-button-primary-text-color, #fff);
1859
+ .apirocket-form-select select:not(:placeholder-shown) ~ span.apirocket-form-select-placeholder {
1860
+ opacity: 1;
1861
+ transform: translateY(0%);
1872
1862
  }
1873
1863
 
1874
- button.apirocket-button-primary:disabled {
1875
- background-color: #eee;
1876
- border-color: #eee;
1877
- color: #ccc;
1864
+ .apirocket-form-select .apirocket-form-select-error-message {
1865
+ display: none;
1866
+ font-size: 14px;
1867
+ line-height: 1.2;
1868
+ margin-top: 4px;
1869
+ margin-left: 8px;
1870
+ color: #dc2626;
1878
1871
  }
1879
1872
 
1880
- .apirocket-button-primary:hover {
1881
- background-color: var(--cart-button-primary-background-color-hover, #1d4ed8);
1882
- border-color: var(--cart-button-primary-border-color-hover, #1d4ed8);
1883
- color: var(--cart-button-primary-text-color-hover, #fff);
1884
- box-shadow: var(--cart-shadow-button-primary-hover, none);
1873
+ .apirocket-form-select.invalid.touched select {
1874
+ border-color: #dc2626;
1875
+ box-shadow: 0 0 0 1px #dc2626;
1885
1876
  }
1886
1877
 
1878
+ .apirocket-form-select.invalid.touched .apirocket-form-select-placeholder { color: #dc2626; }
1879
+ .apirocket-form-select.invalid.touched .apirocket-form-select-error-message { display: block; }
1887
1880
 
1888
- @media (max-width: 720px) {
1889
-
1890
- .apirocket-button-link {
1891
- width: 100%;
1892
- justify-content: center;
1893
- }
1894
-
1895
- }
1881
+ .apirocket-error-block {
1882
+ display: flex;
1883
+ justify-content: start;
1884
+ align-items: center;
1885
+ background-color: #fef2f2;
1886
+ padding: 16px;
1887
+ color: #dc2626;
1888
+ font-size: 14px;
1889
+ line-height: 18px;
1890
+ border-radius: 8px;
1891
+ margin-top: 16px;
1892
+ margin-bottom: 0px;
1893
+ }
1896
1894
 
1897
- .spinner.svelte-15qwtf3.svelte-15qwtf3{animation:svelte-15qwtf3-rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner.svelte-15qwtf3 .path.svelte-15qwtf3{stroke:rgb(161, 161, 170);stroke-linecap:round;animation:svelte-15qwtf3-dash 1.5s ease-in-out infinite}@keyframes svelte-15qwtf3-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-15qwtf3-dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}
1895
+ .apirocket-error-block-icon {
1896
+ margin-right: 12px;
1897
+ }.spinner.svelte-15qwtf3.svelte-15qwtf3{animation:svelte-15qwtf3-rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner.svelte-15qwtf3 .path.svelte-15qwtf3{stroke:rgb(161, 161, 170);stroke-linecap:round;animation:svelte-15qwtf3-dash 1.5s ease-in-out infinite}@keyframes svelte-15qwtf3-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-15qwtf3-dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}