| 1 |
.code-block-container { |
| 2 |
position: relative; |
| 3 |
margin: 15px 0; |
| 4 |
} |
| 5 |
|
| 6 |
.code-block { |
| 7 |
background-color: #212121; |
| 8 |
color: #fff; |
| 9 |
padding: 10px; |
| 10 |
border-radius: 5px; |
| 11 |
white-space: pre-wrap; /* Maintain formatting */ |
| 12 |
overflow: auto; /* Enable scrolling for long content */ |
| 13 |
font-family: monospace; |
| 14 |
} |
| 15 |
|
| 16 |
.code-block code { |
| 17 |
font-family: monospace; |
| 18 |
white-space: pre-wrap; |
| 19 |
display: block; |
| 20 |
} |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
.mxchat-image-gallery { |
| 25 |
display: flex; |
| 26 |
flex-wrap: wrap; |
| 27 |
gap: 10px; |
| 28 |
justify-content: center; |
| 29 |
} |
| 30 |
|
| 31 |
.mxchat-image-item { |
| 32 |
text-align: center; |
| 33 |
overflow: hidden; |
| 34 |
word-wrap: break-word; |
| 35 |
} |
| 36 |
|
| 37 |
.mxchat-image-title { |
| 38 |
display: block; |
| 39 |
font-size: 14px; |
| 40 |
color: inherit; |
| 41 |
white-space: nowrap; |
| 42 |
overflow: hidden; |
| 43 |
text-overflow: ellipsis; |
| 44 |
max-width: 100%; |
| 45 |
} |
| 46 |
|
| 47 |
.mxchat-image-link { |
| 48 |
text-decoration: none; |
| 49 |
} |
| 50 |
|
| 51 |
.mxchat-image-thumbnail { |
| 52 |
max-width: 100%; |
| 53 |
height: auto; |
| 54 |
border-radius: 5px; |
| 55 |
transition: transform 0.3s; |
| 56 |
} |
| 57 |
|
| 58 |
.mxchat-image-thumbnail:hover { |
| 59 |
transform: scale(1.05); |
| 60 |
} |
| 61 |
.mxchat-generated-image { |
| 62 |
max-width: 100%; |
| 63 |
height: auto; |
| 64 |
border-radius: 0 0 8px 8px; |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
/* MxChat Product Card Styling */ |
| 69 |
.mxchat-product-card { |
| 70 |
display: flex; |
| 71 |
flex-direction: column; |
| 72 |
align-items: center; |
| 73 |
margin: 10px 0; |
| 74 |
padding: 10px; |
| 75 |
border-radius: 5px; |
| 76 |
background-color: inherit; |
| 77 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
| 78 |
} |
| 79 |
|
| 80 |
.mxchat-product-card img.mxchat-product-image { |
| 81 |
max-width: 100%; |
| 82 |
height: auto; |
| 83 |
margin-bottom: 5px; |
| 84 |
border-radius: 4px; |
| 85 |
} |
| 86 |
|
| 87 |
.mxchat-product-card h3.mxchat-product-name { |
| 88 |
font-size: 16px; |
| 89 |
font-weight: bold; |
| 90 |
margin: 5px 0; |
| 91 |
text-align: center; |
| 92 |
color: inherit; |
| 93 |
} |
| 94 |
|
| 95 |
.mxchat-product-card .mxchat-product-price { |
| 96 |
color: inherit; |
| 97 |
font-weight: bold; |
| 98 |
margin-bottom: 5px; |
| 99 |
} |
| 100 |
|
| 101 |
.mxchat-product-card .mxchat-product-description { |
| 102 |
font-size: 14px; |
| 103 |
text-align: center; |
| 104 |
margin-bottom: 10px; |
| 105 |
color: inherit; |
| 106 |
} |
| 107 |
|
| 108 |
.mxchat-product-card .mxchat-add-to-cart-button { |
| 109 |
background-color: #0071a1; |
| 110 |
color: #fff; |
| 111 |
padding: 8px 12px; |
| 112 |
border: none; |
| 113 |
cursor: pointer; |
| 114 |
border-radius: 3px; |
| 115 |
transition: background-color 0.3s ease; |
| 116 |
} |
| 117 |
|
| 118 |
.mxchat-product-card .mxchat-add-to-cart-button:hover { |
| 119 |
background-color: #005f87; |
| 120 |
} |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
#mxchat-popular-questions { |
| 127 |
padding: 10px; |
| 128 |
margin-bottom: 15px; |
| 129 |
} |
| 130 |
|
| 131 |
.mxchat-popular-questions-title { |
| 132 |
font-size: 16px; |
| 133 |
font-weight: bold; |
| 134 |
color: #333; |
| 135 |
margin-bottom: 10px; |
| 136 |
} |
| 137 |
|
| 138 |
.mxchat-popular-questions-container { |
| 139 |
display: flex; |
| 140 |
flex-direction: column; |
| 141 |
gap: 10px; |
| 142 |
} |
| 143 |
|
| 144 |
.mxchat-popular-question { |
| 145 |
padding: 12px 20px; |
| 146 |
background-color: #f5f5f5; /* Darker background for better contrast */ |
| 147 |
border: 1px solid #bbb; /* Darker border for better visibility */ |
| 148 |
border-radius: 8px; |
| 149 |
color: #333; |
| 150 |
font-size: 16px; |
| 151 |
cursor: pointer; |
| 152 |
text-align: left; |
| 153 |
transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; |
| 154 |
} |
| 155 |
|
| 156 |
.mxchat-popular-question:hover { |
| 157 |
background-color: #eaeaea; /* Slightly darker on hover */ |
| 158 |
border-color: #999; /* Darker border on hover */ |
| 159 |
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */ |
| 160 |
color: #212121; |
| 161 |
} |
| 162 |
|
| 163 |
.mxchat-popular-question:focus { |
| 164 |
outline: none; |
| 165 |
background-color: #e0e0e0; /* Darker background on focus */ |
| 166 |
border-color: #777; /* More prominent focus border */ |
| 167 |
box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5); /* Subtle focus ring */ |
| 168 |
color: #212121; |
| 169 |
} |
| 170 |
|
| 171 |
.mxchat-popular-question:active { |
| 172 |
background-color: #d8d8d8; /* Darker pressed background */ |
| 173 |
border-color: #666; /* Darker border when pressed */ |
| 174 |
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly darker pressed effect */ |
| 175 |
color: #212121; |
| 176 |
} |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
#widget_icon, #widget_icon_2, #widget_icon_3, #widget_icon_5, #widget_icon_4, #widget_icon_6, #widget_icon_7 { |
| 189 |
padding: 10px; |
| 190 |
} |
| 191 |
|
| 192 |
.invisible { |
| 193 |
display: none; |
| 194 |
opacity: 0; |
| 195 |
pointer-events: none; |
| 196 |
} |
| 197 |
|
| 198 |
#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice { |
| 199 |
font-size: 0.75rem; |
| 200 |
margin: 0; |
| 201 |
color: #71717a; |
| 202 |
} |
| 203 |
|
| 204 |
#mxchat-chatbot-wrapper .chatbot-footer .privacy-notice a { |
| 205 |
color: #0073aa; /* You can specify the color for the link */ |
| 206 |
text-decoration: underline; |
| 207 |
font-size: 0.75rem; |
| 208 |
|
| 209 |
} |
| 210 |
|
| 211 |
#mxchat-chatbot #chat-container #input-container #send-button, .copy-btn { |
| 212 |
transition: background-color .3s; |
| 213 |
color: #fff; |
| 214 |
font-size: 1rem; |
| 215 |
cursor: pointer; |
| 216 |
font-weight: 700; |
| 217 |
} |
| 218 |
|
| 219 |
#mxchat-chatbot { |
| 220 |
max-width: 800px; |
| 221 |
overflow: hidden; |
| 222 |
position: relative; |
| 223 |
display: flex; |
| 224 |
flex-direction: column; |
| 225 |
height: 500px; |
| 226 |
box-sizing: border-box; |
| 227 |
flex-grow: 1; |
| 228 |
} |
| 229 |
|
| 230 |
#chat-container { |
| 231 |
display: flex; |
| 232 |
flex-direction: column; |
| 233 |
height: 100%; |
| 234 |
} |
| 235 |
|
| 236 |
#chat-box { |
| 237 |
flex-grow: 1; |
| 238 |
overflow-y: auto; |
| 239 |
padding: 10px; |
| 240 |
margin-bottom: 0; |
| 241 |
font-size: 1rem; |
| 242 |
} |
| 243 |
|
| 244 |
#chat-box::-webkit-scrollbar { |
| 245 |
width: 5px; |
| 246 |
} |
| 247 |
|
| 248 |
#chat-box::-webkit-scrollbar-thumb { |
| 249 |
background-color: #333; |
| 250 |
border-radius: 20px; |
| 251 |
} |
| 252 |
|
| 253 |
.bot-message, .user-message { |
| 254 |
margin-bottom: 15px; |
| 255 |
padding: 10px; |
| 256 |
display: inline-block; |
| 257 |
max-width: 85%; |
| 258 |
box-shadow: 0 1px 1px rgba(0, 0, 0, .1); |
| 259 |
} |
| 260 |
|
| 261 |
.user-message { |
| 262 |
background: #fff; |
| 263 |
color: #212121; |
| 264 |
text-align: left; |
| 265 |
float: right; |
| 266 |
clear: both; |
| 267 |
border-radius: 18px 0 18px 18px; |
| 268 |
border: solid 1px #212121; |
| 269 |
word-wrap: break-word; |
| 270 |
} |
| 271 |
|
| 272 |
#mxchat-chatbot #chat-container #chat-box .bot-message { |
| 273 |
text-align: left; |
| 274 |
float: left; |
| 275 |
clear: both; |
| 276 |
border: 1px solid rgba(226, 232, 255, .2); |
| 277 |
border-radius: 0 18px 18px; |
| 278 |
background: #212121; |
| 279 |
color: #fff; |
| 280 |
overflow-x: hidden; |
| 281 |
} |
| 282 |
|
| 283 |
#mxchat-chatbot-wrapper { |
| 284 |
box-shadow: 0 4px 8px rgba(0, 0, 0, .1); |
| 285 |
border-radius: 10px; |
| 286 |
display: flex; |
| 287 |
flex-direction: column; |
| 288 |
height: 100%; |
| 289 |
width: 100%; |
| 290 |
} |
| 291 |
|
| 292 |
#mxchat-chatbot #chat-container #input-container { |
| 293 |
position: relative; |
| 294 |
display: flex; |
| 295 |
align-items: center; |
| 296 |
padding: 10px; |
| 297 |
} |
| 298 |
|
| 299 |
#mxchat-chatbot #chat-container #input-container #chat-input { |
| 300 |
flex-grow: 1; |
| 301 |
padding: .5rem 2.5rem .5rem .5rem; |
| 302 |
border-radius: 10px; |
| 303 |
border: 1px solid #bbb; |
| 304 |
color: #212121; |
| 305 |
font-size: 1rem; |
| 306 |
background: 0 0; |
| 307 |
width: calc(100% - 30px); |
| 308 |
margin-bottom: 0px; |
| 309 |
height: 100%; |
| 310 |
} |
| 311 |
|
| 312 |
#mxchat-chatbot #chat-container #input-container #send-button { |
| 313 |
position:absolute; |
| 314 |
right: 10px; |
| 315 |
top: 50%; |
| 316 |
transform: translateY(-50%); |
| 317 |
border: none; |
| 318 |
border-radius: 50%; |
| 319 |
width: 30px; |
| 320 |
height: 30px; |
| 321 |
display: flex; |
| 322 |
align-items: center; |
| 323 |
justify-content: center; |
| 324 |
background: 0 0!important; |
| 325 |
padding: 5px; |
| 326 |
margin: 0px 0px 0px 0px; |
| 327 |
} |
| 328 |
|
| 329 |
#mxchat-chatbot #chat-container #input-container #send-button .fa-paper-plane { |
| 330 |
font-size: 1.3rem; |
| 331 |
} |
| 332 |
|
| 333 |
#send-button:hover, .copy-btn:hover { |
| 334 |
opacity: .8; |
| 335 |
} |
| 336 |
|
| 337 |
#mxchat-chatbot:after { |
| 338 |
content: ""; |
| 339 |
display: table; |
| 340 |
clear: both; |
| 341 |
} |
| 342 |
|
| 343 |
pre { |
| 344 |
background-color: #000; |
| 345 |
border: 1px solid #ddd; |
| 346 |
border-radius: 20px; |
| 347 |
border-left: 3px solid #9e7aff; |
| 348 |
color: #fff; |
| 349 |
page-break-inside: avoid; |
| 350 |
font-family: monospace; |
| 351 |
font-size: 15px; |
| 352 |
line-height: 1.6; |
| 353 |
margin-bottom: 1.6em; |
| 354 |
max-width: 100%; |
| 355 |
overflow: auto; |
| 356 |
padding: 1em 1.5em; |
| 357 |
display: block; |
| 358 |
word-wrap: break-word; |
| 359 |
} |
| 360 |
|
| 361 |
.copy-btn { |
| 362 |
padding: 10px 20px; |
| 363 |
border: none; |
| 364 |
border-radius: 4px; |
| 365 |
background-color: #9e7aff; |
| 366 |
} |
| 367 |
|
| 368 |
#floating-chatbot { |
| 369 |
position: fixed; |
| 370 |
bottom: 25px; |
| 371 |
right: 25px; |
| 372 |
width: 375px; |
| 373 |
height: 625px; |
| 374 |
box-shadow: 0 0 10px rgba(0, 0, 0, .25); |
| 375 |
border-radius: 20px; |
| 376 |
overflow: hidden; |
| 377 |
display: flex; |
| 378 |
z-index: 100000; |
| 379 |
transition: transform .3s ease-in-out, opacity .3s ease-in-out; |
| 380 |
transform: translateY(20%); |
| 381 |
opacity: 0; |
| 382 |
pointer-events: none; |
| 383 |
} |
| 384 |
|
| 385 |
#floating-chatbot.visible { |
| 386 |
transform: translateY(0); |
| 387 |
opacity: 1; |
| 388 |
pointer-events: auto; |
| 389 |
} |
| 390 |
|
| 391 |
#floating-chatbot-button.hidden, .exit-chat span { |
| 392 |
display: none!important; |
| 393 |
} |
| 394 |
|
| 395 |
.visible { |
| 396 |
display: flex; |
| 397 |
} |
| 398 |
|
| 399 |
#floating-chatbot-button { |
| 400 |
transition: opacity 1s ease-in-out; |
| 401 |
font-size: 1.25rem; |
| 402 |
position: fixed; |
| 403 |
bottom: 30px; |
| 404 |
right: 25px; |
| 405 |
background-color: #d63638; |
| 406 |
color: #fff; |
| 407 |
width: 60px; |
| 408 |
height: 60px; |
| 409 |
border-radius: 50%; |
| 410 |
box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important; |
| 411 |
justify-content: center; |
| 412 |
align-items: center; |
| 413 |
cursor: pointer; |
| 414 |
transition: .3s; |
| 415 |
z-index: 100000; |
| 416 |
display: flex; |
| 417 |
} |
| 418 |
|
| 419 |
#floating-chatbot-button img { |
| 420 |
max-width: 100%; |
| 421 |
max-height: 100%; |
| 422 |
padding: 10px; |
| 423 |
width: auto; |
| 424 |
height: auto; |
| 425 |
} |
| 426 |
|
| 427 |
#mxchat-chatbot-wrapper.active+#floating-chatbot-button { |
| 428 |
bottom: 530px; |
| 429 |
width: 100%; |
| 430 |
} |
| 431 |
|
| 432 |
.chatbot-close-button { |
| 433 |
position: absolute; |
| 434 |
top: 5px; |
| 435 |
right: 5px; |
| 436 |
border: none; |
| 437 |
background: 0 0; |
| 438 |
cursor: pointer; |
| 439 |
font-size: 20px; |
| 440 |
color: #f0f0f1; |
| 441 |
} |
| 442 |
|
| 443 |
#mxchat-chatbot-wrapper .chatbot-top-bar { |
| 444 |
cursor: pointer; |
| 445 |
color: #fff; |
| 446 |
padding: 10px; |
| 447 |
border-top-left-radius: 10px; |
| 448 |
border-top-right-radius: 10px; |
| 449 |
display: flex; |
| 450 |
justify-content: space-between; |
| 451 |
align-items: baseline; |
| 452 |
} |
| 453 |
|
| 454 |
#mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title { |
| 455 |
font-size: 1rem; |
| 456 |
line-height: 25px; |
| 457 |
padding: 10px; |
| 458 |
margin: 0; |
| 459 |
font-family: 'Plus Jakarta Sans', sans-serif; |
| 460 |
font-weight: bold; |
| 461 |
} |
| 462 |
|
| 463 |
#mxchat-chatbot-wrapper .chatbot-top-bar .chatbot-title span { |
| 464 |
font-weight: 700; |
| 465 |
} |
| 466 |
|
| 467 |
#mxchat-chatbot-wrapper .chatbot-top-bar button.exit-chat { |
| 468 |
background: 0 0; |
| 469 |
border: none; |
| 470 |
opacity: .8; |
| 471 |
} |
| 472 |
|
| 473 |
.exit-chat { |
| 474 |
border: none; |
| 475 |
background: 0 0; |
| 476 |
cursor: pointer; |
| 477 |
display: flex; |
| 478 |
align-items: center; |
| 479 |
justify-content: center; |
| 480 |
padding: 5px; |
| 481 |
margin-left: auto; |
| 482 |
} |
| 483 |
|
| 484 |
.exit-chat svg { |
| 485 |
fill: white; |
| 486 |
width: 24px; |
| 487 |
height: 24px; |
| 488 |
transform: rotate(270deg); |
| 489 |
} |
| 490 |
|
| 491 |
#mxchat-chatbot-wrapper .chatbot-footer { |
| 492 |
text-align: center; |
| 493 |
padding-bottom: 10px; |
| 494 |
font-size: .85em; |
| 495 |
} |
| 496 |
|
| 497 |
#mxchat-chatbot-wrapper .chatbot-footer .powered-by { |
| 498 |
text-decoration: none; |
| 499 |
color: inherit; |
| 500 |
font-weight: 700; |
| 501 |
} |
| 502 |
|
| 503 |
#mxchat-chatbot-wrapper .chatbot-footer .powered-by span { |
| 504 |
text-decoration: underline; |
| 505 |
} |
| 506 |
|
| 507 |
.thinking-dots-container { |
| 508 |
display: flex; |
| 509 |
justify-content: center; |
| 510 |
align-items: center; |
| 511 |
overflow: hidden; |
| 512 |
height: 20px; /* Adjust as needed */ |
| 513 |
} |
| 514 |
|
| 515 |
.thinking-dots { |
| 516 |
display: flex; |
| 517 |
justify-content: center; |
| 518 |
align-items: center; |
| 519 |
height: 90%; |
| 520 |
} |
| 521 |
|
| 522 |
.dot { |
| 523 |
height: 8px; |
| 524 |
width: 8px; |
| 525 |
margin: 0 3px; |
| 526 |
background-color: #fff; |
| 527 |
border-radius: 50%; |
| 528 |
display: inline-block; |
| 529 |
animation: bounce 1.4s ease-in-out infinite both; |
| 530 |
} |
| 531 |
|
| 532 |
.dot:first-child { |
| 533 |
animation-delay: -.32s; |
| 534 |
} |
| 535 |
|
| 536 |
.dot:nth-child(2) { |
| 537 |
animation-delay: -.16s; |
| 538 |
} |
| 539 |
|
| 540 |
@keyframes bounce { |
| 541 |
0%, 100%, 80% { |
| 542 |
transform: scale(1); |
| 543 |
} |
| 544 |
40% { |
| 545 |
transform: scale(1.5); |
| 546 |
} |
| 547 |
} |
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
#pre-chat-message { |
| 552 |
position: fixed; |
| 553 |
bottom: 85px; |
| 554 |
right: 30px; |
| 555 |
background-color: #fff; |
| 556 |
color: #212121; |
| 557 |
padding: 10px; |
| 558 |
box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.3); |
| 559 |
border-radius: 5px; |
| 560 |
z-index: 1000; |
| 561 |
cursor: pointer; |
| 562 |
max-width: 325px; |
| 563 |
font-size: 14px; |
| 564 |
display: none; |
| 565 |
background: #fff; |
| 566 |
margin-bottom: 10px; |
| 567 |
} |
| 568 |
|
| 569 |
#pre-chat-message .close-pre-chat-message { |
| 570 |
position: absolute; |
| 571 |
top: -6px; |
| 572 |
right: -6px; |
| 573 |
background-color: #ccc; |
| 574 |
border: none; |
| 575 |
color: #333; |
| 576 |
font-size: 14px; |
| 577 |
cursor: pointer; |
| 578 |
border-radius: 50%; |
| 579 |
width: 20px; |
| 580 |
height: 20px; |
| 581 |
display: flex; |
| 582 |
align-items: center; |
| 583 |
justify-content: center; |
| 584 |
padding: 0; |
| 585 |
line-height: 1; |
| 586 |
display: flex; /* Show the close button on hover */ |
| 587 |
} |
| 588 |
|
| 589 |
|
| 590 |
|
| 591 |
@media (max-width: 550px) { |
| 592 |
|
| 593 |
#pre-chat-message { |
| 594 |
bottom: 70px; /* Adjust this value as needed */ |
| 595 |
right: 15px; /* Adjust this value as needed */ |
| 596 |
} |
| 597 |
|
| 598 |
#chat-input { |
| 599 |
width: calc(100% - 70px); |
| 600 |
} |
| 601 |
.bot-message, .user-message { |
| 602 |
padding: 10px; |
| 603 |
max-width: 95%; |
| 604 |
} |
| 605 |
#floating-chatbot-button { |
| 606 |
bottom: 15px; |
| 607 |
right: 10px; |
| 608 |
} |
| 609 |
#floating-chatbot { |
| 610 |
width: 100vw; |
| 611 |
height: calc(var(--vh, 1vh) * 100); |
| 612 |
margin: 0; |
| 613 |
padding: 0; |
| 614 |
position: fixed; |
| 615 |
bottom: 0; |
| 616 |
top: 0; |
| 617 |
left: 0; |
| 618 |
right: 0; |
| 619 |
border-radius: 0; |
| 620 |
} |
| 621 |
#mxchat-chatbot-wrapper .chatbot-top-bar { |
| 622 |
border-top-left-radius: 0; |
| 623 |
border-top-right-radius: 0; |
| 624 |
} |
| 625 |
} |
| 626 |
|