//css for CpsModules
@import 'cbkfe-assets/dist/css/control.less';
//---------------- 分销价格区域 ----------------
.cps-modules-timerAndPrice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 34, 68, 0.08);
    border-radius: 0.2rem;
    margin-top: 0.5rem;
    .productInfo--price {
        flex: 1;
        display: flex;
        align-items: center;
        padding-left: 0.5rem;
        padding-top: 0.3rem;
        .product--soldPrice--unit {
            font-size: 0.7rem;
            margin-right: 2px;
            font-weight: 500;
            color: rgba(255, 34, 68, 1);
            line-height: 0.9rem;
        }
        .product--soldPrice {
            font-size: 1.4rem;
            line-height: 1;
            font-weight: 500;
            color: rgba(255, 34, 68, 1);
            margin-right: 0.3rem;
            display: flex;
            align-items: flex-end;
            transform: translateY(2px);
        }
    }
    .number-content {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        .roduct-marketPrice {
            margin-top: 0.15rem;
        }
    }
    .product-number {
        position: relative;
        display: inline-flex;
        align-items: center;
        color: rgba(255, 34, 68, 1);
        border-radius: 0.2rem 0.2rem 0.2rem 0;
        font-size: 0.5rem;
        height: 0.65rem;
        font-weight: 400;
        padding: 0 0.25rem 0;
        transform: translateY(-0.2rem);
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: auto;
            bottom: auto;
            width: 200%;
            height: 200%;
            border: 1px solid #f24;
            border-radius: 0.4rem 0.4rem 0.4rem 0;
            -webkit-transform: scale(0.5);
            transform: scale(0.5);
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
        }
    }
    .android-num {
        padding-top: 0.1rem;
    }
    .product-price-box {
        font-size: 0;
    }
    .product-price--label {
        display: inline-block;
        font-weight: 400;
        font-size: 0.6rem; // margin-top: 0.15rem;
        line-height: 0.6rem;
        color: rgba(255, 34, 68, 1);
        transform: translateY(-0.05rem);
        margin-right: 0.2rem;
    }
    .product-marketPrice {
        display: inline-block;
        font-weight: 300;
        font-size: 0.6rem; // margin-top: 0.15rem;
        line-height: 0.6rem;
        color: rgba(157, 157, 157, 1); // transform: translateY(-0.06rem);
    }
    .earn-info {
        min-width: 4.5rem;
        height: 2.25rem;
        background: #f24;
        border-radius: 0.3rem;
        border: 0.1rem solid #f24;
        text-align: center;
    }
    .earn-price {
        font-size: 0.8rem;
        color: #f24;
        line-height: 1.3rem;
        font-weight: 500;
        background: #fff;
        border-radius: 0.2rem;
    }
    .buy-num {
        font-size: 0.6rem;
        color: #fff;
        line-height: 0.85rem;
        font-weight: 400;
    }
    &--share {
        height: 2.4rem;
    }
    &--row {
        background: #fff;
        height: auto;
        .productInfo--price {
            align-items: flex-end;
            .number-content {
                flex-direction: row-reverse;
                justify-content: flex-start;
                align-items: flex-end;
                .product-marketPrice {
                    margin-right: 0.25rem;
                }
            }
        }
        .productInfo--price {
            padding-left: 0;
            padding-top: 0;
        }
    }
}

//---------------- 分销底title ----------------
.cps-modules__title {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.3rem;
    &--share {
        height: 2.4rem;
    }
    .earn-rule {
        position: relative;
        display: flex;
        align-items: center;
        min-width: 2.1rem;
        height: 1.6rem;
        margin-left: auto;
        white-space: pre-wrap;
        font-size: 0.6rem;
        color: #444;
        line-height: 0.8rem;
        padding-left: 0.5rem;
        .product-appoint__arrow {
            margin-left: 0.3rem;
            font-size: 0.55rem;
            color: #444;
        }
        &:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 1px;
            height: 100%;
            background: linear-gradient(to bottom, #c9c9c9, #c9c9c9 2px, transparent 2px, transparent);
            background-size: 100% 4px;
        }
    }
    .groupon-product__title {
        flex: 1;
        display: -webkit-box;
        max-width: 14.2rem;
        font-size: 0.8rem;
        line-height: 1.2rem;
        padding-right: 0.5rem;
        font-weight: 500;
        overflow: hidden;
        -webkit-line-clamp: 2;
        /* autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        /* autoprefixer: ignore next */
        text-overflow: ellipsis;
    }
}

