//css for CardTemp
@import "cbkfe-assets/dist/css/control.less";

.cbkfe-template-cardTemp {
    background: #fff; //css for GrouponTemp

    .cbkfe-template-live {
        margin-bottom: 0.75rem;
        margin-top: -0.25rem;
    }

    .cardTemp-countList {
        margin-bottom: 0.75rem;
    }

    .cbk-rule {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0rem 0.2rem 0.6rem 0rem rgba(233, 233, 233, 1);
        border-radius: 0.4rem;
        margin: 0 0.75rem 1rem;
        padding: 0.5rem 0.5rem;

        .c-regular-labels {
            padding: 0 1.25rem 0 1.75rem;
            margin-top: 0;

            .regular-labels__titleIcon {
                position: absolute;
                left: 0rem;
                top: 0.25rem;
                width: 0.7rem;
                margin-right: 0.3rem;
            }

            .regular-labels__title {
                margin-left: -0.6rem;
            }

            .regular-labels__arrowRight {
                font-size: 0.55rem;
                position: absolute;
                right: 0rem;
                top: 0.2rem;
            }
        }
    }

    .grouponTemp-experiencer-container {
        position: relative;
        overflow: hidden;
        padding-top: 1.25rem;
        background: #fff; // border-bottom: 0.5rem solid #F5F5F5;
        margin-top: 0.5rem;

        .experiencer-header-class {
            padding: 0 0.75rem;
            margin-bottom: 1rem;
        }
    }

    .cbkfe-label {
        .cbkfe-label-text {
            line-height: 1;
            transform: translateY(0.5px) !important;
        }
    }

    .grouponTemp-fitstore-container {
        position: relative;
        padding: 0 0.75rem 1rem;
        background: #fff; // border-bottom: 0.5rem solid #F5F5F5;
        margin-top: 0.5rem;
        overflow: hidden;

        .fitstore-header {
            margin-top: 1.25rem;
            margin-bottom: 1rem;
        }
    }

    .recommend-container {
        background: #fff;
        margin-top: 0.5rem;

        .module-title:before {
            background-color: #ff2244;
        }
    }

    .cardTemp-business-cooper {
        display: flex;
        align-items: center;
        font-size: 0.75rem;
        color: #000;
        font-weight: 500;
        background: #fff;
        padding: 0.75rem;
        position: relative;
        max-height: 2.25rem;
        overflow: hidden;

        &:before {
            content: "";
            display: inline-block;
            background: url("https://static.caibeike.com/i/4dc9ad0da07db2d8f4cd999f1659c3e0-lpiLvQ") no-repeat;
            background-size: 100%;
            width: 0.7rem;
            height: 0.7rem;
            margin-right: 0.3rem;
            transform: translateY(0.5px);
        }

        .iconfont {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            font-size: 0.5rem;
            transform: translateY(-50%);
        }
    }

    .cardTemp-cooperation-fix {
        position: fixed;
        z-index: 50;
        right: 0rem;
        bottom: 7.37rem;

        .cardTemp-cooperation__img {
            width: 3.25rem;
            height: 3.25rem;
        }
    }

    .cbkfe-productInfo-card {
        position: relative;
        z-index: 30;
        margin-top: -2rem;
        padding-bottom: 0.8rem;
    }

    .productInfo-card-background {
        width: 100%;
        margin-bottom: -1.7rem;
    }

    .productInfo-card-container {
        position: relative;
        overflow: hidden;
        height: 11.4rem;

        &::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5rem;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
        }
    }

    .productInfo-card-StackBlurImg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .productInfo-card-swiper {
        height: 11.4rem;

        .card-swiper-item {
            height: 100%;
            object-fit: cover;
            object-position: bottom;
            width: 100%;
        }

        .productInfo-card-pagination {
            position: absolute;
            bottom: 2.75rem;
            right: 1rem;
            height: 1rem;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 0.5rem;
            padding: 0 0.4rem;
            .font(0.6rem,
                #fff,
                1rem);
        }
    }

    // .cbkfe-card-packages {
    //     padding-bottom: 1rem;
    // }
    .cardTemp-background {
        background-color: #f5f5f5;
        overflow: hidden; // 激活父节点bfc

        // padding-top: 1rem;
        .cardTemp-background-back {
            visibility: hidden;
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1001;
            transition: visibility 0.2s linear, background 0.2s linear;

            &--visible {
                visibility: visible;
                background: rgba(0, 0, 0, 0.6);
            }

            &--hidden {
                visibility: hidden;
                background: rgba(0, 0, 0, 0);
            }
        }

        &--grayBack {
            position: relative;
        }
    }

    .productInfo-card-context {
        margin-top: 0.5rem;
        padding: 1rem 0.75rem;
        background: #fff;

        .card-context-header {
            padding-top: 0.25rem;
            padding-bottom: 1rem;
        }
    }

    .cardTemp-navBar {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0; // height: 44px;
        width: 100vw;
        overflow: hidden;
        background: #fff;
        transition: all 0.2s ease-in-out;
        transform: translateY(-400%);
        padding-top: 12px;

        &--show {
            transform: translateY(0);
        }

        .cardTemp-navBar-item {
            position: relative;
            flex-shrink: 0;
            .font(16px,
                #757575,
                32px);
            margin: 0 0.45rem;

            &:first-child {
                margin: 0 1rem;
            }

            &:last-child {
                padding-right: 1rem;
                text-align: center;
            }

            &--active {
                font-weight: 500;
                .font(18px,
                    #000,
                    32px);

                &::after {
                    content: "";
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 1.25rem;
                    height: 3px;
                    background: rgba(255, 34, 68, 1);
                    border-radius: 0.2rem;
                }
            }
        }
    }

    .cardTemp-useRule {
        position: relative;
        padding: 0 0.75rem;
        background: #fff;

        .cardTemp-useRule-content {
            position: relative;
            display: flex;
            align-items: center;
            padding: 0.75rem 0;
            .border-bottom-1px(#e9e9e9);
        }

        .cardTemp-useRule__img {
            width: 0.7rem;
            margin-right: 0.3rem;
        }

        .cardTemp-useRule__text {
            .font(0.75rem,
                #000,
                0.75rem);
            font-weight: 500;
        }

        .iconfont {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.5rem;
        }
    }
}