/**
 * Common styles that are used on all the WP pages in the backend
 */
@import "/modules/media";

/**
 * Smush buttons & stats in the media library, media upload and featured image modals.
 *
 * @since 2.8.0
 */
.attachment-details .smush-wrap {
	.smush-status {
		margin: 0 0 1em;
		padding: 0;
		line-height: 16px;
	}

	.wp-smush-send {
		display: block;
	}

	.spinner {
		background-position: left;
		padding: 0 0 0 25px;
		width: auto;
		margin: 10px 0 0;
		line-height: 23px;
	}

	.spinner.visible {
		visibility: visible;
	}
}

.wp-list-table.media {
	.spinner.visible {
		width: 100%;
		padding-left: 25px;
		margin: 10px 0 0;
	}
}

/*
 * Smush button transformation
 */

.button.wp-smush-finished.disabled, .button.wp-smush-finished:disabled, .button.wp-smush-finished[disabled] {
	color: #fff !important;
	background: #00cf21 !important;
	border-color: #619f6b !important;
	-webkit-box-shadow: inset 0 1px 0 rgba(0, 207, 33, .5), 0 1px 0 rgba(0, 0, 0, .15) !important;
	box-shadow: inset 0 1px 0 rgba(0, 207, 33, .5), 0 1px 0 rgba(0, 0, 0, .15) !important;
}

/** Settings Page **/

.wp-smush-submit-wrap {
	padding: 4px;
}

.smush-submit-note {
	color: #9B9B9B;
	float: left;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	line-height: 22px;
	margin-top: 4px;
}

input#wp-smush-save-settings {
	float: right;
	margin: 0;
}

.wp-smush-welcome #wp-smush-save-settings {
	float: right;
}

.currently-smushing .smush-status {
	color: #0074a2;
}

.smush-status.fail {
	color: #dd3d36;
}

.smush-status.success {
	color: #0074a2;
}

.smush-status.error {
	color: red;
}

.compat-field-wp_smush {
	margin-top: 10px;

	button {
		&.wp-smush-send {
			float: left;
			margin-bottom: 5px;
		}

		/** If we have button-primary class, this style will be loaded already **/
		&:not(.button-primary) {
			background: #0085ba;
			border-color: #0073aa #006799 #006799;
			-webkit-box-shadow: 0 1px 0 #006799;
			box-shadow: 0 1px 0 #006799;
			color: #fff;
			text-decoration: none;
			text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
			margin-bottom: 10px;

			&:hover {
				background: #008ec2;
				border-color: #006799;
				color: #fff;
			}
		}

		&:disabled:not( .button-primary ) {
			color: #66c6e4 !important;
			background: #008ec2 !important;
			border-color: #007cb2 !important;
			-webkit-box-shadow: none !important;
			box-shadow: none !important;
			text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
			cursor: default;
		}
	}
}

#post-body-content .smush-status {
	margin: 4px 0;
}

.attachment-info .wp-smush-error-message {
	margin: 6px 0 1em;
}

label.setting.smush-stats .smush-wrap,
.compat-field-wp_smush .smush-wrap {
	margin: 0 0 5px 0;
	max-width: 100%;
}

.smush-stats-wrapper .row {
	padding: 8px 0;
}

.smush-stats-wrapper .row:first-child {
	padding-top: 0;
}

.smush-stats-wrapper td, .smush-stats-wrapper th {
	font-size: 11px;
}

.smush-skipped.error {
	color: #C41921;
}

.smush-skipped .dashicons-editor-help {
	cursor: pointer;
	margin-top: -2px;
}

/** Help Tip **/
.ui-tooltip-content {
	font-size: 12px;
}

/** Disabled Hyperlinks **/
.smush-stats a[disabled] {
	cursor: default;
	color: grey;
}

.wp-smush-error {
	color: #ffb900;
}

.resmush-scan {
	vertical-align: middle;
	line-height: 28px;
}

/** Resmush Button **/

#wp-smush-resmush {
	margin: 20px 0;
}

/** Bulk Smush Page UI - New UI Changes **/
/** Font-Families **/

.wp-smush-page-header {
	overflow: hidden;
	margin: 0 0 10px;
	width: 100%;
}

