-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
427 lines (357 loc) · 8.34 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
@import url("https://rsms.me/inter/inter.css");
:root {
--color-gray: #262627;
--color-lighter-gray: #e3e5ed;
--color-light-gray: #f7f7fa;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
html {
font-family: "Inter", sans-serif;
font-size: 14px;
box-sizing: border-box;
}
@supports (font-variation-settings: normal) {
html {
font-family: "Inter var", sans-serif;
}
}
body {
margin: 0;
}
h1 {
margin-bottom: 1rem;
}
p {
color: var(--color-gray);
}
hr {
height: 1px;
width: 100%;
background-color: var(--color-light-gray);
border: 0;
margin: 10px 0;
}
.container {
max-width: 50rem;
margin: 0 auto;
}
.form {
display: grid;
grid-gap: 1rem;
}
.field {
width: 100%;
display: flex;
flex-direction: column;
border: 2px solid var(--color-lighter-gray);
padding: .5rem;
border-radius: .25rem;
}
.field__label {
color: var(--color-gray);
font-size: 0.75rem;
font-weight: 300;
text-transform: uppercase;
margin-bottom: 0.25rem
}
.field__input {
padding: 0;
margin: 0;
border: 0;
outline: 0;
font-weight: bold;
font-size: 1rem;
width: 100%;
-webkit-appearance: none;
appearance: none;
background-color: transparent;
}
/* *************************************************** */
.containerxx {
max-width: 50rem;
margin: 0 auto;
}
.fieldxx {
width: 100%;
display: flex;
flex-direction: column;
border: 2px solid var(--color-lighter-gray);
padding: .5rem;
border-radius: .25rem;
}
.field__inputxx {
padding: 0;
margin: 0;
border: 0;
outline: 0;
font-weight: bold;
font-size: 1rem;
width: 100%;
-webkit-appearance: none;
appearance: none;
background-color: transparent;
}
.field__labelxx {
color: var(--color-gray);
font-size: 0.75rem;
font-weight: 300;
text-transform: uppercase;
margin-bottom: 0.25rem
}
/* ******************************************************* */
.field:focus-within {
border-color: #000;
}
.fields {
display: grid;
grid-gap: 1rem;
}
.fields--2 {
grid-template-columns: 1fr 1fr;
}
.fields--3 {
grid-template-columns: 1fr 1fr 1fr;
}
.button {
background-color: #000;
text-transform: uppercase;
font-size: 0.8rem;
font-weight: 600;
display: block;
color: #fff;
width: 100%;
padding: 1rem;
border-radius: 0.25rem;
border: 0;
cursor: pointer;
outline: 0;
}
.button:focus-visible {
background-color: #333;
}
/* Modal styles */
.open-modal-button {
background-color: #000;
color: #fff;
padding: 1rem;
border: none;
cursor: pointer;
font-size: 1rem;
margin: 2rem;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: #fefefe;
margin: 0 auto;
padding: 20px; /* Increased padding */
border: 1px solid #888;
max-width: 800px; /* Adjusted max-width */
border-radius: 10px;
position: fixed; /* Changed to fixed positioning */
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%); /* Center the modal */
width: 90%; /* Updated width for responsiveness */
width: 1000; /* Adjusted width */
height: 500px; /* Adjusted height */
overflow-y: auto; /* Add overflow-y for scrolling on small screens */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Status Indicator Styles */
.status-indicator {
float: right;
font-weight: bold;
margin-right: 20px;
margin-top: 20px;
color: var(--color-gray);
font-size: 1.2rem;
}
.status-indicator.green {
color: green;
}
/* Headings section */
.section-headings {
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
padding:12px;
background-color:#f0f0f0; /*grey*/
border-radius: 20px;
}
.heading {
flex: 1;
text-align: center;
font-size: 1rem;
font-weight: bold;
}
/* Payment Box Styles */
#payment-section-container .payment-box {
flex: 0 0 calc(50% - 20px); /* Take up 48% of the container's width with some margin */
padding: 20px; /* Reduced padding for a cleaner look */
margin: 10px 1%; /* Add some margin for spacing */
background-color: #333; /* Darker background color for better contrast */
color: white;
text-align: center;
border-radius: 8px;
cursor: pointer;
display: flex; /* Make the container flex */
align-items: center; /* Center align items vertically */
justify-content: center; /* Center align items horizontally */
transition: background-color 0.3s ease; /* Smooth background color transition */
}
#payment-section-container .payment-box:hover {
background-color: #444; /* Darken background color on hover */
}
#payment-section-container .payment-box span {
margin-right: 10px; /* Reduced spacing between text and image */
}
#payment-section-container .payment-section {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
#payment-section-container .payment-box img {
width: 60px;
height: 60px;
border-radius: 50%;
margin-left: auto; /* Align the image to the right */
background-color: white;
padding: 3px;
}
.btn {
position: absolute;
bottom: -73px; /* Adjust the distance from the bottom as needed */
left: 10%; /* Adjust left position if needed */
right: 10%; /* Adjust right position if needed */
background-color: #000;
text-transform: uppercase;
font-size: 0.8rem;
font-weight: 600;
color: #fff;
padding: 1rem;
border-radius: 25px;
border: 0;
cursor: pointer;
outline: 0;
width: 50%; /* Adjust button width from both sides */
margin: 0 auto; /* Center the button horizontally */
}
/* Media query for small screens (up to 600px) */
@media screen and (max-width: 400px) {
/* Adjust modal content */
/* .modal-content {
width: 100%;
height: 100%;
overflow-y: auto;
} */
/* Adjust headings */
.heading {
font-size: 0.7em;
}
/* Keep input box at full size */
.field__input {
width: 100wh;
height: 5px; /* Set a minimum height */
font-size: 12px; /* Adjust font size if needed */
padding: 10px; /* Add padding for better touch usability */
box-sizing: border-box; /* Include padding in the width calculation */
margin-left: -6px;
}
/* Adjust button width */
.button {
width: 80%;
}
.field__label {
color: var(--color-gray);
font-size: 0.6rem;
font-weight: 10;
text-transform: uppercase;
margin-bottom: 0.25rem;
}
.field__inputxx {
width: 100%; /* Set a smaller width */
height: 30px; /* Set a smaller height */
font-size: 14px !important; /* Adjust font size and use !important to override inline styles */
padding: 2px; /* Adjust padding */
box-sizing: border-box; /* Include padding in the width calculation */
padding-left: -20px;
}
.field__labelxx {
color: var(--color-gray);
font-size: 0.5rem;
font-weight: 100;
text-transform: uppercase;
margin-bottom: 0.25rem
}
.fieldxx {
width: 100vw;
display: flex;
flex-direction: column;
border: 2px solid var(--color-lighter-gray);
padding: .5rem;
border-radius: .25rem;
}
.modal-content {
/* Other styles */
overflow: hidden; /* Prevent scrolling for the entire modal */
}
#address-section {
overflow-y: auto; /* Enable scrolling only for the address section */
max-height: 100vh; /* Adjust the maximum height as needed */
}
.container {
max-width: 60rem;
margin: 0 auto;
}
#payment-section-container .payment-section {
flex-direction: column; /* Stack payment boxes vertically */
align-items: center; /* Center align items horizontally */
}
#payment-section-container .payment-box {
width: 100%; /* Full width for small screens */
height: auto; /* Auto height for small screens */
margin-bottom: 10px; /* Space between stacked items */
justify-content: flex-start; /* Keep image and text aligned to the left */
}
#payment-section-container .payment-box img {
margin-left: -70; /* Remove left margin */
margin-right: 10px; /* Space between image and text */
}
#payment-section-container .payment-box span {
margin-left: 0; /* Remove left margin */
}
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px 0; /* Adjust padding as needed */
}