#chatbox
{
    position: relative;

    width: 100%;

    color: #000;
    background: #fff;
}
#chatbox .chattop
{
    width: 100%;
    padding: 2px 12px 0 12px;

    color: #ec0000;
    border-bottom: 1px solid #ccc;
}
#chatbox .chatuser
{
    overflow-x: scroll;

    width: 100%;
    height: 620px;
}
#chatbox .chatuser ul
{
    display: -webkit-box;
    display: -webkit-flex;
    display:    -moz-box;
    display: -ms-flexbox;
    display:         flex;
            flex-direction: column-reverse;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;

    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: column-reverse;
       -moz-box-orient: vertical;
       -moz-box-direction: reverse;
        -ms-flex-direction: column-reverse;
}
#chatbox .chatuser ul li.chatter
{
    display: none;
    float: left;

    width: 100%;
    padding: 4px 6px;

    border-bottom: 1px solid #ccc;
}
#chatbox .chatuser ul li.chatter .chatpic
{
    float: left;
    overflow: hidden;

    width: 64px;
    height: 64px;
    margin: 4px 10px 4px 4px;
}
#chatbox .chatuser ul li.chatter .chatpic img
{
    width: 100%;
    min-width: 100%;
    min-height: 100%;
}
#chatbox .chatuser ul li.chatter:after
{
    font-size: 12px;
    font-weight: bold;

    position: absolute;
    right: 6px;
    bottom: 4px;

    display: block;

    padding: 2px 4px 0 4px;

    content: 'NEU';
    -webkit-animation: newblink 4s linear infinite;
       -moz-animation: newblink 4s linear infinite;
         -o-animation: newblink 4s linear infinite;
            animation: newblink 4s linear infinite;

    color: #fff;
    background: #83b00b;
}
#chatbox .chatuser ul li.chatter .chatinfo
{
    float: left;

    width: -webkit-calc(100% - 90px);
    width:    -moz-calc(100% - 90px);
    width:         calc(100% - 90px);
    height: 70px;
}
#chatbox .chatuser ul li.chatter .chatinfo p.name
{
    font-weight: bold;
    line-height: 24px;

    position: relative;

    display: block;
    float: left;
    overflow: hidden;

    width: 100%;

    white-space: nowrap;
       text-overflow: ellipsis;

    color: #ec0000;

    -o-text-overflow: ellipsis;
}
#chatbox .chatuser ul li.chatter .chatinfo p.name span
{
    position: relative;

    padding-right: 20px;
}
#chatbox .chatuser ul li.chatter .chatinfo p.name span:after
{
    position: absolute;
    top: 6px;
    right: 4px;

    display: block;
    overflow: hidden;

    width: 12px;
    height: 12px;

    content: '';

    -webkit-border-radius: 200px;
            border-radius: 200px;
    background: #83b00b;
}
#chatbox .chatuser ul li.chatter .chatinfo p.greeting
{
    font-size: 14px;

    position: relative;

    display: block;
    float: left;
    overflow: hidden;

    width: 100%;

    white-space: nowrap;
       text-overflow: ellipsis;

    -o-text-overflow: ellipsis;
}
#chatbox .chatuser ul li.chatter .chatinfo sup.timestamp
{
    font-size: 12px;
    line-height: 28px;

    color: #ccc;
}
#chatbox .chatfenster
{
    position: fixed;
    z-index: 444;
    bottom: 0;
    left: 50%;

    width: 96%;
    max-width: 320px;

    -webkit-transform: translate(-50%, 0%);
       -moz-transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
         -o-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);

    background: #fff;
}
#chatbox .chatfenster .userchat
{
    display: none;

    width: 100%;
    height: 360px;

    -webkit-box-shadow: 0 0 2px #000;
            box-shadow: 0 0 2px #000;
}
#chatbox .chatfenster .usertopbox
{
    float: left;

    width: 100%;

    border-bottom: 3px solid #ccc;
}
#chatbox .chatfenster .usertopbox .chatclose
{
    font-size: 14px;
    font-weight: bold;

    position: absolute;
    top: 0;
    right: 0;

    width: 18px;
    height: 18px;

    text-align: center;

    color: #ccc;
}
#chatbox .chatfenster .usertopbox .chatpic
{
    float: left;
    overflow: hidden;

    width: 64px;
    height: 64px;
    margin: 4px 10px 4px 4px;
}
#chatbox .chatfenster .usertopbox .chatpic img
{
    width: 100%;
    min-width: 100%;
    min-height: 100%;
}

