@media only screen and (max-width: 768px) {

/* full width for message list on mobile */
#mail-messages {
	width: 100%;
}

/* correctly center loading icon on mobile */
#mail-message-list-loading {
	width: 100%;
}

/* overlay message detail on top of message list */
#mail-message {
	z-index: 100;
	background: #fff;
	width: 100%;
	left: 0;
	height: 100%;
	top: 0;
	box-shadow: 0 0 100px rgba(100, 100, 100, .9);
}

#mail-message-close {
	display: block;
	position: fixed;
	right: 0;
	top: 45px;
	width: 44px;
	height: 44px;
	background-size: 24px;
	z-index: 101;
	cursor: pointer;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
	opacity: .4;
}
#mail-message-close:hover,
#mail-message-close:focus {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
	opacity: .6;
}

.hidden-mobile {
	display: none;
}

/* make header scroll away on mobile */
#mail-message-header {
	position: relative;
	width: initial;
	height: 100px;
}

textarea.message-body {
	padding-right: 12px;
}

#mail-content,
.mail-message-attachments {
	margin: 0 10px 50px 30px;
}

/* end of media query */
}
