.file-item {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    font-size: 18px;
    line-height: 24px;
    padding: 0 20px;
}

.file-text {
    -webkit-flex: 1;
    flex: 1;
    font-weight: 400;
}

.file-upload .file-text {
    color: #747480;
    font-size: 16px;
    font-weight: 200;
    line-height: 22px;
}

.file-button {
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    background-color: transparent;
    color: #6A0C88;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
    border: 1px solid #6A0C88;
    outline: none;
    padding: 18px 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.error .file-button {
    border-color: #dc3232;
}

.file-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #8B1890 0%, #720C76 100%);
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.file-button:hover,
.file-button:focus-visible {
    color: #FFFFFF;
}

.file-button:hover::before,
.file-button:focus-visible::before {
    opacity: 1;
}

.file-button .file-size {
    font-weight: 200;
}

.file-input,
.file-container {
    display: none;
}

.file-container {
    position: absolute;
    inset: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    word-break: break-word;
    /* overflow-y: auto; */
    margin: 20px 0;
}

.file-container.is-visible {
    display: block;
}

.file-error {
    color: #FF736A;
}

.file-container .highlight {
    font-weight: 700;
    text-decoration: underline;
}

.file-remove {
    position: relative;
    display: block;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    background: transparent;
    color: #6A0C88;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    padding: 0;
    cursor: pointer;
}

.file-remove > .text {
    position: relative;
    padding-right: calc(var(--icon-size-x) + 4px);
    -webkit-transform: translate(0);
    transform: translate(0);
}

.file-remove > .text > .icon {
    position: absolute;
    top: 50%;
    right: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.file-remove > .text > .icon > * {
    min-width: var(--icon-size-x);
    max-width: var(--icon-size-x);
    width: var(--icon-size-x);
    min-height: var(--icon-size-y);
    max-height: var(--icon-size-y);
    height: var(--icon-size-y);
    -webkit-transform: translate(0);
    transform: translate(0);
}

.file-remove > .text > .icon > * > *{
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.file-remove:hover > .text > .icon > * > path,
.file-remove:focus-visible > .text > .icon > * > path {
    fill: #dc3232;
}

.file-remove:hover > .text > .icon > * > rect,
.file-remove:focus-visible > .text > .icon > * > rect {
    fill: #FFFFFF;
}

.file-types-wrap > * {
    color: #410D52;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.174;
}

.file-types-wrap > * + * {
    margin-top: 5px;
}

.file-types-wrap strong {
    font-weight: 600;
}