/* ==========================================================
   PRODUCT IMAGE AREA
   ========================================================== */

.product-image-dropzone {
    width: 100%;
    min-height: 500px;

    padding: 24px !important;

    border: 1px dashed #b7c2d0;
    border-radius: 10px;

    background: #f8fafc;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}


/* ==========================================================
   PREVIEW CONTAINER
   ========================================================== */

.product-image-preview {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 28px;
}


/* ==========================================================
   IMAGE CARD
   ========================================================== */

.product-image-preview .dz-preview {
    position: relative !important;

    width: 145px !important;
    height: 190px !important;
    flex: 0 0 145px;

    margin: 0 !important;
    padding: 10px !important;

    border: 1px solid #d5dce5;
    border-radius: 12px;

    background: #ffffff;

    box-sizing: border-box;

    overflow: visible !important;

    opacity: 1 !important;
}


/* ==========================================================
   IMAGE
   ========================================================== */

.product-image-preview .dz-image {
    width: 125px !important;
    height: 125px !important;

    margin: 0 !important;

    overflow: hidden !important;

    border-radius: 12px !important;

    background: #f1f4f8;

    position: relative !important;
}


/* Actual image */

.product-image-preview .dz-image img {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;

    display: block !important;
}


/* ==========================================================
   FILE INFORMATION
   ========================================================== */

/*
 * Dropzone normally puts filename/size over
 * the image. Move it BELOW the image.
 */

.product-image-preview .dz-details {
    position: absolute !important;

    left: 10px !important;
    right: 10px !important;

    top: 143px !important;

    width: auto !important;
    height: auto !important;

    padding: 0 !important;

    opacity: 1 !important;

    text-align: left !important;

    color: #344054 !important;

    background: transparent !important;
}


/* File size */

.product-image-preview .dz-size {
    font-size: 14px !important;

    color: #667085 !important;

    margin-bottom: 4px;
}


/* File name */

.product-image-preview .dz-filename {
    width: 100% !important;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 14px !important;

    color: #344054 !important;
}


/* Remove Dropzone hover enlargement */

.product-image-preview .dz-preview:hover .dz-details {
    opacity: 1 !important;
}


/* ==========================================================
   PROGRESS BAR
   ========================================================== */

.product-image-preview .dz-progress {
    position: absolute !important;

    left: 20px !important;
    right: 20px !important;

    top: 118px !important;

    width: auto !important;
    height: 6px !important;

    margin: 0 !important;

    opacity: 0.9;

    z-index: 5;
}


/* ==========================================================
   REMOVE BUTTON
   ========================================================== */

.product-image-preview .dz-remove {
    position: absolute !important;

    top: -10px !important;
    right: -10px !important;

    z-index: 20 !important;

    width: 25px !important;
    height: 25px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50% !important;

    border: 2px solid #ffffff !important;

    background: #dc3545 !important;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 0 !important;

    line-height: 1 !important;
}


/* X symbol */

.product-image-preview .dz-remove::after {
    content: "×";

    font-size: 24px;

    font-weight: 400;

    line-height: 1;

    color: #ffffff;
}


/* ==========================================================
   UPLOAD AREA
   ========================================================== */

.product-image-dropzone .dz-message {
    width: 100%;

    min-height: 260px;

    margin: 0 !important;

    padding: 30px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #667085;

    cursor: pointer;
}


/* Upload text */

.product-image-dropzone .upload-message {
    font-size: 18px;
}


/* Browse button */

.product-image-dropzone
.upload-message
.btn-link {

    font-size: 18px;

    font-weight: 600;

    text-decoration: none;
}


/* Help text */

.product-image-dropzone .upload-help {

    font-size: 14px;

    color: #7b8794;

    margin-top: 12px;
}


/* Upload icon */

.product-image-dropzone .dz-message img {

    width: 48px !important;
    height: 48px !important;

    object-fit: contain;

    margin-top: 18px !important;
}


/* Hide fallback input */

.product-image-dropzone .fallback {
    display: none !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .product-image-preview {
        gap: 20px;
    }

    .product-image-preview .dz-preview {

        width: 180px !important;
        height: 240px !important;

        flex-basis: 180px;
    }

    .product-image-preview .dz-image {

        width: 160px !important;
        height: 160px !important;
    }

    .product-image-preview .dz-details {

        top: 178px !important;
    }

    .product-image-preview .dz-progress {

        top: 152px !important;
    }
}