.mmsg {

}

.mmsg-top {
    margin: 10px;
    padding: 5px;
    border-bottom: #CCC 1px solid;
    text-align: center;
    font-size: 11px;
}

.mmsg-top p {
    font-size: 9px;
    color: #FFF;
}

.mmsg-main {
    width: 509px;
    min-height: 400px;
    float: left;
    overflow: hidden;
    border-right: #CCC 1px solid;
}

.mmsg-side {
    width:225px;
    float: right;
}

.mmsg-hide {
    height: 400px;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 220px;
}

.mmsg-contacts {
    width: 225px;
    min-height: 390px;
    margin-top: 10px;
}

.mmsg-contacts li a.active {
    background-color: #fdffcd !important;
    text-decoration: none;
}

.mmsg-contacts li a {
    display: block;
    height: 14px;
    padding: 11px 20px 11px 41px;
    position: relative;
}

.mmsg-contacts .image {
    position: absolute;
    z-index: 1;
    left: 8px;
    top: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
}
.mmsg-login {
    margin-top: -6px;
}
.mmsg-status-online {
    position: absolute;
    width: 7px;
    height: 7px;
    background: url(../images/sprite-popup.png) no-repeat -115px -43px;
    z-index: 1;
    left: 162px;
    top: 9px;
}
.mmsg-msg {
	width: 100%;
    display: flex;
}
.mmsg-contacts a:hover {
    text-decoration: none;
}
.mmsg-msg.mine {
    display: block;
	text-align: right;
}
.mmsg-msg .ms {
	padding: 5px 10px;
    position: relative;
    /*border: #CCC 1px solid;*/
    background: #EEE;
    border-radius: 5px;
    margin: 2px 10px;
	max-width: 70%;
	display: inline-block;
    word-wrap: break-word;
}
.mmsg-msg.mine .ms {
    /*border-color: #86aacb;*/
    background: #d4e8fa;
    /*color: #FFF;*/
}
.mmsg-window-hold {
    position: relative;
    margin: 10px;
    height: 309px;
    overflow: hidden;
}
.mmsg-write {
	margin: 10px;
	padding: 5px 10px;
    border-bottom: #CCC 1px solid;
}
.mmsg-tools textarea {
	width: 472px;
	padding: 5px 30px 5px 20px;
	border: none;
	outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.mmsg-write .smileholder {
	top: 440px;
}
.mmsg-write .smilechoose {
	width: 485px;
}
.mmsg-msg#my-message div, .mmsg-msg#my-message p, .mmsg-msg#my-message span {
	margin: 5px 10px 0;
    display: none;
}
.mmsg-tools .m-gift {
    background-image: url(../images/sprite-popup.png);
    background-repeat: no-repeat;
    margin: 5px 16px 0 7px;
    cursor: pointer;
}
.mmsg-buts {
    display: flex;
}
.mmsg-ava {
    display: inline-block;
    width: 18px;
    max-height: 18px;
    height: auto;
    border-radius: 3px;
    margin: 5px 0 -4px;
}
.mmsg-last-msg {
    height: 10px;
    overflow: hidden;
    font-size: 9px;
    line-height: 9px;
    color: #AAA;
}
.mmsg-last-msg img {
    display: none;
}
.gap {
    margin-top: 10px;
}
.mmsg-date {
    margin: 20px 5px 0;
    text-align: center;
    color: #AAA;
}
#my-message, textarea {
    word-wrap: break-word;
}
#my-message span {
    margin: 3px 10px -6px;
    font-size: 8px;
    color: #AAA;
    display: block;
}
.mmsg-start {
    display: block;
    padding: 130px 160px 100px;
    color: #AAA;
    font-size: 12px;
    text-align: center;
    opacity: 0;
}
.mmsg-start .mmsg-arr {
    font-size: 36px;
    color: #FFF;
    text-shadow: 0 0 3px #999;
}
.mmsg-new:after {
    content: "NEW";
    padding: 0 4px;
    margin-left: 100px;
    background: #F00;
    font-size: 10px;
    font-style: normal;
    color: #FFF;
}
.mmsg-main .mes-cont {
    min-height: 270px !important;
}
.i-newmsg {
    position: absolute;
    width: 18px;
    top: 7px;
    left: 180px;
    height: 12px;
    background-position: -60px -50px !important;
}
.new-msg-dialogue {
    background: #EEE;
}

.mmsg-credits, 
.mmsg-vip, 
.mmsg-fav-add, 
.mmsg-fav-remove, 
.mmsg-block, 
.mmsg-unblock,
.mmsg-abuse {
    width: 20px;
    height: 20px;
    margin: 0 5px;
    cursor: pointer;
}

.mmsg-credits {
    background: url(../images/sprite.png?12) no-repeat -50px -126px;
}
.mmsg-vip {
    background: url(../images/sprite.png?12) no-repeat -320px -47px;
    margin-top: 1px;
}
.mmsg-fav-add {
    background: url(../images/sprite.png?12) no-repeat -100px -67px;
    margin-top: 1px;
}
.mmsg-fav-remove {
    background: url(../images/sprite.png?12) no-repeat -120px -67px;
    margin-top: 1px;
}
.mmsg-block {
    background: url(../images/sprite.png?12) no-repeat -340px -47px;
    margin: 2px;
}
.mmsg-unblock {
    background: url(../images/sprite.png?12) no-repeat -181px -69px;
    margin: 2px;
}
.mmsg-abuse {
    background: url(../images/sprite.png?12) no-repeat -201px -67px;
    margin: 0;
}
.mmsg-lettercount {
    margin: 0 65px 0 10px;
}
.mmsg-send {
    min-width: 60px;
    text-align: center;
    cursor: pointer;
}
.mmsg-preloader {
    display: block;
    width: 20px;
    height: auto;
    margin: auto;
}
.noscroll {
    margin: 0;
    height: 100%;
    overflow: hidden;
}
@media only screen and (max-device-width: 480px) { 
  textarea {
    font-size: 2.5vw !important;
    line-height: 3vw !important;
  }
}