@use '../../../../../node_modules/@theorchard/suite-components/src/styles/utils'
    as utils;

$upload-width: 676px;
$upload-height: 300px;

%info-left {
    align-items: flex-start;
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.UploadArea {
    width: $upload-width;
}

.file-upload {
    width: $upload-width;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 53px 0 65px;

    &-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 280px;

        &.left {
            @extend %info-left;

            width: 70%;
        }
    }

    &-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    &-subtitle {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 28px;
        text-align: center;
        color: var(--text-secondary);
    }

    &-link {
        color: var(--info-600);
    }

    .file-uploader-image {
        width: fit-content;
    }

    &-third-party {
        display: flex;
        gap: 35px;
    }

    .select-file-from-third-party {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        background: transparent;

        &-label {
            color: var(--text-secondary);
            font: 500 10px/12px inherit;
        }
    }

    .ErrorMessage-body {
        text-align: center;
    }

    &.status-ready {
        position: relative;
        cursor: pointer;
    }

    &.retry-upload {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
        height: 134px;

        .file-upload-info {
            @extend %info-left;

            margin: auto 0;
        }
        .file-upload-third-party {
            display: flex;
            gap: 35px;
            justify-content: center;
            align-items: center;
            width: 220px;
            height: 100%;
        }
        .file-upload-subtitle {
            text-align: left;
            width: inherit;
            margin: 0;
        }
    }

    &.in-progress {
        background: var(--white);
        border-radius: 20px;
        box-shadow: 10px 10px 20px 8px utils.var-with-opacity(--gray-400, 10%);
    }

    &.in-progress.retry-upload {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 40px;

        .file-upload-info {
            @extend %info-left;
        }
        .file-upload-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 30%;
        }
    }
}

.bulk-create-page-upload-corrections {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .Alert-title {
        font-size: 14px;
    }
}
