@charset "UTF-8";
@import '~scss/_mixins';

.lm-carpicker {
    .popup {
        @include m-r1bl(#e5e5e5);
        box-sizing: border-box;
        font-size: 14px;
        background-color: #fff;
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;

        &.brand {
            border-left: 0 none;
        }

        &.series {
            left: 20%;
            width: 80%;
        }

        &.model {
            left: 40%;
            width: 60%;

            .lm-carpicker-popup-body-list-item {
                padding: 8px;
                line-height: 24px;
            }
        }

        &.hidden {
            display: none;
        }

        .header {
            display: flex;
            align-items: center;
            width: 100%;
            height: 44px;
            background-color: #f7f7f7;
            box-sizing: border-box;
            position: relative;
            @include m-r1bb(#e5e5e5);

            .title {
                padding: 0 14px;
                flex: 1;
                font-weight: 400;
                font-size: 16px;
            }

            .btn {
                padding: 0 14px;
                text-align: center;
                color: #f25c17;
                font-size: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        .body {
            box-sizing: border-box;
            position: absolute;
            top: 44px;
            bottom: 0;
            width: 100%;
            overflow-y: scroll;
            -webkit-overflow-scrolling: touch;

            .title {
                @include m-r1bt(#e3e3e3);
                @include m-r1bb(#e3e3e3);
                margin-top: -1px;
                padding-left: 14px;
                box-sizing: border-box;
                height: 26px;
                display: flex;
                align-items: center;
                color: #999;
                font-size: 12px;
                background: #f7f7f7;
            }

            .main {

                .list {
                    margin: 0 14px;
                }

                .item {
                    position: relative;
                    list-style: none;
                    line-height: 24px;
                    font-size: 14px;
                    color: #333;
                    padding: 8px;
                    padding-left: 0;

                    //@include m-r1bb(red);
                    &::after {
                        position: absolute;
                        left: 0;
                        right: 0;
                        bottom: 0px;
                        height: 1px;
                        background-color: #e3e3e3;
                        content: '';
                        // transform: transform-origin(0 0);
                        //transform: scaleY(0.5);
                    }

                    &.active {
                        color: #f25c17;

                        &::before {
                            content: '';
                            position: absolute;
                            margin-top: -7px;
                            top: 50%;
                            left: -14px;
                            width: 2px;
                            height: 14px;
                            background-color: #f25c17;
                        }

                        .desc {
                            color: #f25c17;
                        }
                    }

                    .desc {
                        font-size: 12px;
                        color: #999;
                        line-height: 16px;
                        margin-bottom: 8px;
                    }
                }
            }
        }
    }

    &-abc {
        padding: 2vw 0;
        overflow: hidden;
        box-sizing: border-box;

        .ul {
            padding: 0 2vw;
            box-sizing: border-box;
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-flow: row wrap;
            align-content: flex-start;
            justify-content: flex-start;
            align-items: center;
        }

        .li {
            box-sizing: border-box;
            flex-basis: 96vw / 7;
            height: 96vw / 7;
            display: flex;
            align-items: flex-end;
            justify-content: center;

            span {
                margin: 1vw;
                width: (96vw / 7) - 2vw;
                height: (96vw / 7) - 2vw;
                box-sizing: border-box;
                background-color: #f7f7f7;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 4px;
                @include m-r1b(#e3e3e3);
            }

            &.hot span {
                background-color: #f25c17 !important;
                color: #fff;
            }
        }
    }
}

@media screen and (min-width: 750px) {
    .lm-carpicker-abc {
        .ul {
            padding: 0 14px;
        }

        .li {
            flex-basis: 720px / 7;
            height: 720px / 7;

            span {
                width: (720px / 7) - 14px;
                height: (720px / 7) - 14px;
            }
        }
    }
}
