.muxvideo-asset-upload {
    padding: 1rem 2rem;
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .btn-primary {
            font-size: 13px;
            height: 35px;
            padding: 0.5rem 2rem;
            min-width: 130px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    form {
        background-color: $white;
        margin: 2rem 0;
        border-radius: 10px;
        width: auto;
    }

    .title-switch-privacy{
        text-align: center;
        font-size: 21px;
    }

    .switches-container {
        width: 16rem;
        position: relative;
        display: flex;
        padding: 0;
        background: $white;
        line-height: 3rem;
        border-radius: 3rem;
        margin-left: auto;
        margin-right: auto;
        border: 1px solid $grey300; 

        input {
            visibility: hidden;
            position: absolute;
            top: 0;
        }

        label {
            width: 50%;
            padding: 0;
            margin: 0;
            text-align: center;
            cursor: pointer;
            color: $grey800;
        }

        .disabled{
            filter: grayscale(1);
            pointer-events: none;
            opacity: 0.3;
        }

        .switch-wrapper {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            z-index: 3;
            transition: transform .5s cubic-bezier(.77, 0, .175, 1);
            /* transition: transform 1s; */
            
            .switch {
                border-radius: 3rem;
                background: $pink;
                height: 100%;

                &__protected{                 
                    border-radius: 50px 0px 0px 50px;
                }

                &__public{
                    border-radius: 0px 50px 50px 0px;
                }
                
                div {
                    width: 100%;
                    background: $pink;
                    text-align: center;
                    opacity: 0;
                    display: block;
                    color: $white;
                    transition: opacity .2s cubic-bezier(.77, 0, .175, 1) .125s;
                    will-change: opacity;
                    position: absolute;
                    top: 0;
                    left: 0;
                }
            }
        }


        input:nth-of-type(1):checked~.switch-wrapper {
            transform: translateX(0%);
        }
        
        input:nth-of-type(2):checked~.switch-wrapper {
            transform: translateX(100%);
        }
        
        input:nth-of-type(1):checked~.switch-wrapper .switch div:nth-of-type(1) {
            opacity: 1;
        }
        
        input:nth-of-type(2):checked~.switch-wrapper .switch div:nth-of-type(2) {
            opacity: 1;
        }
    }

    .droparea {
        height: 262px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 200px;
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        margin-top: 20px;
        border-radius: 31px;
        border: 2px dashed $blue;
        margin-bottom: 1rem;
        padding: 1rem;

        &:has(input:disabled) {
            filter: grayscale(1);

            .btn-primary{
                background-color: $blue;
            }
        }

        &:hover{
            .btn-primary{
                background: $blue-hovered;
            }
        }

        &.is-dragging {
            background-color: $blue-op;

            p {
                text-align: center;
                font-size: 18px;
                text-transform: uppercase;
                font-weight: bold;
                color: $blue !important;
            }

        }

        .not-dragging-text {
            padding-top: 5px;
            line-height: 30px;
            text-align: center;

            a {
                width: 140px;
                margin: 0 auto;
                padding: 0.5rem 0 0.5rem 0;
                text-align: center;
                text-underline-offset: 5px;
                color: #0032DB;
            }
        }

        .dragging-text {
            display: none;
            padding-top: 5px;
            line-height: 30px;
            text-align: center;
        }

        img {
            max-width: 200px;
        }

        p {
            text-align: center;
            font-weight: 400;
            font-size: 18px;
            line-height: 120px;
            color: $characoal;
        }
    }

    .droparea.is-over {
        border: 1px solid;
    }

    .input[type=file] {
        z-index: 10;

        &.input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
        }

    }

    button {
        display: inline-block;
        margin-top: 1rem;
        font-size: 14px;
        cursor: pointer;

        &:hover {
            text-decoration: underline;
        }
    }

    .icon-column {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .icon-column .icon {
        z-index: 10;
    }

}

.history-container {
    .upload-item {
        display: grid;
        grid-template-columns: 5% 90% 5%;
        padding: 1rem;
        background: $white;
        margin: 1rem 0;
        margin-right: 20px;
        opacity: 0;

        @media screen and (max-width: $laptop-large-breakpoint) {
                margin-right: 0;
        }

        &__detail {
            p {
                margin: 5px 0;
            }

            &__title {
                font-weight: 600;
            }

            &__size {
                color: #AEAEAE;
            }
        }

        &__progress {
            display: flex;
            align-items: center;
            gap: 10px;

            .background-bar {
                margin-top: 5px;
                height: 7px;
                background-color: #DFF3FE;
                width: 100%;

                div {
                    height: 7px;
                    background-color: $blue;
                }
            }
        }

        &__status {
            display: flex;
            justify-content: end;
            height: fit-content;

            i {
                font-size: 22px;

                &:hover{
                    color: $red;
                }
            }
        }

        &__icon {
            position: relative;

            i {
                font-size: 25px;
                color: $blue;
            }

            .blur-background {
                position: absolute;
                width: 23px;
                height: 23px;
                background: #C9EBFA;
                filter: blur(12px);
                top: 0;
                z-index: 1;
            }
        }

        .btn-cancel {
            border: 1px solid $red;
            padding: 5px 15px;
            color: $red;
            border-radius: 5px;
            cursor: pointer;
        }

    }

    .aborted-asset{
        border: 1px solid $red;

        .background-bar {
            background-color: #f0f0f0;

            div {
                background-color: #d9d9d9;
            }
        }

        .upload-item__icon i {
            color: #d9d9d9;
        }

        .upload-item__detail {

            &__title{
                color:$red;
            }
        }

        .delete-cancelled-upload {
            cursor: pointer;
            color:  $red;
        }
    }

    .delete-current-asset {
        font-size: 14px;
    }
}

#upload-customizer.is-visible .modal-overlay {
    opacity: 1;
    display: block;
    transition-delay: 0s;
}

