.ouqw-buymore-savemore {
    .ouqw-badge img {
        margin-right: 10px;
    }
    .ouqw-badge-text {
        flex: 1;
    }
    .ouqw-badge-inner {
        border: 2px dashed var(--ouqw-primary-color);
        border-radius: 10px;
        padding: 15px;
    }
}

.ouqw_wraper_qty {
    min-width: 130px;
    margin-right: 10px;

    &.standard_show {
        .ouqw-tier-qty {
            display: none;
        }
        div.quantity {
            display: inline-flex !important;
        }
    }

    &:not(.standard_show) {
        .quantity_wrap, div.quantity {
            display: none !important;
        }
    }

    .wrapper-tier-action {
        position: relative;
    }

    .tier-value {
        padding: 5px 0;
        border: 0;
        border-bottom: 2px solid var(--e-global-color-border);
        width: 100%;
        border-radius: 0;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-weight: 800;

        &::after {
            content: '';
            width: 0px;
            height: 0px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid var(--ouqw-primary-color);
        }
    }

    .show_qty_input {
        color: var(--ouqw-primary-color);
        font-size: 14px;
        display: block;
        margin-top: 10px;
        cursor: pointer;
    }

    .tier-table {
        position: absolute;
        z-index: 99;
        top: 100%;
        left: 0;
        width: 600px;
        margin-top: 0;
    }

}

.tier-table {
    /*! width: 100%; */
    background-color: #fff;
    box-shadow: 0 0 5px 2px rgba(21, 22, 23, 0.2);
    border-radius: 5px;
    width: 100%;
    max-width: 100vw;
    word-break: initial;
    margin-bottom: 30px;
    margin-top: 30px;

    .ouqw-row {
        display: flex;
        padding: 15px 20px;
        grid-gap: 10px;

        &:not(:last-child) {
            border-bottom: 1px solid #ebebeb;
        }

        @include responsive(MD) {
            display: block;

            .ouqw-row-price {
                display: none;
            }    
        }

        & > div {
            flex: 1 1 0;
        }

        .ouqw-row-qty, .ouqw-item-qty {
            flex: 0 0 50%;
        }

        &.ouqw-item {
            cursor: pointer;
            transition: all 0.15s linear;

            &.actived, &:hover {
                background-color: var(--ouqw-shadow-color);
                color: #fff;
            }
        }

        &.ouqw-head, &.ouqw-foot {
            font-weight: 600;
            color: #222;
        }
    }
}

.tier-line {
    margin-top: 30px;
    .ouqw-range-discount {
        list-style: none;
        margin: 0 0 30px 0;
        font-weight: 600;
        font-size: 14px;
        .ouqw-percent-discount {
            margin-right: 10px;
            display: inline-block;
            @include responsive(MD) {
                display: block;
                margin: 0 0 5px 0;
            }
            span {
                padding: 5px 10px;
                background-color: var(--ouqw-shadow-color);
                color: #fff;
                display: inline-block;
            }
        }
        .ouqw-tier-discount {
            display: block;
            margin-bottom: 10px;
            padding: 10px;
            border: 1px solid #ebebeb;
            cursor: pointer;
            &.actived .ouqw-percent-discount span {
                background-color: var(--ouqw-primary-color);
            }
        }
        .ouqw-discount-text {
            color: var(--ouqw-secondary-color);
            margin-right: 5px;
        }
    }
}

.woocommerce-grouped-product-list-item {
    .ouqw_wraper_qty .tier-table {
        left: unset;
        right: 0;
    }
}