#chatbox .chatfenster .usertopbox .chatinfo
{
    float: left;

    width: -webkit-calc(100% - 90px);
    width:    -moz-calc(100% - 90px);
    width:         calc(100% - 90px);
    height: 70px;
}
#chatbox .chatfenster .usertopbox .chatinfo p.name
{
    font-weight: bold;
    line-height: 24px;

    position: relative;

    display: block;
    float: left;
    overflow: hidden;

    width: 100%;

    white-space: nowrap;
       text-overflow: ellipsis;

    color: #ec0000;

    -o-text-overflow: ellipsis;
}
#chatbox .chatfenster .usertopbox .chatinfo p.name span
{
    position: relative;

    padding-right: 20px;
}
#chatbox .chatfenster .usertopbox .chatinfo p.name span:after
{
    position: absolute;
    top: 6px;
    right: 4px;

    display: block;
    overflow: hidden;

    width: 12px;
    height: 12px;

    content: '';

    -webkit-border-radius: 200px;
            border-radius: 200px;
    background: #83b00b;
}
#chatbox .chatfenster .usertopbox p.greeting
{
    font-size: 14px;

    position: relative;

    display: block;
    float: left;
    overflow: hidden;

    width: 100%;

    white-space: nowrap;
       text-overflow: ellipsis;

    -o-text-overflow: ellipsis;
}
#chatbox .chatfenster .chatmsg
{
    float: left;
    overflow-x: scroll;

    width: 100%;
    height: 200px;
    padding: 12px;
}
#chatbox .chatfenster .chatmsg .bubble
{
    font-size: 14px;
    font-size: 13px;

    position: relative;
    position: relative;

    display: none;
    float: left;

    max-width: 80%;
    margin-bottom: 12px;
    padding: 8px;

    background-color: #ececec;
}
#chatbox .chatfenster .chatmsg .bubble img
{
    float: left;

    max-width: 100%;
}
#chatbox .chatfenster .chatmsg .bubble .triangle
{
    position: absolute;
    top: 0;
    left: -10px;

    overflow: hidden;

    width: 10px;
    height: 25px;

    -webkit-transform: rotate(0deg);
       -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
         -o-transform: rotate(0deg);
            transform: rotate(0deg);
}
#chatbox .chatfenster .chatmsg .bubble .triangle:after
{
    position: absolute;
    top: -10px;
    left: 10px;

    width: 50px;
    height: 50px;

    content: '';
    -webkit-transform: rotate(45deg);
       -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
         -o-transform: rotate(45deg);
            transform: rotate(45deg);

    -webkit-border-bottom-left-radius: 2px;
            border-bottom-left-radius: 2px;
    background: #ececec;
}
#chatbox .chatfenster .chattextbox
{
    float: left;

    width: 100%;
    height: 85px;
    padding: 0 12px 4px 12px;

    border-top: 3px solid #ccc;
    background: #e8e8e8;
}
#chatbox .chatfenster .chattextbox span
{
    font-size: 12px;
}
#chatbox .chatfenster .chattextbox textarea
{
    float: left;

    width: -webkit-calc(100% - 50px);
    width:    -moz-calc(100% - 50px);
    width:         calc(100% - 50px);
    height: 46px;
    padding: 4px;

    resize: none;

    border: 1px solid #ccc;
}
#chatbox .chatfenster .chattextbox input
{
    float: right;
    overflow: hidden;

    width: 40px;
    height: 40px;
    margin-top: 3px;

    cursor: pointer;

    border: 0;
    -webkit-border-radius: 200px;
            border-radius: 200px;
    background: #83b00b url(../img/send.png) no-repeat;
    background: #83b00b url(../img/send.svg) no-repeat;
    background-position: center center;
    -webkit-background-size: 62% auto;
         -o-background-size: 62% auto;
            background-size: 62% auto;
}
@media only screen and (min-width: 760px)
{
    #chatbox .chatuser
    {
        float: left;
        overflow-x: scroll;

        width: 194px;
        height: 620px;

        border-right: 1px solid #ccc;
    }
    #chatbox .chatfenster
    {
        position: relative;
        z-index: 4;
        left: 0;

        float: left;

        width: -webkit-calc(100% - 195px);
        width:    -moz-calc(100% - 195px);
        width:         calc(100% - 195px);
        max-width: none;
        height: 620px;

        -webkit-transform: none;
           -moz-transform: none;
            -ms-transform: none;
             -o-transform: none;
                transform: none;
    }
    #chatbox .chatfenster .userchat
    {
        -webkit-box-shadow: none;
                box-shadow: none;
    }
    #chatbox .chatfenster .usertopbox .chatclose
    {
        display: none;
    }
    #chatbox .chatfenster .chatmsg
    {
        height: 430px;
    }
    #chatbox .chatfenster .chattextbox
    {
        height: 115px;
    }
    #chatbox .chatfenster .chattextbox textarea
    {
        height: 70px;
    }
    #chatbox .chatfenster .chattextbox input
    {
        margin-top: 28px;
    }
}
@media only screen and (min-width: 960px)
{
    #chatbox .chatuser
    {
        float: left;

        width: 300px;

        border-right: 1px solid #ccc;
    }
    #chatbox .chatfenster
    {
        position: relative;
        z-index: 4;
        left: 0;

        float: left;

        width: -webkit-calc(100% - 301px);
        width:    -moz-calc(100% - 301px);
        width:         calc(100% - 301px);
        height: 620px;

        -webkit-transform: none;
           -moz-transform: none;
            -ms-transform: none;
             -o-transform: none;
                transform: none;
    }
}


@-webkit-keyframes newblink
{
    0%
    {
        background: #fff;
    }
    30%
    {
        background: #83b00b;
    }
    70%
    {
        background: #83b00b;
    }
    100%
    {
        background: #fff;
    }
}

@-moz-keyframes newblink
{
    0%
    {
        background: #fff;
    }
    30%
    {
        background: #83b00b;
    }
    70%
    {
        background: #83b00b;
    }
    100%
    {
        background: #fff;
    }
}

@-o-keyframes newblink
{
    0%
    {
        background: #fff;
    }
    30%
    {
        background: #83b00b;
    }
    70%
    {
        background: #83b00b;
    }
    100%
    {
        background: #fff;
    }
}

@keyframes newblink
{
    0%
    {
        background: #fff;
    }
    30%
    {
        background: #83b00b;
    }
    70%
    {
        background: #83b00b;
    }
    100%
    {
        background: #fff;
    }
}
