#wp-chatbot-wrapper {
    font-family: 'Segoe UI', sans-serif;
    z-index: 999999;
    position: relative;
}

/* Reset for safety */
#wp-chatbot-wrapper * {
    box-sizing: border-box;
}

/* Chat Button */
#wp-chatbot-wrapper #wp-chatbot-ball {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
}

#wp-chatbot-wrapper #wp-chatbot-ball img {
    width: 40px;
}

/* Chat Box */
#wp-chatbot-wrapper #wp-chatbot-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, #eef2f3 0%, #dae2e8 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
}

/* Header */
#wp-chatbot-wrapper .chat-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255,255,255,0.6);
    align-items: center;
}

#wp-chatbot-wrapper .bot-avatar-mini {
    width: 35px;
    height: 35px;
    background: #c2c2f000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wp-chatbot-wrapper .header-right button {
    border: none;
    background: #eee;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    margin-left: 5px;
    padding: 0;
}

/* Messages */
#wp-chatbot-wrapper #chat-messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#wp-chatbot-wrapper .msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

#wp-chatbot-wrapper .msg.user {
    flex-direction: row-reverse;
}

#wp-chatbot-wrapper .avatar-container {
    width: 30px;
    height: 30px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#wp-chatbot-wrapper .msg.user .avatar-container {
    background: #e0e0e0;
}

#wp-chatbot-wrapper .avatar-container img {
    width: 18px;
    height: 18px;
}

#wp-chatbot-wrapper .msg-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    max-width: 75%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.4;
}

#wp-chatbot-wrapper .bot .msg-bubble {
    background: white;
    color: #333;
    border-top-left-radius: 2px;
}

#wp-chatbot-wrapper .user .msg-bubble {
    background: #847af4;
    color: white;
    border-top-right-radius: 2px;
}

/* Footer */
#wp-chatbot-wrapper .chat-footer {
    padding: 20px !important;
}

#wp-chatbot-wrapper .input-wrapper {
    background: linear-gradient(to right, #c2c2f0, #ddcef5);
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
}

#wp-chatbot-wrapper .input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px;
    color: #333;
}

#wp-chatbot-wrapper .input-wrapper button {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #847af4;
    cursor: pointer;
}

/* Bottom Nav */
#wp-chatbot-wrapper .bottom-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 15px;
}

#wp-chatbot-wrapper .nav-item {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

#wp-chatbot-wrapper .nav-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

#wp-chatbot-wrapper .nav-item img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* Chips */
#wp-chatbot-wrapper .chip {
    display: inline-block;
    margin-bottom: 5px;
    background: #fff;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 6px 15px;
    border-radius: 20px;
    margin-top: 4px;
    margin-right: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: 0.2s;
}

#wp-chatbot-wrapper .chip:hover {
    background: #007bff;
    color: #fff;
}

/* Product Card */
#wp-chatbot-wrapper .p-card {
    display: flex !important;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#wp-chatbot-wrapper .p-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#wp-chatbot-wrapper .p-card img {
    width: 110px;
    height: 60px;
    border-radius: 5px;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

#wp-chatbot-wrapper .p-card div {
    display: flex;
    flex-direction: column;
}

#wp-chatbot-wrapper .p-card b {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

#wp-chatbot-wrapper .p-card span {
    color: #847af4;
    font-weight: bold;
    font-size: 13px;
}

/* Typing */
#wp-chatbot-wrapper #vnb-typing-indicator {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}
.wp-chatbot-box{
    display: flex !important;
}