/* Blur effect */
.upfront-image-upload-open .upfront-layout,
.upfront-popup-open .upfront-layout {
	-webkit-filter: blur(1px);
	-moz-filter: blur(1px);
	-ms-filter: blur(1px);
	-o-filter: blur(1px);
	filter: blur(1px);
}

/* DEFAULT POPUP STYLING

	 This styling will be applied if user does not pass
	 'classname' argument when calling
	 Upfront.Popup.open( callback, data, classname )
*/

#upfront-popup.default-popup {
	margin-top:100px;
	max-width: 630px;
	height:500px;
}

/* ----- Media manager ----- */
#upfront-popup.media-manager {
	margin-top:100px;
	max-width:800px;
	height: 760px;
}

.upfront-media_manager {
	position: relative;
	min-height: 670px;
	overflow: none;
}

.upfront-media_manager ul, .upfront-media_manager li {
	list-style: none;
}
.upfront-media_manager-post_image li.upfront-media_item {
	float: left;
	position: relative;
	width: 25%;
	padding: 0 15px 15px;
	cursor: pointer;
}
.upfront-media_manager-post_image li.upfront-media_item.selected .thumbnail {
	/*border:1px solid #1FCD8F;*/
	outline:#1FCD8F solid 3px;
}
.upfront-media_manager-post_image li.upfront-media_item.selected:before {
	content:'';
	width:30px;
	height:30px;
	background-color: #233140;
	background-image: url(../img/uf-ui-sprite.svg);
	background-position: -726px -132px;
	display: block;
	position: absolute;
	right:7px;
	top:-8px;
	z-index: 1;
}

