﻿/* Contacts */
div.gs-chat {
    position: fixed;
    right: 0;
    bottom: 0;
    top: 50px;
    width: 150px;
    background-color: #fff;
    border-left: 1px solid #ddd;
}

    div.gs-chat div.chat-targets > div.header {
        color: #999ca5;
        font-size: 10px;
        font-weight: bold;
        padding-left: 5px;
        padding-top: 5px;
    }

    div.gs-chat div.chat-targets > ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        div.gs-chat div.chat-targets > ul > li {
            height: 25px;
            line-height: 25px;
            padding-left: 15px;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            div.gs-chat div.chat-targets > ul > li:hover {
                background-color: #3c8dbc;
                color: #fff;
            }

            div.gs-chat div.chat-targets > ul > li:before {
                content: '';
                display: inline-block;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background-color: rgba(224, 224, 224, 1);
                border: 1px solid rgba(185, 185, 185, 1);
                position: relative;
                left: -7px;
                top: -0px;
            }

            div.gs-chat div.chat-targets > ul > li.online:before {
                background-color: #00ff00;
                border: 1px solid #8A8A8A;
            }

.gs-chat-area {
    position: fixed;
    bottom: 5px;
    left: -9999px;
    right: 160px;
    height: 0px;
}

/* Chatbox */
.gs-chat-box {
    width: 260px;
    margin-left: 15px;
    float: right;
    display: inline-block;
    position: relative;
    height: 5px;
}

    .gs-chat-box > .content {
        width: 260px;
        box-shadow: rgba(73, 73, 73, 0.2) 0px 0px 6px 0px;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .gs-chat-box.docked,
    .gs-chat-box.docked > .content {
        width: 160px;
    }

    .gs-chat-box > .content > .mode-normal > .header {
        color: #ffffff;
        background: #4b67a8;
        border: 1px solid #2e4588;
        cursor: pointer;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
    }

        .gs-chat-box > .content > .mode-normal > .header > .group-name {
            padding: 3px 5px 0;
            height: 25px;
        }

        .gs-chat-box > .content > .mode-normal > .header > .options {
            position: absolute;
            top: 0;
            right: 0;
            padding: 3px 5px 0 0;
        }

            .gs-chat-box > .content > .mode-normal > .header > .options > span {
                color: #ddd;
            }

                .gs-chat-box > .content > .mode-normal > .header > .options > span:hover {
                    color: #fff;
                }

    .gs-chat-box > .content > .mode-normal > .body {
        height: 200px;
        border-left: 1px solid #cccccc;
        border-right: 1px solid #cccccc;
        background-color: #EDEFF4;
        overflow-y: auto;
        padding: 10px;
        overflow-x: hidden;
    }

        .gs-chat-box > .content > .mode-normal > .body > .timestamp {
            height: 0px;
            margin-top: 5px;
            margin-bottom: 5px;
            color: #999ca5;
            display: inline-block;
            font-size: 10px;
            font-weight: bold;
            box-sizing: border-box;
            width: 180px;
            position: relative;
            text-align: center;
            width: 100%;
            padding-left: 20px;
            padding-right: 20px;
        }

            .gs-chat-box > .content > .mode-normal > .body > .timestamp > .line {
                border-top: 1px solid #ddd;
                border-bottom: 1px solid #f7f7f7;
            }

            .gs-chat-box > .content > .mode-normal > .body > .timestamp > .moment {
                display: inline-block;
                position: relative;
                top: -7px;
                background-color: #EDEFF4;
                padding-left: 5px;
                padding-right: 5px;
            }

        .gs-chat-box > .content > .mode-normal > .body > .message {
            margin-bottom: 7px;
            line-height: 15.3599996566772px;
            position: relative;
        }

            .gs-chat-box > .content > .mode-normal > .body > .message.other {
                text-align: left;
                padding-right: 10px;
                padding-left: 32px;
            }

            .gs-chat-box > .content > .mode-normal > .body > .message.mine {
                text-align: right;
                padding-left: 10px;
            }

            .gs-chat-box > .content > .mode-normal > .body > .message > .message-sender {
                display: inline-block;
                width: 29px;
                height: 29px;
                border-radius: 5px;
                border: 1px solid #ECE5E5;
                position: absolute;
                background-color: #9A9CCC;
                left: -5px;
                top: -2px;
                color: #fff;
                text-align: center;
                font-size: 15px;
                padding-top: 6px;
                box-shadow: 0 0 1px rgba(73, 73, 73, 0.2);
            }

            .gs-chat-box > .content > .mode-normal > .body > .message > .message-content {
                padding: 4px 5px 3px 6px;
                box-shadow: rgb(220, 224, 230) 0px 1px 0px 0px;
                border-style: solid;
                border-radius: 4px;
                border-width: 1px;
                border-bottom-color: rgba(0, 0, 0, 0.290196);
                border-left-color: rgba(0, 0, 0, 0.180392);
                border-right-color: rgba(0, 0, 0, 0.180392);
                border-top-color: rgba(0, 0, 0, 0.180392);
                display: inline-block;
                font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif;
                font-size: 12px;
                position: relative;
            }

            .gs-chat-box > .content > .mode-normal > .body > .message.mine > .message-content {
                background-color: #dbedfe;
                background-image: -webkit-gradient(linear, center bottom, center top, from(#c7defe), to(#e7f1fe));
                background-image: -webkit-linear-gradient(bottom, #c7defe, #e7f1fe);
            }

                .gs-chat-box > .content > .mode-normal > .body > .message.mine > .message-content:after,
                .gs-chat-box > .content > .mode-normal > .body > .message.mine > .message-content:before {
                    left: 100%;
                    top: 10px;
                    border: solid transparent;
                    content: " ";
                    height: 0;
                    width: 0;
                    position: absolute;
                    pointer-events: none;
                }

                .gs-chat-box > .content > .mode-normal > .body > .message.mine > .message-content:after {
                    border-color: rgba(136, 183, 213, 0);
                    border-left-color: #DBEAFF;
                    border-width: 5px;
                    margin-top: -5px;
                }

                .gs-chat-box > .content > .mode-normal > .body > .message.mine > .message-content:before {
                    border-color: rgba(194, 225, 245, 0);
                    border-left-color: #9EA9AF;
                    border-width: 6px;
                    margin-top: -6px;
                }

            .gs-chat-box > .content > .mode-normal > .body > .message.other > .message-content {
                background-color: #f7f7f7;
                background-image: -webkit-gradient(linear, center bottom, center top, from(#f2f2f2), to(#fff));
                background-image: -webkit-linear-gradient(bottom, #f2f2f2, #fff);
            }

                .gs-chat-box > .content > .mode-normal > .body > .message.other > .message-content:after,
                .gs-chat-box > .content > .mode-normal > .body > .message.other > .message-content:before {
                    right: 100%;
                    top: 10px;
                    border: solid transparent;
                    content: " ";
                    height: 0;
                    width: 0;
                    position: absolute;
                    pointer-events: none;
                }

                .gs-chat-box > .content > .mode-normal > .body > .message.other > .message-content:after {
                    border-color: rgba(136, 183, 213, 0);
                    border-right-color: #FAFAFA;
                    border-width: 5px;
                    margin-top: -5px;
                }

                .gs-chat-box > .content > .mode-normal > .body > .message.other > .message-content:before {
                    border-color: rgba(194, 225, 245, 0);
                    border-right-color: #ACACAC;
                    border-width: 6px;
                    margin-top: -6px;
                }

    .gs-chat-box > .content > .mode-normal > .footer {
        background-color: #ffffff;
        border-left: 1px solid #cccccc;
        border-right: 1px solid #cccccc;
        border-top: 1px solid #ddd;
        min-height: 25px;
        max-height: 50px;
        line-height: 0;
    }

        .gs-chat-box > .content > .mode-normal > .footer > textarea {
            border: none;
            outline: none;
            width: 100%;
            height: 14px;
            line-height: 14px;
            resize: none;
            padding: 0;
            margin: 5px;
            font-size: 13px;
            overflow: hidden;
            margin-left: 0;
            margin-right: 0;
            padding-left: 5px;
        }

    .gs-chat-box > .content > .mode-dock {
        color: rgb(20, 24, 35);
        background: #f2f2f4;
        border: 1px solid #999;
        border-bottom: 0;
        cursor: pointer;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        display: none;
    }

        .gs-chat-box > .content > .mode-dock > .group-name {
            padding: 3px 5px 0;
            height: 25px;
        }

        .gs-chat-box > .content > .mode-dock > .options {
            position: absolute;
            top: 0;
            right: 0;
            padding: 2px 7px 0 0;
        }

            .gs-chat-box > .content > .mode-dock > .options > .id-close {
                display: none;
                color: #aaa;
            }

        .gs-chat-box > .content > .mode-dock:hover > .options > .id-close {
            display: inline-block;
        }

        .gs-chat-box > .content > .mode-dock > .options > .id-close:hover {
            display: inline-block;
            color: #777;
        }

    .gs-chat-box.docked > .content > .mode-dock {
        display: block;
    }

    .gs-chat-box.docked > .content > .mode-normal {
        display: none;
    }
