#wic-chat {
    position: fixed;
    bottom: 0;
    right: 40px;
    z-index: 201;
    width: 300px;
    background: #333333;
    color: #f8f8f8;
    padding: 20px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-radius: 4px 4px 0 0;
    box-shadow: rgba(0,0,0,0.6) 0 0 10px 0;
    -webkit-box-shadow: rgba(0,0,0,0.6) 0 0 10px 0;
    -moz-box-shadow: rgba(0,0,0,0.6) 0 0 10px 0;    
}

#wic-chat.wic-hide-chat {
    cursor: pointer;
    text-align: center;
}
#wic-chat.wic-hide-chat:hover { background: #395; }
#wic-chat.wic-hide-chat #wic-close-chat,
#wic-chat.wic-hide-chat article { display: none; }

#wic-chat * {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
}

#wic-chat > header {
    line-height: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

#wic-chat .wic-messages {
    max-height: 300px;
    overflow-y: scroll;
    background: #f0f0f0;
    color: #111;
    margin-bottom: 20px;
}

#wic-chat .wic-messages .wic-msg {
    padding: 10px;
    border-bottom: 2px solid #666;
    background: #ccffcc;
}

#wic-chat .wic-messages .wic-msg header {
    font-size: 10px;
    margin-bottom: 4px;
}

#wic-chat .wic-messages .wic-msg p {
    margin: 0;
    padding: 0;
}

#wic-chat .wic-messages .wic-msg.wic-from-admin {
    background: #FFFFCC;
    text-align: right;
}

#wic-chat input {
    border: 0;
    box-shadow: 0;
    line-height: 30px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 2px;
}

#wic-chat textarea {
    border: 0;
    box-shadow: 0;
    border-radius: 2px;
    margin-bottom: 10px;
    line-height: 18px;
    padding: 6px 10px;
}

#wic-chat input[type="submit"] {
    background: #395;
    color: #f8f8f8;
    cursor: pointer;
    outline: 0;
}
#wic-chat input[type="submit"]:hover { background: #385; }
#wic-chat input[type="submit"]:active { background: #384; }
.w-closed { display: none; }

#wic-load-more {
    border: 0;
    background: transparent;
    line-height: 30px;
    font-size: 12px;
    cursor: pointer;
    display: none;
}

#wic-load-more:hover {
    color: #359;
}

#wic-chat-error {
    position: absolute;
    bottom: 280px;
    width: 200px;
    left: 0;
    right: 0;
    margin: 0  auto;
    padding: 10px;
    background: rgba(165, 90, 90, .9);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    box-shadow: rgba(0,0,0,0.2) 0 2px 5px 0;
    -webkit-box-shadow: rgba(0,0,0,0.2) 0 2px 5px 0;
    -moz-box-shadow: rgba(0,0,0,0.2) 0 2px 5px 0;
    display: none;
}

#wic-load-more.wic-show-btn {
    display: inherit;
}

#wic-close-chat {
    display: block;
    border: 0;
    background: url('close.png');
    width: 30px;
    height: 30px;
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    border-radius: 30px;
    outline: 0;
}

#wic-close-chat:hover {
    box-shadow: rgba(0,0,0,0.5) 0 0 6px 0;
    -webkit-box-shadow: rgba(0,0,0,0.5) 0 0 6px 0;
    -moz-box-shadow: rgba(0,0,0,0.5) 0 0 6px 0;
}

.wic-admin-online:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #395;
}