.image-upload-modal {
    width: 702px;
    min-height: 545px;
    background-color: $white;
    color: $tools-text;
    @extend .AvenirRegular;
    @media (max-width: $tablet) {
        width: 539px;
    }

    .progress-bar {
        width: 100%;
        height: 16px;
        border: 1px solid $tools-color-A;
        > div {
            height: 16px;
            background-color: $tools-active-color;
        }
    }

    input[type=file] {
        background-color: $tools-color-E;
        border: 1px solid #cacaca;
        color: $tools-color-D;
        padding: .5em 2.5em;
        border-radius: 3px;
        font-size: 12px;
    }

    a {
        color: inherit;
        &:hover {
            text-decoration: none;
        }
    }
    .modal-tabs {
        width: 100%;
        display: table;
        a {
            cursor: pointer;
            display: table-cell;
            padding: 1em 2em;
            background-color: $tools-color-C;
            font-size: 14px;
            color: $white;
            border-right: 1px solid $white;
            text-align: center;
            &.active {
                background-color: $white;
                color: $tools-color-C;
            }
            &:last-child {
                border: none;
            }
            &:not(.active):hover {
                background-color: $tools-color-D;
            }
        }
    }
    .modal-body {
        padding: 1em 2em 2em;
        overflow: hidden;
        .modal-header {
            margin-top: 1em;
            margin-bottom: 5px;
            overflow: hidden;
            .modal-title {
                margin: 0 0 .5em;
            }
            button, input {
                float: right;
            }
            input {
                width: 315px;
                margin-left: .6em;
                padding: .1em .5em;
                color: $tools-text;
                @extend .AvenirRegular;
                &:focus {
                    outline: 1px solid $tools-active-color;
                }
                @media (max-width: $tablet) {
                    width: 214px;
                }
            }
        }
    }
    .modal-title {
        color: $tools-color-D;
        font-size: 22px;
        display: inline-block;
    }
    .upload-box {
        border: 2px dashed #CCD2E0;
        text-align: center;
        padding: 5em 0;
        p {
            color: $tools-color-D;
            margin: 0 0 .5em;
        }
        p:first-child {
            font-size: 18px;
            margin: 0;
        }
    }
    .uploaded-media {
        overflow: hidden;
        border: 1px solid #BBB;
        border-radius: 3px;
        padding: 1em;
        margin-bottom: 1em;
        display: flex;
        flex-direction: row;
        align-items: center;
        img {
            margin-right: 1em;
            margin-bottom: 0;
        }
        .description {
            font-size: 1em;
            padding: 0.5em * 11 / 16;
        }

        .media-data {
            flex: 1;
            margin-left: 0.5em;
            margin-right: 1.5em;
            input {
                border-color: $tools-color-E;
                border-top-width: 0;
            }
            input:first-child {
                border-top-width: 1px;
            }
        }
        .delete-media {
            font-size: 12px;
            cursor: pointer;
            svg {
                margin-right: .75em;
                position: relative;
                top: 4px;
            }
        }
        label{ float: left }
    }
    .media-thumbnails {
        .image-thumbnail {
            border: 1px solid #979797;
            width: 150px;
            height: 150px;
            margin-right: .5em;
            margin-bottom: .5em;
            display: inline-block;
            cursor: pointer;
            position: relative;
            &:nth-child(4n) {
                margin-right: 0;
                @media (max-width: $tablet) {
                    margin-right: .5em;
                }
            }
            @media (max-width: $tablet) {
                &:nth-child(3n) {
                    margin-right: 0;
                }
            }
            img {
                width: 100%;
            }
            .thumbnail-overlay {
                width: 100%;
                height: 100%;
                background-color: rgba(0,0,0,.5);
                color: $white;
                position: absolute;
                opacity: 0;
                &:hover {
                    opacity: 1;
                }
                .text {
                    position: absolute;
                    bottom: .5em;
                    display: block;
                    left: .5em;
                }
                p {
                    margin: 0;
                }
                p:first-child {
                    font-size: 12px;
                    font-weight: bold;
                }
                p:last-child {
                    font-size: 10px;
                }
            }
            .selection {
                display: none;
                padding: .5em .5em .3em;
                background-color: #7BDF15;
                border-radius: 3px;
                position: absolute;
                top: .5em;
                right: .5em;
                z-index: 2;
            }
            &.selected {
                .selection {
                    display: inline-block;
                }
            }
        }
    }
    form {
        label {
            font-size: 14px;
        }
        input[type="text"] {
            float: none;
            border: 1px solid #D8D8D8;
            display: block;
            width: 100%;
            padding: .5em;
            @extend .AvenirRegular;
            &:focus {
                outline: 1px solid $tools-active-color;
            }
        }
        button {
            float: right;
            margin-left: 1em;
        }
    }
}
