:root {
--wbl-primary: #4CAF50; --wbl-bg: #ffffff;
--wbl-text: #333333;
--wbl-glass-bg: rgba(255, 255, 255, 0.75);
--wbl-glass-border: rgba(255, 255, 255, 0.4);
--wbl-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
--wbl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
} .wbl-chat-launcher {
position: fixed;
bottom: 20px;
left: 20px; width: 60px;
height: 60px;
background: var(--wbl-primary);
border-radius: 50%;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
cursor: pointer;
z-index: 99999;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
display: flex;
align-items: center;
justify-content: center;
}
.wbl-chat-launcher:hover {
transform: scale(1.1);
}
.wbl-chat-launcher-icon {
width: 32px;
height: 32px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
} .wbl-chat-box {
position: fixed;
bottom: 90px;
left: 20px; width: 380px;
max-width: 90vw;
height: 600px;
max-height: 80vh;
z-index: 99999;
display: flex;
flex-direction: column;
border-radius: 20px;
overflow: hidden;
font-family: var(--wbl-font); background: var(--wbl-glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--wbl-glass-border);
box-shadow: var(--wbl-glass-shadow);
animation: wblFadeUp 0.3s ease-out forwards;
}
@keyframes wblFadeUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
} .wbl-chat-header {
background: var(--wbl-primary); background: linear-gradient(135deg, var(--wbl-primary) 0%, rgba(255, 255, 255, 0.1) 100%);
color: #fff;
padding: 20px;
font-weight: 600;
font-size: 18px;
display: flex;
align-items: center;
justify-content: space-between;
}
.wbl-chat-minimize {
cursor: pointer;
opacity: 0.8;
font-size: 24px;
line-height: 1;
} .wbl-chat-body {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 15px;
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}
.wbl-chat-body::-webkit-scrollbar {
width: 6px;
}
.wbl-chat-body::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
} .wbl-message {
max-width: 80%;
padding: 12px 16px;
border-radius: 12px;
font-size: 14px;
line-height: 1.5;
position: relative;
word-wrap: break-word;
animation: wblMsgPop 0.3s ease-out forwards;
}
@keyframes wblMsgPop {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.wbl-message.bot {
align-self: flex-start;
background: #ffffff;
color: #333;
border-bottom-left-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.wbl-message.user {
align-self: flex-end;
background: var(--wbl-primary);
color: #fff;
border-bottom-right-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} .wbl-chat-footer {
padding: 15px;
background: rgba(255, 255, 255, 0.6);
border-top: 1px solid rgba(0, 0, 0, 0.05);
display: flex;
gap: 10px;
align-items: center;
}
.wbl-chat-footer input {
flex: 1;
border: none;
background: #fff;
border-radius: 20px;
padding: 10px 15px;
font-size: 14px;
outline: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.2s;
}
.wbl-chat-footer input:focus {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.wbl-chat-footer button {
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
background: var(--wbl-primary);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
.wbl-chat-footer button:hover {
transform: scale(1.05);
} .wbl-chat-typing {
align-self: flex-start;
background: #fff;
padding: 8px 12px;
border-radius: 12px;
display: flex;
gap: 4px;
margin-bottom: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.wbl-dot {
width: 6px;
height: 6px;
background: #ccc;
border-radius: 50%;
animation: wblBounce 1.4s infinite ease-in-out both;
}
.wbl-dot:nth-child(1) {
animation-delay: -0.32s;
}
.wbl-dot:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes wblBounce {
0%,
80%,
100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}