@mixin circle($color, $bgColor) {
    background-color: $bgColor;
    border: 2px solid $color;
    border-radius: 11px;
    height: 22px;
    width: 22px;
}

@mixin trail($color) {
    background-color: $color;
    height: 70px;
    margin-left: 10px;
    transition: background-color 1s ease;
    width: 2px;
}

@mixin trail-header($color) {
    color: $color;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
}

$statusTrailWidth: 250px;

.VideoProcessing {
    background-color: $mouse;
    padding: 25px;

    &-status-box {
        display: inline-block;
        margin-right: 25px;
        vertical-align: top;
    }

    &-status-box-content {
        background-color: #002c53;
        display: inline-block;
        height: 100%;
        margin-bottom: 10px;
        position: relative;
        width: 100%;
    }

    &-status-trail {
        display: inline-block;
        vertical-align: top;
        width: $statusTrailWidth;
    }

    &-status-trail-section {
        display: inline-block;
        margin-right: 13px;
        padding-top: 20px;
        vertical-align: top;
    }

    &-status-trail-section:nth-child(2) {
        width: $statusTrailWidth - 50;
    }

    &-status-info {
        background: #fff;
        padding: 8px;
    }

    &-status-info .Icons-info {
        display: inline-block;
        fill: #026ead;
        margin: 3px 8px 0 0;
        vertical-align: top;
        width: 16px;
    }

    &-status-info-text {
        color: #026ead;
        display: inline-block;
        width: 200px;
    }

    &-circle {
        @include circle(white, white);
    }

    &-blue-circle {
        @include circle($bluejay, white);
    }

    &-blue-circle-complete {
        @include circle($bluejay, $bluejay);
        /* stylelint-disable max-nesting-depth */
        .Icons-complete-checkmark {
            margin-left: 2px;
            margin-top: 1px;
        }
        /* stylelint-enable max-nesting-depth */
    }

    &-trail {
        @include trail(white);
    }

    &-blue-trail {
        @include trail($bluejay);
    }

    &-uploading {
        align-items: center;
        color: white;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        margin: auto;
        position: relative;
        text-align: center;
        z-index: 1;
    }

    &-uploading-text {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 17px;
        text-transform: uppercase;
    }

    &-uploading-circle {
        border: 2px solid white;
        border-radius: 51px;
        height: 102px;
        padding-top: 20px;
        width: 102px;
    }

    &-percentage {
        font-size: 30px;
        font-weight: 300;
    }

    &-min-left {
        font-size: 12px;
        position: relative;
        top: -2px;
    }

    &-progress-bar {
        background: linear-gradient(180deg, #40acff 0%, $bluejay 100%);
        bottom: 0;
        height: 160px;
        position: absolute;
        width: 100%;
    }

    &-status-trail-header-active {
        @include trail-header($gorilla);
    }

    &-status-trail-header {
        @include trail-header($timberwolf);
    }

    &-status-trail-header:nth-child(5),
    &-status-trail-header-active:nth-child(5), {
        margin-top: 8px;
    }

    &-status-trail-description {
        color: $gorilla;
        font-size: 12px;
        height: 66px;
        margin-top: 3px;
    }

    &-status-trail-description:nth-child(6) {
        height: 62px;
    }

    &-done-uploading-checkmark {
        border: 2px solid white;
        border-radius: 12px;
        height: 24px;
        margin-top: 12px;
        width: 24px;
    }

    .Icons-complete-checkmark {
        fill: white;
        height: 15px;
        margin-top: 2px;
        width: 15px;
    }

    &-validating {
        animation: rectangleRTL 2s linear infinite;
        background-color: #399be6;
        background-image:
            linear-gradient(
                135deg,
                rgba(2, 89, 161, 0) 25%,
                rgba(2, 89, 161, .34) 50%,
                rgba(2, 89, 161, 0) 75%
            );
        background-position: 50% 50%;
        background-size: 400%;
        color: white;
        height: 100%;
        margin: auto;
        padding-top: 145px;
        text-align: center;
    }

    &-upload-warning {
        background: #fff;
        padding: 8px;
    }

    &-upload-warning .Icons-attention {
        display: inline-block;
        fill: $fox;
        margin: 3px 8px 0 0;
        vertical-align: top;
        width: 16px;
    }

    &-cancel-upload-warning {
        color: $rhino;
        display: inline-block;
        font-size: 11px;
        width: 200px;
    }

    &-cancel-upload {
        color: $parrot;
        cursor: pointer;
        font-weight: 500;
        margin-top: 12px;
        text-align: right;
        text-transform: uppercase;
    }

}

@keyframes rectangleRTL {
    100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 50% 50%;
    }
    0% {
        background-position: 100% 100%;
    }
}
