.yt-shortcode-editor-plugin .yt-preloader{
	background:url(../images/preloader.gif) no-repeat center center;
}

/* HiDPI */
@media print,(-o-min-device-pixel-ratio: 5/4),(-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi) {
   .yt-shortcode-editor-plugin .yt-preloader{
		background:url(../images/preloader@2x.gif) no-repeat center center;
		background-size:24px 24px;
	}
}

.yt-shortcode-editor-plugin #yt-main-spinner {
	
	padding:15px;
    position: fixed;
    background-color: #FFF;
    background-color: rgba(255,255,255,.95);
    -moz-box-shadow: 0 2px 15px rgba(0,0,0,.2);
    -webkit-box-shadow: 0 2px 15px rgba(0,0,0,.2);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
    box-shadow: 0 2px 15px rgba(0,0,0,.2);
	transition:all .2s ease-out;
	-webkit-transition:all .2s ease-out;
	-moz-transition:all .2s ease-out;
	opacity:0;
	transform:scale(.9);
	-webkit-transform:scale(.9);
	-moz-transform:scale(.9);
	visibility:hidden;
	z-index:150501000;
	display: block;
	left: 50%;
	top: 50%;
	margin-left:-23px;
	margin-top:-23px;
	padding: 25px;
	background-position: center;
}

.yt-shortcode-editor-plugin.yt-ajaxifying #yt-main-spinner{
	visibility:visible;
	opacity:1;
	transition-duration:.5s;
	-webkit-transition-duration:.5s;
	-moz-transition-duration:.5s;
	transform:scale(1);
	-webkit-transform:scale(1);
	-moz-transform:scale(1);
}
.yt-shortcode-editor-plugin .yt-shortcode-init-action-button i,
.yt-shortcode-editor-plugin .mce-i-yt-shortcode-init-action-button-fullscreen,
.yt-shortcode-editor-plugin .mce_yt-shortcode-init-action-button-fullscreen span{
	background-image:url(../images/yicon.png);
	background-position:center;
	background-repeat:no-repeat;
	background-size:16px 16px;
	width:16px;
	height:16px;
	display: inline-block;
	vertical-align: text-top;
	margin: 0 2px;
}
.yt-shortcode-editor-plugin .mce_yt-shortcode-init-action-button-fullscreen span.mceIcon{
	width: 20px;
	height: 20px;
	margin:0;
}

.yt-shortcode-editor-plugin-in-action  .yt-shortcode-content-inner-wrapper{
	
	-webkit-transform: translate3d(0,0,0);
	-webkit-overflow-scrolling: touch;
	-webkit-overflow-scrolling: touch;
}

@media print,(-o-min-device-pixel-ratio: 5/4),(-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi) {
	.yt-shortcode-editor-plugin .yt-shortcode-init-action-button i,
	.yt-shortcode-editor-plugin .mce-i-yt-shortcode-init-action-button-fullscreen,
	.yt-shortcode-editor-plugin .mce_yt-shortcode-init-action-button-fullscreen span{
		background-image:url(../images/yicon@2x.png);
	}
}


.yt-shortcode-editor-plugin .yt-clear:before,
.yt-shortcode-editor-plugin .yt-clear:after {
	content: '';
	display: table;
}

.yt-shortcode-editor-plugin .yt-clear:after{
	clear: both;
}


.yt-shortcode-editor-plugin #yt-shortcode-media-modal input[type=text]:not(.wp-color-picker), 
.yt-shortcode-editor-plugin #yt-shortcode-media-modal textarea, 
.yt-shortcode-editor-plugin #yt-shortcode-media-modal select {
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	
}