#upload-customizer .modal-overlay {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.25);
    display: none;
    opacity: 0;
    transition: visibility 0slinear 0.3s, opacity 0.3s;
}

#upload-customizer.is-visible .muxmodal-upload {
    display: block;
    @media(max-width: 635px) {
        height: 100%;
        min-height: 100vh;
        top: 0px;
        left: 0;
        transform: unset;
    }
    @media(max-width: 600px) {
        height: 100%;
        min-height: 100vh;
        top: 46px;
    }
}

.muxmodal-upload {
    display: none;
    background-color: white;
    left: 0;
    margin: 0 auto;
    padding: 40px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    // right: 0;
    // top: 100px;
    width: 720px;
    z-index: 999;
    font-family: 'Inter', sans-serif !important;

    @media(max-width: 635px) {
        width: 92%;
        flex-direction: column;
        padding: 24px;
    }
    @media(max-width: 569px) {
        width: 90%;
        flex-direction: column;
        padding: 24px;
    }

    .muxmodal-upload-inside-box {
        width: 640px;
        margin: 0 auto;

        @media(max-width: 635px) {
            width: unset;
        }
    }

    .video-title {
        font-size: 13px;
        font-weight: 400;
        margin-bottom: 8px;
        color: #000000;
    }

    #video-title {
        border: 1px solid #828C97;
        border-radius: 2px;
        color: #000000;
        font-size: 13px;
        margin-bottom: 16px;
        padding: 6px 10px;
        @media(max-width: 635px) {
            width: 100%;
            max-width: 100% !important;
        }
    }

    span {
        font-size: 13px;
        font-weight: 400;
        margin-bottom: 8px;
        color: #000000;
    }
    label {
        font-size: 13px;
        font-weight: 400;
        color: #000000;
    }
    .muxmodal-title {
        font-size: 24px;
        font-weight: 400;
        margin-top: 0;
    }
    .muxoptions-box {
        border: 1px solid #828C97;
        display: flex;
        justify-content: space-between;
        padding: 20px 29px;
        @media(max-width: 635px) {
            border: unset;
            display: unset;
            padding: 0 1px;
            overflow-y: scroll;
        }
        .left-column, .right-column, .asset-privacy, .quality-tier {
            display: flex;
            flex-direction: column;
        }
        .left-column, .right-column {
            flex: 1 1 50%;
            @media(max-width: 635px) {
                flex: 1 1 100%;
            }
        }
        .left-column {
            margin-right: 30px;
            @media(max-width: 635px) {
                margin-right: 0;
            }
        }
        .right-column {
            margin-left: 30px;
            @media(max-width: 635px) {
                margin-left: 0;
                border-top: 2px solid #F0F0F1;
                padding-top: 16px;
            }
            p {
                color: #828C97;
            }

            .captions-manager__info {
                margin-left: 46px;
                font-size: 12px;
                font-weight: 400;
                margin-top: 8px;
                line-height: 16px;
                .info-link {
                    font-weight: 700;
                    color: $blue !important; 
                }
                #caption-select, #language-select {
                    display: none;
                }
                #caption-select.active, #language-select.active {
                    display: block;
                    margin-bottom: 15px;
                }
            }
            .modal-caption-assets-list {
                color: $lightBlue;
                font-weight: 700;
            }
            .accurate-info {
                display: none;
                position: relative;
                color: #828C97;
                margin-left: 24px;
                &::before {
                    content: '';
                    background-image: url('../../assets/images/info-icon.svg');
                    background-repeat: no-repeat;
                    background-position: center;
                    height: 19px;
                    width: 19px;
                    position: absolute;
                    left: -23px;
                    bottom: 10px;
                }
                &.active {
                    display: block;
                }
            }
            .toggle-container__row {
                display: flex;
                align-items: center;
                margin-bottom: 0;

                span {
                    margin-bottom: 0;
                    margin-left: 10px;
                }
                
                input[type=checkbox] {
                    height: 0;
                    width: 0;
                    visibility: hidden;
                    position: absolute;
                }
            
                label {
                    cursor: pointer;
                    text-indent: -9999px;
                    width: 32px;
                    height: 16px;
                    background: transparent;
                    border: 1px solid $grey;
                    display: block;
                    border-radius: 100px;
                    position: relative;
                }
            
                label:after {
                    content: "";
                    position: absolute;
                    top: 2px;
                    left: 4px;
                    width: 12px;
                    height: 12px;
                    background: $grey;
                    border-radius: 25px;
                    transition: .4s;
                }
            
                input:checked+label {
                    background: $blue;
                }
            
                input:checked+label:after {
                    background: #fff;
                    left: 53%;
                }
            }
            .mp4-options {
                display: none;
            }
            .mp4-options.active {
                display: flex;
                align-items: center;
                justify-content: space-between;
                @media(max-width: 635px) {
                    flex-direction: column;
                    justify-content: center;
                    align-items: start;
                    div:nth-child(2) {
                        margin-top: 16px;
                    }
                }
                input[type=checkbox]:checked {
                    background: $blue;
                    &::before {
                        filter: brightness(100);
                    }
                }
            }
            .upload-form.active {
                display: block;
            }
            .upload-form.active form {
                background-color: #FFF;
                margin: 2rem 0;
                border-radius: 10px;
                width: auto;

                .droparea {
                    height: 119px;
                    justify-content: center;
                    align-items: center;
                    min-height: 119px;
                    position: relative;
                    top: auto;
                    right: auto;
                    left: auto;
                    bottom: auto;
                    margin-top: 20px;
                    border-radius: 31px;
                    border: 2px dashed #0072E3;
                    margin-bottom: 1rem;
                    padding: 1rem;

                    .icon-column {
                        padding: 1.25rem 0 0 0;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        img {
                            width: 40px;
                            height: 40px;
                        }
                    }

                    .not-dragging-text {
                        padding-top: 5px;
                        line-height: 30px;
                        text-align: center;
                        margin-left: unset;
                        color: black;
                        font-size: 14px;
                    }

                    .dragging-text {
                        display: none;
                    }
                }
            }
            .upload-form {
                display: none;
            }
        }
        .video-title-box {
            display: flex;
            flex-direction: column;
            border-bottom: 2px solid $lightGrey;
            width: 261px;
            @media(max-width: 859px) {
                width: unset;
            }
        }
        .asset-privacy {
            border-bottom: 2px solid $lightGrey;
            padding: 16px 0 0 0;
            width: 261px;
            @media(max-width: 859px) {
                width: unset;
            }
            div:first-of-type {
                margin-bottom: 12px;
            }
            div {
                margin-bottom: 16px;
            }
            .asset-privacy-title {
                position: relative;
                font-size: 13px;
                font-weight: 400;
                @media(max-width: 635px) {
                    width: 197px;
                }
                &::after {
                    content: '';
                    background-image: url('../../assets/images/info-icon.svg');
                    background-repeat: no-repeat;
                    background-position: center;
                    height: 19px;
                    width: 19px;
                    position: absolute;
                    right: 71px;
                    @media(max-width: 859px) {
                        right: 62px;
                    }
                    @media(max-width: 635px) {
                        right: 5px;
                    }
                }
            }
            input[type=radio] {
                @media(max-width: 635px) {
                    height: 16px;
                    width: 16px;
                    &::before {
                        width: 10px;
                        height: 10px;
                        margin: 2px;
                    }
                }
            }
        }
        .quality-tier {
            padding: 16px 0 0 0;
            position: relative;
            width: 261px;
            @media(max-width: 859px) {
                padding: 16px 0 16px 0;
                width: unset;
            }
            select {
                margin-bottom: 8px;
                height: 40px;
            }
            .price-advise {
                color: #828C97;
                padding-left: 22px;
                font-size: 12px;
                font-weight: 400;
                line-height: 16px;
                margin-top: 8px;

                &::before {
                    content: '';
                    background-image: url('../../assets/images/pricing-info-icon.svg');
                    background-position: center;
                    background-repeat: no-repeat;
                    bottom: 10px;
                    height: 16px;
                    left: 0;
                    position: absolute;
                    width: 16px;
                    @media(max-width: 859px) {
                        bottom: 32px;
                    }

                    @media(max-width: 635px) {
                        bottom: 23px;
                    }
                }
                a {
                    color: #00AA3C;
                    font-weight: 700;
                    text-decoration: underline;
                }
            }
        }
        #mp4-box {
            border-top: 2px solid $lightGrey; 
            padding: 16px 0 0 0;
            display: flex;
            align-items: start;
            margin-top: 16px;
            label {
                margin-top: 0;
                margin-bottom: 0;
            }
        }
    }
    .muxmodal-btns {
        margin-top: 24px;
        text-align: center;
        font-size: 14px;
        font-weight: 400;
        @media(max-width: 635px) {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .cancel {
            border: 1px solid $grey;
            border-radius: 20px;
            background-color: transparent;
            color: #24262B;
            padding: 11px 43px;
            width: 135px;
            height: 40px;
            margin-right: 10px;
            @media(max-width: 635px) {
                margin-right: 0;
                margin-top: 16px;
                order: 2;
                width: 100%;
            }
            &:hover {
                cursor: pointer;
            }
        }
        .upload {
            border: 1px solid $blue;
            border-radius: 20px;
            background-color: $blue;
            color: white;
            padding: 11px 43px;
            width: 135px;
            height: 40px;
            margin-left: 10px;
            @media(max-width: 635px) {
                margin-left: 0;
                order: 1;
                width: 100%;
            }
            &:hover {
                cursor: pointer;
            }
        }
    }
}

