/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */
 
/* eslint-disable Magento2.Less.ClassNaming.NotAllowedSymbol */

.wtai-image-upload-progressbar {
    display: flex;
    left: 50%;
    max-width: 800px;
    width: 800px;
    position: fixed;
    top: 40px;
    transform: translate(-50%);
    z-index: 904;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

    &.wtai-no-display {
        display: none;
    }

    .wtai-label {
        color: #303030;
        font-family: 'Open Sans';
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 19px;
        display: inline-flex;
        max-width: 80%;
        align-items: flex-start;

        &::before {
            background-color: transparent;
            background-image: url("../WriteTextAI_WriteTextAI/images/generate-error.png");
            background-position: center center;
            background-repeat: no-repeat;
            background-size: contain;
            content: "";
            display: inline-block;
            height: 19px;
            margin-right: 7px;
            vertical-align: middle;
            position: relative;
            width: 34px;
            max-width: 22px;
            mix-blend-mode: multiply;
            flex-shrink: 0;
        }

        .wtai-red-highlight {
            color: #DC3232;
            font-weight: 600;
        }
    }

    .wtai-count {
        color: #303030;
        float: right;
        font-family: 'Open Sans';
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 19px;
    }

    .wtai-user {
        color: #303030;
        font-family: 'Open Sans';
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px;
        margin-left: 29px;
        margin-top: 4px;
    }

    .wtai-progress-bar {
        border-radius: 10px;
        height: 8px;
        margin-left: 29px;
        /*margin-top: 8px;*/
        width: ~"calc(100% - 29px)";
        display: flex;
        margin-left: 0;

        &::-webkit-progress-bar {
            background: #F6F7F7;
        }

        &::-webkit-progress-value {
            background: #EB5202;
        }

        &::-moz-progress-bar {
            background: #EB5202;
        }

        
    }

    .wtai-image-progress-bar-container {
        display: flex;
        margin-top: 8px;
        &::before {
            background-color: transparent;
            background-image: url("../WriteTextAI_WriteTextAI/images/generate-ongoing.gif");
            background-position: center center;
            background-repeat: no-repeat;
            background-size: contain;
            content: "";
            display: inline-block;
            height: 19px;
            margin-right: 7px;
            vertical-align: middle;
            position: relative;
            width: 34px;
            max-width: 22px;
            mix-blend-mode: multiply;
            bottom: 9px;
        }
    }

    .wtai-content {
        flex-grow: 1;
        width: 80%;
    }

    .wtai-action {
        align-items: center;
        display: flex;
        margin-left: 20px;
        min-width: 73px;
        align-items: flex-start;

        button {
            background: #514943;
            height: 33px;
            vertical-align: middle;
            min-width: 73px;
            width: auto;

            span {
                color: #FFFFFF;
                font-family: 'Open Sans';
                font-size: 14px;
                font-style: normal;
                font-weight: 600;
                line-height: 19px;
            }
        }
    }
}

.wtai-image-upload-progressbar-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 903;

    &.wtai-no-display {
        display: none;
    }
}