
        /* Floating Chat Button */
        #sp-chat-launcher {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #007bff;
            color: white;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            font-size: 24px;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }
        #sp-chat-launcher:hover { transform: scale(1.05); }

        /* Chat Window Widget */
        #sp-chat-container {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 350px;
            height: 450px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.25);
            display: none; /* Hidden by default */
            flex-direction: column;
            overflow: hidden;
            font-family: Arial, sans-serif;
            z-index: 1000;
        }

        /* Widget Subcomponents */
        .chat-header {
            background-color: #007bff;
            color: white;
            padding: 15px;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }
        .chat-messages {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .message {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 15px;
            font-size: 14px;
            line-height: 1.4;
            word-wrap: break-word;
        }
        .bot-msg {
            background-color: #e9ecef;
            color: #333;
            align-self: flex-start;
            border-top-left-radius: 2px;
        }
        .user-msg {
            background-color: #007bff;
            color: white;
            align-self: flex-end;
            border-top-right-radius: 2px;
        }
        .chat-input-area {
            display: flex;
            border-top: 1px solid #dee2e6;
            padding: 10px;
            background: white;
        }
        .chat-input-area input {
            flex: 1;
            border: 1px solid #ced4da;
            border-radius: 20px;
            padding: 8px 15px;
            outline: none;
        }
        .chat-input-area button {
            background: none;
            border: none;
            color: #007bff;
            font-weight: bold;
            margin-left: 10px;
            cursor: pointer;
        }

/* =========================================
   MOBILE CHATBOT
   Desktop design remains unchanged
   ========================================= */

@media (max-width: 768px) {

    /* Chatbot launcher - bottom right */
    #sp-chat-launcher {
        position: fixed;

        right: 15px;
        bottom: 15px;

        z-index: 9999;
    }


    /* Open chatbot window */
    #sp-chat-container {
        position: fixed;

        left: 10px;
        right: 10px;
        bottom: 10px;

        width: auto;
        max-width: none;

        height: 70vh;
        max-height: 600px;

        box-sizing: border-box;

        z-index: 10000;
    }


    /* Message area */
    #sp-chat-messages {
        overflow-y: auto;
        overflow-x: hidden;
    }


    /* Input area */
    #sp-chat-input {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;
    }


    /* Quick reply area */
    #sp-quick-replies {
        max-width: 100%;
        overflow-x: auto;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

    #sp-chat-launcher {
        right: 12px;
        bottom: 12px;
    }


    #sp-chat-container {
        left: 8px;
        right: 8px;
        bottom: 8px;

        width: auto;

        height: 75vh;
        max-height: 550px;
    }

}