/* Состояние загрузки для конкретной карточки */
.img-block.uploading { 
    opacity: 0.6; 
}
.img-block.uploading .content::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 25px; height: 25px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(210, 86, 106, 0.2); /* Цвет вашей кнопки удаления, но прозрачный */
    border-top-color: #d2566a; /* Фирменный красный */
    border-radius: 50%;
    animation: spin-img 0.8s linear infinite;
    z-index: 10;
}
@keyframes spin-img { to { transform: rotate(360deg); } }

/* Скрываем текст-подсказку, если есть хотя бы одно фото */
.area-img.has-files .text-load { display: none; }


.image-block{
	position:relative;
}

.area-img {
	overflow: auto;
    background-color: #fafafa;
    border: 2px dashed #cccccc;
    color: #adadad;
    transition: 0.6s;
} 
.area-img .loading{
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    opacity: 0.6;	
	display:none;
}
.area-img label{
	cursor:pointer;	

}

.area-img .preview{
	display:block;
	padding: 10px 10px 10px 10px;	
    width: 100%;
    min-height: 255px;  
    box-sizing: border-box;		
    -moz-box-sizing: border-box;		
    -webkit-box-sizing: border-box;		
	margin-bottom: 0px;
}
.area-img:hover, 
.is-dragover{
    border-color: #4b7dac;
    color: #4b7dac;
}


.area-img  input{
	display:none;
}
.area-img .preview .img-block:nth-child(1):after{
	content: "Основное фото"; 
    position: absolute;
    bottom: 2px;
    font-size: 11px;
    left: 7px;
}
.area-img .preview .img-block{
    margin: 3px 10px 3px 0;
    background-color: #fff;
    padding: 5px;
    display:inline-block;
	position: relative;
	cursor:move;
    left: 0;
    box-shadow: 0 0 0 1px #ddd;
    -moz-box-shadow: 0 0 0 1px #ddd;
    -webkit-box-shadow: 0 0 0 1px #ddd;
}  

.area-img .preview .img-block .delete-img{
	position:absolute;
	top:0;
	right:0;
    cursor: pointer;
    color: #fff;
    padding: 2px 6px;
    background-color: #d2566a;
}
.area-img .preview .img-block .rotate-img{
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    color: #fff;
    padding: 3px 6px 4px 6px;
    background-image: url(/upload_adv/rotate.png);
    background-size: 68%;
    width: 10px;
    background-repeat: no-repeat;
    height: 12px;
    background-position: center;
    background-color: #d2566a;
}

.area-img .preview .img-block .content{
width: 112px;
    height: 100px;
    display: table;
}

.area-img .preview .img-block .content  > div{
	display:table-cell;
    vertical-align: middle;
    text-align: center;
}

.area-img .preview img{
	max-height: 80px;
    max-width: 100%;
}

.area-img  .text-load{
    font-size: 20px;
    position: absolute;
    top: 120px;
    width: 100%;
    text-align: center;
}

.area-img #error-img{
    position: absolute;
    bottom: 10px;
    left: 10px;	
    color: #d2566a;
}

.change-loader{
    margin: 20px 0 0 0;
    color: #b53434;	
}
.area-img #fileupload-styler{
	display:none !important;
}
