//css for PackageCountList
@import 'cbkfe-assets/dist/css/control.less';
.hairlines {
    .package-count-item {
        border-width: 0.5px !important;
    }
    .package-count-item--active {
        border-width: 0.5px !important;
    }
}

.cbkfe-packageCountList-scroll {
    height: 5rem;
    overflow: hidden;
}

.cbkfe-packageCountList-popupContent {
    .sead-popup-wrapper {
        overflow: hidden;
        background: rgba(255, 255, 255, 1);
        border-radius: 0.5rem 0.5rem 0rem 0rem;
    }
}

.cbkfe-packageCountList-popup {
    // padding-bottom: 1.25rem;
    .packageCountList-popup__title {
        padding: 0.9rem 0;
        .font(0.9rem, #000, 1.1rem);
        font-weight: 500;
        margin-left: 0.75rem;
    }
    .packageCountList-popup__footerbar {
        margin-top: 1.25rem;
    }
}

.cbkfe-template-packageCountList {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    .package-count-itemBox {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 0.5rem;
        transform: translateZ(1px);
        &:nth-child(2):last-child {
            padding-right: 0;
        }
        &:nth-child(n+3):last-child {
            min-width: 7.25rem;
            padding-right: 0.75rem;
        }
    }
    .package-count-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 4.5rem;
        border: 1px solid #E0E0E0;
        border-radius: 0.3rem;

        .package-refundable-label {
            position: absolute;
            left: -0.05rem;
            top: -0.375rem;
            display: flex;
            align-items: center;
            padding: 0 0.25rem;
            height: 0.75rem;
            border-radius: 0.3rem 0.05rem 0.3rem 0.05rem;
            background: linear-gradient(225deg, #FF2244 0%, #FF6D5D 100%);
            font-size: 0.5rem;
            color: #FFFFFF;
        }

        .package-count {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            margin-bottom: 0.3rem;
        }
        .package-count__text {
            .font(1.5rem, #000, 0.8);
            font-family: DIN-Alternate;
            font-weight: 600;
        }
        .package-count__unit {
            .font(0.8rem, #000, 1rem);
            font-weight: 600;
            margin-left: 0.1rem;
        }
        .package-price {
            display: flex;
            justify-content: center;
            align-items: baseline;
            margin-bottom: 0.4rem;
        }
        .package-price__soldPrice {
            .font(0.75rem, #000, 0.75rem);
            font-weight: 500;
            margin-right: 0.1rem;
        }
        .package-price__marketPrice {
            .font(0.5rem, #9d9d9d, 0.5rem);
            font-weight: 300;
        }
        .package-label {
            position: relative;
            height: 0.9rem;
            font-size: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 4.15rem;
            .border-1px(#FF2244, 0.3rem);
            &::before {
                border-radius: 12% / 50%;
                border-top-left-radius: 0;
            }
        }
        .package-label__text {
            .font(0.55rem, #FF2244, 0.55rem);
            font-weight: 400;
        }
        .package-count-label {
            position: absolute;
            right: 0;
            top: 0rem;
            height: 0.8rem;
            font-size: 0.5rem;
            line-height: 0.8rem;
            padding: 0 0.33rem;
            &--disable {
                background: #E0E0E0;
                border-radius: 0rem 0.25rem 0rem 0.3rem;
                color: #9D9D9D;
            }
        }
        &--active {
            position: relative;
            color: #FF2244;
            .package-count__text,
            .package-count__unit,
            .package-price__soldPrice {
                color: #FF2244;
            }
            border: 1px solid #FF2244;
            border-radius: 0.3rem; // .border-1px(#FF2244, 0.3rem);
            .package-label {
                &::before {
                    background: linear-gradient(315deg, rgba(255, 34, 68, 1) 0%, rgba(255, 109, 93, 1) 100%);
                }
                .package-label__text {
                    position: relative;
                    z-index: 10;
                    color: #fff;
                }
            }
            &::after {
                content: '';
                background: #FF2244;
                position: absolute;
                right: 0px;
                bottom: 0px;
                height: 1rem;
                width: 1rem;
                border-bottom-right-radius: 0.25rem;
                border-top-left-radius: 100%;
                background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAMAAAAhxq8pAAAAQlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8IX9KGAAAAFXRSTlMAnUr38Obay5J7ZFAuIBUMu7qnPj1j4YSjAAAAX0lEQVQY04XQRw6AMAwFUXpLo839r4qSWATFC2b5LHnxG1XXaVtA6YrGDTgrM8BRPb56mEM0aMXsAJNvMoq6EUaX762on2CwUYqGGfo7QdEdMAKiqe2FoutXRJf/bXQPn1QFfh+EG0QAAAAASUVORK5CYII=');
                background-size: 0.4rem 0.28rem;
                background-position: 0.35rem 0.45rem;
                background-repeat: no-repeat;
            }
        }
        &--disable {
            position: relative;
            color: #9D9D9D;
            .package-count__text,
            .package-count__unit,
            .package-price__soldPrice {
                color: #9D9D9D;
            }
            .package-label {
                &::before {
                    border-color: #757575;
                }
                .package-label__text {
                    color: #757575;
                }
            }
        }
    }
    &--double {
        justify-content: space-between;
        .package-count-itemBox {
            width: 8.5rem;
        }
        .package-count-item {
            width: 8.4rem;
        }
    }
    &--multi {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        .package-count-itemBox {
            width: 6.7rem;
        }
        .package-count-item {
            width: 6.5rem;
        }
    }
}