#wp-smush-invalid-member {
	&.loading-notice:before {
		content: attr(data-message);
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		background-color: rgba(255, 255, 255, 0.7);
		z-index: 5;
		text-align: center;
		line-height: 40px;
		font-size: 15px;
	}

	&.loaded-notice:before {
		content: attr(data-message);
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		background-color: rgba(255, 255, 255, 0.7);
		z-index: 5;
		text-align: center;
		line-height: 40px;
		font-size: 15px;
	}

	a {
		color: #514a30;
		text-decoration: underline;
	}

	&.loading-notice,
	&.loaded-notice {
		> div {
			-webkit-filter: blur(2px);
			-moz-filter: blur(2px);
			-o-filter: blur(2px);
			-ms-filter: blur(2px);
			filter: blur(2px);
		}
	}
}

.attachment-details .setting div.smush-status-links {
	float: none;
	text-align: left;
}

div.attachment-details .setting div.smush-status-links.smush-status-links div.smush-stats-wrapper {
	margin-top: 15px;
}

/** Bulk Smush **/
/** No Images **/
.wp-smush-no-image {
	display: block;
	overflow: hidden;
}

.wp-smush-upload-images {
	display: block;
	overflow: hidden;
	padding: 10px 0 40px;
}

/** All Smushed **/
.wp-smush-notice {
	background-color: #D1F1EA;
	border-radius: 5px;
	color: #333333;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	line-height: 30px;
	margin-bottom: 30px;
	padding: 15px 30px;
	letter-spacing: -0.015em;
}

div.smush-notice-cta a.smush-notice-act.button-primary {
	background-color: #00B0DB;
	box-shadow: none;
	border: 1px solid #0087B9;
	border-radius: 2px;
	text-shadow: none;
	font-weight: normal;
	box-shadow: inset 0 1px 0 0 #4BC4E4, 0 1px 0 0 #DBDBDB;
	-webkit-font-smoothing: antialiased;
}

.wp-smush-resmush-message,
.wp-smush-settings-updated,
.wp-smush-re-check-message,
.wp-smush-api-message {
	border: none;
	margin-bottom: 25px;
	padding: 18px 50px;
	text-align: center;
}

div.wp-smush-pagespeed-recommendation {
	background-color: #F8F8F8;
	margin: 0 -30px 20px;
	padding: 20px 30px;
}

ol.smush-recommendation-list {
	color: #888;
	font-size: 13px;
	margin-left: 13px;
	line-height: 16px;
}

a.wp-smush-resize-enable:hover,
a.wp-smush-lossy-enable:hover {
	color: #0A9BD6;
}

ol.smush-recommendation-list li {
	line-height: 1.5;
}

.wp-smush-bulk-wrapper {
	overflow: hidden;
}

/** Image Remaining **/
div.wp-smush-remaining,
div.wp-smush-dir-limit,
div.smush-s3-setup-message,
div.wp-smush-s3support-alert,
div.wp-smush-notice.wp-smush-api-message.warning {
	background-color: #FFF5D5;
	border: none;
	color: #333333;
	line-height: 30px;
	font-size: 15px;
	letter-spacing: -0.015em;
}

div.smush-s3-setup-message,
div.wp-smush-notice.wp-smush-api-message.info {
	background-color: #DFF6FA;
}

div.wp-smush-s3support-alert {
	margin-left: 0;
	margin-right: 0;
}

div.wp-smush-dir-limit {
	background-color: #dff6fa;
}

.wp-smush-resmush-wrap .wp-smush-remaining {
	padding: 10px 50px;
}

.bulk-smush-wrapper .wp-smush-notice-text {
	display: inline-block;
	max-width: 88%;
}

.wp-smush-count {
	color: #888888;
	font-size: 13px;
	line-height: 1.5;
	margin-top: 15px;
}

.wp-smush-sep {
	margin: 20px 0;
}

.smush-final-log {
	margin-left: 0;
	padding: 10px;
}

.wp-smush-ajax-error {
	color: black;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 20px;
}

/** Stats Container **/

a.wp-smush-lossy-enable {
	cursor: pointer;
}

