
#cropper_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1080;
    background: rgba(0,0,0, 0.5);
}

#cropper_modal .modal-dialog {
    position: relative;
    width: 900px;
    margin-top: 30px;
    left: 25%;
    border: 1px solid black;
    border-radius: 10px;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0, 0.5);
}

.modal-header {
    margin-top: -20px;
}

.modal-title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin: 20px auto 5px auto;
    height: 27px;
}

#cropper_image { width: 50vw; height: 40vh; margin: 0px; padding: 0px; }

.preview_container {
    height: 200px;
    padding: 20px;
    display: flex;
    margin: 10px auto 10px auto;
}

.preview_container::before {
    content: "Preview:";
    font-size: 16px;
    font-weight: bold;
    color: rgb(40, 40, 40);
    position: absolute;
    margin-top: -25px;
    margin-left: -20px;
    z-index: 1024;
}

.cropper_preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid black;
    margin: auto;
}

.cropper-container { max-height: 50vh; }

.cropperImageField {
    width: 100%;
    margin: auto;
    display: inline-block;
    border: 1px solid silver;
    text-align: center;
}

.field-box .cropperImageField {
    width: 400px;
    float: left;
}


.cropperImageField .placeholder, .cropperImageField img {
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.cropperImageField .placeholder {
    padding: 40px;
    border: 2px dotted black;
    margin: 30px auto 30px auto;
    border-radius: 10px;
    width: 100px;
    transition: 0.2s all;
}

.cropperImageField .placeholder:hover {
    border-color: rgb(255, 153, 0);
    background-color: rgba(255, 153, 0, 0.2);
}

.cropperImageField img {
    max-width: 70%;
    box-sizing: content-box;
    height: 120px;
    margin: 10px auto 10px auto;
}

.cropperImageField[data-required] .deleteImage {
    display: none;
}

.cropperImageField img:not([src]) ~ .deleteImage,
.cropperImageField img:not([src]),
.cropperImageField img[src] ~ .placeholder {
    display: none;
}

.cropper-crop-box {
    background-color: white;
}

#cropper_modal #btn-actions {
    float: left;
    text-align: center;
    display: inline-block;
    height: 32px;
    margin-top: 3px;
    overflow: hidden;
}

#cropper_modal #btn-actions button {
    width: 32px !important;
    height: 32px !important;
    -webkit-background-size: cover !important;
    background-size: cover !important;
    background-color: transparent !important;
    border: 0px !important;
    cursor: pointer;
    transition: 0.2s all;
    opacity: 0.6;
    outline: none;
    padding: 0px !important;

}

#cropper_modal #btn-actions button:hover {
    opacity: 1;
}

#btn-actions .reset { background-image: url('../img/icon-reset.png') !important; }
#btn-actions .rotate-left { background-image: url('../img/icon-rotate-left.png') !important; }
#btn-actions .rotate-right { background-image: url('../img/icon-rotate-right.png') !important; }

#cropper_modal .submit-row {
    margin: 0px;
    display: block !important;
    padding: 12px !important;
}

#cropper_limit_dimensions {
    height: 32px;
    vertical-align: middle;
    margin-right: 5px;
}

label[for='cropper_limit_dimensions'] {
    display: inline-block;
    margin-right: 20px;
    text-transform: none;
}

#cropper_modal:not(.can_limit_dimensions) #cropper_limit_dimensions,
#cropper_modal:not(.can_limit_dimensions) label[for='cropper_limit_dimensions'] {
    display: none;
}

#cropper_modal .modal-title::after {
    content: attr(data-warning);
    float: right;
    font-size: 13px;
    text-align: right;
    color: red;
    white-space: pre-wrap;
    margin-top: -5px;
    max-width: 50%;
}