1 | .checkoutContainer {
|
---|
2 | max-width: 1050px;
|
---|
3 | margin: 5em auto;
|
---|
4 | padding: 2em;
|
---|
5 | background-color: #f9f9f9;
|
---|
6 | border-radius: 24px;
|
---|
7 | box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
|
---|
8 | animation: fadeIn 0.5s ease-in-out;
|
---|
9 | position: relative;
|
---|
10 | }
|
---|
11 |
|
---|
12 | @keyframes fadeIn {
|
---|
13 | from {
|
---|
14 | opacity: 0;
|
---|
15 | transform: translateY(20px);
|
---|
16 | }
|
---|
17 | to {
|
---|
18 | opacity: 1;
|
---|
19 | transform: translateY(0);
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
23 | .checkoutCard {
|
---|
24 | position: relative;
|
---|
25 | text-align: center;
|
---|
26 | }
|
---|
27 |
|
---|
28 | .checkoutCard h2 {
|
---|
29 | font-size: 2.4em;
|
---|
30 | color: #444;
|
---|
31 | margin-bottom: 1em;
|
---|
32 | position: relative;
|
---|
33 | padding-bottom: 10px;
|
---|
34 | }
|
---|
35 |
|
---|
36 | .checkoutCard h2::after {
|
---|
37 | content: '';
|
---|
38 | position: absolute;
|
---|
39 | left: 50%;
|
---|
40 | bottom: 0;
|
---|
41 | transform: translateX(-50%);
|
---|
42 | width: 70px;
|
---|
43 | height: 4px;
|
---|
44 | background-color: #FFA550;
|
---|
45 | transition: width 0.3s ease;
|
---|
46 | }
|
---|
47 |
|
---|
48 | .checkoutCard h2:hover::after {
|
---|
49 | width: 100px;
|
---|
50 | }
|
---|
51 |
|
---|
52 | .inputField {
|
---|
53 | margin-bottom: 20px;
|
---|
54 | width: 100%;
|
---|
55 | text-align: left;
|
---|
56 | }
|
---|
57 |
|
---|
58 | .inputField label {
|
---|
59 | display: block;
|
---|
60 | font-size: 1.1em;
|
---|
61 | color: #333;
|
---|
62 | margin-bottom: 0.5em;
|
---|
63 | }
|
---|
64 |
|
---|
65 | .inputField input {
|
---|
66 | width: 100%;
|
---|
67 | padding: 10px;
|
---|
68 | border-radius: 8px;
|
---|
69 | border: 1px solid #ddd;
|
---|
70 | font-size: 1.1em;
|
---|
71 | color: #333;
|
---|
72 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
---|
73 | }
|
---|
74 |
|
---|
75 | .ingredientsList {
|
---|
76 | list-style-type: none;
|
---|
77 | padding: 0;
|
---|
78 | margin-top: 20px;
|
---|
79 | }
|
---|
80 | .ingredientItem {
|
---|
81 | display: flex;
|
---|
82 | align-items: center;
|
---|
83 | justify-content: space-between;
|
---|
84 | background-color: #ffffff;
|
---|
85 | padding: 15px;
|
---|
86 | margin-bottom: 15px;
|
---|
87 | border-radius: 10px;
|
---|
88 | border: 1px solid #ddd;
|
---|
89 | box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
|
---|
90 | transition: transform 0.3s ease, box-shadow 0.3s ease;
|
---|
91 | }
|
---|
92 |
|
---|
93 | .ingredientItem:hover {
|
---|
94 | transform: translateY(-5px);
|
---|
95 | box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
|
---|
96 | }
|
---|
97 |
|
---|
98 | .cartItemIcon {
|
---|
99 | color: #FFA550;
|
---|
100 | margin-right: 1em;
|
---|
101 | font-size: 1.5em;
|
---|
102 | }
|
---|
103 |
|
---|
104 | .itemDetails {
|
---|
105 | display: flex;
|
---|
106 | flex-direction: row;
|
---|
107 | justify-content: space-between;
|
---|
108 | width: 100%;
|
---|
109 | }
|
---|
110 |
|
---|
111 | .ingredientItemTitle {
|
---|
112 | font-weight: bold;
|
---|
113 | color: #333;
|
---|
114 | margin-right: 20px;
|
---|
115 | white-space: nowrap;
|
---|
116 | }
|
---|
117 |
|
---|
118 | .ingredientItem p {
|
---|
119 | margin: 0;
|
---|
120 | color: #333;
|
---|
121 | font-size: 1em;
|
---|
122 | white-space: nowrap;
|
---|
123 | }
|
---|
124 |
|
---|
125 | .ingredientQuantity {
|
---|
126 | margin-left: auto;
|
---|
127 | font-size: 1em;
|
---|
128 | color: #666;
|
---|
129 | text-align: right;
|
---|
130 | min-width: 150px;
|
---|
131 | }
|
---|
132 |
|
---|
133 |
|
---|
134 |
|
---|
135 | .proceedButton {
|
---|
136 | display: inline-block;
|
---|
137 | padding: 0.8em 1.5em;
|
---|
138 | background-color: #FFA550;
|
---|
139 | color: #444;
|
---|
140 | border: none;
|
---|
141 | border-radius: 14px;
|
---|
142 | font-size: 1.3em;
|
---|
143 | font-weight: bold;
|
---|
144 | cursor: pointer;
|
---|
145 | transition: all 0.3s ease;
|
---|
146 | box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
|
---|
147 | text-align: center;
|
---|
148 | margin-top: 2.5em;
|
---|
149 | width: 100%;
|
---|
150 | max-width: 350px;
|
---|
151 | }
|
---|
152 |
|
---|
153 | .proceedButton:hover {
|
---|
154 | background-color: #FF8C00;
|
---|
155 | box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
---|
156 | }
|
---|
157 |
|
---|
158 | .disabledButton {
|
---|
159 | display: inline-block;
|
---|
160 | padding: 0.8em 1.5em;
|
---|
161 | background-color: #ddd;
|
---|
162 | color: #999;
|
---|
163 | border: none;
|
---|
164 | border-radius: 14px;
|
---|
165 | font-size: 1.3em;
|
---|
166 | font-weight: bold;
|
---|
167 | cursor: not-allowed;
|
---|
168 | box-shadow: none;
|
---|
169 | text-align: center;
|
---|
170 | margin-top: 2.5em;
|
---|
171 | width: 100%;
|
---|
172 | max-width: 350px;
|
---|
173 | }
|
---|
174 |
|
---|
175 | .backArrow {
|
---|
176 | position: absolute;
|
---|
177 | top: 0px;
|
---|
178 | left: 10px;
|
---|
179 | font-size: 2em;
|
---|
180 | color: #333;
|
---|
181 | cursor: pointer;
|
---|
182 | transition: all 0.3s ease;
|
---|
183 | }
|
---|
184 |
|
---|
185 | .backArrow:hover {
|
---|
186 | color: #FFA550;
|
---|
187 | transform: translateX(-5px);
|
---|
188 | }
|
---|
189 |
|
---|
190 |
|
---|
191 | .modal {
|
---|
192 | position: fixed;
|
---|
193 | z-index: 9999;
|
---|
194 | left: 0;
|
---|
195 | top: 0;
|
---|
196 | width: 100%;
|
---|
197 | height: 100%;
|
---|
198 | background-color: rgba(0, 0, 0, 0.5);
|
---|
199 | display: flex;
|
---|
200 | justify-content: center;
|
---|
201 | align-items: center;
|
---|
202 | }
|
---|
203 |
|
---|
204 | .modalContent {
|
---|
205 | background-color: white;
|
---|
206 | padding: 20px;
|
---|
207 | border-radius: 10px;
|
---|
208 | text-align: center;
|
---|
209 | position: relative;
|
---|
210 | }
|
---|
211 | .closeButton {
|
---|
212 | position: absolute;
|
---|
213 | top: 10px;
|
---|
214 | right: 10px;
|
---|
215 | background: transparent;
|
---|
216 | border: none;
|
---|
217 | font-size: 24px;
|
---|
218 | cursor: pointer;
|
---|
219 | }
|
---|
220 | .spinner {
|
---|
221 | margin: 20px auto;
|
---|
222 | width: 50px;
|
---|
223 | height: 50px;
|
---|
224 | border: 5px solid rgba(0, 0, 0, 0.1);
|
---|
225 | border-radius: 50%;
|
---|
226 | border-top-color: #FFA550;
|
---|
227 | animation: spin 1s linear infinite;
|
---|
228 | }
|
---|
229 |
|
---|
230 | @keyframes spin {
|
---|
231 | to {
|
---|
232 | transform: rotate(360deg);
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | button:disabled {
|
---|
237 | background-color: #ccc;
|
---|
238 | cursor: not-allowed;
|
---|
239 | }
|
---|
240 | .ratingModal {
|
---|
241 | position: fixed;
|
---|
242 | z-index: 10000;
|
---|
243 | left: 0;
|
---|
244 | top: 0;
|
---|
245 | width: 100%;
|
---|
246 | height: 100%;
|
---|
247 | background-color: rgba(0, 0, 0, 0.7);
|
---|
248 | display: flex;
|
---|
249 | justify-content: center;
|
---|
250 | align-items: center;
|
---|
251 | animation: fadeInModal 0.3s ease-in-out;
|
---|
252 | }
|
---|
253 |
|
---|
254 | @keyframes fadeInModal {
|
---|
255 | from {
|
---|
256 | opacity: 0;
|
---|
257 | }
|
---|
258 | to {
|
---|
259 | opacity: 1;
|
---|
260 | }
|
---|
261 | }
|
---|
262 |
|
---|
263 | .ratingModalContent {
|
---|
264 | background-color: #f0f0f0;
|
---|
265 | padding: 40px;
|
---|
266 | border-radius: 20px;
|
---|
267 | text-align: center;
|
---|
268 | max-width: 450px;
|
---|
269 | width: 90%;
|
---|
270 | box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
---|
271 | animation: scaleInModal 0.4s ease-in-out;
|
---|
272 | }
|
---|
273 |
|
---|
274 | @keyframes scaleInModal {
|
---|
275 | from {
|
---|
276 | transform: scale(0.9);
|
---|
277 | opacity: 0;
|
---|
278 | }
|
---|
279 | to {
|
---|
280 | transform: scale(1);
|
---|
281 | opacity: 1;
|
---|
282 | }
|
---|
283 | }
|
---|
284 |
|
---|
285 | .ratingModalContent h3 {
|
---|
286 | font-size: 1.8em;
|
---|
287 | margin-bottom: 1em;
|
---|
288 | color: #333;
|
---|
289 | }
|
---|
290 |
|
---|
291 | .ratingModalContent p {
|
---|
292 | font-size: 1.1em;
|
---|
293 | color: #555;
|
---|
294 | margin-bottom: 2em;
|
---|
295 | }
|
---|
296 |
|
---|
297 | .ratingButtonGroup {
|
---|
298 | display: flex;
|
---|
299 | justify-content: space-between;
|
---|
300 | gap: 20px;
|
---|
301 | }
|
---|
302 |
|
---|
303 | .ratingProceedButton {
|
---|
304 | padding: 0.6em 1.2em;
|
---|
305 | background-color: #5cb85c;
|
---|
306 | color: #fff;
|
---|
307 | border: none;
|
---|
308 | border-radius: 10px;
|
---|
309 | font-size: 1.1em;
|
---|
310 | cursor: pointer;
|
---|
311 | transition: background-color 0.3s ease;
|
---|
312 | width: 100%;
|
---|
313 | }
|
---|
314 |
|
---|
315 | .ratingProceedButton:hover {
|
---|
316 | background-color: #4cae4c;
|
---|
317 | }
|
---|
318 |
|
---|
319 | .ratingCloseButton {
|
---|
320 | padding: 0.6em 1.2em;
|
---|
321 | background-color: #d9534f;
|
---|
322 | color: #fff;
|
---|
323 | border: none;
|
---|
324 | border-radius: 10px;
|
---|
325 | font-size: 1.1em;
|
---|
326 | cursor: pointer;
|
---|
327 | transition: background-color 0.3s ease;
|
---|
328 | width: 100%;
|
---|
329 | }
|
---|
330 |
|
---|
331 | .ratingCloseButton:hover {
|
---|
332 | background-color: #c9302c;
|
---|
333 | }
|
---|
334 |
|
---|
335 | .closeRatingModal {
|
---|
336 | position: absolute;
|
---|
337 | top: 15px;
|
---|
338 | right: 15px;
|
---|
339 | background: transparent;
|
---|
340 | border: none;
|
---|
341 | font-size: 24px;
|
---|
342 | cursor: pointer;
|
---|
343 | color: #888;
|
---|
344 | }
|
---|
345 |
|
---|
346 | .closeRatingModal:hover {
|
---|
347 | color: #555;
|
---|
348 | }
|
---|
349 |
|
---|
350 | @media (max-width: 768px) {
|
---|
351 | .ratingModalContent {
|
---|
352 | padding: 20px;
|
---|
353 | max-width: 90%;
|
---|
354 | }
|
---|
355 |
|
---|
356 | .ratingProceedButton, .ratingCloseButton {
|
---|
357 | font-size: 1em;
|
---|
358 | padding: 0.5em 1em;
|
---|
359 | }
|
---|
360 | }
|
---|
361 |
|
---|
362 | .ratingModal {
|
---|
363 | position: fixed;
|
---|
364 | z-index: 10000;
|
---|
365 | left: 0;
|
---|
366 | top: 0;
|
---|
367 | width: 100%;
|
---|
368 | height: 100%;
|
---|
369 | background-color: rgba(0, 0, 0, 0.5);
|
---|
370 | display: flex;
|
---|
371 | justify-content: center;
|
---|
372 | align-items: center;
|
---|
373 | animation: fadeInRatingModal 0.3s ease-in-out;
|
---|
374 | }
|
---|
375 |
|
---|
376 | @keyframes fadeInRatingModal {
|
---|
377 | from {
|
---|
378 | opacity: 0;
|
---|
379 | }
|
---|
380 | to {
|
---|
381 | opacity: 1;
|
---|
382 | }
|
---|
383 | }
|
---|
384 |
|
---|
385 | .ratingModalContent {
|
---|
386 | background-color: white;
|
---|
387 | padding: 25px;
|
---|
388 | border-radius: 15px;
|
---|
389 | text-align: center;
|
---|
390 | position: relative;
|
---|
391 | box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
|
---|
392 | max-width: 400px;
|
---|
393 | width: 90%;
|
---|
394 | animation: slideInRatingModal 0.4s ease-in-out;
|
---|
395 | }
|
---|
396 |
|
---|
397 | @keyframes slideInRatingModal {
|
---|
398 | from {
|
---|
399 | transform: translateY(-10px);
|
---|
400 | opacity: 0;
|
---|
401 | }
|
---|
402 | to {
|
---|
403 | transform: translateY(0);
|
---|
404 | opacity: 1;
|
---|
405 | }
|
---|
406 | }
|
---|
407 |
|
---|
408 | .ratingModalContent h3 {
|
---|
409 | font-size: 1.6em;
|
---|
410 | margin-bottom: 1em;
|
---|
411 | color: #444;
|
---|
412 | }
|
---|
413 |
|
---|
414 | .ratingModalContent p {
|
---|
415 | font-size: 1.1em;
|
---|
416 | color: #666;
|
---|
417 | margin-bottom: 1.5em;
|
---|
418 | }
|
---|
419 |
|
---|
420 | .ratingButtonGroup {
|
---|
421 | display: flex;
|
---|
422 | justify-content: center;
|
---|
423 | gap: 15px;
|
---|
424 | }
|
---|
425 |
|
---|
426 | .ratingProceedButton {
|
---|
427 | padding: 0.6em 1.5em;
|
---|
428 | background-color: #FFA550;
|
---|
429 | color: #444;
|
---|
430 | border: none;
|
---|
431 | border-radius: 14px;
|
---|
432 | font-size: 1em;
|
---|
433 | font-weight: bold;
|
---|
434 | cursor: pointer;
|
---|
435 | transition: all 0.3s ease;
|
---|
436 | box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
|
---|
437 | width: 200px;
|
---|
438 | height: 50px;
|
---|
439 | }
|
---|
440 |
|
---|
441 | .ratingProceedButton:hover {
|
---|
442 | background-color: #FF8C00;
|
---|
443 | }
|
---|
444 |
|
---|
445 | .ratingCloseButton {
|
---|
446 | background-color: #ddd;
|
---|
447 | color: #444;
|
---|
448 | border: none;
|
---|
449 | border-radius: 14px;
|
---|
450 | font-size: 1em;
|
---|
451 | font-weight: bold;
|
---|
452 | cursor: pointer;
|
---|
453 | transition: all 0.3s ease;
|
---|
454 | width: 200px;
|
---|
455 | height: 50px;
|
---|
456 | }
|
---|
457 |
|
---|
458 | .ratingCloseButton:hover {
|
---|
459 | background-color: #ccc;
|
---|
460 | }
|
---|
461 |
|
---|
462 | .ratingCloseIcon {
|
---|
463 | position: absolute;
|
---|
464 | top: 10px;
|
---|
465 | right: 10px;
|
---|
466 | background: transparent;
|
---|
467 | border: none;
|
---|
468 | font-size: 24px;
|
---|
469 | cursor: pointer;
|
---|
470 | color: #888;
|
---|
471 | }
|
---|
472 |
|
---|
473 | .ratingCloseIcon:hover {
|
---|
474 | color: #555;
|
---|
475 | }
|
---|
476 |
|
---|
477 | @media (max-width: 768px) {
|
---|
478 | .checkoutContainer {
|
---|
479 | padding: 2em;
|
---|
480 | max-width: 100%;
|
---|
481 | }
|
---|
482 |
|
---|
483 | .inputField input {
|
---|
484 | font-size: 1em;
|
---|
485 | }
|
---|
486 |
|
---|
487 | .proceedButton {
|
---|
488 | width: 100%;
|
---|
489 | padding: 1em;
|
---|
490 | }
|
---|
491 | .ratingModalContent {
|
---|
492 | padding: 20px;
|
---|
493 | max-width: 90%;
|
---|
494 | }
|
---|
495 |
|
---|
496 | .ratingProceedButton, .ratingCloseButton {
|
---|
497 | font-size: 1em;
|
---|
498 | padding: 0.5em 1.2em;
|
---|
499 | }
|
---|
500 | }
|
---|