PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / faq-chat / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/faq-chat/style.css

271 lines 8.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ── FAQ Chat ── bkbg-faqc-* ── */
2
3 .bkbg-faqc-editor-wrap {
4 font-family: system-ui, -apple-system, sans-serif;
5 }
6
7 /* ── widget shell ── */
8 .bkbg-faqc-widget {
9 border-style: solid;
10 border-width: 1px;
11 overflow: hidden;
12 font-family: system-ui, -apple-system, sans-serif;
13 box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 6px rgba(0, 0, 0, 0.05);
14 }
15
16 /* ── header ── */
17 .bkbg-faqc-header {
18 display: flex;
19 align-items: center;
20 gap: 10px;
21 padding: 14px 18px;
22 }
23
24 .bkbg-faqc-avatar {
25 width: 36px;
26 height: 36px;
27 border-radius: 50%;
28 display: flex;
29 align-items: center;
30 justify-content: center;
31 font-size: 18px;
32 flex-shrink: 0;
33 background: rgba(255, 255, 255, 0.2);
34 }
35
36 .bkbg-faqc-bot-name {
37 font-weight: 700;
38 font-size: 15px;
39 line-height: 1.2;
40 }
41
42 .bkbg-faqc-status {
43 font-size: 12px;
44 opacity: 0.8;
45 display: flex;
46 align-items: center;
47 gap: 4px;
48 }
49
50 .bkbg-faqc-status-dot {
51 width: 7px;
52 height: 7px;
53 border-radius: 50%;
54 background: #4ade80;
55 display: inline-block;
56 flex-shrink: 0;
57 }
58
59 /* ── chat area ── */
60 .bkbg-faqc-messages {
61 overflow-y: auto;
62 padding: 16px;
63 scroll-behavior: smooth;
64 }
65
66 /* ── message rows ── */
67 .bkbg-faqc-row {
68 display: flex;
69 align-items: flex-end;
70 gap: 8px;
71 margin-bottom: 14px;
72 }
73
74 .bkbg-faqc-row.user-row {
75 flex-direction: row-reverse;
76 }
77
78 .bkbg-faqc-row-avatar {
79 width: 32px;
80 height: 32px;
81 border-radius: 50%;
82 display: flex;
83 align-items: center;
84 justify-content: center;
85 font-size: 15px;
86 flex-shrink: 0;
87 }
88
89 .bkbg-faqc-meta {
90 font-size: 11px;
91 font-weight: 600;
92 margin-bottom: 3px;
93 opacity: 0.7;
94 }
95
96 .bkbg-faqc-row.user-row .bkbg-faqc-meta {
97 text-align: right;
98 }
99
100 /* ── bubbles ── */
101 .bkbg-faqc-bubble {
102 display: inline-block;
103 padding: 10px 14px;
104 line-height: 1.6;
105 max-width: 78%;
106 word-break: break-word;
107 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
108 }
109
110 .bkbg-faqc-bubble.bot-bubble {
111 font-family: var(--bkbg-fcht-an-font-family, inherit);
112 font-size: var(--bkbg-fcht-an-font-size-d, 14px);
113 font-weight: var(--bkbg-fcht-an-font-weight, normal);
114 font-style: var(--bkbg-fcht-an-font-style, normal);
115 text-transform: var(--bkbg-fcht-an-text-transform, none);
116 text-decoration: var(--bkbg-fcht-an-text-decoration, none);
117 line-height: var(--bkbg-fcht-an-line-height-d, 1.6);
118 letter-spacing: var(--bkbg-fcht-an-letter-spacing-d, normal);
119 word-spacing: var(--bkbg-fcht-an-word-spacing-d, normal);
120 }
121
122 .bkbg-faqc-bubble.user-bubble {
123 font-family: var(--bkbg-fcht-qt-font-family, inherit);
124 font-size: var(--bkbg-fcht-qt-font-size-d, 14px);
125 font-weight: var(--bkbg-fcht-qt-font-weight, normal);
126 font-style: var(--bkbg-fcht-qt-font-style, normal);
127 text-transform: var(--bkbg-fcht-qt-text-transform, none);
128 text-decoration: var(--bkbg-fcht-qt-text-decoration, none);
129 line-height: var(--bkbg-fcht-qt-line-height-d, 1.5);
130 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-d, normal);
131 word-spacing: var(--bkbg-fcht-qt-word-spacing-d, normal);
132 }
133
134 /* style variants applied inline by JS */
135 .bkbg-faqc-style-rounded .bkbg-faqc-bubble {
136 border-radius: 12px;
137 }
138
139 .bkbg-faqc-style-bubble .bkbg-faqc-bubble {
140 border-radius: 20px;
141 }
142
143 .bkbg-faqc-style-sharp .bkbg-faqc-bubble {
144 border-radius: 4px;
145 box-shadow: none;
146 }
147
148 /* ── typing indicator ── */
149 .bkbg-faqc-typing {
150 display: inline-flex;
151 align-items: center;
152 gap: 4px;
153 padding: 12px 16px;
154 }
155
156 .bkbg-faqc-dot {
157 width: 7px;
158 height: 7px;
159 border-radius: 50%;
160 animation: bkbg-faqc-bounce 1.2s infinite ease-in-out;
161 }
162
163 .bkbg-faqc-dot:nth-child(1) { animation-delay: 0s; }
164 .bkbg-faqc-dot:nth-child(2) { animation-delay: 0.2s; }
165 .bkbg-faqc-dot:nth-child(3) { animation-delay: 0.4s; }
166
167 @keyframes bkbg-faqc-bounce {
168 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
169 40% { transform: translateY(-6px); opacity: 1; }
170 }
171
172 /* ── questions panel ── */
173 .bkbg-faqc-questions {
174 border-top-style: solid;
175 border-top-width: 1px;
176 padding: 14px;
177 }
178
179 .bkbg-faqc-questions-label {
180 font-size: 11px;
181 font-weight: 700;
182 text-transform: uppercase;
183 letter-spacing: 0.06em;
184 margin-bottom: 10px;
185 }
186
187 .bkbg-faqc-btns {
188 display: flex;
189 flex-wrap: wrap;
190 gap: 6px;
191 }
192
193 .bkbg-faqc-q-btn {
194 border-style: solid;
195 border-width: 1px;
196 border-radius: 20px;
197 padding: 6px 13px;
198 cursor: pointer;
199 font-family: var(--bkbg-fcht-qt-font-family, inherit);
200 font-size: var(--bkbg-fcht-qt-font-size-d, 14px);
201 font-weight: var(--bkbg-fcht-qt-font-weight, normal);
202 font-style: var(--bkbg-fcht-qt-font-style, normal);
203 text-transform: var(--bkbg-fcht-qt-text-transform, none);
204 text-decoration: var(--bkbg-fcht-qt-text-decoration, none);
205 line-height: var(--bkbg-fcht-qt-line-height-d, 1.45);
206 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-d, normal);
207 word-spacing: var(--bkbg-fcht-qt-word-spacing-d, normal);
208 transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
209 text-align: left;
210 }
211
212 .bkbg-faqc-q-btn:hover {
213 opacity: 0.82;
214 }
215
216 .bkbg-faqc-q-btn.is-answered {
217 cursor: default;
218 opacity: 0.65;
219 }
220
221 .bkbg-faqc-q-btn.is-answered:hover {
222 opacity: 0.65;
223 }
224
225 /* ── responsive ── */
226 @media (max-width: 1024px) {
227 .bkbg-faqc-bubble.bot-bubble {
228 font-size: var(--bkbg-fcht-an-font-size-t, var(--bkbg-fcht-an-font-size-d, 14px));
229 line-height: var(--bkbg-fcht-an-line-height-t, var(--bkbg-fcht-an-line-height-d, 1.6));
230 letter-spacing: var(--bkbg-fcht-an-letter-spacing-t, var(--bkbg-fcht-an-letter-spacing-d, normal));
231 word-spacing: var(--bkbg-fcht-an-word-spacing-t, var(--bkbg-fcht-an-word-spacing-d, normal));
232 }
233 .bkbg-faqc-bubble.user-bubble {
234 font-size: var(--bkbg-fcht-qt-font-size-t, var(--bkbg-fcht-qt-font-size-d, 14px));
235 line-height: var(--bkbg-fcht-qt-line-height-t, var(--bkbg-fcht-qt-line-height-d, 1.5));
236 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-t, var(--bkbg-fcht-qt-letter-spacing-d, normal));
237 word-spacing: var(--bkbg-fcht-qt-word-spacing-t, var(--bkbg-fcht-qt-word-spacing-d, normal));
238 }
239 .bkbg-faqc-q-btn {
240 font-size: var(--bkbg-fcht-qt-font-size-t, var(--bkbg-fcht-qt-font-size-d, 14px));
241 line-height: var(--bkbg-fcht-qt-line-height-t, var(--bkbg-fcht-qt-line-height-d, 1.45));
242 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-t, var(--bkbg-fcht-qt-letter-spacing-d, normal));
243 word-spacing: var(--bkbg-fcht-qt-word-spacing-t, var(--bkbg-fcht-qt-word-spacing-d, normal));
244 }
245 }
246 @media (max-width: 767px) {
247 .bkbg-faqc-bubble.bot-bubble {
248 font-size: var(--bkbg-fcht-an-font-size-m, var(--bkbg-fcht-an-font-size-t, var(--bkbg-fcht-an-font-size-d, 14px)));
249 line-height: var(--bkbg-fcht-an-line-height-m, var(--bkbg-fcht-an-line-height-t, var(--bkbg-fcht-an-line-height-d, 1.6)));
250 letter-spacing: var(--bkbg-fcht-an-letter-spacing-m, var(--bkbg-fcht-an-letter-spacing-t, var(--bkbg-fcht-an-letter-spacing-d, normal)));
251 word-spacing: var(--bkbg-fcht-an-word-spacing-m, var(--bkbg-fcht-an-word-spacing-t, var(--bkbg-fcht-an-word-spacing-d, normal)));
252 }
253 .bkbg-faqc-bubble.user-bubble {
254 font-size: var(--bkbg-fcht-qt-font-size-m, var(--bkbg-fcht-qt-font-size-t, var(--bkbg-fcht-qt-font-size-d, 14px)));
255 line-height: var(--bkbg-fcht-qt-line-height-m, var(--bkbg-fcht-qt-line-height-t, var(--bkbg-fcht-qt-line-height-d, 1.5)));
256 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-m, var(--bkbg-fcht-qt-letter-spacing-t, var(--bkbg-fcht-qt-letter-spacing-d, normal)));
257 word-spacing: var(--bkbg-fcht-qt-word-spacing-m, var(--bkbg-fcht-qt-word-spacing-t, var(--bkbg-fcht-qt-word-spacing-d, normal)));
258 }
259 .bkbg-faqc-q-btn {
260 font-size: var(--bkbg-fcht-qt-font-size-m, var(--bkbg-fcht-qt-font-size-t, var(--bkbg-fcht-qt-font-size-d, 14px)));
261 line-height: var(--bkbg-fcht-qt-line-height-m, var(--bkbg-fcht-qt-line-height-t, var(--bkbg-fcht-qt-line-height-d, 1.45)));
262 letter-spacing: var(--bkbg-fcht-qt-letter-spacing-m, var(--bkbg-fcht-qt-letter-spacing-t, var(--bkbg-fcht-qt-letter-spacing-d, normal)));
263 word-spacing: var(--bkbg-fcht-qt-word-spacing-m, var(--bkbg-fcht-qt-word-spacing-t, var(--bkbg-fcht-qt-word-spacing-d, normal)));
264 }
265 }
266 @media (max-width: 480px) {
267 .bkbg-faqc-bubble {
268 max-width: 88%;
269 }
270 }
271