//---------------- 分销底Bar区域 ----------------
.cps-modules-footerBar {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    background: #fff;
    z-index: 1000; // transform: translateY(100%);
    &.showBar {
        transform: translateY(0);
        transition: all 0.2s cubic-bezier(0.250, 0.250, 0.035, 1.075);
    }
    &.hideBar {
        transform: translateY(100%);
        transition: all 0.2s cubic-bezier(0.250, 0.250, 0.035, 1.075);
    }
    .groupon-bottom-bar__radius {
        border-radius: 0.75rem 0.75rem 0 0;
    }
    .groupon-bottom-bar {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 2.8rem;
        overflow: hidden;
        box-shadow: 0 0 0.4rem 0 rgba(221, 221, 221, 0.6);
        .bottom-bar__price {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            background: #fff;
            align-items: flex-end;
            padding: 0.53rem 0 0.57rem 0.75rem;
        }
        .bottom-bar_soldPrice {
            font-size: 1.4rem;
            font-weight: 500;
            color: rgba(255, 34, 68, 1);
            line-height: 1.4rem;
            .bottom-bar_priceUnit {
                font-size: 0.5rem;
                line-height: 0.5rem;
            }
        }
        .bottom-bar_marketPrice {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            margin-left: 0.3rem;
        }
        .bottom-bar__priceBox {
            font-size: 0;
        }
        .bottom-bar__priceLabel {
            .font(0.6rem, #ff2244, 0.6rem);
            margin-right: 0.2rem;
        }
        .bottom-bar__del {
            font-size: 0.6rem;
            font-weight: 300;
            color: rgba(157, 157, 157, 1);
        }
        .bottom-bar__label {
            position: relative;
            display: inline-flex;
            align-items: center;
            color: rgba(255, 34, 68, 1);
            border-radius: 0.2rem 0.2rem 0.2rem 0;
            font-size: 0.5rem;
            height: 0.75rem;
            font-weight: 400;
            padding: 0 0.25rem;
            &:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: auto;
                bottom: auto;
                width: 200%;
                height: 200%;
                border: 1px solid #f24;
                border-radius: 0.4rem 0.4rem 0.4rem 0;
                -webkit-transform: scale(0.5);
                transform: scale(0.5);
                -webkit-transform-origin: 0 0;
                transform-origin: 0 0;
            }
        }
        .android-num {
            padding-top: 0.1rem;
        }
        .bottom-bar__wechat {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            background: #fee8ec;
            .bottom-bar__wechatIcon {
                width: 1.1rem;
            }
            .bottom-bar__wechatText {
                font-size: 0.5rem;
                font-weight: 400;
                color: rgba(255, 34, 68, 1);
                margin-top: 0.2rem;
            }
        }
        .bottom-bar__grouponBtn {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 1);
            padding: 0 1.6rem;
            background: rgba(255, 34, 68, 1);
            height: 2.45rem;
        }
        .grouponBtn--disabled {
            background-color: #C9C9C9;
        }
        .bottomBar__grouponBtn--direct {
            background: linear-gradient(222deg, rgba(68, 68, 68, 1) 0%, rgba(0, 0, 0, 1) 100%);
            color: rgba(255, 237, 226, 1);
        }
    }
    .bottom-bar-btn {
        flex-shrink: 0;
        display: flex;
        padding-right: 0.75rem;
        .buy-btn-item {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 4.75rem;
            height: 2.2rem;
            .font(0.8rem, #fff, 1);
            font-weight: 600;
            text-align: center;
        }
        .btn-title {
            margin-top: 0.15rem;
            font-size: 0.7rem;
            font-weight: 400;
        }
        .buy-btn {
            padding-top: 0.05rem;
            background: #f93;
            border-radius: 2.5rem 0 0 2.5rem;
            &:last-child {
                background: #f24;
                border-radius: 0 2.5rem 2.5rem 0;
            }
            &.direct {
                width: 9.5rem;
                background: #f24;
                border-radius: 2.5rem;
            }
            &.disable-btn {
                color: #fff;
                background: #c9c9c9;
            }
        }
    }
}

//-------分销分享赚钱规则弹窗 -----------------
.cps-modules-ruleMask {
    position: fixed;
    left: 2.4rem;
    right: 2.4rem;
    top: 50%;
    transform: translateY(-50%);
    .close-content {
        height: 3rem;
        background: url("https://static.caibeike.com/i/e69eaffc03e29c0faada33b0047f81bf-EBhN05") center bottom no-repeat;
        background-size: 1.5rem auto;
    }
    .rule-container {
        padding: 4.75rem 1rem 1rem;
        background: url("https://static.caibeike.com/i/ce309be31776703571d5a88e7ef055f0-7AvmHz") center top no-repeat, #fff;
        background-size: 100% auto;
        border-radius: 0.4rem;
    }
    .title {
        margin: 1rem 0 0.5rem;
        .font(0.9rem,
        #000,
        1);
        font-weight: 500;
        text-align: center;
    }
    .subtitle {
        .font(0.7rem,
        #757575,
        1.2rem);
        font-weight: 400;
    }
}

//-------分销弹幕------------
.cps-modules-barrage-container {
    position: absolute;
    z-index: 99;
    top: auto;
    left: 0;
    width: auto;
    padding-left: 0.75rem;
    .cps-modules-barrage--join {
        width: 100%;
        height: 1.1rem;
        overflow: hidden;
        width: auto;
        .wheel-content {
            will-change: transform;
            width: auto;
        }
        .wheel-item--join {
            display: flex;
            height: 1.1rem;
            align-items: center;
            margin-top: 1.1rem;
            padding: 0.1rem 0.35rem 0.1rem 0.1rem;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 0.55rem 0 0.55rem 0;
        }
        .join-comment {
            display: flex;
            overflow: hidden;
            .font(0.55rem,
            #fff,
            1);
            font-weight: 400;
        }
        .join-icon {
            flex-shrink: 0;
            width: 0.9rem;
            height: 0.9rem;
            margin-right: 0.2rem;
            border-radius: 50%;
        }
        .join-name {
            max-width: 2.6rem;
            .text-overflow();
        }
        .comment {
            flex-shrink: 0;
        }
    }
}