
.vgf-chat-container {
    position: fixed !important;   /* force floating */
    bottom: 20px !important;
    right: 20px !important;
    width: 320px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999999 !important;   /* always on top */
    font-family: Arial, sans-serif;
}

/* Floating bubble */
.vgf-chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ff4081;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s ease;
}
.vgf-chat-bubble:hover {
    transform: scale(1.1);
    background: #e73370;
}

/* Chat container */
.vgf-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    animation: slideUp 0.3s ease;
    font-family: Arial, sans-serif;
}

/* Header */
.vgf-chat-header {
    background: #ff4081;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    position: relative;
}
.vgf-chat-header .vgf-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* Messages */
.vgf-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 14px;
}

/* Input */
.vgf-chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}
.vgf-chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 14px;
}
.vgf-chat-input button {
    background: #ff4081;
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
}

/* Animation */
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Chat Widget Container */
#vgf-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

/* Toggle Button */
#vgf-chat-toggle {
    background: #ff4081;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
#vgf-chat-toggle:hover {
    transform: scale(1.1);
}

/* Chat Panel */
#vgf-chat-panel {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    overflow: hidden;
    max-height: 450px;
}

/* Chat Header */
#vgf-chat-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #ff4081;
    color: #fff;
}
.vgf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.vgf-title {
    font-weight: bold;
    font-size: 16px;
    flex-grow: 1;
}
#vgf-close {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Messages Area */
#vgf-chat-messages {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}
#vgf-chat-messages .vgf-user,
#vgf-chat-messages .vgf-assistant {
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    max-width: 80%;
    word-wrap: break-word;
}
#vgf-chat-messages .vgf-user {
    background: #ff4081;
    color: #fff;
    align-self: flex-end;
}
#vgf-chat-messages .vgf-assistant {
    background: #e0e0e0;
    color: #000;
    align-self: flex-start;
}

/* Chat Form */
#vgf-chat-form {
    display: flex;
    border-top: 1px solid #ddd;
}
#vgf-message-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}
#vgf-chat-form button {
    padding: 10px 16px;
    background: #ff4081;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
#vgf-chat-form button:hover {
    background: #e73370;
}

/* Scrollbar Styling */
#vgf-chat-messages::-webkit-scrollbar {
    width: 6px;
}
#vgf-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Responsive */
@media screen and (max-width: 480px) {
    #vgf-chat-widget {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }
    #vgf-chat-panel {
        max-height: 400px;
    }
}
