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

.page-background {
    background-color: #ffffff;
    padding-bottom: 0.75rem;

    .groupon-sku-container {
        height: 11rem;
        width: 17.25rem;
        margin: auto;
        margin-bottom: 0.65rem;
        overflow: hidden;
        border-radius: 0.5rem;
        box-shadow: 0 0.2rem 0.6rem 0 rgba(0, 0, 0, .1);

        .cbk-swiper-item {
            border-radius: 0.5rem;
            overflow: hidden;
        }
    }

    .swiper-last-pageModal,
    .cbk-swiper,
    .cbk-swiper-content {
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .cbk-swiper-modal {
        // 顶部轮播图组件的最后一个浮层页面样式覆盖
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 0.75rem;
        box-sizing: border-box;
        align-items: center;
    }

    // // 顶部轮播图组件的最后一个浮层自定义样式
    .swiper-model-content {
        position: relative;
        display: flex;
        justify-content: center;
        margin-bottom: 0.25rem;

        .swiper-qrcode {
            width: 6.25rem;
            height: 6.25rem;
            border-radius: 0.2rem;
            background: #fff;
            margin-right: 0.5rem;
            flex-shrink: 0;
            padding: 0.25rem;
            box-sizing: border-box;
        }

        .swiper-text {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;

            .swiper-large-text {
                font-size: 0.75rem;
                line-height: 1.15rem;
                font-weight: 500;
                color: rgba(255, 255, 255, 1);
                margin-bottom: 0.4rem;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                /* autoprefixer: ignore next */
                -webkit-box-orient: vertical;
                /* autoprefixer: ignore next */
                text-overflow: ellipsis;
            }

            .swiper-small-text {
                font-size: 0.6rem;
                line-height: 1rem;
                font-weight: 400;
                color: rgba(255, 255, 255, 1);
                margin-top: 0.25rem;
            }
        }

        .swiper-save-btn {
            position: absolute;
            bottom: 0;
            left: 6.75rem;
            display: flex;
            align-items: center;
            font-size: 0.7rem;
            font-weight: 500;
            background: #000;
            color: rgba(255, 255, 255, 1);
            height: 1.4rem;
            border-radius: 1rem;
            padding: 0 0.75rem;
        }

        .swiper-brn-icon {
            width: 0.65rem;
            height: 0.65rem;
            margin-right: 0.25rem;
        }
    }
}

.packageDetail-swiper-container {
    height: 11rem;
    width: 100%;
    overflow: scroll;
    padding: 0 0.75rem;
    background-color: #fff;
    display: flex;
    flex-direction: row;

    .packageDetail-swiper-wrapper {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .packageDetail-swiper-item {
        width: 100%;
        flex-shrink: 0; // padding-right: 0.5rem;

        &:only-child {
            width: 17.25rem;
            padding-right: 0;
        }

        .packageDetail-swiper-itemImg {
            border-radius: 0.5rem;
            height: 9.5rem;
            width: 100%;
            object-fit: cover;
            box-shadow: 0rem 0.2rem 0.6rem 0rem rgba(0, 0, 0, 0.1);
        }
    }

    .packageDetail-swiper-pagination {
        position: absolute;
        bottom: 1.25rem;
        right: 1.5rem;
        width: 2.08rem;
        height: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0.5rem;
        font-size: 0.6rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 1);
        line-height: 1rem;
        text-align: center;
    }
}

.packageDetail-title-container {
    background-color: rgba(255, 255, 255, 1);
    padding: 0 0.75rem;

    .cbk-sku-detail-direction-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 0.1rem;
        line-height: 0.7rem;

        .icon-img {
            width: 0.6rem;
            height: 0.6rem;
        }

        .store-title {
            align-items: center;
            font-size: 0.65rem;
            font-weight: 400;
            margin-left: 0.2rem;
            color: rgba(255, 153, 51, 1);
            line-height: 0.85rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }

    .group-brand {
        margin: 0.5rem 0;
        font-weight: 600;
        font-size: 0.9rem;
        color: rgba(0, 0, 0, 1);
        line-height: 1.1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .group-tag-row-top {
        margin-top: -1rem;
    }

    .group-tag-row-no-subtitle {
        margin-top: -0.5rem;
    }

    .group-tag-row {
        display: flex;
        flex-direction: row;
        line-height: 1.8rem;

        .icon-magrain-left {
            margin-left: 0.3rem;
        }

        .iconfont {
            margin-top: 0.45rem;
            font-size: 0.6rem;
            color: rgba(157, 157, 157, 1);
            line-height: 0.3rem;
        }

        .font-dec {
            margin-left: 0.3rem;
            font-size: 0.6rem;
            font-weight: 400;
            color: rgba(68, 68, 68, 1);
        }
    }
}

.packageDetail-card-tag {
    position: relative;
    z-index: 2; // margin-top: -1.5rem;

    .groupon-product-info {
        padding: 0 0;
        margin-top: 0;

        .groupon-product-section {
            .product-recommend {
                margin-top: 0;
                margin-bottom: 0.75rem;
            }
        }
    }
}

.packageDetailSku-card-content {
    position: relative;
    z-index: 1;
}

// 预约打卡
.packageDetail-card-appoint {
    margin: 0.75rem 0;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    // max-height: 2.6rem;
    box-sizing: border-box;
    padding: 0.55rem 0.5rem;
    box-shadow: 0rem 0.2rem 0.6rem 0rem rgba(233, 233, 233, 1);
    border-radius: 0.2rem;

    .product-card-validityDate {
        .font(0.6rem, #9d9d9d, 0.6rem);
        margin-top: 0.3rem;
    }

    .product-card-invaildDate {
        .font(0.6rem, #9d9d9d, 0.8rem);
        word-break: break-all;
        white-space: normal;
    }

    .product-card-icon {
        width: 1.1rem;
        margin-right: 0.4rem;
        transform: translateY(0.2rem);
    }

    .product-card-info {
        flex: 1;
        .text-overflow();
    }

    .product-card-appointDate {
        display: flex;
        flex-direction: row;
        line-height: 1;

        .card-appointDate-title {
            .font(0.7rem, #000, 0.7rem);
            font-weight: 500;
        }

        .card-appointDate-value {
            .font(0.6rem, #444, 0.6rem);
            font-weight: 400;
            margin-left: 0.3rem;
        }
    }

    .card-appointDate-fullText {
        .font(0.6rem, #000, 0.8rem);
    }

    .product-card-appoint__title {
        position: relative;
        font-size: 0.7rem;
        line-height: 1;
        font-weight: 500;
        color: rgba(255, 153, 51, 1);
        margin-left: 0.33rem;
        padding-left: 0.9rem;
        transform: translateY(1px); // background: red;

        &:before {
            content: "";
            position: absolute;
            left: 0;
            top: -1px;
            background: url("https://static.caibeike.com/i/eb8d451688bb37923a8f46e1060dc4ec-81NsTn") no-repeat;
            background-size: 100%;
            width: 0.65rem;
            height: 0.65rem;
        }
    }

    .product-card-appoint__date {
        font-size: 0.6rem;
        font-weight: 400;
        color: rgba(255, 153, 51, 1);
        line-height: 1;
        transform: translateY(1px); // background: yellowgreen;
    }

    .product-card-appoint__rightText {
        font-size: 0.6rem;
        font-weight: 400;
        color: #000;
        line-height: 0.8rem;
    }

    .product-card-appoint__arrowText {
        flex-shrink: 0;
        font-size: 0.5rem;
        font-weight: 400;
        color: rgba(68, 68, 68, 1);

        .product-card-appoint__arrow {
            &:before {
                content: "\e615";
                padding-left: 0.4rem;
            }
        }
    }
}

.module-split {
    height: 0.5rem;
    background: rgba(245, 245, 245, 1);
}

.module-padding {
    padding: 1.25rem 0.75rem 1rem;

    .cbk-morepackages-container-content {
        padding: 0;
    }
}

.packageDetail-experiencer-container {
    position: relative;
    overflow: hidden; // padding-top: 1.25rem;
    background: #fff;
    margin-top: 0.5rem;

    .packageDetail-header-class {
        padding: 1.25rem 0.75rem 1rem;
    }
}

.packageDetail-fitstore-container {
    // position: relative;
    padding: 0.75rem;
    background: #fff;
    overflow: hidden;

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

.packageDetail-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%);
    }
}

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

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

.packageDetail-card-content {
    .package-content {
        padding: 0rem 0.75rem 1rem 0.75rem;
        margin-top: 0rem;
    }
}