#vendor-chatbot-assistant {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

#vendor-chatbot-assistant .vca-toggle {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    color: #fff;
    background: #1462cc;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 98, 204, 0.35);
}

#vendor-chatbot-assistant .vca-panel {
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 90px);
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e1ef;
    box-shadow: 0 14px 40px rgba(9, 32, 66, 0.25);
    display: none;
    flex-direction: column;
}

#vendor-chatbot-assistant .vca-panel.is-open {
    display: flex;
}

#vendor-chatbot-assistant .vca-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1462cc, #1f8fff);
    color: #fff;
    padding: 12px 14px;
}

#vendor-chatbot-assistant .vca-title {
    font-size: 15px;
    margin: 0;
}

#vendor-chatbot-assistant .vca-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

#vendor-chatbot-assistant .vca-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f4f7fb;
}

#vendor-chatbot-assistant .vca-msg {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

#vendor-chatbot-assistant .vca-msg-bot {
    background: #fff;
    border: 1px solid #dce5f2;
    color: #12233d;
}

#vendor-chatbot-assistant .vca-msg-user {
    background: #0f5ec6;
    color: #fff;
    margin-left: 38px;
}

#vendor-chatbot-assistant .vca-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e3ebf7;
    background: #fff;
}

#vendor-chatbot-assistant .vca-input {
    min-width: 0;
    border: 1px solid #c9d6ea;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
}

#vendor-chatbot-assistant .vca-send {
    border: 0;
    border-radius: 8px;
    background: #1462cc;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
}

#vendor-chatbot-assistant .vca-product-list {
    display: grid;
    gap: 10px;
}

#vendor-chatbot-assistant .vca-product-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    border: 1px solid #dce6f4;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

#vendor-chatbot-assistant .vca-product-image img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
}

#vendor-chatbot-assistant .vca-product-content h4 {
    margin: 0 0 4px;
    font-size: 13px;
}

#vendor-chatbot-assistant .vca-product-content p {
    margin: 0 0 4px;
    font-size: 12px;
}

#vendor-chatbot-assistant .vca-action {
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    background: #1462cc;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

#vendor-chatbot-assistant .vca-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

#vendor-chatbot-assistant .vca-cart-summary {
    font-size: 12px;
    margin-bottom: 8px;
    color: #304b72;
}

#vendor-chatbot-assistant .vca-typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

#vendor-chatbot-assistant .vca-typing-dots {
    display: flex;
    gap: 4px;
}

#vendor-chatbot-assistant .vca-typing-dots span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: vca-typing-bounce 1.4s infinite ease-in-out;
}

#vendor-chatbot-assistant .vca-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

#vendor-chatbot-assistant .vca-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

#vendor-chatbot-assistant .vca-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes vca-typing-bounce {
    0%, 60%, 80% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    #vendor-chatbot-assistant {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    #vendor-chatbot-assistant .vca-toggle {
        float: right;
    }

    #vendor-chatbot-assistant .vca-panel {
        width: 100%;
        height: 72vh;
        max-height: 72vh;
    }
}
