Compact Message Input

Add this code to the Custom CSS field on the Settings tab of your AI Chatbot widget’s settings:

before

after

image


/* ==========================================================
   Compact Message Input
   ========================================================== */

/* Outer input container */
.es-interaction-field-container {
    position: relative !important;
    display: block !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d8d0c9 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Vertically center text and cursor */
.es-interaction-field-text-control {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;

    box-sizing: border-box !important;
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;

    margin: 0 !important;
    padding: 0 90px 0 14px !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;

    font-size: 14px !important;
    line-height: 20px !important;
    overflow-y: auto !important;
    resize: none !important;
}

/* Input placeholder */
.es-interaction-field-text-control::placeholder {
    color: #a59a92 !important;
    opacity: 1 !important;
}

/* Attachment and send buttons */
[class*="interaction-field__Actions-sc"] {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 !important;
    z-index: 2 !important;
}

/* Input focus state */
.es-interaction-field-container:focus-within {
    border-color: #c76b32 !important;
    box-shadow: none !important;
}

Looks awesome! Many thanks for sharing your solution, Sina :wink: