﻿form input[type="file"] {
    padding: 0;
    background: #fff;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 0
}

input[type=file] {
    cursor: inherit;
    display: block;
    font-size: 999px;
    filter: alpha(opacity=0);
    min-height: 100%;
    min-width: 100%;
    opacity: 0;
    position: absolute;
    right: 0;
    text-align: right;
    top: 0;
}

.file-add {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.file-add-in {
    position: relative;
    width: 100px;
    height: auto;
    cursor: pointer;
}

.file-add label {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    background: #fff;
    border: dashed 1px #000000;
    text-align: center;
    margin: 0;
    padding-top: 15px;
}

    .file-add label img {
        /*display: block;*/
        margin: 0 auto;
        width: 15px;
        height: 15px;
        text-align: center;
        /*margin-bottom: 10px;*/
    }



.file-add input[type=file] {
    width: 100px;
    height: 45px;
    max-width: inherit;
    min-width: inherit;
    left: 0;
    top: 0
}

.myFiles {
    padding-left: 15px;
    width: calc(100% - 105px);
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

    .myFiles p {
        width: calc(50% - 5px);
        border: solid 1px #e0e0e0;
        background-color: #f7f7f7;
        display: inline-block;
        font-size: 9px;
        height: 36px;
        text-align: center;
        padding: 0 8px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        position: relative;
    }

        .myFiles p span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .myFiles p:nth-child(2n+2) {
            margin-left: 10px
        }


        .myFiles p:before {
            content: '';
            position: absolute;
            right: -5px;
            top: -5px;
            background: #dd1133;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-image: url('../images/cross.svg');
            background-repeat: no-repeat;
            background-position: center center
        }