.yt-shortcode-editor-plugin #yt-shortcode-media-modal input[type=text].yt-shortcode-input-text,
.yt-shortcode-editor-plugin #yt-shortcode-media-modal input[type=email],
.yt-shortcode-editor-plugin #yt-shortcode-media-modal textarea{
	padding: 5px 10px;
	font-family: Monaco, "Courier New", monospace;
	width: 100%;
}
.yt-shortcode-editor-plugin #yt-shortcode-media-modal input[type=text].yt-shortcode-input-text,
.yt-shortcode-editor-plugin #yt-shortcode-media-modal input[type=email]{
	height: 30px;
}
.yt-shortcode-editor-plugin #yt-shortcode-media-modal select{
	min-width: 130px;
	padding: 3px;
	height: 28px;
	font-size: 11px;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.yt-shortcode-editor-plugin #yt-shortcode-media-modal select[multiple="multiple"]{
	min-height: 100px;
	height: auto;
	min-width: 150px
}
.yt-shortcode-editor-plugin #yt-shortcode-media-modal textarea{
	line-height:1.8em;
}

.yt-shortcode-editor-plugin .yt-shortcode-tooltip{
	z-index:150610;
	background:#FFF;
	color:#555;
	font-size:13px;
	padding:10px;
	border:none
	
}

.yt-media-modal {
	position: fixed;
	top: 30px;
	left: 30px;
	right: 30px;
	bottom: 30px;
	z-index: 150501;
}
.yt-media-modal-backdrop {
	position: fixed;
	top: -30px;
	left: -30px;
	right: -30px;
	bottom: -30px;
	min-height: 360px;
	background: #000;
	opacity: .7;
	z-index: 150500;
}
.yt-media-modal .yt-media-modal-close {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 30px;
	height: 30px;
	z-index: 101;
	font-size: 20px;
	line-height: 30px;
	color:#CCC;
	font-size: 24px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: bold;
}
.yt-media-modal .yt-media-modal-close:hover {
	color:#000;
}

.yt-media-modal .yt-media-modal-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: auto;
	min-height: 300px;
	background: #fff;
	z-index:100
}

.yt-media-modal .yt-media-frame {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
/* MEDIA FRAME MENU */
#yt-shortcode-media-modal .yt-media-frame-menu {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 299px;
	z-index: 150;
	background-color:#fafafa;
}
#yt-shortcode-media-modal .yt-shortcode-item-filter{
	padding:20px;
	border-bottom: 1px solid #dfdfdf;
	box-shadow: 0 4px 4px -4px rgba(0,0,0,.1);
	background: #FFF;
	height: 75px;
}
#yt-shortcode-media-modal .yt-shortcode-item-filter input{
	padding: 5px 10px;
	line-height:1.5;
	font-size:inherit;
}
#yt-shortcode-media-modal .yt-media-menu {
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	border-right: 1px solid #d9d9d9;
	/*box-shadow: inset -6px 0 6px -6px rgba(0,0,0,.2);*/
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	overflow:hidden;
	width:100%;
	height:100%;
}
#yt-shortcode-media-modal .yt-media-menu:before,
#yt-shortcode-media-modal .yt-media-menu:after{
	pointer-events:none;
	content:'';
	background: -moz-linear-gradient(top, rgba(255,255,255,0.01) 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 60%, rgba(255,255,255,0.01) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.01)), color-stop(40%,rgba(255,255,255,1)), color-stop(50%,rgba(255,255,255,1)), color-stop(60%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0.01)));
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.01) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 60%,rgba(255,255,255,0.01) 100%);
	background: -o-linear-gradient(top, rgba(255,255,255,0.01) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 60%,rgba(255,255,255,0.01) 100%);
	background: -ms-linear-gradient(top, rgba(255,255,255,0.01) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 60%,rgba(255,255,255,0.01) 100%);
	background: linear-gradient(to bottom, rgba(255,255,255,0.01) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 60%,rgba(255,255,255,0.01) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#03ffffff', endColorstr='#03ffffff',GradientType=0 );
	position:absolute;
	height: 60px;
	display: block;
	left: 0;
	right: 0;
	z-index: 1;
}
#yt-shortcode-media-modal .yt-media-menu:before{
	top:-30px;
}
#yt-shortcode-media-modal .yt-media-menu:after{
	bottom:-30px;
}

