.iChat {
    padding: 3px;
}

.iChat .message {
    font-size: 11px;
    font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
    line-height: 1.27;
    word-wrap: break-word;
}

.iChat .message {
    border: 1px solid;
    border-color: rgb(218, 218, 218);
    background-color: #FFFFFF;
    margin-left: 3px;
    margin-right: 3px;
    margin-bottom: 1px;
    margin-top: 2px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    padding: 3px;
}

.iChat .message:hover {
    border-color: #cccccc;
}

.iChat .clr {
    clear: both;
}

.iChat .message div {
    margin: 0;
    padding: 0;
}

.iChat .message .info {
    display: block;
    margin-top: 2px;
    color: #969696;
    background-color: rgb(240, 247, 252);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    position: relative;
}

.iChat .message .info .pinned-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: url('../img/pined.png') no-repeat;
    background-size: contain;
    border: none;
    box-sizing: border-box;
    display: none;
}

.iChat .message.pinned {
    border-color: rgb(205, 10, 10);

    -webkit-transition: border-color 1s linear;
    -ms-transition: border-color 1s linear;
    transition: border-color 1s linear;
    animation: borderAnimation linear 2s;
    animation-iteration-count: infinite;
    -webkit-animation: borderAnimation linear 2s;
    -webkit-animation-iteration-count: infinite;
    -moz-animation: borderAnimation linear 2s;
    -moz-animation-iteration-count: infinite;
    -o-animation: borderAnimation linear 2s;
    -o-animation-iteration-count: infinite;
    -ms-animation: borderAnimation linear 2s;
    -ms-animation-iteration-count: infinite;
}

.iChat .message.pinned .info .pinned-icon {
    display: block;
}

@keyframes borderAnimation {
    0% {
        border-color: rgb(218, 218, 218);
    }
    50% {
        border-color: rgb(205, 10, 10);
    }
    100% {
        border-color: rgb(218, 218, 218);
    }
}

@-moz-keyframes borderAnimation {
    0% {
        border-color: rgb(218, 218, 218);
    }
    50% {
        border-color: rgb(205, 10, 10);
    }
    100% {
        border-color: rgb(218, 218, 218);
    }
}

@-webkit-keyframes borderAnimation {
    0% {
        border-color: rgb(218, 218, 218);
    }
    50% {
        border-color: rgb(205, 10, 10);
    }
    100% {
        border-color: rgb(218, 218, 218);
    }
}

@-o-keyframes borderAnimation {
    0% {
        border-color: rgb(218, 218, 218);
    }
    50% {
        border-color: rgb(205, 10, 10);
    }
    100% {
        border-color: rgb(218, 218, 218);
    }
}

@-ms-keyframes borderAnimation {
    0% {
        border-color: rgb(218, 218, 218);
    }
    50% {
        border-color: rgb(205, 10, 10);
    }
    100% {
        border-color: rgb(218, 218, 218);
    }
}

.iChat .button {
    background: #fff url("../img/button.png") repeat-x 0 100%;
    text-shadow: 0 1px 0 #fff;
    border: 1px solid #b3b3b3;
    color: #383838;
    padding: 2px 9px 5px 9px;
    margin-bottom: 2px !important;
    height: 24px;
    font-weight: bold;
    cursor: pointer;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -moz-box-shadow: 0 1px 4px -3px black;
    -webkit-box-shadow: 0 1px 4px -3px black;
    box-shadow: 0 1px 4px -3px black;
}

.iChat .button:hover {
    background-position: 0 10px;
}

.iChat .message .text {
    margin-left: 5px;
    margin-top: 5px;
    font-size: 12px;
    clear: both;
}

.iChat .message a {
    color: #176093;
}

.iChat .message .action {
    opacity: 0.3;
    cursor: pointer;
}

.iChat .message .action:hover {
    opacity: 1;
}

.iChat .message hr {
    border: 0 none;
    border-top: 1px solid #dbe8ed;
    height: 1px;
}

.iChat .message .avatar img {
    margin-right: 5px;
    float: left;
    height: 32px;
    width: 32px;
    background-color: #FCFCFF;
    border: 1px solid #A5CAE4;
    border-radius: 4px 4px 4px 4px;
    padding: 2px;
    position: relative;
    z-index: 1;
}

.iChat .copyright {
    font-size: 9px;
    padding-right: 5px;
    float: right;
    color: #969696;
}

.iChat .copyright a {
    font-size: 10px;
    color: #176093;
}

.iChat_input {
    width: 99px;
    padding: 1px;
}

.iChat_bbeditor {
    border: 1px solid #d4dfe8;
    background: #fff url("../img/bbcode/bg.png") repeat;
}

.iChat_bbeditor span, .iChat_bbeditor span img, .iChat_bbeditor .bbspacer, .iChat_bbeditor .bbselect {
    float: left;
}

.iChat_bbeditor .bbselect {
    height: 21px;
    padding: 4px 3px 0 3px;
}

.iChat_bbeditor .bbselect select {
    font-size: 11px;
}

.iChat_bbeditor span {
    cursor: pointer;
    background: url("../img/bbcode/buttons.png") no-repeat;
}

.iChat_bbeditor span:hover {
    background-position: -23px 0;
}

.iChat_editor {
    width: 99% !important;
    background-color: #f9fafa;
    border: 1px solid #d4dfe8;
}

.iChat_editor .iChat_bbeditor {
    border-width: 0 0 1px 0;
}

.ui-corner-all {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

#message {
    width: 99%;
    height: 60px;
    display: block;
    background: #fff url(../img/logotype.png) center no-repeat;
    border: 1px solid #c2c2c2;
}

