.wacb-widget {
position: fixed;
bottom: 20px;
z-index: 999999;
--wacb-color: #25D366;
--wacb-button-size: 60px;
--wacb-icon-size: 32px;
--wacb-font-size: 14px;
--wacb-font-weight: 500;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
direction: ltr;
}
.wacb-widget.wacb-right { right: 20px; }
.wacb-widget.wacb-left { left: 20px; }
.wacb-button {
width: var(--wacb-button-size);
height: var(--wacb-button-size);
border-radius: 50%;
background: var(--wacb-color);
box-shadow: 0 4px 14px rgba(0,0,0,.25);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transform: scale(.6);
transition: opacity .25s ease, transform .25s ease;
position: relative;
}
.wacb-widget.wacb-show .wacb-button {
opacity: 1;
transform: scale(1);
}
.wacb-icon { width: var(--wacb-icon-size); height: var(--wacb-icon-size); }
.wacb-icon-custom { object-fit: contain; }
.wacb-tooltip {
position: absolute;
bottom: 8px;
background: #fff;
color: #111;
padding: 10px 16px;
border-radius: 8px;
box-shadow: 0 4px 14px rgba(0,0,0,.2);
white-space: nowrap;
font-size: var(--wacb-font-size);
font-weight: var(--wacb-font-weight);
opacity: 0;
pointer-events: none;
transform: translateY(6px);
transition: opacity .25s ease, transform .25s ease;
}
.wacb-right .wacb-tooltip { right: calc(var(--wacb-button-size) + 12px); }
.wacb-left .wacb-tooltip { left: calc(var(--wacb-button-size) + 12px); }
.wacb-tooltip.wacb-visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.wacb-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 4px;
margin-left: 6px;
border-radius: 999px;
background: #ff3b30;
color: #fff;
font-size: 11px;
font-weight: 700;
}
.wacb-chatbox {
position: absolute;
bottom: calc(var(--wacb-button-size) + 16px);
width: 300px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,.25);
overflow: hidden;
opacity: 0;
transform: translateY(10px) scale(.98);
pointer-events: none;
transition: opacity .2s ease, transform .2s ease;
}
.wacb-right .wacb-chatbox { right: 0; }
.wacb-left .wacb-chatbox { left: 0; }
.wacb-chatbox.wacb-open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.wacb-chatbox[hidden] { display: none; }
.wacb-header {
background: var(--wacb-color);
color: #fff;
padding: 14px 16px;
display: flex;
align-items: center;
gap: 10px;
}
.wacb-header-icon { width: 22px; height: 22px; flex-shrink: 0; }
.wacb-header-icon.wacb-icon-custom { object-fit: contain; }
.wacb-header-title { font-weight: var(--wacb-font-weight); font-size: var(--wacb-font-size); flex-grow: 1; }
.wacb-close {
background: transparent;
border: none;
color: #fff;
font-size: 22px;
line-height: 1;
cursor: pointer;
padding: 0;
}
.wacb-body { padding: 16px; background: #e5ddd5; }
.wacb-bubble {
background: #fff;
border-radius: 8px;
padding: 10px 14px;
font-size: var(--wacb-font-size);
font-weight: var(--wacb-font-weight);
line-height: 1.5;
color: #111;
box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wacb-cta {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: var(--wacb-color);
color: #fff;
text-decoration: none;
font-size: var(--wacb-font-size);
font-weight: var(--wacb-font-weight);
padding: 12px 16px;
margin: 0 16px 16px;
border-radius: 8px;
}
.wacb-send-icon { width: 16px; height: 16px; }
@media (max-width: 480px) {
.wacb-chatbox { width: calc(100vw - 40px); }
}