Shakeel401 commited on
Commit
1d3bacf
·
verified ·
1 Parent(s): e2c425e

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +16 -14
static/style.css CHANGED
@@ -52,6 +52,7 @@
52
  bottom: 90px;
53
  width: 380px;
54
  height: 560px;
 
55
  background: #fff;
56
  border-radius: 20px;
57
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
@@ -65,7 +66,6 @@
65
  transition: 0.25s ease;
66
  }
67
 
68
- /* OPEN STATE */
69
  .chatbot-container.open {
70
  opacity: 1;
71
  transform: translateY(0);
@@ -159,7 +159,9 @@
159
  background: #eef3ff;
160
  }
161
 
162
- /* CHAT BUBBLES */
 
 
163
  .message {
164
  display: flex;
165
  }
@@ -227,30 +229,30 @@
227
  }
228
 
229
  /* ============================= */
230
- /* 📱 RESPONSIVE FIXES */
231
  /* ============================= */
232
 
233
  /* Tablet */
234
  @media (max-width: 768px) {
235
  .chatbot-container {
236
- width: 92%;
237
- right: 4%;
238
- left: 4%;
239
  bottom: 80px;
240
- height: 80vh;
241
  border-radius: 16px;
242
  }
243
  }
244
 
245
- /* Mobile */
246
  @media (max-width: 480px) {
247
  .chatbot-container {
248
- width: 100%;
249
- height: 100%;
250
- right: 0;
251
- left: 0;
252
- bottom: 0;
253
- border-radius: 0;
254
  }
255
 
256
  .chat-header {
 
52
  bottom: 90px;
53
  width: 380px;
54
  height: 560px;
55
+ max-width: calc(100vw - 20px); /* prevents left cut */
56
  background: #fff;
57
  border-radius: 20px;
58
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
 
66
  transition: 0.25s ease;
67
  }
68
 
 
69
  .chatbot-container.open {
70
  opacity: 1;
71
  transform: translateY(0);
 
159
  background: #eef3ff;
160
  }
161
 
162
+ /* ============================= */
163
+ /* BUBBLES */
164
+ /* ============================= */
165
  .message {
166
  display: flex;
167
  }
 
229
  }
230
 
231
  /* ============================= */
232
+ /* 📱 RESPONSIVE */
233
  /* ============================= */
234
 
235
  /* Tablet */
236
  @media (max-width: 768px) {
237
  .chatbot-container {
238
+ width: 90%;
239
+ right: 5%;
240
+ left: auto;
241
  bottom: 80px;
242
+ height: 75vh;
243
  border-radius: 16px;
244
  }
245
  }
246
 
247
+ /* Mobile (widget style, NOT fullscreen) */
248
  @media (max-width: 480px) {
249
  .chatbot-container {
250
+ width: calc(100% - 20px); /* margin both sides */
251
+ right: 10px;
252
+ left: 10px;
253
+ bottom: 80px;
254
+ height: 70vh; /* not full screen */
255
+ border-radius: 18px;
256
  }
257
 
258
  .chat-header {