#yt-shortcode-media-modal .yt-media-menu ul{
	margin: 0;
	top: 90px;
	bottom: 10px;
	position: absolute;
	left: 0;
	right: 0;
	overflow: auto;
}

#yt-shortcode-media-modal .yt-media-menu ul li{
	width:50%;
	float:left;
	
}
#yt-shortcode-media-modal .yt-media-menu ul li > * {
	display: block;
	position: relative;
	padding: 4px 10px;
	margin: 0 10px;
	line-height: 18px;
	text-shadow: 0 1px 0 #fff;
	text-decoration: none;
	white-space:nowrap;
	overflow:hidden;
	font-size:14px;
	text-overflow:ellipsis;
}
#yt-shortcode-media-modal .yt-media-menu a.active{
	font-weight:bold;
	color:#333;
}
#yt-shortcode-media-modal .yt-media-menu li.separator{
	width:100%;
}
#yt-shortcode-media-modal .yt-media-menu li.separator span {
	display:block;
	height: 0;
	margin: 12px 10px;
	padding: 0;
	border-top: 1px dashed #EEE;
}
/* MEDIA FRAME TITLE*/
#yt-shortcode-media-modal .yt-media-frame-title {
	position: absolute;
	top: 0;
	left: 300px;
	right: 0;
	height: 45px;
	z-index: 200;
}

#yt-shortcode-media-modal .yt-media-frame-title h1 {
	padding: 0 20px;
	font-size: 22px;
	font-weight: 200;
	line-height: 45px;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* MEDIA FRAME ROUTER*/
#yt-shortcode-media-modal .yt-media-frame-router {
	position: absolute;
	top: 45px;
	left: 300px;
	right: 0;
	height: 30px;
	z-index: 200;
	border-bottom: 1px solid #dfdfdf;
	box-shadow: 0 4px 4px -4px rgba(0,0,0,.1);
}

#yt-shortcode-media-modal .yt-media-router {
	position: relative;
	padding: 0 10px;
	margin: 0;
	clear: both;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
#yt-shortcode-media-modal .yt-media-router>a {
	position: relative;
	float: left;
	padding: 2px 10px;
	margin: 0;
	height: 18px;
	line-height: 18px;
	font-size: 14px;
	border-right: 1px solid #dfdfdf;
	text-shadow: 0 1px 0 #fff;
	text-decoration: none;
}

/* MEDIA FRAME CONTENT*/
#yt-shortcode-media-modal .yt-media-frame-content {
	position: absolute;
	top: 75px;
	left: 300px;
	right: 0;
	bottom: 61px;
	height: auto;
	width: auto;
	margin: 0;
	overflow: hidden;
}

#yt-shortcode-media-modal .yt-shortcode-content-fields-wrapper,
#yt-shortcode-media-modal .yt-shortcode-content-preview-wrapper{
	margin: 0;
	position: absolute;
	overflow: auto;
	height: auto;
	top: 0;
	bottom: 0;
}
#yt-shortcode-media-modal .yt-shortcode-content-fields-wrapper{

	right: 50%;
	left: 0;
}
#yt-shortcode-media-modal .yt-shortcode-content-preview-wrapper{
	
	left: 50%;
	right: 0;
}
#yt-shortcode-media-modal .yt-shortcode-content-fields-wrapper > *,
#yt-shortcode-media-modal .yt-shortcode-content-preview-wrapper > *{
	margin:10px 20px;
}
#yt-shortcode-media-modal .yt-shortcode-field-type-row{
	border-top: 1px dashed #eee;
	padding-bottom: 15px;
}
#yt-shortcode-media-modal .yt-shortcode-field-type-row:first-child{
	border-top:none;
}
#yt-shortcode-media-modal .yt-shortcode-field-type-desc {
	font-style: italic;
	color: #aaa;
	padding-top: 10px;
}

