#lcb-chat-root,
.lcb-bubble,
.lcb-window {
    position: fixed;
    z-index: 999999;
}

.lcb-bubble {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.lcb-bubble:hover {
    transform: scale(1.08);
}
.lcb-bubble.lcb-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

.lcb-window {
    bottom: 20px;
    right: 20px;
    width: 340px;
    max-width: 92vw;
    height: 480px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.lcb-window.lcb-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lcb-position-left .lcb-bubble,
.lcb-position-left .lcb-window {
    right: auto;
    left: 20px;
}

.lcb-header {
    color: #fff;
    padding: 16px 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    flex-shrink: 0;
}
.lcb-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.lcb-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f4f6f8;
}

.lcb-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-line;
    word-break: break-word;
}
.lcb-msg-bot {
    background: #fff;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.lcb-msg-user {
    background: #dcf8c6;
    color: #111;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.lcb-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}
.lcb-typing span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    display: inline-block;
    animation: lcb-blink 1.2s infinite ease-in-out;
}
.lcb-typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.lcb-typing span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes lcb-blink {
    0%,
    80%,
    100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

.lcb-input-area {
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
}

.lcb-text-form {
    display: flex;
    gap: 8px;
}
.lcb-text-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.lcb-text-form button {
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

.lcb-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lcb-choice-btn {
    background: #fff;
    border: 1.5px solid;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.lcb-choice-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lcb-continue-btn {
    display: block;
    margin-top: 10px;
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.lcb-continue-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lcb-whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .lcb-window {
        width: 92vw;
        right: 4vw;
        left: 4vw;
        height: 70vh;
    }
}