/*-------- Drag 'n' Drop Upload ---------*/


/*
    Inspired by @dcode-software: https://codepen.io/dcode-software/pen/xxwpLQo
*/

.drop-zone {
    max-width: 100%;
    height: 156px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 1.2em;
    color: #888888;
    border: 4px dashed #dddddd;
    border-radius: 0.8rem;
}

.drop-zone small {
    font-weight: 500;
    font-size: .75em;
    color: #aaaaaa;
}

.drop-zone--over {
    border-style: solid;
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.drop-zone__thumb {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #cccccc;
    background-size: cover;
    position: relative;
    background-repeat: no-repeat;
}

.drop-zone__thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    font-size: .75em;
    text-align: center;
}

.drop-zone__thumb__delete {
    position: absolute;
    right: 0;
    top: 0;
    color: #eeeeee;
    background: rgba(0, 0, 0, 0.5);
    width: 2em;
    height: 2em;
    font-size: .75em;
    font-weight: 700;
    text-align: center;
    padding: 0.35em 0.4em 0em 0.5em;
    border-radius: 50%;
    cursor: pointer;
}

.drop-zone__thumb__delete:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 1);
}