// SalesCrowd FAQ
.sales-crowd-faq {
    width: 100%;
    max-width: $L; 
    margin: 0 auto;
    box-shadow: 0 1px 5px rgba(#000, .1);
    @include clearfix;
    @include MQ(M) {
        position: relative;
        margin: 0em auto;
        box-shadow: none;
    }
}
.sales-crowd-faq-categories {
    a {
        position: relative;
        display: block;
        overflow: hidden;
        height: 4em;
        line-height: 4em;
        padding: 0 1em 0 1em;
        background-color: $salescrowd-warm-gray;
        @include font-smoothing;
        font-size: 1em;
        color: $salescrowd-earth;
        white-space: nowrap;
        border-bottom: 1px solid lighten($salescrowd-warm-gray, 3%);
        text-overflow: ellipsis;
        &::before, &::after {
            position: absolute;
            top: 50%;
            right: 16px;
            display: inline-block;
            height: 1px;
            width: 10px;
            background-color: lighten($salescrowd-warm-gray, 20%);
        }
        &::after {
            @include transform(rotate(90deg));
        }
    }
    li:last-child a {
        border-bottom: none;
    }
    @include MQ(M) {
        width: 20%;
        float: left;
        box-shadow: 0 1px 2px rgba(#000, .08);
        a {
            font-weight: 600;
            padding-left: 2em;
            padding: 0 2em;
            @include transition(background .2s, padding .2s);
            &::before, &::after {
                display: none;
            }
            .no-touch &:hover {
                background: lighten($salescrowd-warm-gray, 3%);
            }
        }
        .no-js & {
            width: 100%;
            margin-bottom: 2em;
        }
    }
    @include MQ(L) {
        position: absolute;
        top: 0;
        left: 0;
        width: 200px;
        z-index: 2;
        a::before {
            display: block;
            top: 0;
            right: auto;
            left: 0;
            height: 100%;
            width: 3px;
            background-color: $salescrowd-orange;
            opacity: 0;
            @include transition(opacity .2s);
        }
        .selected {
            background: darken($salescrowd-warm-gray, 5%) !important;

            &::before {
                opacity: 1;
            }
        }
        &.is-fixed {
            position: fixed;
        }
        .no-js & {
            position: relative;
        }
    }
}

.sales-crowd-faq-items {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    background: $white;
    padding: 0 5% 1em;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    @include transform(translateZ(0) translateX(100%));
    -webkit-transition: -webkit-transform .3s;
    -moz-transition: -moz-transform .3s;
    transition: transform .3s;
    &.slide-in {
        @include transform(translateZ(0) translateX(0%));
    }
    .no-js & {
        position: static;
        height: auto;
        width: 100%;
        @include transform(translateX(0));
    }
    @include MQ(M) {
        position: static;
        height: auto;
        width: 78%;
        float: right;
        overflow: visible;
        @include transform(translateZ(0) translateX(0));
        padding: 0;
        background: transparent;
    }
    @include MQ(L) {
        float: none;
        width: 100%;
        padding-left: 220px;
        .no-js & {
            padding-left: 0;
        }
    }
}

.sales-crowd-faq-group > li {
    background: $white;
    @include MQ(M) {
        background: $salescrowd-warm-light-gray;
    }
    @include MQ(L) {
        background: $salescrowd-warm-light-gray;
    }
}

.sales-crowd-close-panel {
    position: fixed;
    top: 5px;
    right: -100%;
    display: block;
    height: 40px;
    width: 40px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    z-index: 2;
    @include transform(translateZ(0));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    @include transition(right .4s);
    &::before, &::after {
        /* close icon in CSS */
        position: absolute;
        top: 16px;
        left: 12px;
        display: inline-block;
        height: 3px;
        width: 18px;
        background: $salescrowd-warm-light-gray;
    }
    &::before {
        @include transform(rotate(45deg));
    }
    &::after {
        @include transform(rotate(-45deg));
    }
    &.move-left {
        right: 2%;
    }
    @include MQ(M) {
        display: none;
    }
}

.sales-crowd-faq-group {
    display: none;
    &.selected {
        display: block;
    }
    .sales-crowd-faq-title {
        background: transparent;
        box-shadow: none;
        margin: 1em 0;
        .no-touch &:hover {
            box-shadow: none;
        }
        h2 {
            text-transform: uppercase;
            font-weight: 700;
            color: $salescrowd-earth;
        }
    }
    .no-js & {
        display: block;
    }
    @include MQ(M) {
        display: block;
        > li {
            background: $white;
            list-style: none;
            margin-bottom: 6px;	
            box-shadow: 0 1px 2px rgba(#000, .08);
            @include transition(box-shadow .2s);
            .no-touch &:hover {
                box-shadow: 0 1px 10px rgba($salescrowd-warm-light-gray, .3);
            }
        }
        .sales-crowd-faq-title {
            margin: 2em 0 1em;
        }
        &:first-child .sales-crowd-faq-title {
            margin-top: 0;
        }
    }
}

.sales-crowd-faq-trigger {
    position: relative;
    display: block;
    margin: 1.6em 0 .4em;
    background: $white;
    line-height: 1.2;
    color: $salescrowd-earth;
    border: 0;
    @include MQ(M) {
        font-size: 1.3em;
        font-weight: 300;
        margin: 0;
        padding: 1em 4em 1em 1.15em;
        background: $lightest-gray;
        &::before, &::after {
            /* arrow icon on the right */
            position: absolute;
            right: 24px;
            top: 50%;
            height: 2px;
            width: 13px;
            background: lighten($salescrowd-orange, 20%);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            @include transition-property(transform);
            @include transition-duration(.2s);
        }
        &::before {
            @include transform(rotate(45deg));
            right: 32px;
        }
        &::after {
            @include transform(rotate(-45deg));
        }
        .content-visible &::before {
            @include transform(rotate(-45deg));
        }
        .content-visible &::after {
            @include transform(rotate(45deg));
        }
    }
}

.sales-crowd-faq-content {
    p {
        line-height: 1.4;
        color: $salescrowd-earth;
        font-size: 1.1em;
    }
    @include MQ(M) {
        display: none;
        padding: 1em 1.5em;
        p {
            line-height: 1.6
        }
        .no-js & {
            display: block;
        }
    }
}