ul.smush-pro-features {
	margin-bottom: 30px;
}

li.smush-pro-feature-row {
	margin-bottom: 20px;
}

div.smush-pro-feature-title,
div.smush-pro-feature-desc {
	padding-left: 30px;
	position: relative;
}

div.smush-pro-feature-title {
	font-size: 15px;
	font-weight: 500;
	line-height: 30px;
}

div.smush-pro-feature-desc {
	color: #888888;
	font-size: 13px;
	line-height: 22px;
}

div.smush-pro-link-wrap {
	text-align: center;
}

/** Re Smush **/
.wp-smush-settings-changed {
	background: #dff6fa;
	border-radius: 5px;
	font-size: 13px;
	line-height: 1.7;
	padding: 20px;
}

.compat-item .compat-field-wp_smush {
	display: table-row;
}

.manage-column.column-smushit {
	width: 260px;
}

.smushit [tooltip],
label.setting.smush-stats [tooltip],
.compat-field-wp_smush [tooltip] {
	position: relative;
	overflow: visible;
}

.smushit [tooltip]:before,
label.setting.smush-stats [tooltip]:before,
.compat-field-wp_smush [tooltip]:before {
	content: '';
	position: absolute;
	border: 5px solid transparent;
	border-top-color: #0B2F3F;
	bottom: 100%;
	left: 50%;
	margin-left: -5px;
	margin-bottom: -5px;
	opacity: 0;
	z-index: -1;
	transition: margin .2s, opacity .2s, z-index .2s linear .2s;
	pointer-events: none;
}

.smushit [tooltip]:after,
label.setting.smush-stats [tooltip]:after,
.compat-field-wp_smush [tooltip]:after {
	background: #0B2F3F;
	border-radius: 4px;
	bottom: 100%;
	color: #FFF;
	content: attr(tooltip);
	font-size: 13px;
	font-weight: 400;
	left: 50%;
	line-height: 20px;
	margin-left: -100px;
	margin-bottom: 5px;
	opacity: 0;
	padding: 5px;
	pointer-events: none;
	position: absolute;
	width: 180px;
	text-align: center;
	transition: margin .2s, opacity .2s, z-index .2s linear .2s;
	white-space: pre-wrap;
	z-index: -1;
}

.smushit .smush-skipped [tooltip]:before,
label.setting.smush-stats .smush-skipped [tooltip]:before,
.compat-field-wp_smush .smush-skipped [tooltip]:before {
	border-top-color: transparent;
	border-left-color: #0B2F3F;
	bottom: 0;
	left: 0;
}

.smushit .smush-skipped [tooltip]:after,
label.setting.smush-stats .smush-skipped [tooltip]:after,
.compat-field-wp_smush .smush-skipped [tooltip]:after {
	margin-left: 0;
	left: -195px;
	top: -35px;
	bottom: inherit;
	margin-bottom: 5px;
}

label.setting.smush-stats .smush-skipped [tooltip]:after {
	top: -98px;
}

div.media-sidebar label.setting.smush-stats .smush-skipped [tooltip]:after {
	left: -188px;
	padding-left: 10px;
	width: 170px;
}

div.media-sidebar label.setting.smush-stats .smush-skipped [tooltip]:before {
	margin-left: -3px;
}

.smushit [tooltip].tooltip-s:after,
label.setting.smush-stats [tooltip].tooltip-s:after,
.compat-field-wp_smush [tooltip].tooltip-s:after {
	width: 150px;
	margin-left: -75px;
}

.smushit [tooltip].tooltip-l:after,
label.setting.smush-stats [tooltip].tooltip-l:after,
.compat-field-wp_smush [tooltip].tooltip-l:after {
	width: 280px;
	margin-left: -140px;
}

.smushit [tooltip].tooltip-right:after, .compat-field-wp_smush [tooltip].tooltip-right:after {
	margin-left: -180px;
}

.smushit [tooltip].tooltip-s.tooltip-right:after, .compat-field-wp_smush [tooltip].tooltip-s.tooltip-right:after {
	margin-left: -130px;
}

.smushit [tooltip].tooltip-l.tooltip-right:after, .compat-field-wp_smush [tooltip].tooltip-l.tooltip-right:after {
	margin-left: -260px;
}

