﻿html.feature-panel-open {
    overflow: hidden;
}

.feature-panel {
    background-color: rgba(255,255,255,.9);
    position: fixed;
    top: 0px;
    z-index: 1020;
    bottom: 0;
    width: 500px;
    color: rgb(0, 0, 0);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    transition: all ease .5s;
}

    .feature-panel .bg {
        position: fixed;
        background-color: rgba(255,255,255,.5);
        opacity: 0;
        transition: all ease .5s;
    }

    .feature-panel.open .bg {
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        opacity: 1;
    }

    .feature-panel .wrapper {
        position: absolute;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding: 0px;
    }

    .feature-panel .slider {
        position: absolute;
        top: 0px;
        left: 0px;
        bottom: 0px;
        width: 200%;
        display: flex;
    }

        .feature-panel .slider .slider-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            width: 500px;
        }

    .feature-panel .header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background-color: #f1f3f6;
        height: 60px;
        margin: 0px;
    }

        .feature-panel .header .title {
            flex: 1;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
        }

        .feature-panel .header .back {
            width: 60px;
            height: 60px;
            text-align: center;
            line-height: 60px;
            cursor: pointer;
            align-self: flex-start;
        }

            .feature-panel .header .back::after {
                content: "\f053";
                font-family: FontAwesome;
            }

        .feature-panel .header .toggle {
            height: 50px;
            line-height: 50px;
            width: 50px;
            text-align: center;
            cursor: pointer;
        }

            .feature-panel .header .toggle::after {
                content: "\f078";
                font-family: FontAwesome;
                display: block;
                transition: all ease .5s;
            }

            .feature-panel .header .toggle.open::after {
                transform: rotate(-540deg);
            }

    .feature-panel .tools {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        /*height: 60px;*/
        margin: 0px;
        border-bottom: 1px solid #eaeaea;
    }

    .feature-panel .toggle-body {
        position: absolute;
        padding: 0px;
        overflow-y: hidden;
        height: 0%;
        background-color: rgba(255,255,255,.9);
        transition: all ease .3s;
        display: flex;
        flex-direction: column;
    }

        .feature-panel .toggle-body.down {
            top: 0px;
        }

        .feature-panel .toggle-body.up {
            bottom: 0px;
        }

        .feature-panel .toggle-body.open {
            height: calc(100% - 60px);
        }

    .feature-panel .nav-tabs {
        padding: 0px;
        background-color: #fff;
    }

        .feature-panel .nav-tabs li {
            flex: 1;
        }

            .feature-panel .nav-tabs li a {
                text-align: center;
                display: block;
                padding: 8px;
                border: none;
                border-right: 1px solid #f9f9f9;
                cursor: pointer;
                background-color: #f9f9f9;
                color: #999;
            }

                .feature-panel .nav-tabs li a.active, .feature-panel .nav-tabs li a:hover {
                    border: none;
                    border-right: 1px solid #f9f9f9;
                    background-color: #fff;
                    color: #000;
                }

            .feature-panel .nav-tabs li i {
                font-size: 20px;
            }

    .feature-panel .tab-content {
        flex: 1;
        display: flex;
    }

        .feature-panel .tab-content > .active {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

    .feature-panel .body {
        padding: 20px;
        background-color: #fff;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }

        .feature-panel .body.no-padding {
            padding: 0px;
        }

    .feature-panel .feature {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background-color: #f1f3f6;
        height: 60px;
    }

        .feature-panel .feature .btn {
            margin-left: 5px;
        }

        .feature-panel .feature .btn-group .btn {
            margin-left: 0px;
        }

    .feature-panel.right {
        right: -500px;
        border-left: 1px solid #eaeaea;
    }

        .feature-panel.right.open {
            right: 0px;
            box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.06);
        }

    .feature-panel.left {
        left: -500px;
        border-right: 1px solid #eaeaea;
    }

        .feature-panel.left.open {
            left: 0px;
            box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.06);
        }

@media (max-width:767px) {
    .feature-panel {
        width: 100%;
    }

        .feature-panel.right {
            right: -100%;
            border-left: none;
        }

        .feature-panel.left {
            left: -100%;
            border-right: none;
        }

        .feature-panel .slider .slider-container {
            width: 100%;
        }
}
