Index: wp-includes/css/buttons.css
===================================================================
--- wp-includes/css/buttons.css	(revision 40364)
+++ wp-includes/css/buttons.css	(working copy)
@@ -412,6 +412,11 @@
 	}
 
 	/* Reset responsive styles on Log in button on iframed login form */
+	
+	.media-modal-content .media-toolbar-primary .media-button {
+		margin-top: 10px;
+	    margin-left: 5px;
+	}
 
 	.interim-login .button.button-large {
 		height: 30px;
Index: wp-includes/css/media-views.css
===================================================================
--- wp-includes/css/media-views.css	(revision 40364)
+++ wp-includes/css/media-views.css	(working copy)
@@ -242,6 +242,7 @@
 	width: calc(48% - 12px);
 }
 
+/* #40152
 .media-modal-content .attachments-browser .media-toolbar-secondary {
 	width: 66%;
 }
@@ -249,6 +250,7 @@
 .media-modal-content .media-toolbar-primary.search-form {
 	width: 33%;
 }
+*/
 
 .media-modal-content .media-toolbar-primary .media-button {
 	float: right;
@@ -279,6 +281,20 @@
 	overflow: hidden;
 }
 
+/* #40152 */
+.media-frame-toolbar .media-toolbar {
+	top: initial;
+	bottom: -45px;
+	height: auto;
+	overflow: initial;
+    border-top: 1px solid #ddd;
+}
+@media screen and (max-width: 782px) {
+	.media-frame-toolbar .media-toolbar {
+		bottom: -48px; /* #40152 : 3px button tab size compensation */
+	}
+}
+
 .media-toolbar-primary {
 	float: right;
 	height: 100%;
@@ -686,7 +702,6 @@
 	overflow: auto;
 	background: #fff;
 	border-top: 1px solid #ddd;
-	border-bottom: 1px solid #ddd;
 }
 
 .media-frame-toolbar {
@@ -696,6 +711,9 @@
 	bottom: 0;
 	height: 60px;
 	z-index: 100;
+	/* #40152 */
+	bottom: 60px;
+	height: auto;
 }
 
 .media-frame.hide-menu .media-frame-title,