.smushit [tooltip].tooltip-bottom:before, .compat-field-wp_smush [tooltip].tooltip-bottom:before {
	border-color: transparent;
	border-bottom-color: #0B2F3F;
	top: 100%;
	bottom: auto;
	margin-top: -5px;
	margin-bottom: 0;
}

.smushit [tooltip].tooltip-bottom:after, .compat-field-wp_smush [tooltip].tooltip-bottom:after {
	bottom: auto;
	top: 100%;
	margin-top: 5px;
	margin-bottom: 0;
}

.smushit [tooltip]:hover:before,
label.setting.smush-stats [tooltip]:hover:before,
.compat-field-wp_smush [tooltip]:hover:before {
	z-index: 1;
	margin-bottom: 0;
	opacity: 1;
	transition: margin .2s, opacity .2s;
}

.smushit [tooltip]:hover:after,
label.setting.smush-stats [tooltip]:hover:after,
.compat-field-wp_smush [tooltip]:hover:after {
	opacity: 1;
	z-index: 1;
	margin-bottom: 10px;
	transition: margin .2s, opacity .2s;
}

.smushit .disabled[tooltip]:before,
.smushit .disabled[tooltip]:after,
label.setting.smush-stats .disabled[tooltip]:before,
label.setting.smush-stats .disabled[tooltip]:after,
.compat-field-wp_smush .disabled[tooltip]:before,
.compat-field-wp_smush .disabled[tooltip]:after {
	display: none;
}

.wp-smush-resize-settings-wrap, .wp-smush-png_to_jpg-wrap, .wp-smush-image-size-list {
	background-color: #FFFFFF;
	border: 1px solid #E6E6E6;
	border-radius: 5px;
	color: #555;
	font-family: "Roboto", sans-serif;
	margin: 1.5em 0 0;
	overflow: auto;
	padding: 30px;
	vertical-align: middle;
}

div.wp-smush-resize-note {
	color: #555;
	font-size: 13px;
	font-weight: 400;
}

.smush-final-log {
	max-height: 200px;
	overflow: auto;
}

/** Override WP Footer Styling, Hide it on WPMU pages only, if we really need to **/
.wp-admin #wpfooter {
	display: block;
}

/** Directory Browser **/
div.wp-smush-dir-desc {
	font-size: 15px;
	font-weight: 500;
	line-height: 30px;
	padding: 10px 0 25px;
}

.wp-smush-select-dir {
	float: right;
	margin-top: 20px;
	width: 154px;
}

/** Image List **/

div.wp-smush-scan-result {
	background: white;
}

div.wp-smush-scan-result div.wp-smush-notice {
	margin-top: 14px;
	padding: 15px 30px;

}

div.wp-smush-scan-result div.content {
	overflow: hidden;
	width: 100%;
}