#yt-shortcode-media-modal .yt-shortcode-content-preview-wrapper{
	float:right;
}

/* MEDIA FRAME TOOLBAR */
#yt-shortcode-media-modal .yt-media-frame-toolbar {
	position: absolute;
	left: 300px;
	right: 0;
	bottom: 0;
	height: 60px;
	z-index: 100;
	border: 0 solid #dfdfdf;
	border-width: 1px 0 0;
	box-shadow: 0 -4px 4px -4px rgba(0,0,0,.1);
}

.yt-media-modal .yt-media-toolbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 60px;
	padding: 0 20px;
	border: 0 solid #dfdfdf;
	overflow: hidden;
}
.yt-media-modal .yt-media-toolbar-secondary {
	float: left;
	height: 100%;
}
.yt-media-modal .yt-media-toolbar-primary {
	float: right;
	height: 100%;
}

.yt-media-modal .yt-media-toolbar-primary > *{
	float:left;
	margin-top: 15px !important;
	margin-left: 10px !important;
}









.yt-shortcode-editor-plugin #yt-shortcode-media-modal .yt-shortcode-pre-area{
	padding:15px;
	border:1px dashed #DDD;
	background-color:#fafafa;
	font-family: Monaco, "Courier New", monospace;
	line-height:1.8em;
	min-height: 50px;
	word-break: break-word;
}


/**
 * Fields css
 */

/* Media*/
.yt-shortcode-editor-plugin .yt-shortcode-media-action{
	padding:10px 0;
}

.yt-shortcode-editor-plugin .yt-shortcode-media-screenshot img{
	max-width:300px;
}


/*Repeatable*/

.yt-shortcode-child-field-type-repeatable-row{
	cursor:move;
	position:relative;
}
.yt-shortcode-child-field-type-repeatable-row > span{
	position:absolute;
	border-radius:5px;
	border:1px solid #EEE;
	text-align:center;
	font-weight:bold;
	display:block;
	right:10px;
	top:10px;
	margin:0 !important;
}

.yt-shortcode-field-type-repeatable .yt-shortcode-button-add-more-repeatable-field{
	margin: 0 0 10px 0;
	text-align: center;
	display:block;
}
.yt-shortcode-child-field-type-repeatable-row{
	background-color:#fafafa;
	border: 1px dashed #DDD;
	margin-bottom: 20px;
}
.yt-shortcode-child-field-type-repeatable-row > * {
	padding: 15px;
	position:relative;
}
.yt-shortcode-child-field-type-repeatable-row > *:before{
	
	border-top:1px dashed #DDD;
	content:'';
	position:absolute;
	right:15px;
	left:15px;
}
.yt-shortcode-child-field-type-repeatable-row > *:first-child {
	border-top-width:0;
}

.yt-shortcode-child-field-type-repeatable-row > * > h3{
	margin: 0 0 .5em ;
}

@media only screen and (max-width: 768px){
	#yt-shortcode-media-modal .yt-media-frame-menu {
		top: 0;
		left: 0;
		width:auto;
		right: 0;
		height:165px;
	}
	#yt-shortcode-media-modal .yt-media-frame-title {
		top: 165px;
		left: 0;
		right: 0;
		height: 45px;
		background: #FFF;
		box-shadow: 0 4px 4px -4px rgba(0,0,0,.1);
		border-bottom: 1px solid #dfdfdf;
	}
	#yt-shortcode-media-modal .yt-media-frame-router{display:none;}
	#yt-shortcode-media-modal .yt-media-frame-content {
		position: absolute;
		top: 200px;
		left: 0;
		right: 0;
		bottom: 61px;
		height: auto;
		width: auto;
		margin: 0;
		overflow: hidden;
	}
	#yt-shortcode-media-modal .yt-media-frame-toolbar {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 60px;
		z-index: 100;
		border: 0 solid #dfdfdf;
		border-width: 1px 0 0;
		box-shadow: 0 -4px 4px -4px rgba(0,0,0,.1);
	}
}