.form-type-webform-image-file{
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

/* border: 1px dotted gba(255, 255, 255, 0.20); */
    --bgLeft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='122' viewBox='0 0 20 122' fill='none'%3E%3Cpath d='M1 121L1 6.5C1 3.18629 3.68629 0.5 7 0.5L19 0.5' stroke='white' stroke-opacity='0.2' stroke-linecap='round' stroke-dasharray='12 12'/%3E%3C/svg%3E");
    --bgRight:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='208' height='122' viewBox='0 0 208 122' fill='none'%3E%3Cpath d='M207 121.5V6.5C207 3.18629 204.314 0.5 201 0.5H1' stroke='white' stroke-opacity='0.2' stroke-linecap='round' stroke-dasharray='12 12'/%3E%3C/svg%3E");
    --bgBottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='335' height='10' viewBox='0 0 335 10' fill='none'%3E%3Cpath d='M334 1.26917V3.49997C334 6.81368 331.314 9.49997 328 9.49997H7C3.68629 9.49997 1 6.81368 1 3.49997V1.26917' stroke='white' stroke-opacity='0.2' stroke-linecap='round' stroke-dasharray='12 12'/%3E%3C/svg%3E");
        background-image: var(--bgLeft), var(--bgRight), var(--bgBottom);
        background-position: top left, top right, bottom center;
        /* Позиционирование изображений */
        background-repeat: no-repeat, no-repeat, no-repeat;
        /* Запрет повторения изображений */
        background-size: auto 90%, auto 90%, 100% auto;
        min-height: 250px;
            /* Размер изображений */
}

.form-type-webform-image-file>label{
        position: absolute;
        background: #2D4B44;
        padding: 1px 6px;
        margin: 0px;
        left: 17px;
        top: -9px;
        color: #FFF;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
}

.form-type-webform-image-file input[type="file"]{
    display: none;
}

.file-icon{
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: radial-gradient(250% 250% at 50% 5.81%, rgba(255, 255, 255, 0.00) 0%, #FFF 100%);
}

.js-form-managed-file{
    color: rgba(255, 255, 255, 0.40);
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    justify-content: center;
    align-items: center;
}   


.form-managed-file-control {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.webform-image-file-preview-wrapper {
    flex-grow: 1;
    flex-basis: 150px;
    margin: 0;
    padding: 0px;
    margin-bottom: 0 !important;
    max-width: 30%;
    /* min-height: 1px; */
    border: none;
}

.webform-image-file-preview-wrapper input.form-check-input {
    display: none;
}

.webform-image-file-preview-wrapper img.webform-image-file {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: bottom;
}

.form-managed-file-control label.form-check-label {
    cursor: pointer;
    padding: 5px;
}

.form-managed-file-control input[type="checkbox"]:checked+label.form-check-label {
    background: red;
}

.form-managed-file-control .button{
    border-radius: 100px;
    border: 1px solid #4F8371;
    background-color: transparent;
    color: #fff;
    padding: 7px 15px;
    font-size: 12px;

}

.file-control-information {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.file-control-1{
   flex-direction: column;
}
.file-control-1 .webform-image-file-preview-wrapper{
    max-width: 100%;
}
.file-control-1 .file-control-information{
    width: 100%;
    margin-bottom: 10px;
}
.file-control-2{
    flex-direction: column;
}
.file-control-2 .webform-image-file-preview-wrapper {
    max-width: 100%;
}
.file-control-2 .file-control-information {
  margin-bottom: 10px;
}
