/**
 * Pointer
 */
.wp-pointer.wpem-pointer .wp-pointer-buttons button {
	float: right
}

.wp-pointer.wpem-pointer .wp-pointer-buttons button.button-primary {
	margin-right: 10px;
}

.wp-pointer.wpem-pointer .wp-pointer-buttons button.button-primary span.dashicons {
	padding: 3px 0 0 5px;
}

/**
 * Control panel
 */
.wp-full-overlay.expanded {
	margin-left: 275px;
}

#customize-controls,
.expanded #customize-footer-actions {
	width: 275px;
}

/**
 * Overlay
 */
#wpem-overlay {
	position: relative;
	width: 100%;
}

#customize-preview.wpem-overlay-background,
#wpem-overlay .wpem-overlay-background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	opacity: 0.7;
	filter: alpha(opacity=70);
	z-index: 1000000;
}

#wpem-overlay .wpem-overlay-foreground {
	position: fixed;
	top: 15%;
	max-height: 90%;
	left: 50%;
	width: 720px;
	margin-left: -360px;
	background: #fff;
	-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
	box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
	line-height: 1.5;
	z-index: 1000005;
	overflow-y: auto;
	padding: 10px 25px 15px 25px;
}

@media (max-width: 999px) {

	#wpem-overlay.video .wpem-overlay-foreground {
		width: 320px;
		margin-left: -160px;
	}

	#wpem-overlay.text .wpem-overlay-foreground {
		width: 600px;
		margin-left: -300px
	}

}

@media (max-width: 900px) {

	#wpem-overlay.text .wpem-overlay-foreground {
		margin-left: -320px;
	}

}

@media (max-width: 639px) {

	#wpem-overlay.video .wpem-overlay-foreground {
		margin-left: -180px;
		padding: 5px 12px 7px 12px;
	}

	#wpem-overlay.text .wpem-overlay-foreground {
		width: 300px;
		margin-left: -150px;
		max-height: 85%;
		top: 5%
	}

}

@media (max-width: 575px) {

		#wpem-overlay.text .wpem-overlay-foreground {
			margin-left: -180px;
		}
}

@media (max-width: 419px) {

		#wpem-overlay.video .wpem-overlay-foreground,
		#wpem-overlay.text .wpem-overlay-foreground {
			margin-left: -170px;
		}
}

#wpem-overlay .wpem-content {
	margin: 25px;
}

#wpem-overlay .wpem-overlay-control {
	height: 20px;
	padding-bottom: 10px;
}

#wpem-overlay .wpem-overlay-control span {
	float: right;
	cursor: pointer;
	width: 25px;
	height: 25px;
	font-size: 26px;
}

#wpem-overlay.text .wpem-overlay-content h3 {
	margin-top: -20px;
}

#wpem-overlay.text .wpem-overlay-content h3 span {
	margin-top: 4px;
}

#wpem-overlay.text .wpem-overlay-content ul {
	list-style-type: disc;
	padding-left: 15px;
}

#wpem-overlay.video .wpem-overlay-content .video-wrapper {
	position: relative;
	padding-bottom: 53.25%;
	padding-top: 25px;
	height: 0;
}

@media (max-width: 999px) {
	#wpem-overlay.video .wpem-overlay-content .video-wrapper {
		padding-bottom: 51.25%;
	}
}

#wpem-overlay.video .wpem-overlay-content .video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/**
 * Icon Background Color Overrides
 * Matches the admin color scheme of the current user
**/
.cdm-icon {
	fill: #fff;
	width: 30px;
	height: 30px;
	font-size: 18px;
	z-index: 99999; /* override child theme z-index declarations */
	background: #0087BE;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 2px 1px rgba(46,68,83,0.15);
	text-align: center;
	display: inline-block;
	justify-content: center;
	align-items: center;
}

.cdm-icon svg {
	width: 18px;
	vertical-align: middle;
}

.cdm-icon.blue {
	background: #E1A932;
}

.cdm-icon.coffee {
	background: #c7a589;
}

.cdm-icon.ectoplasm {
	background: #a3b745;
}

.cdm-icon.midnight {
	background: #e14d43;
}

.cdm-icon.ocean {
	background: #9ebaa0;
}

.cdm-icon.sunrise {
	background: #dd823b;
}

.cdm-icon.godaddy {
	background: #EF6C0F;
}
