﻿.chat, .chat input, .chat select, .chat textarea, .chat button {
    font-family: Tahoma, Helvetica, sans-serif;
    font-size: 12px;
}

.chat {
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
}

.chat a {
    color: #217095;
}

.chat iframe {
    border-style: none;
    position: absolute;
    left: -100px;
    top: -100px;
    width: 1px;
    height: 1px;
}

.chat button {
    border: 1px solid #AAA;
    height: 27px;
    background: url('i/chat.png') 0 -13px repeat-x;
}

.chat button:active {
    background-position: 0 -38px;
}

.chat .head {
    display: none;
}

.chat .body {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    bottom: 4px;
}

.chat .background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #000;
    opacity: .3;
    filter: alpha(opacity=30);
}

.chat .window {
    border: 3px solid #5B6E7F;
    background: #fff;
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 50%;
    box-shadow: 0 0 20px #000;
    -moz-box-shadow: 0 0 20px #000;
    -webkit-box-shadow: 0 0 20px #000;
}

.chat .window .header {
    background: #5B6E7F;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 8px 0;
    font-weight: bolder;
}

.chat .window .content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    text-align: center;
}

.chat .window .score {
    display: inline-block;
    width: 190px;
    height: 36px;
    background: url("i/stars.png") repeat-x transparent 0 0;
    text-align: left;
    cursor: pointer;
}

.chat .window .score span {
    display: inline-block;
    height: 36px;
    background: url("i/stars.png") repeat-x transparent 0 -72px;
}

.chat .window .score span.select {
    background-position: 0 -36px;
}

.chat .message {
    position: absolute;
    height: auto;
    width: 100%;
    top: 50%;
    text-align: center;
    white-space: normal;
}

.chat .message.loading img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    margin-bottom: -3px;
}

.chat .message button {
    margin-top: 10px;
}

.chat .message.net-error span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("i/chat.png") no-repeat transparent 0 -68px;
    margin: 0 5px -3px 0;
}

.chat .login {
    position: absolute;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    margin-left: -255px;
    text-align: left;
}

.chat .login button {
    width: 80px;
    margin: 0 0 0 5px;
}

.chat .login img {
    display: none;
    width: 16px;
    height: 16px;
    margin-bottom: -4px;
    margin-left: 4px;
}

.chat .login div {
    margin-bottom: 5px;
}

.chat .login div:last-child {
    margin-top: 10px;
}

.chat .login div.loading img {
    display: inline;
}

.chat .login div.error {
    background: url("i/chat.png") no-repeat transparent 434px -64px;
}

.chat .login div.error:last-child {
    background: url("i/chat.png") no-repeat transparent 208px -64px;
}

.chat .login input {
    width: 300px;
    margin: 0 20px 0 5px;
    border: 1px solid #AAA;
    height: 20px;
    padding-left: 3px;
    outline: none;
    vertical-align: middle;
}

.chat .login input:focus, .chat .login input.invalid {
    border-width: 2px;
    height: 18px;
    width: 298px;
    padding-left: 2px;
}

.chat .login input:focus {
    border-color: #9FC0E6;
}

.chat .login input.invalid {
    border-color: #EA7676;
}

.chat .login div select {
    width: 306px;
    margin-left: 5px;
    border: 1px solid #AAA;
    height: 24px;
    outline: none;
    vertical-align: middle;
}

.chat .login label {
    display: inline-block;
    width: 120px;
    white-space: nowrap;
    text-align: right;
}

.chat .login .title {
    padding-left: 50px;
    font-size: 14px;
    margin-bottom: 20px;
}

.is_ie .login input {
    padding-left: 3px;
    height: 16px;
    padding-top: 2px;
}

.is_ie .login input:focus, .is_ie .login input.invalid {
    height: 15px;
    padding-top: 1px;
    width: 300px;
}

.is_ie .login input:focus {
    border-color: #9FC0E6;
}

.is_ie .login input.invalid {
    border-color: #EA7676;
}

.is_ie .login div select {
    width: 306px;
    margin-left: 5px;
    border: 1px solid #AAA;
    height: auto;
    outline: none;
    vertical-align: top;
}

.chat .dialog textarea {
    position: absolute;
    bottom: 31px;
    left: 0;
    margin: 0;
    padding: 3px 0 0 4px;
    height: 80px;
    border: 1px solid #AAA;
    resize: none;
    outline: none;
}

.chat .dialog textarea:disabled {
    background: #f0f0f0;
}

.chat .dialog textarea:focus {
    border-color: #9FC0E6;
    border-width: 2px;
    padding-left: 2px;
    padding-top: 2px;
    height: 74px;
}

.chat .dialog button {
    position: absolute;
    bottom: 0;
    margin: 0;
}

.chat .dialog button.send {
    width: 120px;
    right: 0;
}

.chat .dialog button.copy {
    left: 0;
}

.chat .dialog form {
    position: absolute;
    left: 0;
    bottom: 120px;
    color: #666;
}

