/* KM Upload — unified file upload styles */

/* FILE GRID */

#fileupload-files {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

/* THUMBNAIL BLOCK */

.fileupload-template-block {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 7px;
}

.fileupload-template-block .hover-block-wrapper {
    min-height: 75px;
    line-height: 75px;
}

.fileupload-template-block .preview,
.fileupload-template-block canvas {
    width: 75px !important;
    height: 75px !important;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

/* DELETE BUTTON */

.fileupload-delete-button,
.fileupload-move-button {
    position: absolute;
    top: -9px;
    right: -9px;
    background: #fff;
    width: 17px;
    height: 17px;
    font-size: 16px;
    line-height: 16px;
    color: #000;
    border-radius: 50%;
    padding: 0 0 0 4px;
    cursor: pointer;
}

/* SORTABLE */

.sortable-chosen,
.sortable-fallback {
    opacity: 0 !important;
}

.sortable-chosen.sortable-ghost {
    opacity: 1 !important;
}

/* UPLOAD PROGRESS */

.template-upload .preview {
    opacity: 0.6;
}

.template-upload .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    margin: 0;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.template-upload .progress-bar {
    height: 100%;
    background: #00000074;
    transition: width 0.2s;
}

/* FILEPOND: hide item list, show only drop zone */

.km-grid-layout .filepond--list-scroller {
    display: none !important;
}
