PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / assets / css / wppb-support-chat.css

wppb-support-chat.css in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.3, at assets/css/wppb-support-chat.css

527 lines 10.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Support Chat Widget Styles
3 *
4 * @package ProfileBuilder
5 * @since 3.15.4
6 */
7
8 /* CSS Variables */
9 :root {
10 --wppb-chat-primary: #0F15B0;
11 --wppb-chat-primary-hover: #0e1294;
12 --wppb-chat-secondary: #f0f2ff;
13 --wppb-chat-text: #1e1e1e;
14 --wppb-chat-text-muted: #6b7280;
15 --wppb-chat-border: #e5e7eb;
16 --wppb-chat-bg: #ffffff;
17 --wppb-chat-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
18 --wppb-chat-radius: 2px;
19 --wppb-chat-radius-sm: 2px;
20 }
21
22 /* Main Container */
23 .wppb-support-chat {
24 position: fixed;
25 bottom: 55px;
26 right: 24px;
27 z-index: 99999;
28 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
29 font-size: 14px;
30 line-height: 1.5;
31 }
32
33 /* Toggle Button - Bar style */
34 .wppb-support-chat__toggle {
35 max-width: calc(100vw - 48px);
36 height: auto;
37 padding: 14px 20px;
38 border-radius: var(--wppb-chat-radius);
39 background: var(--wppb-chat-primary);
40 border: none;
41 cursor: pointer;
42 display: flex;
43 align-items: center;
44 justify-content: space-between;
45 gap: 12px;
46 box-shadow: 0 4px 20px rgba(15, 21, 176, 0.4);
47 transition: all 0.3s ease;
48 position: relative;
49 }
50
51 .wppb-support-chat__toggle:hover {
52 background: var(--wppb-chat-primary-hover);
53 transform: translateY(-2px);
54 box-shadow: 0 6px 24px rgba(15, 21, 176, 0.5);
55 }
56
57 .wppb-support-chat__toggle:focus {
58 outline: none;
59 box-shadow: 0 4px 20px rgba(15, 21, 176, 0.4), 0 0 0 3px rgba(15, 21, 176, 0.3);
60 }
61
62 .wppb-support-chat__toggle-content {
63 display: flex;
64 align-items: center;
65 gap: 12px;
66 flex: 1;
67 }
68
69 .wppb-support-chat__toggle-icon {
70 color: #ffffff;
71 display: flex;
72 align-items: center;
73 justify-content: center;
74 transition: all 0.3s ease;
75 flex-shrink: 0;
76 }
77
78 .wppb-support-chat__toggle-icon--close {
79 display: none;
80 }
81
82 .wppb-support-chat--open .wppb-support-chat__toggle-icon--chat {
83 display: none;
84 }
85
86 .wppb-support-chat--open .wppb-support-chat__toggle-icon--close {
87 display: flex;
88 }
89
90 .wppb-support-chat__toggle-text {
91 color: #ffffff;
92 font-size: 15px;
93 font-weight: 600;
94 text-align: left;
95 }
96
97 .wppb-support-chat__toggle-subtext {
98 color: rgba(255, 255, 255, 0.8);
99 font-size: 12px;
100 font-weight: 400;
101 }
102
103 /* Badge - always visible */
104 .wppb-support-chat__badge {
105 min-width: 24px;
106 height: 24px;
107 border-radius: 12px;
108 background: #ef4444;
109 color: #ffffff;
110 font-size: 13px;
111 font-weight: 600;
112 display: flex;
113 align-items: center;
114 justify-content: center;
115 padding: 0 8px;
116 flex-shrink: 0;
117 }
118
119 .wppb-support-chat__badge--pulse {
120 animation: wppb-chat-pulse 2s infinite;
121 }
122
123 @keyframes wppb-chat-pulse {
124 0%, 100% { transform: scale(1); }
125 50% { transform: scale(1.1); }
126 }
127
128 /* Chat Window */
129 .wppb-support-chat__window {
130 position: absolute;
131 bottom: 64px;
132 right: 0;
133 width: 380px;
134 max-width: calc(100vw - 48px);
135 max-height: calc(100vh - 140px);
136 background: var(--wppb-chat-bg);
137 border-radius: var(--wppb-chat-radius);
138 box-shadow: var(--wppb-chat-shadow);
139 display: flex;
140 flex-direction: column;
141 opacity: 0;
142 visibility: hidden;
143 transform: translateY(20px) scale(0.95);
144 transition: all 0.3s ease;
145 overflow: hidden;
146 cursor: default;
147 }
148
149 .wppb-support-chat--open .wppb-support-chat__window {
150 opacity: 1;
151 visibility: visible;
152 transform: translateY(0) scale(1);
153 }
154
155 /* Header */
156 .wppb-support-chat__header {
157 background: linear-gradient(135deg, var(--wppb-chat-primary) 0%, var(--wppb-chat-primary-hover) 100%);
158 padding: 20px;
159 color: #ffffff;
160 display: flex;
161 align-items: flex-start;
162 justify-content: space-between;
163 position: relative;
164 cursor: default;
165 }
166
167 .wppb-support-chat__header-content {
168 display: flex;
169 align-items: center;
170 gap: 12px;
171 }
172
173 .wppb-support-chat__avatar {
174 width: 44px;
175 height: 44px;
176 border-radius: 50%;
177 background: #ffffff;
178 display: flex;
179 align-items: center;
180 justify-content: center;
181 flex-shrink: 0;
182 }
183
184 .wppb-support-chat__avatar img {
185 width: 28px;
186 height: 28px;
187 }
188
189 .wppb-support-chat__header-text {
190 flex: 1;
191 }
192
193 .wppb-support-chat__title {
194 margin: 0 0 2px;
195 font-size: 18px;
196 font-weight: 600;
197 color: #ffffff;
198 }
199
200 .wppb-support-chat__subtitle {
201 margin: 0;
202 font-size: 13px;
203 opacity: 0.85;
204 color: #ffffff;
205 }
206
207 /* Close Button */
208 .wppb-support-chat__close {
209 background: rgba(255, 255, 255, 0.1);
210 border: none;
211 padding: 8px;
212 border-radius: 2px;
213 cursor: pointer;
214 color: #ffffff;
215 transition: background 0.2s;
216 display: flex;
217 align-items: center;
218 justify-content: center;
219 }
220
221 .wppb-support-chat__close:hover {
222 background: rgba(255, 255, 255, 0.2);
223 }
224
225 .wppb-support-chat__close:focus {
226 outline: none;
227 box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
228 }
229
230 /* Body */
231 .wppb-support-chat__body {
232 flex: 1;
233 overflow-y: auto;
234 padding: 16px;
235 min-height: 300px;
236 max-height: 400px;
237 cursor: default;
238 }
239
240 /* Loading State */
241 .wppb-support-chat__loading {
242 display: flex;
243 flex-direction: column;
244 align-items: center;
245 justify-content: center;
246 padding: 40px 20px;
247 color: var(--wppb-chat-text-muted);
248 }
249
250 .wppb-support-chat__spinner {
251 width: 32px;
252 height: 32px;
253 border: 3px solid var(--wppb-chat-border);
254 border-top-color: var(--wppb-chat-primary);
255 border-radius: 50%;
256 animation: wppb-chat-spin 0.8s linear infinite;
257 margin-bottom: 12px;
258 }
259
260 @keyframes wppb-chat-spin {
261 to { transform: rotate(360deg); }
262 }
263
264 /* Posts List */
265 .wppb-support-chat__posts {
266 display: none;
267 }
268
269 .wppb-support-chat__posts--loaded {
270 display: block;
271 }
272
273 .wppb-support-chat__post {
274 display: block;
275 padding: 14px;
276 margin-bottom: 10px;
277 background: #E8F2FF;
278 border-radius: var(--wppb-chat-radius-sm);
279 text-decoration: none !important;
280 transition: all 0.2s ease;
281 border: 1px solid transparent;
282 }
283
284 .wppb-support-chat__post:hover {
285 background: #DCEBFF;
286 border-color: var(--wppb-chat-primary);
287 }
288
289 .wppb-support-chat__post:last-child {
290 margin-bottom: 0;
291 }
292
293 .wppb-support-chat__post-title {
294 margin: 0 0 6px;
295 font-size: 14px;
296 font-weight: 500;
297 color: var(--wppb-chat-text);
298 display: -webkit-box;
299 -webkit-line-clamp: 2;
300 -webkit-box-orient: vertical;
301 overflow: hidden;
302 line-height: 1.4;
303 }
304
305 .wppb-support-chat__post-meta {
306 display: flex;
307 align-items: center;
308 gap: 8px;
309 font-size: 12px;
310 color: var(--wppb-chat-text-muted);
311 }
312
313 .wppb-support-chat__post-author {
314 display: flex;
315 align-items: center;
316 gap: 4px;
317 }
318
319 .wppb-support-chat__post-date {
320 display: flex;
321 align-items: center;
322 }
323
324 .wppb-support-chat__post-date::before {
325 content: "";
326 width: 3px;
327 height: 3px;
328 background: var(--wppb-chat-text-muted);
329 border-radius: 50%;
330 margin-right: 8px;
331 }
332
333 /* Encourage Section - now at top */
334 .wppb-support-chat__encourage {
335 margin-bottom: 16px;
336 padding-bottom: 16px;
337 border-bottom: 1px solid var(--wppb-chat-border);
338 }
339
340 /* Section Label */
341 .wppb-support-chat__section-label {
342 font-size: 11px;
343 font-weight: 600;
344 text-transform: uppercase;
345 letter-spacing: 0.5px;
346 color: var(--wppb-chat-text-muted);
347 margin-bottom: 12px;
348 }
349
350 .wppb-support-chat__encourage-card {
351 background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
352 padding: 16px;
353 border-radius: var(--wppb-chat-radius-sm);
354 margin-bottom: 12px;
355 }
356
357 .wppb-support-chat__encourage-title {
358 margin: 0 0 6px;
359 font-size: 15px;
360 font-weight: 600;
361 color: #92400e;
362 }
363
364 .wppb-support-chat__encourage-text {
365 margin: 0;
366 font-size: 13px;
367 color: #a16207;
368 }
369
370 .wppb-support-chat__tip {
371 background: #f0fdf4;
372 padding: 14px;
373 border-radius: var(--wppb-chat-radius-sm);
374 border-left: 3px solid #22c55e;
375 }
376
377 .wppb-support-chat__tip-title {
378 display: block;
379 font-size: 13px;
380 font-weight: 600;
381 color: #166534;
382 margin-bottom: 4px;
383 }
384
385 .wppb-support-chat__tip-text {
386 margin: 0;
387 font-size: 12px;
388 color: #15803d;
389 line-height: 1.5;
390 }
391
392 /* Footer */
393 .wppb-support-chat__footer {
394 padding: 16px;
395 background: #f9fafb;
396 border-top: 1px solid var(--wppb-chat-border);
397 display: flex;
398 gap: 10px;
399 }
400
401 .wppb-support-chat__btn {
402 flex: 1;
403 display: flex;
404 align-items: center;
405 justify-content: center;
406 gap: 8px;
407 padding: 12px 16px;
408 border-radius: var(--wppb-chat-radius-sm);
409 font-size: 14px;
410 font-weight: 500;
411 text-decoration: none !important;
412 transition: all 0.2s ease;
413 cursor: pointer;
414 border: none;
415 }
416
417 .wppb-support-chat__btn--primary {
418 background: var(--wppb-chat-primary);
419 color: #ffffff !important;
420 }
421
422 .wppb-support-chat__btn--primary span,
423 .wppb-support-chat__btn--primary svg {
424 color: #ffffff !important;
425 fill: #ffffff !important;
426 }
427
428 .wppb-support-chat__btn--primary:hover {
429 background: var(--wppb-chat-primary-hover);
430 color: #ffffff !important;
431 }
432
433 .wppb-support-chat__btn--secondary {
434 background: #ffffff;
435 color: var(--wppb-chat-text);
436 border: 1px solid var(--wppb-chat-border);
437 }
438
439 .wppb-support-chat__btn--secondary:hover {
440 background: var(--wppb-chat-secondary);
441 color: var(--wppb-chat-primary);
442 border-color: var(--wppb-chat-primary);
443 }
444
445 /* Error State */
446 .wppb-support-chat__error {
447 text-align: center;
448 padding: 30px 20px;
449 color: #dc2626;
450 }
451
452 .wppb-support-chat__error-icon {
453 font-size: 32px;
454 margin-bottom: 10px;
455 }
456
457 /* Responsive */
458 @media (max-width: 480px) {
459 .wppb-support-chat {
460 bottom: 16px;
461 right: 16px;
462 }
463
464 .wppb-support-chat__window {
465 width: calc(100vw - 32px);
466 right: 0;
467 bottom: 72px;
468 }
469
470 .wppb-support-chat__toggle {
471 width: calc(100vw - 32px);
472 padding: 12px 16px;
473 }
474
475 .wppb-support-chat__toggle-text {
476 font-size: 14px;
477 }
478
479 .wppb-support-chat__body {
480 min-height: 250px;
481 max-height: 350px;
482 }
483 }
484
485 /* Animation for new message indicator */
486 @keyframes wppb-chat-bounce {
487 0%, 100% { transform: translateY(0); }
488 50% { transform: translateY(-3px); }
489 }
490
491 .wppb-support-chat__toggle--attention {
492 animation: wppb-chat-bounce 1s ease-in-out 3;
493 }
494
495 /* Hide toggle when chat is open */
496 .wppb-support-chat--open .wppb-support-chat__toggle {
497 opacity: 0;
498 visibility: hidden;
499 transform: translateY(20px);
500 }
501
502 /* Hide loading when posts are loaded */
503 .wppb-support-chat__posts--loaded ~ .wppb-support-chat__loading,
504 .wppb-support-chat__loading--hidden {
505 display: none;
506 }
507
508 /* RTL Support */
509 [dir="rtl"] .wppb-support-chat {
510 right: auto;
511 left: 24px;
512 }
513
514 [dir="rtl"] .wppb-support-chat__window {
515 right: auto;
516 left: 0;
517 }
518
519 [dir="rtl"] .wppb-support-chat__post:hover {
520 transform: translateX(-4px);
521 }
522
523 [dir="rtl"] .wppb-support-chat__tip {
524 border-left: none;
525 border-right: 3px solid #22c55e;
526 }
527