/**
 * Image upload preview
 */
.uploading__preview {
    position: relative;
}
    .uploading__preview video {
        margin-top: -1rem;
    }

.uploading__preview__progress {
    display: block;
    position: absolute;
    bottom: 0;
    height: 4px;
    opacity: 1;
    left: 15px;
    right: 15px;
    overflow: hidden;
}

    .uploading__preview--done .uploading__preview__progress {
        transition: background-color 0.2s, opacity 0.5s 1s;
        background: #00C853;
        opacity: 0;
    }

    .uploading__preview--error .uploading__preview__progress {
        background: rgba(255, 61, 0, 0.2);
        height: auto;
        top: 0;
    }
        .uploading__preview--error .uploading__preview__progress:after {
            content: 'Trying to reconnect';
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            padding-left: 15px;
            line-height: 30px;
            height: 30px;
            color: #fff;
        }
        .uploading__preview--error .uploading__preview__progress:before {
            content: '';
            position: absolute;
            height: 30px;
            bottom: 0;
            right: 0;
            left: -28px;
            background: #FF3D00;
            background: repeating-linear-gradient(
                    45deg,
                    #FF3D00,
                    #FF3D00 10px,
                    #c62828 10px,
                    #c62828 20px
            );
            animation: uploading__preview--error 1s infinite linear;
        }
        @keyframes uploading__preview--error {
            0% {
                transform: translateX(0);
            }
            to {
                transform: translateX(28px);
            }
        }

    .uploading__preview--uploading .uploading__preview__progress {
        background: #00BCD4;
        animation: uploading__preview--uploading 2s infinite;
    }
    @keyframes uploading__preview--uploading {
        0% {
            left: 15px;
            right: calc(100% - 15px);;
        }
        50% {
            left: 15px;
            right: 15px;
        }
        to {
            left: calc(100% - 15px);
        }
    }

.uploading__preview__remove {
    position: absolute;
    top: 0;
    left: 15px;
    width: calc(100% - 30px);
    height: 100%;
    display: none;
    border: none;
}
    .uploading__preview:hover .uploading__preview__remove {
        display: block;
        background: rgba(215, 57, 37, 0.33);
        color: #fff;
    }
/**
 * Galleries
 */
.uploading__link {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
    .uploading__link.has-errors {
        border: 1px solid #d73925;
    }

    .uploading__link--video {
        position: relative;
    }

/**
 * File upload dropzone
 */
.uploading__drop-zone {
    position: relative;
    margin-bottom: 15px;
    border: 2px dashed #90A4AE;
    border-radius: 5px;
    color: #455A64;
    text-align: center;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: border-color 0.2s, color 0.2s;
}
    .uploading__drop-zone.uploading__drop-zone--hover {
        border: 2px solid #00BCD4;
        color: #00BCD4;
        padding-top: 45px;
        padding-bottom: 45px;
    }
        .uploading__drop-zone--hover .uploading__drop-zone__button {
            display: none;
        }

    .uploading__drop-zone input[type="file"] {
        cursor: pointer;
        position: absolute;
        opacity: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