.smush-pro-feature-title:before {
	box-shadow: none;
	content: url("../images/image.svg");
	font-family: 'WPMU-DEV-App-Icons';
	font-size: 20px;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	height: 22px;
	line-height: 22px;
	margin-left: 1px;
	margin-top: -11px;
	opacity: 1;
	position: absolute;
	speak: none;
	transition-duration: 0.2s;
	transition-property: color, opacity;
	text-transform: none;
	top: 50%;
	vertical-align: middle;
	width: 22px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

div.wp-smush-info.notice {
	font-size: 15px;
	letter-spacing: -0.015em;
	margin: 0 0 30px;
	padding: 15px;
}

/* Bulk Smush button*/
button.wp-smush-all.wp-smush-button {
	float: right;
}

/** Media Queries **/

@media screen and (max-width: 1024px) and (min-width: 800px) {
	/** Stats Section **/
	.smush-stats-wrapper h3 {
		padding: 6px 0;
	}
}

/** Media Queries for resolution below 782px **/
@media only screen and (max-width: 800px) {
	.dev-box.bulk-smush-wrapper.wp-smush-container {
		padding: 20px 10px;
	}
}

/** For directory smush image listing **/

@media screen and (max-width: 600px) {
	.wp-smush-resize-settings-wrap,
	.wp-smush-png_to_jpg-wrap,
	.wp-smush-image-size-list {
		padding: 20px;
	}
}

@media screen and (max-width: 456px) {
	.bulk-smush-wrapper .wp-smush-notice-text {
		max-width: 85%;
	}
}

/**
 * CSS styles used Admin notice
 */
.smush-notice.notice {
	padding: 0;
	margin: 5px 0 10px;
	border: 1px solid #E5E5E5;
	background: #FFF;
	overflow: hidden;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
	min-height: 80px;
	display: table; /* The magic ingredient! */
	font: 13px "Open Sans", sans-serif;
}

.smush-notice.notice.loading:before {
	content: attr(data-message);
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 5;
	text-align: center;
	line-height: 80px;
	font-size: 22px;
	font-weight: bold;
}

.smush-notice > div {
	display: table-cell; /* The magic ingredient! */
	vertical-align: middle;
	cursor: default;
	line-height: 1.5;
}

.smush-notice.notice.loading > div {
	-webkit-filter: blur(2px);
	-moz-filter: blur(2px);
	-o-filter: blur(2px);
	-ms-filter: blur(2px);
	filter: blur(2px);
}

.smush-notice-logo {
	background: #0B2F3F url(data:image/png;base64, ) no-repeat 50% 50%;
}

.smush-notice-logo span {
	display: block;
	width: 80px;
}

.smush-notice-message {
	color: #23282D;
	font-size: 13px;
	font-weight: normal;
	line-height: 20px;
	padding: 10px 20px;
	-webkit-font-smoothing: antialiased;
	width: 100%;
}

.smush-notice-cta {
	border-left: 1px solid #E5E5E5;
	background: #F8F8F8;
	padding: 0 30px;
	position: relative;
	white-space: nowrap;
}

.wp-core-ui .smush-notice-cta button,
.wp-core-ui .smush-notice-cta .button-primary:active {
	vertical-align: middle;
}

.wp-core-ui .smush-notice-cta input[type="email"] {
	vertical-align: middle;
	line-height: 20px;
	margin: 0;
	min-width: 50px;
	max-width: 320px;
	text-align: center;
	padding-left: 0;
	padding-right: 0;
}

.smush-notice-dismiss {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #C5C5C5;
	-webkit-font-smoothing: antialiased;
}

.smush-notice-dismiss:hover {
	color: #666;
}

@media only all and (max-width: 1200px) {
	.smush-notice-dismiss {
		display: block;
		margin: 0 auto;
		line-height: 18px;
		padding-top: 8px;
		padding-bottom: 2px;
	}
}

@media only all and (max-width: 1000px) {
	.smush-notice.notice {
		display: block;
		font-size: 13px;
	}

	.smush-notice > .smush-notice-logo {
		float: left;
		display: inline-block;
		height: 80px;
		margin: 10px;
		border-radius: 4px;
	}

	.smush-notice > .smush-notice-message {
		width: auto;
		display: block;
		padding: 10px;
		min-height: 80px;
	}

	.smush-notice > .smush-notice-cta {
		display: block;
		border-top: 1px solid #E5E5E5;
		border-left: 0;
		text-align: center;
		white-space: normal;
		line-height: 30px;
		padding: 10px 20px;
	}

	.wp-core-ui .smush-notice > .smush-notice-cta > input[type="email"],
	.smush-notice > .smush-notice-cta > button {
		font-size: 14px;
	}

	.smush-notice > .smush-notice-cta > .smush-notice-dismiss {
		display: inline-block;
		float: none;
		line-height: 26px;
		padding-top: 0;
		padding-bottom: 0;
		font-size: 13px;
	}
}

@media only all and (max-width: 500px) {
	.wp-core-ui .smush-notice > .smush-notice-cta > input[type="email"],
	.smush-notice > .smush-notice-cta > button {
		display: block;
		width: 100% !important;
		max-width: none;
		margin-bottom: 4px;
		font-size: 16px;
		height: 34px;
	}

	.smush-notice > .smush-notice-cta > .smush-notice-dismiss {
		margin-top: 5px;
		font-size: 14px;
		height: 23px;
	}
}