.addImageButton {
    width: 100%;
}

.addImageButton__input {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    display: none;
}

.addImageButton__fakeButton {
    cursor: pointer;
    height: 40px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    color: #fff;
    justify-content: center;
    align-items: center;
    padding: 1px;
    border-radius: 2px;
    gap: 5px;
}

.addImageButton__changedImagesBlock {
    background-color: transparent;
    color: #333;
    height: 100%;
    align-items: center;
    padding: 0 5px;
    border-radius: 2px;
    display: none;
}

.addImageButton__changedImagesBlock--active {
    display: flex;
    gap: 5px;
}

.addImageButton__messageBlock {
    background-color: #fff;
    color: tomato;
    opacity: 0;
    transition: .2s;
    max-width: 150px;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: var(--ui-shadow-block-modal);
}

.addImageButton__messageBlock--active {
    opacity: 1;
}

.addImageButton__messagePart--black {
    color: #444;
}

.addImageButton__fakeButtonFile--preload::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0b7bc1;
    background-image: url('/img/loading.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.addImageButton__tempImagePreview {
    position: relative;
    height: 40px;
    width: 40px;
}

.addImageButton__tempImageRemove {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-radius: 10em;
    margin-top: -5px;
    margin-right: -5px;
    background-color: #fff;
    box-shadow: 0 1px 2px 1px #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: .2s;
    line-height: normal;
}

.addImageButton__tempImageRemove:hover {
    background-color: #333;
    color: #fff;
}

.addImageButton__tempImageRemove i {
    pointer-events: none;
    font-size: 7px;
}

.addImageButton__tempImagePreview img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    -o-object-fit: cover;
    object-fit: cover;
}