.flow-connect-internal-sidebar-section {
    border-bottom: 1px solid #e5ebf1;
    background: #f8fbff;
}

.flow-connect-internal-section-title {
    padding: 9px 12px 6px;
    color: #5f6b76;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.flow-connect-internal-section-title i {
    margin-right: 5px;
    color: #007bff;
}

.flow-connect-internal-item {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid #edf1f5;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.flow-connect-internal-item:hover,
.flow-connect-internal-item.active {
    background: #eef6ff;
}

.flow-connect-internal-item.active {
    box-shadow: inset 3px 0 0 #007bff;
}

.flow-connect-internal-avatar {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f2ff;
    color: #0069d9;
    font-weight: 700;
}

.flow-connect-internal-item-body {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.flow-connect-internal-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.flow-connect-internal-item-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #263238;
    font-size: 13px;
}

.flow-connect-internal-item-head small {
    flex: 0 0 auto;
    color: #89939d;
    font-size: 10px;
}

.flow-connect-internal-item-preview {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #77818b;
    font-size: 11px;
}

.flow-connect-internal-unread {
    flex: 0 0 auto;
    min-width: 22px;
    border-radius: 999px;
}

.flow-connect-internal-chat .chat-header-title i {
    font-size: .9em;
}

#flow-chat-overlay .flow-connect-internal-chat .chat-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

#flow-chat-overlay .flow-connect-internal-composer {
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: rgba(248, 249, 250, .98);
}

#flow-chat-overlay .flow-connect-internal-composer .chat-footer-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#flow-chat-overlay .flow-connect-internal-composer .chat-input-row {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
}

#flow-chat-overlay .flow-connect-internal-composer .message-textarea-wrapper {
    flex: 1 1 auto;
    min-width: 120px;
}

#flow-chat-overlay .flow-connect-internal-composer textarea {
    min-height: 62px;
    height: 62px;
    max-height: 120px;
    padding: 9px 10px;
    line-height: 1.35;
    resize: vertical;
}

#flow-chat-overlay .flow-connect-internal-composer .flow-message-quick-replies-button {
    color: #b45309;
    border-color: #fde68a;
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

#flow-chat-overlay .flow-connect-internal-audio-send-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border-color: #dbe4ef !important;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
    color: #0f766e !important;
}

#flow-chat-overlay .flow-connect-internal-audio-send-button i,
#flow-chat-overlay .flow-connect-internal-audio-send-button .fas {
    color: #0f766e !important;
}

#flow-chat-overlay .flow-connect-internal-audio-send-button.is-recording,
#flow-chat-overlay .flow-connect-internal-audio-send-button.is-sending {
    width: auto;
    min-width: 82px;
    color: #fff !important;
    border-color: #dc2626 !important;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
}

#flow-chat-overlay .flow-connect-internal-audio-send-button.is-sending {
    border-color: #0d9488 !important;
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%) !important;
}

#flow-chat-overlay .flow-connect-internal-audio-send-button.is-recording i,
#flow-chat-overlay .flow-connect-internal-audio-send-button.is-sending i {
    color: #fff !important;
}

#flow-chat-overlay .flow-connect-internal-chat .chat-attachment-strip {
    width: 100%;
    margin-bottom: 0;
}

#flow-chat-overlay .flow-connect-internal-chat .filepond--root {
    min-height: 48px;
    margin-bottom: 0;
    font-size: 13px;
}

#flow-chat-overlay .flow-connect-internal-chat .filepond--panel-root {
    border: 1px dashed #cfd8e3;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
}

#flow-chat-overlay .flow-connect-internal-chat .filepond--drop-label {
    min-height: 46px;
    height: 46px;
    color: #495057;
}

#flow-chat-overlay .flow-connect-internal-chat .filepond--drop-label label {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
}

#flow-chat-overlay .flow-connect-internal-chat .filepond--credits {
    display: none;
}

#flow-chat-overlay .flow-connect-internal-archived-note {
    margin: auto 12px 14px;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: rgba(248, 250, 252, .96);
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 575.98px) {
    #flow-chat-overlay .flow-connect-internal-composer .chat-input-row {
        flex-wrap: wrap;
    }

    #flow-chat-overlay .flow-connect-internal-composer .message-textarea-wrapper {
        flex: 1 1 100%;
        order: -1;
    }
}
