//css for CollectModal
@import 'cbkfe-assets/dist/css/control.less';
@color_ff: #ffffff;
@color_00: #000000;
@color_e9: #E9E9E9;
@color_f24: #FF2244;
@color_75: #757575;
.hairlines {
    .collect-item,
    .collect-item-new,
    .collectmodal-header-list {
        border-width: 0.5px !important;
    }
}

.collectmodal-container {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 16rem;
    height: 24rem;
    background: @color_ff;
    border-radius: 0.4rem;
    transform: translate(-50%, -50%);
    overflow: hidden;
    transition: opacity 0.2s ease-in;
}

.collectmodal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    .collectmodal-title {
        position: relative;
        .font(0.9rem, @color_00, 0.9rem);
        font-weight: 500;
        &::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 0.15rem;
            background: linear-gradient(270deg, rgba(255, 34, 68, 0) 0%, rgba(255, 34, 68, 1) 100%);
            opacity: 0.6;
            z-index: -1;
        }
    }
    .collectmodal-icon {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 2;
        width: 2.3rem;
        height: 3rem;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 0.8rem auto;
    }
    .collectmodal-icon-close {
        background-image: url("https://static.caibeike.com/i/f368d525c182b8ff6aeeff437dad5da6-lZ1hxr");
    }
    .collectmodal-icon-right {
        background-image: url("https://static.caibeike.com/i/84d101b8b90a9fd6f49996c66ae0a42e-1zYEcs");
    }
    .collectmodal-icon-right-active {
        background-image: url("https://static.caibeike.com/i/abd2f412a65dc008a47712cb6bd93c7d-vpzYb4");
    }
    .collectmodal-icon-back {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
        width: 2.3rem;
        height: 3rem;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 0.8rem auto;
        background-image: url("https://static.caibeike.com/i/6a642ddb6cd229e147dc4c9ca9acaa2e-MVzzx1");
    }
}

.collectmodal-header-list {
    position: relative;
    border-bottom: 1px solid @color_e9; // &::before {
    //     content: '';
    //     position: absolute;
    //     right: 0.75rem;
    //     top: 50%;
    //     width: 0.7rem;
    //     height: 0.1rem;
    //     background-color: #C9C9C9;
    //     transform: translateY(-50%) rotate(45deg);
    // }
    // &::after {
    //     content: '';
    //     position: absolute;
    //     right: 0.75rem;
    //     top: 50%;
    //     width: 0.7rem;
    //     height: 0.1rem;
    //     background-color: #C9C9C9;
    //     transform: translateY(-50%) rotate(-45deg);
    // }
}

.collectmodal-content {
    position: relative; // overflow: hidden;
    height: 21rem;
    width: 17rem;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.collectmodal-list {
    position: absolute;
    left: 0;
    top: 0; // height: 21rem;
    min-height: 21.5rem; // width: 100%;
    width: 16rem;
    padding: 0 0.75rem 0.5rem 0.75rem; // overflow-y: auto;
    transition: all 0.2s linear;
    .collect-item {
        display: flex;
        align-items: center;
        height: 2.95rem;
        border-bottom: 1px solid @color_e9;
        box-sizing: content-box;
        &:last-child {
            border-bottom: none;
        }
        &-new {
            position: relative;
            display: flex;
            align-items: center;
            height: 2.95rem;
            padding-left: 1.2rem;
            .font(0.75rem,
            @color_f24,
            2.95rem);
            font-weight: 400;
            border-bottom: 1px solid @color_e9;
            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                width: 0.7rem;
                height: 0.1rem;
                background-color: #FF2244;
                transform: translateY(-50%);
            }
            &::after {
                content: '';
                position: absolute;
                left: 0.3rem;
                top: 50%;
                width: 0.1rem;
                height: 0.7rem;
                background-color: #FF2244;
                transform: translateY(-50%);
            }
        }
        &-img {
            flex-shrink: 1;
            display: inline-block;
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 0.2rem;
            overflow: hidden;
        }
        &-title {
            max-width: 60%;
            padding: 0 0.3rem 0 0.5rem;
            .font(0.75rem,
            @color_00,
            1.75rem);
            font-weight: 400;
            .text-overflow();
        }
        &-num {
            flex: 1;
            .font(0.6rem,
            @color_75,
            1.75rem);
            font-weight: 300;
            .text-overflow();
        }
        &-select {
            width: 1rem;
            height: 1rem;
            border: 1px solid #9D9D9D;
            border-radius: 100%;
        }
        &-selected {
            border: none;
            background: url("https://static.caibeike.com/i/b4810ec3a69b729bc94ba4ec5f31e05b-tqxiAb") no-repeat;
            background-position: center center;
            background-size: 1rem auto;
        }
    }
}

.collectmodal-list-hide {
    left: -100%;
    transition: all 0.2s linear;
}

.newcollect-input-wrap {
    position: absolute;
    left: 100%;
    top: 0; // width: 100%;
    width: 16rem;
    height: 21.1rem;
    padding: 0 0.75rem;
    padding-top: 0.45rem;
    transition: left 0.2s linear;
    .newcollect-input {
        width: 100%;
        height: 1.8rem;
        padding: 0 0.5rem;
        .font(0.7rem,
        #000000,
        0.7rem);
        font-weight: 400;
        vertical-align: middle;
        background: #F5F5F5;
        border-radius: 0.2rem;
        &::-webkit-input-placeholder {
            color: #9D9D9D;
        }
    }
}

.newcollect-input-wrap-show {
    left: 0;
    transition: left 0.2s linear;
}

// 底部提示
.collect-tips {
    position: fixed;
    left: 50%;
    bottom: 3.45rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    width: 14rem;
    height: 1.8rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0.4rem;
    visibility: hidden;
    transform: translateX(-50%);
    .collect-tips-big {
        flex-shrink: 1;
        display: inline-block;
        padding-right: 0.4rem;
        .font(0.8rem,
        #FFFFFF,
        1.8rem);
        font-weight: 500;
        white-space: nowrap;
    }
    .collect-tips-common {
        display: inline-block; // padding-right: 0.2rem;
        .font(0.7rem,
        #FFFFFF,
        1.8rem);
        font-weight: 400;
        .text-overflow();
    }
    .collect-tips-unit {
        margin-right: 0.7rem;
    }
    .collect-tips-common-end {
        padding-right: 1.2rem;
    }
    .regular-labels__arrowRight {
        position: absolute;
        font-size: 0.7rem;
        right: 0.75rem;
        top: 50%;
        color: #FFFFFF;
        transform: translateY(-50%);
        &:before {
            content: '\e615';
        }
    }
}

.collect-tips-show {
    visibility: visible;
    animation: 2.5s collect_updown;
    animation-fill-mode: none;
}

// 采集成功
@keyframes collect_updown {
    0% {
        bottom: -1.8rem;
    }
    15% {
        bottom: 3.45rem;
    }
    85% {
        bottom: 3.45rem;
    }
    100% {
        bottom: -1.8rem;
    }
}