.chat .dialog form .but {
    color: #217095;
    text-decoration: underline;
    cursor: pointer;
}

.chat .dialog form .but span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 3px;
    margin-left: 2px;
    background: url("i/chat.png") no-repeat transparent 0 -87px;
}

.chat .dialog form img {
    display: inline-block;
    margin-bottom: -3px;
    margin-right: 4px;
}

.chat .commands {
    text-align: right;
    padding: 0 4px;
    color: #6F6F6F;
    vertical-align: top;
}

.chat .commands .network-messsage {
    display: none;
    float: left;
    font-size: 11px;
    padding-left: 20px;
    height: 14px;
    background: url("i/chat.png") no-repeat transparent 0 -68px;
}

.chat .commands span, .chat .commands a {
    display: inline-block;
    height: 14px;
}

.chat .commands .score {
    height: 14px;
    width: 70px;
    background: url('i/small-stars.png') repeat-x transparent 0 0;
    cursor: pointer;
    text-align: left;
}

.chat .commands .score span {
    display: inline-block;
    height: 14px;
    width: 14px;
    background: url('i/small-stars.png') repeat-x transparent 0 -14px;
}

.chat .commands .closed {
    color: #B02C2C;
    background: url('i/chat.png') no-repeat transparent -30px 2px;
    padding-left: 16px;
}

.chat .commands .timer {
    margin: 0 5px;
}

.chat .list {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    bottom: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #B2B9BC;
    padding-bottom: 10px;
}

.chat .list.files {
    bottom: 147px;
}

.chat .list div {
    padding-left: 20px;
    text-align: left;
    white-space: pre-line;
    padding-right: 20px;
}

.chat .list .icon {
    display: inline-block;
    margin-right: 6px;
    width: 7px;
    height: 8px;
    background: url('i/chat.png') no-repeat 0 0 transparent;
}

.chat .list .time {
    font-size: 10px;
    color: #3C3C3C;
    font-weight: normal;
    margin-right: 6px;
}

.chat .list .title {
    font-size: 11px;
    font-weight: bold;
    padding: 10px 0 0 6px;
}

.chat .list .system .icon {
    width: 8px;
    background-position: -22px 0;
}

.chat .list .my .icon {
    background-position: -15px 0;
}

.chat .list .they-1 .icon, .chat .list .they-2 .icon, .chat .list .they-3 .icon, .chat .list .they-4 .icon {
    background-position: -8px 0;
}

.chat .list .welcome .icon {
    width: 8px;
    height: 5px;
    background-position: 0 0;
    margin-bottom: 2px;
}

.chat .list .autoreply .icon {
    width: 9px;
    height: 9px;
    background-position: -30px -88px;
}

.chat .list .they-1 {
    color: #900;
}

.chat .list .they-2 {
    color: #23a77d;
}

.chat .list .they-3 {
    color: #fa6e50;
}

.chat .list .they-4 {
    color: #8c4d9b;
}

.chat .list .system {
    color: #2e2e2e;
}

.chat .list .welcome {
    color: #000;
    font-size: 12px;
    font-weight: normal;
}

.chat .list .autoreply {
    color: #000;
    font-size: 12px;
    font-weight: normal;
}

.chat .list .my {
    color: #217095;
}

.chat .list .typing {
    font-size: 11px;
    color: #666;
    margin: 6px 0 0 0;
}

.chat .list div:last-child {
    margin-bottom: 6px;
}

.chat .list .attachment {
    display: block;
    margin: 3px 0;
    white-space: nowrap;
    overflow: hidden;
}

.chat .list .attachment .icon {
    width: 12px;
    height: 16px;
    background: url('i/chat.png') transparent no-repeat -14px -86px;
    margin-right: 4px;
}

.chat .list .attachment .size {
    color: #666;
}

.chat .disabled .commands .network-messsage {
    display: inline-block;
}

.chat .closed .list {
    bottom: 36px;
}

.chat .closed button.send {
    display: none;
}

.chat .closed textarea {
    display: none;
}

.chat .closed form {
    display: none;
}

.chat .login .info {
    text-align: left;
    padding-top: 10px;
    padding-left: 125px;
    color: #333;
    font-size: 11px;
}



@media (max-width: 400px) {
    .chat .login{
        width: 100%;
        margin: 0;
        left: 0;
        margin-top: -145px !important;
    }
    .chat .login .title{
        padding-left: 0;
        margin-bottom: 15px;
    }
    .chat .login > div{
        margin-left: 10px;
        margin-right: 10px;
    }
    .chat .login label{
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    .chat .login input,
    .chat .login select{
        width: 100% !important;
        height: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    .chat .login button{
        width: 100%;
        margin-left: 0;
    }

}

.chat-logo {
    width: 280px;
    height: 75px;
}

@media (max-width: 768px) {
    .mobile {
        display: block;
    }
    .desktop {
        display: none;
    }
}
@media (min-width: 769px) {
    .mobile {
        display: none;
    }
    .desktop {
        display: block;
    }
}