﻿.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-y: auto;
    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 .header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        position: absolute;
        right: 0px;
        left: 0px;
        top: 0px;
        background-color: #f1f3f6;
        width: 100%;
        height: 60px;
        margin: 0px;
    }

    .feature-panel .body {
        padding: 20px;
        position: absolute;
        width: 100%;
        bottom: 0px;
        top: 0px;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 60px;
        margin-bottom: 60px;
        background-color: #fff;
    }

    .feature-panel .feature {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        position: absolute;
        right: 0px;
        left: 0px;
        bottom: 0px;
        background-color: #f1f3f6;
        width: 100%;
        height: 60px;
        margin: 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;
        }
}