.upfront-media_manager-post_image li.upfront-media_item .thumbnail {
	max-width: 100%;
	height: 75px;
	overflow: hidden;
	position: relative;
	/*border:1px solid #A1C5E6;*/
	background-color: #C5D8EA;
	background-image: -webkit-linear-gradient(bottom left, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA),
										-webkit-linear-gradient(bottom left, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA);
	background-image:      -o-linear-gradient(bottom left, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA),
										     -o-linear-gradient(bottom left, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA);
	background-image:        linear-gradient(to top right, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA),
										       linear-gradient(to top right, #A6C1DA 25%, transparent 25%, transparent 75%, #A6C1DA 75%, #A6C1DA);

	-webkit-background-size: 20px 20px;
		 -moz-background-size: 20px 20px;
					background-size: 20px 20px;
	background-position: 0 0, 10px 10px;
}
.upfront-media_manager-post_image li.upfront-media_item .thumbnail img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width:100%;
	height: auto;
}
.upfront-media_manager-post_image li.upfront-media_item .upfront-media-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: rgb(31, 205, 143);
}
.upfront-media_manager-post_image li.upfront-media_item .title {
	display: block;
	color: #5f7f99;
	font-family: Verdana, sans-serif;
	font-size: 11px;
	line-height: 14px;
	padding: 5px 0 0;
	height: 33px;
	overflow: hidden;
	word-break: break-word;
	text-overflow: ellipsis;
	position: relative;
}
.upfront-media_manager-post_image li.upfront-media_item.has-parent .title {
	border-top: 3px solid #1fcd8f;
	margin: -4px 1px 0;
	padding: 6px 0 0;
	height: 37px;
}
.upfront-media_manager-post_image li.upfront-media_item.selected .upfront-icon-media-selected {
	background: rgb(31, 205, 143);
	box-shadow: 0 0 0 5px rgba(38,58,77,.5);
	border-radius: 20px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
}
.upfront-media_manager-post_image li.upfront-media_item.selected .upfront-icon-media-selected:before {
	float: none;
	margin: 10px auto 0;
}
.upfront-media_manager-post_image li.upfront-media_item .edit,
.upfront-media_manager-post_image li.upfront-media_item .delete
{
	position: absolute;
	top: 0;
	height: 100%;
	max-height: 80px;
	width: 50%;
	margin: 0; padding: 0;
	opacity: .5;
	display: none;
}
.upfront-media_manager-post_image li.upfront-media_item .edit {
	left: 0;
	background: green;
}
.upfront-media_manager-post_image li.upfront-media_item .delete {
	left: 50%;
	background: red;
}
.upfront-media_manager-post_image li.upfront-media_item:hover .edit,
.upfront-media_manager-post_image li.upfront-media_item:hover .delete
{
	display: block;
}
.upfront-media_manager .upfront-media_collection {
	width: 70%;
	position: absolute;
	top: 40px;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 7px 15px 0 15px;
	overflow-x: hidden;
	overflow-y: auto;
}
.upfront-media_manager .upfront-media-controls {
	width: 30%;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	padding: 0;
	background: rgb(197,216,234);
}
.upfront-media_manager .upfront-media-controls .upfront-item-control,
.upfront-media_manager .upfront-media-controls .upfront-filter-control {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	overflow-x: hidden;
	overflow-y: auto;
}
.upfront-media_manager .upfront-media-controls-search-selected .upfront-item-control {
	top: 83px;
}
.upfront-media-controls .upfront-field-label {
	color: #335b80;
}
.upfront-media-controls .change_title .upfront-field-label,
.upfront-media-controls .add_labels .upfront-field-label,
.upfront-media-controls .upfront-filter_selection-control .upfront-field-label,
.upfront-media-controls .upfront-filter_selected-control .upfront-field-label {
	padding: 0 0 0 0px;
	font-weight:normal;
}
.upfront-media-controls .change_title .selected_length {
	color: #7c98b2;
	font-family: Verdana, sans-serif;
	font-size: 11px;
	padding: 0 10px;
}
.upfront-media-controls .upfront-search_filter-control {
	background: #c2dbf2;
	margin: 0;
	padding: 15px 10px;
	font-size: 13px;
	font-family: Verdana, sans-serif;
	line-height: 22px;
	max-height: 83px;
	color: #7c98b2;
}
.upfront-media-controls-search .upfront-search_filter-control {
	background: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
.upfront-media-controls .upfront-search_filter-control .search-text {
	color: #395269;
	font-weight: bold;
}
.upfront-additive_multiselection {
	margin: 0 0 5px;
}
.upfront-media-controls .existing_labels,
.upfront-media-controls .upfront-filter_selected-control {
	margin: 30px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid rgba(97,128,152,.2);
}
.upfront-media-controls .existing_labels a,
.upfront-media-controls a.filter,
.upfront-media-controls a.all_filters,
.upfront-media-controls a.clear_search {
	font-size: 11px;
	font-family: Verdana, sans-serif;
	line-height: 18px;
	padding: 0 5px;
	margin: 0 7px 6px 0;
	color: rgb(56,81,106);
	background: rgb(166,193,218);
	border-radius: 3px;
	display: inline-block;
}
.upfront-media-controls a.filter[data-type*="label"]{
	background-color: rgb(230,243,254);
}

.upfront-media-controls a.all_filters,
.upfront-media-controls a.clear_search {
	padding: 0 5px;
	color: rgb(255,255,255);
	background: rgb(44,62,80);
	margin-right: 100px;
	margin-top: 16px;
}
.upfront-media-controls .upfront-icon-media-label-delete:before {
	float: right;
	margin: 4px 0 0 4px;
}
.upfront-filter_control > ul {
	margin: 0;
	/*padding: 0 0 0 10px;*/
	padding: 0;
}
.upfront-filter_control > ul > li {
	margin: 0;
	padding: 0;
	cursor: pointer;
	display: inline;
	padding-right: 20px;
}
.upfront-filter_selection-control ul, .upfront-filter_selection-control .upfront-filter_control {
	display: block;
}
.upfront-filter_control li {
	font-weight: 600;
	color: rgb(56,81,106);
	font-size: 13px;
}
.upfront-filter_control li b {
	opacity: .5;
}

.upfront-media-aux_controls {
	font-size: 11px;
	font-family: Verdana, sans-serif;
	padding: 12px 30px;
	width: 70%;
	overflow: hidden;
}
.upfront-media-aux_controls .select_control_container a {
	color: rgb(31, 205, 143);
	text-decoration: none;
	font-weight: bold;
}
.upfront-media-aux_controls .select_control_container {
	float: left;
}
.upfront-media-aux_controls-has-select .select_control_container {
}
.upfront-media-aux_controls .delete_control_container {
	float: right;
	background: #d51f1f;
	border-radius: 3px;
	height: 18px;
	line-height: 18px;
	padding: 0 10px;
}
.upfront-media-aux_controls .delete_control_container a {
	color: #fff;
	font-weight: normal;
}

.upfront-popup-meta .search_container,
.upfront-popup-meta .upload_media_container,
.upfront-popup-meta .use_selection_container {
	float: left;
}

.upfront-popup-meta .upload_media_container {
	padding: 10px 0 0;
}
#upfront-popup .upfront-popup-meta .upload_media_container button {
	color: #cbe5ff;
	font-size: 16px;
	border: 2px solid #cbe5ff;
	height: 31px;
	line-height: 27px;
	padding: 0 10px;
	text-transform: none;
}

.upfront-popup-meta .search_container {
	width: 200px;
	height: 50px;
	position: relative;
	float: right;
	overflow: hidden;
}
#upfront-popup .upfront-popup-meta .search_container input {
	position: absolute;
	left: 100%;
	top: 0;
	width: 100%;
	height: 50px;
	line-height: 20px;
	padding: 15px;
	background: #354758;
	border: none;
	-webkit-transition: left .3s;
	-moz-transition: left .3s;
	-ms-transition: left .3s;
	-o-transition: left .3s;
	transition: left .3s;
	z-index: 10;
}
#upfront-popup .upfront-popup-meta .search_container:hover input,
#upfront-popup .upfront-popup-meta .search_container.has_search input,
#upfront-popup .upfront-popup-meta .search_container input:focus {
	left: 0;
	color: #e5f2ff;
	outline: none;
	-moz-appearance: none;
}
.upfront-popup-meta .search_container .search {
	float: right;
	width: 25%;
	position: relative;
	z-index: 12;
}
.upfront-popup-meta .search_container.has_search .search {
	z-index: 9;
}
.upfront-popup-meta .search_container .upfront-icon-popup-search:before {
	float: none;
	margin: 14px auto 0;
	background-position: -730px -105px;
	width:24px;
	height:24px;
}
.upfront-popup-meta .search_container a.clear {
	position: absolute;
	height: 16px;
	width: 16px;
	right: 10px;
	top: 0;
	bottom: 0;
	margin: auto;
	z-index: 11;
}

