/* 1. Main Wrapper - Keep at the absolute front of everything */
#gsb-wrapper {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 2147483647 !important; /* Maximum possible Z-index */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    direction: ltr !important;
}

/* 2. The Floating Button (The Blue Circle) */
#gsb-trigger {
    background-color: #0073aa !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
}

#gsb-trigger:hover {
    transform: scale(1.1) rotate(5deg) !important;
    background-color: #005a87 !important;
}

/* 3. The Chat Window Box */
#gsb-chat-box {
    width: 320px !important;
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    border: 1px solid #e1e1e1 !important;
    position: absolute !important;
    bottom: 80px !important;
    right: 0 !important;
    animation: gsbFadeIn 0.3s ease-out !important;
}

/* 4. Chat Header */
#gsb-header {
    background-color: #0073aa !important;
    color: #ffffff !important;
    padding: 20px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(0,0,0,0.1) !important;
}

/* 5. Content Area */
#gsb-content {
    padding: 20px !important;
    background: #ffffff !important;
}

#gsb-txt {
    font-size: 14px !important;
    color: #444444 !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}

/* 6. Input Field */
#gsb-email {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #eeeeee !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s !important;
    outline: none !important;
    color: #333 !important;
}

#gsb-email:focus {
    border-color: #0073aa !important;
}

/* 7. The Submit Button */
#gsb-btn {
    width: 100% !important;
    background-color: #28a745 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: background 0.3s !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

#gsb-btn:hover {
    background-color: #218838 !important;
}

#gsb-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
}

/* 8. Response Messages */
#gsb-res {
    margin-top: 15px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Animation */
@keyframes gsbFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. Mobile Responsiveness */
@media (max-width: 480px) {
    #gsb-chat-box {
        width: 280px !important;
        right: -10px !important;
    }
    #gsb-trigger {
        width: 55px !important;
        height: 55px !important;
    }
}