.mp4-generation-col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    .mp4-options {
        position: relative;
        span {
            color: $blue;
            text-decoration: underline;
            font-size: 12px;
            font-weight: 500;
            &:hover {
                cursor: pointer;
            }
            
        }
        &::after {
            content: '';
            background-image: url('../../assets/images/opt-arrow.svg');
            background-repeat: no-repeat;
            background-position: center;
            height: 19px;
            width: 19px;
            position: absolute;
        }
        .mp4-options-box {
            display: none;
            position: absolute;
            background-color: white;
            border: 1px solid $grey;
            border-radius: 2px;
            width: 172px;
            z-index: 3;
            .dropdown-capped, .dropdown-audio {
                padding: 10px 12px;
                &:hover {
                    background-color: #dddddf66;
                }
                label {
                    display: block;
                    width: 100%;
                    font-size: 12px;
                }
            }
            a {
                color: #24262B;
                text-decoration: none;
            }

            label {
                &:hover {
                    cursor: pointer;
                }
            }

            .download-audio, .download-mp4 {
                display: block;
                margin-bottom: 10px;
            }

            .disable-mp4 {
                color: #EA3737;
            }
        }
    }
    .mp4-options.active {
        .mp4-options-box {
            display: block;
        }
    }
}

.toggle-mp4-info {
    font-size: 12px;
    font-weight: 400;
    margin-left: 46px;
    margin-top: 8px;
    line-height: 16px;
}

#caption-type-select, #language-select {
    height: 40px;
}

.language-info {
    p {
        font-size: 12px !important;
        font-weight: 400;
        line-height: 16px;
        margin: 0 !important;
    }
}

.muxoptions-box-btns {
    @media(max-width: 635px) {
        display: flex;
        flex-direction: column;
        height: 84vh;
        justify-content: space-between;
    }
}

.split-mobile {
    display: none;
    @media(max-width: 635px) {
        display: block;
    }
    @media(max-width: 401px) {
        display: none;
    }
}
.mp4-option-audio {
    display: block;
    &.inactive {
        display: none;
    }
}

.radio-box {
    display: flex;
    align-items: center;
    input {
        margin: 0;
    }
    input[type=radio]:checked::before {
        background-color: $blue;
    }
    label {
        margin-left: 8px;
    }
}

body.inactive {
    @media(max-width: 635px) {
        overflow-y: hidden;
    }
}
.mp4-option-capped {
    display: block;
    margin-bottom: 8px;
    &.inactive {
        display: none;
    }
}

.mp4-option-capped {
    margin-bottom: 8px;
}

.mp4-copy-capped {
    margin-bottom: 8px;
}

.mp4-status {
    text-align: center;
}