.container-upload{
    // max-width: 230px;
    margin-bottom: 30px;
    width: 100%;
    height: 120px;
    position: relative;
    border-radius: 20px;
    box-shadow: 6px 9px 20px 0px rgba(50, 50, 50, 0.15);
    transition: width .3s, height .3s, box-shadow .3s;
    will-change: width, height, box-shadow;

    &:before{
        content: '';
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border: 2px dashed #bccddd;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10px;
        transition: opacity .3s;
    }

    .file-upload{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .mask-input{
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        opacity: .8;
        transition: opacity .3s;

        svg{
            fill: var(--purple);
            width: 30px;
            height: 30px;
        }

        .upload-text{
            text-align: center;
            color: var(--purple);
            line-height: 15px;
            padding: 0 20px;
        }
    }

    .container-preview-image{
        opacity: 0;
        max-width: 220px;
        max-height: 177px;
        width: 100%;
        height: 100%;
        transition: opacity .3s;
        transition-delay: 0s;
        pointer-events: none;
        position: absolute;
        left: 0;
        top: 0;

        .preview-image{
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid var(--theme-primary);

            &:before{
                content: '';
                display: block;
                width: 100%;
                padding-bottom: 64%;
            }

            img{
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 10px;

                &.icon{
                    max-height: calc(100% - 3rem);
                    top: 1rem;
                    object-fit: contain;
                }
            }

            .file-name{
                width: 100%;
                padding: 0 15px;
                position: absolute;
                left: 0;
                bottom: 5px;
                text-align: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                color: var(--theme-primary);
                font-weight: 700;
            }
        }


        .actions{
            width: 100%;
            display: flex;
            margin-top: 10px;

            .remove-image{
                border: 0;
                flex-grow: 1;
                flex-shrink: 0;
                width: 37px;
                background-color: var(--danger);
                border-radius: 3px;
                padding: 4px;
                // margin-left: 5px;

                svg{
                    fill: #FFF;
                    width: 15px;
                    height: 15px;
                }
            }
        }
    }

    &.render-image{
        width: 220px;
        height: 177px;
        box-shadow: none;

        .mask-input, &:before{
            opacity: 0;
        }

        .container-preview-image{
            opacity: 1;
            transition-delay: .2s;
            pointer-events: all;
        }
    }
}