Spaces:
Running
Running
Update static/styles.css
Browse files- static/styles.css +280 -133
static/styles.css
CHANGED
@@ -2,11 +2,8 @@ body {
|
|
2 |
font-family: Arial, sans-serif;
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
-
display: flex;
|
6 |
-
justify-content: center;
|
7 |
-
align-items: center;
|
8 |
-
min-height: 100vh;
|
9 |
background-color: #f0f2f5;
|
|
|
10 |
}
|
11 |
|
12 |
.chat-container {
|
@@ -15,127 +12,125 @@ body {
|
|
15 |
height: 100vh;
|
16 |
border: 1px solid #ccc;
|
17 |
border-radius: 0;
|
18 |
-
overflow: hidden;
|
19 |
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
20 |
background-color: white;
|
21 |
display: flex;
|
22 |
flex-direction: column;
|
23 |
-
|
24 |
}
|
25 |
|
26 |
.chat-header {
|
27 |
background-color: #0288d1;
|
28 |
color: white;
|
29 |
-
padding:
|
30 |
text-align: center;
|
31 |
-
font-size:
|
32 |
flex-shrink: 0;
|
33 |
}
|
34 |
|
35 |
.chat-messages {
|
36 |
flex: 1;
|
37 |
overflow-y: auto;
|
38 |
-
padding:
|
39 |
box-sizing: border-box;
|
|
|
40 |
}
|
41 |
|
42 |
.bot-message {
|
43 |
background-color: #e3f2fd;
|
44 |
-
padding:
|
45 |
-
margin:
|
46 |
border-radius: 5px;
|
47 |
-
max-width:
|
48 |
word-wrap: break-word;
|
49 |
-
font-size:
|
50 |
}
|
51 |
|
52 |
.user-message {
|
53 |
background-color: #ffebee;
|
54 |
-
padding:
|
55 |
-
margin:
|
56 |
border-radius: 5px;
|
57 |
-
max-width:
|
58 |
margin-left: auto;
|
59 |
text-align: right;
|
60 |
word-wrap: break-word;
|
61 |
-
font-size:
|
62 |
}
|
63 |
|
64 |
.chat-input {
|
65 |
display: flex;
|
66 |
-
padding:
|
67 |
border-top: 1px solid #ccc;
|
68 |
flex-shrink: 0;
|
69 |
-
position:
|
70 |
bottom: 0;
|
|
|
71 |
background-color: white;
|
|
|
72 |
}
|
73 |
|
74 |
.chat-input input {
|
75 |
flex: 1;
|
76 |
-
padding:
|
77 |
border: 1px solid #ccc;
|
78 |
border-radius: 5px;
|
|
|
|
|
79 |
box-sizing: border-box;
|
80 |
-
font-size: 14px;
|
81 |
-
min-height: 40px;
|
82 |
-
resize: none;
|
83 |
-
overflow-y: hidden;
|
84 |
}
|
85 |
|
86 |
.chat-input button {
|
87 |
-
padding:
|
88 |
-
margin-left:
|
89 |
background-color: #ff8f00;
|
90 |
color: white;
|
91 |
border: none;
|
92 |
border-radius: 5px;
|
93 |
cursor: pointer;
|
94 |
-
|
95 |
-
|
96 |
-
min-
|
97 |
}
|
98 |
|
99 |
-
.chat-input button:
|
100 |
background-color: #f57c00;
|
101 |
}
|
102 |
|
103 |
.ingredients-list {
|
104 |
-
max-height:
|
105 |
-
overflow-x: auto;
|
106 |
overflow-y: auto;
|
107 |
-
padding:
|
108 |
-
margin:
|
109 |
background-color: #f9f9f9;
|
110 |
border-radius: 5px;
|
111 |
display: flex;
|
112 |
flex-wrap: wrap;
|
113 |
-
gap:
|
|
|
114 |
}
|
115 |
|
116 |
.ingredient-item {
|
117 |
display: flex;
|
118 |
flex-direction: column;
|
119 |
align-items: flex-start;
|
120 |
-
width:
|
121 |
background-color: white;
|
122 |
border: 1px solid #ddd;
|
123 |
-
border-radius:
|
124 |
-
padding:
|
125 |
-
box-shadow: 0
|
126 |
-
transition: transform 0.2s;
|
127 |
}
|
128 |
|
129 |
-
.ingredient-item:
|
130 |
-
transform:
|
131 |
}
|
132 |
|
133 |
.ingredient-image {
|
134 |
width: 100%;
|
135 |
-
height:
|
136 |
object-fit: cover;
|
137 |
border-radius: 5px;
|
138 |
-
margin-bottom:
|
139 |
}
|
140 |
|
141 |
.ingredient-content {
|
@@ -143,15 +138,15 @@ body {
|
|
143 |
}
|
144 |
|
145 |
.ingredient-name {
|
146 |
-
font-size:
|
147 |
font-weight: bold;
|
148 |
color: #333;
|
149 |
-
margin-bottom:
|
150 |
}
|
151 |
|
152 |
.menu-item-field {
|
153 |
-
font-size:
|
154 |
-
margin:
|
155 |
color: #555;
|
156 |
}
|
157 |
|
@@ -160,131 +155,134 @@ body {
|
|
160 |
}
|
161 |
|
162 |
.show-desc-button {
|
163 |
-
padding:
|
164 |
-
margin-top:
|
165 |
background-color: #4caf50;
|
166 |
color: white;
|
167 |
border: none;
|
168 |
border-radius: 5px;
|
169 |
cursor: pointer;
|
170 |
-
font-size:
|
171 |
width: 100%;
|
172 |
-
transition: background-color 0.3s;
|
173 |
}
|
174 |
|
175 |
-
.show-desc-button:
|
176 |
background-color: #45a049;
|
177 |
}
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
.option-button {
|
180 |
-
|
181 |
-
|
182 |
-
margin: 5px;
|
183 |
background-color: #7b1fa2;
|
184 |
color: white;
|
185 |
border: none;
|
186 |
border-radius: 5px;
|
187 |
cursor: pointer;
|
188 |
-
|
189 |
-
|
190 |
}
|
191 |
|
192 |
.option-button.green { background-color: #4caf50; }
|
193 |
.option-button.red { background-color: #d32f2f; }
|
194 |
.option-button.gray { background-color: #616161; }
|
195 |
-
.option-button:
|
196 |
|
197 |
.selection-box {
|
198 |
background-color: #e1f5fe;
|
199 |
-
padding:
|
200 |
border: 1px solid #0288d1;
|
201 |
border-radius: 5px;
|
202 |
-
margin:
|
203 |
-
font-size:
|
204 |
display: flex;
|
205 |
flex-wrap: wrap;
|
206 |
align-items: center;
|
207 |
-
gap:
|
208 |
}
|
209 |
|
210 |
.selection-box span {
|
211 |
background-color: #bbdefb;
|
212 |
-
padding:
|
213 |
border-radius: 5px;
|
214 |
-
|
215 |
}
|
216 |
|
217 |
.selected-item {
|
218 |
display: flex;
|
219 |
align-items: center;
|
220 |
background-color: #bbdefb;
|
221 |
-
padding:
|
222 |
border-radius: 5px;
|
223 |
-
|
224 |
}
|
225 |
|
226 |
.selected-item-image {
|
227 |
-
width:
|
228 |
-
height:
|
229 |
object-fit: cover;
|
230 |
border-radius: 5px;
|
231 |
margin-right: 5px;
|
232 |
}
|
233 |
|
234 |
.submit-button {
|
235 |
-
padding:
|
236 |
background-color: #0288d1;
|
237 |
color: white;
|
238 |
border: none;
|
239 |
border-radius: 5px;
|
240 |
cursor: pointer;
|
241 |
-
font-size:
|
|
|
242 |
}
|
243 |
|
244 |
-
.submit-button:
|
245 |
background-color: #0277bd;
|
246 |
}
|
247 |
|
248 |
.remove-button {
|
249 |
-
padding:
|
250 |
margin-left: 5px;
|
251 |
background-color: #d32f2f;
|
252 |
color: white;
|
253 |
border: none;
|
254 |
border-radius: 5px;
|
255 |
cursor: pointer;
|
256 |
-
font-size:
|
257 |
}
|
258 |
|
259 |
-
.remove-button:
|
260 |
background-color: #b71c1c;
|
261 |
}
|
262 |
|
263 |
.manual-input {
|
264 |
-
padding:
|
265 |
border: 1px solid #0288d1;
|
266 |
border-radius: 5px;
|
267 |
-
font-size:
|
268 |
-
width:
|
269 |
-
margin-left: 10px;
|
270 |
}
|
271 |
|
272 |
.quantity-input {
|
273 |
-
padding:
|
274 |
border: 1px solid #0288d1;
|
275 |
border-radius: 5px;
|
276 |
-
font-size:
|
277 |
-
width:
|
278 |
-
margin-left: 10px;
|
279 |
}
|
280 |
|
281 |
.order-name-input {
|
282 |
-
padding:
|
283 |
border: 1px solid #0288d1;
|
284 |
border-radius: 5px;
|
285 |
-
font-size:
|
286 |
-
width:
|
287 |
-
margin-left: 10px;
|
288 |
}
|
289 |
|
290 |
.description-popup {
|
@@ -301,141 +299,290 @@ body {
|
|
301 |
}
|
302 |
|
303 |
.popup-content {
|
304 |
-
background-color:
|
305 |
-
padding:
|
306 |
-
border-radius:
|
307 |
max-width: 90%;
|
308 |
-
max-height:
|
309 |
overflow-y: auto;
|
310 |
text-align: center;
|
311 |
-
box-shadow: 0
|
312 |
}
|
313 |
|
314 |
.popup-image {
|
315 |
-
width:
|
316 |
-
height:
|
317 |
object-fit: cover;
|
318 |
border-radius: 5px;
|
319 |
-
margin-bottom:
|
320 |
}
|
321 |
|
322 |
-
.popup-content
|
323 |
-
font-size:
|
324 |
margin: 5px 0;
|
325 |
}
|
326 |
|
|
|
|
|
|
|
|
|
|
|
327 |
.button-container {
|
328 |
display: flex;
|
329 |
justify-content: center;
|
330 |
-
gap:
|
331 |
-
margin-top:
|
332 |
}
|
333 |
|
334 |
.popup-add-button {
|
335 |
-
padding:
|
336 |
background-color: #4caf50;
|
337 |
color: white;
|
338 |
border: none;
|
339 |
border-radius: 5px;
|
340 |
cursor: pointer;
|
|
|
341 |
}
|
342 |
|
343 |
-
.popup-add-button:
|
344 |
background-color: #45a049;
|
345 |
}
|
346 |
|
347 |
.popup-close-button {
|
348 |
-
padding:
|
349 |
background-color: #d32f2f;
|
350 |
color: white;
|
351 |
border: none;
|
352 |
border-radius: 5px;
|
353 |
cursor: pointer;
|
|
|
354 |
}
|
355 |
|
356 |
-
.popup-close-button:
|
357 |
background-color: #b71c1c;
|
358 |
}
|
359 |
|
360 |
.dietary-button {
|
361 |
-
padding:
|
362 |
-
margin-right: 5px;
|
363 |
border: none;
|
364 |
border-radius: 5px;
|
365 |
cursor: pointer;
|
366 |
-
font-size:
|
367 |
color: white;
|
|
|
368 |
}
|
369 |
|
370 |
.dietary-button.green { background-color: #4caf50; }
|
371 |
.dietary-button.red { background-color: #d32f2f; }
|
372 |
.dietary-button.gray { background-color: #616161; }
|
373 |
-
.dietary-button:
|
374 |
|
375 |
-
@media (max-width:
|
376 |
-
.chat-container {
|
377 |
-
height: 100vh;
|
378 |
-
margin: 0;
|
379 |
-
}
|
380 |
.chat-header {
|
381 |
-
font-size:
|
|
|
382 |
}
|
383 |
.chat-messages {
|
384 |
-
padding:
|
385 |
}
|
386 |
-
.
|
|
|
387 |
padding: 6px;
|
388 |
-
|
389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
}
|
391 |
.ingredients-list {
|
392 |
-
max-height:
|
|
|
|
|
393 |
}
|
394 |
.ingredient-item {
|
395 |
-
width:
|
396 |
}
|
397 |
.ingredient-image {
|
398 |
-
height:
|
399 |
}
|
400 |
.ingredient-name {
|
401 |
-
font-size:
|
402 |
}
|
403 |
.menu-item-field {
|
404 |
-
font-size:
|
405 |
}
|
406 |
.show-desc-button {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
font-size: 10px;
|
408 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
}
|
410 |
.popup-content {
|
411 |
-
|
412 |
-
|
413 |
}
|
414 |
.popup-image {
|
415 |
-
width:
|
416 |
-
height:
|
|
|
|
|
|
|
417 |
}
|
418 |
.popup-content p {
|
419 |
-
font-size:
|
420 |
}
|
421 |
.popup-add-button, .popup-close-button {
|
422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
font-size: 10px;
|
|
|
|
|
|
|
|
|
|
|
424 |
}
|
425 |
.selection-box {
|
|
|
426 |
gap: 5px;
|
427 |
}
|
|
|
|
|
|
|
428 |
.selected-item {
|
429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
}
|
431 |
.remove-button {
|
432 |
-
padding: 3px 8px;
|
433 |
font-size: 10px;
|
|
|
434 |
}
|
435 |
.manual-input, .order-name-input {
|
436 |
-
width:
|
|
|
437 |
}
|
438 |
.quantity-input {
|
439 |
width: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
}
|
441 |
}
|
|
|
2 |
font-family: Arial, sans-serif;
|
3 |
margin: 0;
|
4 |
padding: 0;
|
|
|
|
|
|
|
|
|
5 |
background-color: #f0f2f5;
|
6 |
+
overflow-x: hidden;
|
7 |
}
|
8 |
|
9 |
.chat-container {
|
|
|
12 |
height: 100vh;
|
13 |
border: 1px solid #ccc;
|
14 |
border-radius: 0;
|
|
|
|
|
15 |
background-color: white;
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
+
box-sizing: border-box;
|
19 |
}
|
20 |
|
21 |
.chat-header {
|
22 |
background-color: #0288d1;
|
23 |
color: white;
|
24 |
+
padding: 8px;
|
25 |
text-align: center;
|
26 |
+
font-size: 16px;
|
27 |
flex-shrink: 0;
|
28 |
}
|
29 |
|
30 |
.chat-messages {
|
31 |
flex: 1;
|
32 |
overflow-y: auto;
|
33 |
+
padding: 5px;
|
34 |
box-sizing: border-box;
|
35 |
+
scroll-behavior: smooth;
|
36 |
}
|
37 |
|
38 |
.bot-message {
|
39 |
background-color: #e3f2fd;
|
40 |
+
padding: 8px;
|
41 |
+
margin: 5px 0;
|
42 |
border-radius: 5px;
|
43 |
+
max-width: 85%;
|
44 |
word-wrap: break-word;
|
45 |
+
font-size: 12px;
|
46 |
}
|
47 |
|
48 |
.user-message {
|
49 |
background-color: #ffebee;
|
50 |
+
padding: 8px;
|
51 |
+
margin: 5px 0;
|
52 |
border-radius: 5px;
|
53 |
+
max-width: 85%;
|
54 |
margin-left: auto;
|
55 |
text-align: right;
|
56 |
word-wrap: break-word;
|
57 |
+
font-size: 12px;
|
58 |
}
|
59 |
|
60 |
.chat-input {
|
61 |
display: flex;
|
62 |
+
padding: 5px;
|
63 |
border-top: 1px solid #ccc;
|
64 |
flex-shrink: 0;
|
65 |
+
position: fixed;
|
66 |
bottom: 0;
|
67 |
+
width: 100%;
|
68 |
background-color: white;
|
69 |
+
box-sizing: border-box;
|
70 |
}
|
71 |
|
72 |
.chat-input input {
|
73 |
flex: 1;
|
74 |
+
padding: 6px;
|
75 |
border: 1px solid #ccc;
|
76 |
border-radius: 5px;
|
77 |
+
font-size: 12px;
|
78 |
+
min-height: 35px;
|
79 |
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
.chat-input button {
|
83 |
+
padding: 6px 10px;
|
84 |
+
margin-left: 5px;
|
85 |
background-color: #ff8f00;
|
86 |
color: white;
|
87 |
border: none;
|
88 |
border-radius: 5px;
|
89 |
cursor: pointer;
|
90 |
+
font-size: 12px;
|
91 |
+
min-height: 35px;
|
92 |
+
min-width: 60px;
|
93 |
}
|
94 |
|
95 |
+
.chat-input button:active {
|
96 |
background-color: #f57c00;
|
97 |
}
|
98 |
|
99 |
.ingredients-list {
|
100 |
+
max-height: 200px;
|
|
|
101 |
overflow-y: auto;
|
102 |
+
padding: 8px;
|
103 |
+
margin: 5px 0;
|
104 |
background-color: #f9f9f9;
|
105 |
border-radius: 5px;
|
106 |
display: flex;
|
107 |
flex-wrap: wrap;
|
108 |
+
gap: 8px;
|
109 |
+
scroll-behavior: smooth;
|
110 |
}
|
111 |
|
112 |
.ingredient-item {
|
113 |
display: flex;
|
114 |
flex-direction: column;
|
115 |
align-items: flex-start;
|
116 |
+
width: 140px;
|
117 |
background-color: white;
|
118 |
border: 1px solid #ddd;
|
119 |
+
border-radius: 6px;
|
120 |
+
padding: 8px;
|
121 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
122 |
}
|
123 |
|
124 |
+
.ingredient-item:active {
|
125 |
+
transform: scale(0.98);
|
126 |
}
|
127 |
|
128 |
.ingredient-image {
|
129 |
width: 100%;
|
130 |
+
height: 100px;
|
131 |
object-fit: cover;
|
132 |
border-radius: 5px;
|
133 |
+
margin-bottom: 5px;
|
134 |
}
|
135 |
|
136 |
.ingredient-content {
|
|
|
138 |
}
|
139 |
|
140 |
.ingredient-name {
|
141 |
+
font-size: 13px;
|
142 |
font-weight: bold;
|
143 |
color: #333;
|
144 |
+
margin-bottom: 3px;
|
145 |
}
|
146 |
|
147 |
.menu-item-field {
|
148 |
+
font-size: 10px;
|
149 |
+
margin: 2px 0;
|
150 |
color: #555;
|
151 |
}
|
152 |
|
|
|
155 |
}
|
156 |
|
157 |
.show-desc-button {
|
158 |
+
padding: 4px 8px;
|
159 |
+
margin-top: 3px;
|
160 |
background-color: #4caf50;
|
161 |
color: white;
|
162 |
border: none;
|
163 |
border-radius: 5px;
|
164 |
cursor: pointer;
|
165 |
+
font-size: 10px;
|
166 |
width: 100%;
|
|
|
167 |
}
|
168 |
|
169 |
+
.show-desc-button:active {
|
170 |
background-color: #45a049;
|
171 |
}
|
172 |
|
173 |
+
.options-container {
|
174 |
+
display: flex;
|
175 |
+
flex-wrap: wrap;
|
176 |
+
gap: 5px;
|
177 |
+
margin: 5px 0;
|
178 |
+
}
|
179 |
+
|
180 |
.option-button {
|
181 |
+
padding: 6px 10px;
|
182 |
+
margin: 3px;
|
|
|
183 |
background-color: #7b1fa2;
|
184 |
color: white;
|
185 |
border: none;
|
186 |
border-radius: 5px;
|
187 |
cursor: pointer;
|
188 |
+
font-size: 12px;
|
189 |
+
min-width: 60px;
|
190 |
}
|
191 |
|
192 |
.option-button.green { background-color: #4caf50; }
|
193 |
.option-button.red { background-color: #d32f2f; }
|
194 |
.option-button.gray { background-color: #616161; }
|
195 |
+
.option-button:active { opacity: 0.9; }
|
196 |
|
197 |
.selection-box {
|
198 |
background-color: #e1f5fe;
|
199 |
+
padding: 8px;
|
200 |
border: 1px solid #0288d1;
|
201 |
border-radius: 5px;
|
202 |
+
margin: 5px 0;
|
203 |
+
font-size: 12px;
|
204 |
display: flex;
|
205 |
flex-wrap: wrap;
|
206 |
align-items: center;
|
207 |
+
gap: 5px;
|
208 |
}
|
209 |
|
210 |
.selection-box span {
|
211 |
background-color: #bbdefb;
|
212 |
+
padding: 3px 8px;
|
213 |
border-radius: 5px;
|
214 |
+
font-size: 12px;
|
215 |
}
|
216 |
|
217 |
.selected-item {
|
218 |
display: flex;
|
219 |
align-items: center;
|
220 |
background-color: #bbdefb;
|
221 |
+
padding: 3px 8px;
|
222 |
border-radius: 5px;
|
223 |
+
font-size: 11px;
|
224 |
}
|
225 |
|
226 |
.selected-item-image {
|
227 |
+
width: 25px;
|
228 |
+
height: 25px;
|
229 |
object-fit: cover;
|
230 |
border-radius: 5px;
|
231 |
margin-right: 5px;
|
232 |
}
|
233 |
|
234 |
.submit-button {
|
235 |
+
padding: 6px 10px;
|
236 |
background-color: #0288d1;
|
237 |
color: white;
|
238 |
border: none;
|
239 |
border-radius: 5px;
|
240 |
cursor: pointer;
|
241 |
+
font-size: 12px;
|
242 |
+
min-width: 60px;
|
243 |
}
|
244 |
|
245 |
+
.submit-button:active {
|
246 |
background-color: #0277bd;
|
247 |
}
|
248 |
|
249 |
.remove-button {
|
250 |
+
padding: 3px 6px;
|
251 |
margin-left: 5px;
|
252 |
background-color: #d32f2f;
|
253 |
color: white;
|
254 |
border: none;
|
255 |
border-radius: 5px;
|
256 |
cursor: pointer;
|
257 |
+
font-size: 10px;
|
258 |
}
|
259 |
|
260 |
+
.remove-button:active {
|
261 |
background-color: #b71c1c;
|
262 |
}
|
263 |
|
264 |
.manual-input {
|
265 |
+
padding: 4px;
|
266 |
border: 1px solid #0288d1;
|
267 |
border-radius: 5px;
|
268 |
+
font-size: 12px;
|
269 |
+
width: 100px;
|
|
|
270 |
}
|
271 |
|
272 |
.quantity-input {
|
273 |
+
padding: 4px;
|
274 |
border: 1px solid #0288d1;
|
275 |
border-radius: 5px;
|
276 |
+
font-size: 12px;
|
277 |
+
width: 50px;
|
|
|
278 |
}
|
279 |
|
280 |
.order-name-input {
|
281 |
+
padding: 4px;
|
282 |
border: 1px solid #0288d1;
|
283 |
border-radius: 5px;
|
284 |
+
font-size: 12px;
|
285 |
+
width: 100px;
|
|
|
286 |
}
|
287 |
|
288 |
.description-popup {
|
|
|
299 |
}
|
300 |
|
301 |
.popup-content {
|
302 |
+
background-color: white;
|
303 |
+
padding: 10px;
|
304 |
+
border-radius: 6px;
|
305 |
max-width: 90%;
|
306 |
+
max-height: 70vh;
|
307 |
overflow-y: auto;
|
308 |
text-align: center;
|
309 |
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
310 |
}
|
311 |
|
312 |
.popup-image {
|
313 |
+
width: 60px;
|
314 |
+
height: 60px;
|
315 |
object-fit: cover;
|
316 |
border-radius: 5px;
|
317 |
+
margin-bottom: 5px;
|
318 |
}
|
319 |
|
320 |
+
.popup-content h3 {
|
321 |
+
font-size: 14px;
|
322 |
margin: 5px 0;
|
323 |
}
|
324 |
|
325 |
+
.popup-content p {
|
326 |
+
font-size: 10px;
|
327 |
+
margin: 3px 0;
|
328 |
+
}
|
329 |
+
|
330 |
.button-container {
|
331 |
display: flex;
|
332 |
justify-content: center;
|
333 |
+
gap: 5px;
|
334 |
+
margin-top: 5px;
|
335 |
}
|
336 |
|
337 |
.popup-add-button {
|
338 |
+
padding: 4px 8px;
|
339 |
background-color: #4caf50;
|
340 |
color: white;
|
341 |
border: none;
|
342 |
border-radius: 5px;
|
343 |
cursor: pointer;
|
344 |
+
font-size: 10px;
|
345 |
}
|
346 |
|
347 |
+
.popup-add-button:active {
|
348 |
background-color: #45a049;
|
349 |
}
|
350 |
|
351 |
.popup-close-button {
|
352 |
+
padding: 4px 8px;
|
353 |
background-color: #d32f2f;
|
354 |
color: white;
|
355 |
border: none;
|
356 |
border-radius: 5px;
|
357 |
cursor: pointer;
|
358 |
+
font-size: 10px;
|
359 |
}
|
360 |
|
361 |
+
.popup-close-button:active {
|
362 |
background-color: #b71c1c;
|
363 |
}
|
364 |
|
365 |
.dietary-button {
|
366 |
+
padding: 4px 8px;
|
|
|
367 |
border: none;
|
368 |
border-radius: 5px;
|
369 |
cursor: pointer;
|
370 |
+
font-size: 10px;
|
371 |
color: white;
|
372 |
+
min-width: 50px;
|
373 |
}
|
374 |
|
375 |
.dietary-button.green { background-color: #4caf50; }
|
376 |
.dietary-button.red { background-color: #d32f2f; }
|
377 |
.dietary-button.gray { background-color: #616161; }
|
378 |
+
.dietary-button:active { opacity: 0.9; }
|
379 |
|
380 |
+
@media (max-width: 480px) {
|
|
|
|
|
|
|
|
|
381 |
.chat-header {
|
382 |
+
font-size: 14px;
|
383 |
+
padding: 6px;
|
384 |
}
|
385 |
.chat-messages {
|
386 |
+
padding: 3px;
|
387 |
}
|
388 |
+
.bot-message, .user-message {
|
389 |
+
font-size: 11px;
|
390 |
padding: 6px;
|
391 |
+
margin: 3px 0;
|
392 |
+
}
|
393 |
+
.chat-input input {
|
394 |
+
font-size: 11px;
|
395 |
+
min-height: 30px;
|
396 |
+
padding: 5px;
|
397 |
+
}
|
398 |
+
.chat-input button {
|
399 |
+
font-size: 11px;
|
400 |
+
min-height: 30px;
|
401 |
+
padding: 5px 8px;
|
402 |
+
min-width: 50px;
|
403 |
}
|
404 |
.ingredients-list {
|
405 |
+
max-height: 180px;
|
406 |
+
gap: 6px;
|
407 |
+
padding: 6px;
|
408 |
}
|
409 |
.ingredient-item {
|
410 |
+
width: 120px;
|
411 |
}
|
412 |
.ingredient-image {
|
413 |
+
height: 80px;
|
414 |
}
|
415 |
.ingredient-name {
|
416 |
+
font-size: 12px;
|
417 |
}
|
418 |
.menu-item-field {
|
419 |
+
font-size: 9px;
|
420 |
}
|
421 |
.show-desc-button {
|
422 |
+
font-size: 9px;
|
423 |
+
padding: 3px 6px;
|
424 |
+
}
|
425 |
+
.options-container {
|
426 |
+
gap: 3px;
|
427 |
+
}
|
428 |
+
.option-button {
|
429 |
+
font-size: 11px;
|
430 |
+
padding: 5px 8px;
|
431 |
+
min-width: 50px;
|
432 |
+
}
|
433 |
+
.selection-box {
|
434 |
+
padding: 6px;
|
435 |
+
gap: 3px;
|
436 |
+
}
|
437 |
+
.selection-box span {
|
438 |
+
font-size: 11px;
|
439 |
+
padding: 2px 6px;
|
440 |
+
}
|
441 |
+
.selected-item {
|
442 |
font-size: 10px;
|
443 |
+
padding: 2px 6px;
|
444 |
+
}
|
445 |
+
.selected-item-image {
|
446 |
+
width: 20px;
|
447 |
+
height: 20px;
|
448 |
+
}
|
449 |
+
.submit-button {
|
450 |
+
font-size: 11px;
|
451 |
+
padding: 5px 8px;
|
452 |
+
min-width: 50px;
|
453 |
+
}
|
454 |
+
.remove-button {
|
455 |
+
font-size: 9px;
|
456 |
+
padding: 2px 5px;
|
457 |
+
}
|
458 |
+
.manual-input, .order-name-input {
|
459 |
+
width: 80px;
|
460 |
+
font-size: 11px;
|
461 |
+
padding: 3px;
|
462 |
+
}
|
463 |
+
.quantity-input {
|
464 |
+
width: 40px;
|
465 |
+
font-size: 11px;
|
466 |
+
padding: 3px;
|
467 |
+
}
|
468 |
+
.dietary-button {
|
469 |
+
font-size: 9px;
|
470 |
+
padding: 3px 6px;
|
471 |
+
min-width: 40px;
|
472 |
}
|
473 |
.popup-content {
|
474 |
+
padding: 8px;
|
475 |
+
max-width: 95%;
|
476 |
}
|
477 |
.popup-image {
|
478 |
+
width: 50px;
|
479 |
+
height: 50px;
|
480 |
+
}
|
481 |
+
.popup-content h3 {
|
482 |
+
font-size: 12px;
|
483 |
}
|
484 |
.popup-content p {
|
485 |
+
font-size: 9px;
|
486 |
}
|
487 |
.popup-add-button, .popup-close-button {
|
488 |
+
font-size: 9px;
|
489 |
+
padding: 3px 6px;
|
490 |
+
}
|
491 |
+
}
|
492 |
+
|
493 |
+
@media (min-width: 481px) and (max-width: 768px) {
|
494 |
+
.chat-header {
|
495 |
+
font-size: 15px;
|
496 |
+
}
|
497 |
+
.chat-messages {
|
498 |
+
padding: 4px;
|
499 |
+
}
|
500 |
+
.bot-message, .user-message {
|
501 |
+
font-size: 12px;
|
502 |
+
padding: 7px;
|
503 |
+
}
|
504 |
+
.chat-input input {
|
505 |
+
font-size: 12px;
|
506 |
+
min-height: 35px;
|
507 |
+
}
|
508 |
+
.chat-input button {
|
509 |
+
font-size: 12px;
|
510 |
+
min-height: 35px;
|
511 |
+
padding: 6px 10px;
|
512 |
+
}
|
513 |
+
.ingredients-list {
|
514 |
+
max-height: 200px;
|
515 |
+
gap: 8px;
|
516 |
+
}
|
517 |
+
.ingredient-item {
|
518 |
+
width: 140px;
|
519 |
+
}
|
520 |
+
.ingredient-image {
|
521 |
+
height: 100px;
|
522 |
+
}
|
523 |
+
.ingredient-name {
|
524 |
+
font-size: 13px;
|
525 |
+
}
|
526 |
+
.menu-item-field {
|
527 |
+
font-size: 10px;
|
528 |
+
}
|
529 |
+
.show-desc-button {
|
530 |
font-size: 10px;
|
531 |
+
padding: 4px 8px;
|
532 |
+
}
|
533 |
+
.option-button {
|
534 |
+
font-size: 12px;
|
535 |
+
padding: 6px 10px;
|
536 |
}
|
537 |
.selection-box {
|
538 |
+
padding: 8px;
|
539 |
gap: 5px;
|
540 |
}
|
541 |
+
.selection-box span {
|
542 |
+
font-size: 12px;
|
543 |
+
}
|
544 |
.selected-item {
|
545 |
+
font-size: 11px;
|
546 |
+
}
|
547 |
+
.selected-item-image {
|
548 |
+
width: 25px;
|
549 |
+
height: 25px;
|
550 |
+
}
|
551 |
+
.submit-button {
|
552 |
+
font-size: 12px;
|
553 |
+
padding: 6px 10px;
|
554 |
}
|
555 |
.remove-button {
|
|
|
556 |
font-size: 10px;
|
557 |
+
padding: 3px 6px;
|
558 |
}
|
559 |
.manual-input, .order-name-input {
|
560 |
+
width: 100px;
|
561 |
+
font-size: 12px;
|
562 |
}
|
563 |
.quantity-input {
|
564 |
width: 50px;
|
565 |
+
font-size: 12px;
|
566 |
+
}
|
567 |
+
.dietary-button {
|
568 |
+
font-size: 10px;
|
569 |
+
padding: 4px 8px;
|
570 |
+
}
|
571 |
+
.popup-content {
|
572 |
+
padding: 10px;
|
573 |
+
}
|
574 |
+
.popup-image {
|
575 |
+
width: 60px;
|
576 |
+
height: 60px;
|
577 |
+
}
|
578 |
+
.popup-content h3 {
|
579 |
+
font-size: 13px;
|
580 |
+
}
|
581 |
+
.popup-content p {
|
582 |
+
font-size: 10px;
|
583 |
+
}
|
584 |
+
.popup-add-button, .popup-close-button {
|
585 |
+
font-size: 10px;
|
586 |
+
padding: 4px 8px;
|
587 |
}
|
588 |
}
|