#chat {
    position: fixed;
    background: #fff;
    padding: 20px 0;
    width: 260px;
    box-shadow: 0 0 10px rgba(51, 51, 51, 0.38);
    height: calc(100% - 65px);
    right: -280px;
    top: 65px;
    @include transition(all);
    @include transition-duration(300ms);
    z-index: 10;
    @include opacity(0);

    &.toggled {
        right: 0;
        @include opacity(1);
    }

    .chat-search {
        padding: 20px 20px 15px 20px;

        .form-control {
            background-image: url('./img/icons/search-2.png');
            // @include img-retina('./img/icons/search-2.png', './img/icons/search-2@2x.png', 24px, 24px);
            background-repeat: no-repeat;
            background-position: left center;
            padding-left: 30px;
            @include transition(all);
            @include transition-duration(300ms);
            &:focus {
                background-position: right center;
                padding: 0 30px 0 0;
            }
        }
    }
}

/*
 * Chat Status Icons
 */
[class*="chat-status"] {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: -3px;
    right: 12px;
    border: 2px solid #FFF;
 }

/* Simple Mixin */
@mixin chat-status($color) {
   box-shadow: 0 0 0 1px $color;
   background: $color;
}

.chat-status-online {
    @include chat-status(#1EC01E);
}

.chat-status-offline {
    @include chat-status(#E73F3F);
}

.chat-status-busy {
    @include chat-status(#FFA500);
}

/*
 * For Stupid IE9
 */
.ie9 {
    #chat {
        right: 0;

        &:not(.toggled) {
            display: none;
        }
    }
}