.upfront-popup-meta .use_selection_container {
	float: right;
	text-align: center;
	background: rgb(31, 205, 143);
	height: 50px;
	line-height: 50px;
}
.upfront-popup-meta .use_selection_container:hover {
	background: #3ea;
}
.upfront-popup-meta .use_selection_container.inactive {
	background: #cee1f2;
}

.upfront-popup-meta .use_selection_container.inactive a{
	color: #99b3cc;
	cursor: default;
}
.upfront-popup-meta .use_selection_container a {
	display: block;
	padding: 0 32px;
	color: #fff;
	text-decoration: none;
}

.upfront-embed_media {
	padding: 15px;
}


/* --- Editor --- */
.upfront-media_item-editor {
	position: absolute;
	background: #999;
	padding: 10px;
	top: 0;
	left: 60px;
	z-index: 10;
}
.upfront-media_item-editable {
	padding: 5px;
}
.upfront-media_item-editable textarea {
	width: 100%;
}
.upfront-media_item-editor .upload_type-nag {
	background: #ffa500;
}
.upfront-media_item-editor .upload_type-nag a {
	display: block;
}
/* --- Embed media --- */
#upfront-popup-top ul li {
}
#upfront-popup-top .upload {
	float: right;
}
.upfront-embed_media .upfront-pane {
	width: 50%;
	float: left;
}
.upfront-embed_media .upfront-pane input {
	/*width: 100%;*/
}
.upfront-media_manager-embed-preview .progress {
	width: 100%;
	height: 3px;
}
.upfront-media_manager-embed-preview .progress .bar {
	width: 0;
	height: 3px;
	background: green;
}

/* --- Media Manager - Additional --- */

.upfront-additive_multiselection .labels_hub {
	max-height: 6em;
	overflow-y: scroll;
}
.upfront-media_manager-tabs {
	width: auto;
}

#upfront-popup-top.upfront-popup-meta .upload {
	display: block;
	float: left;
	/*margin-left: 280px;*/
	width: auto;
	text-transform: none;
	font-size:15px;
	border:0;
	background-color: transparent;
	color: #E5F3FE;
	border-radius: 3px;
	padding:0;
	margin-top: 9px;
	opacity:.9;
}
#upfront-popup-top.upfront-popup-meta .upload:hover {
	opacity:1;
}
#upfront-popup-top.upfront-popup-meta .upload:focus {
	outline:none;
}

#upfront-popup-top.upfront-popup-meta .upload:before {
	width: 30px;
	height: 20px;
	background-position: -1181px -119px;
}

#media-manager-multi-dialog {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	width: 420px;
	height: 240px;
	padding: 30px 10px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: #f1f9ff;
	-moz-box-shadow: 0 0 15px rgba(38,58,77,.65);
	-webkit-box-shadow: 0 0 15px rgba(38,58,77,.65);
	box-shadow: 0 0 15px rgba(38,58,77,.65);
}
.multi-dialog-title {
	color: #395169;
	font-size: 16px;
	font-weight: normal;
	line-height: 24px;
	text-align: center;
	margin: 0 0 20px;
}
.multi-dialog-choices {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.multi-dialog-choice {
	display: inline-block;
	width: 120px;
	padding: 10px 0;
	font-size: 11px;
	font-family: Verdana, sans-serif;
	line-height: 15px;
	cursor: pointer;
}
.multi-dialog-choice.upfront-icon:before {
	float: none;
	display: block;
	margin: 0 auto 10px;
}
.multi-dialog-choice:hover {
	color: #1fcc8f;
}

#upfront-popup .upfront-ucomment-tabs {
	width: 80%;
}
#upfront-popup .upfront-ucomment-tabs .settings {
	width: 60%;
}
.upfront-field-complex_field input[type="number"],
.upfront-field-labeled_counter_field input[type="number"] {
	width: 4em;
}

/* Media Queries for smaller height screens */

@media screen and ( max-height: 880px ){
	
	#upfront-popup.media-manager,
	#upfront-popup.default-popup {
		margin-top:50px;
		height: 550px;
	}

    .upfront-media_manager {
    	min-height: 460px;
    }
    
}

@media screen and ( max-height: 768px ){
	.upfront-scroll-panel {
		max-height: 350px;
	}
}

/* --- Discussion Settings --- */

#upfront-popup.discussion-popup {
	margin-top:100px;
	max-width: 630px;
	height:500px;
}
#upfront-popup.discussion-popup #upfront-popup-content {
	max-height: 450px;
	overflow-y: scroll;
}