/** 
 * 描述：手机版客服IM
 * by shopwt.com
 */
@charset "utf-8";

.wtm-message-list {
  background-color: #fff;
}
.wtm-message-list li {
  position: relative;
  z-index: 1;
  height: 3rem;
  border-bottom: solid 0.05rem #eee;
  margin: 0 1.5rem 0 3.2rem;
}
.wtm-message-list li .avatar {
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  bottom: 0.4rem;
  left: -2.7rem;
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  background-color: #eee;
  border-radius: 100%;
}
.wtm-message-list li .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 100%;
}
.wtm-message-list li .avatar sup {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 0.4rem;
  height: 0.4rem;
  background-color: #ff1558;
  border-radius: 100%;
}
.wtm-message-list li dl {
  display: block;
  padding: 0.4rem 0;
}
.wtm-message-list li dt {
  display: block;
  height: 1.2rem;
  font-size: 0.6rem;
  line-height: 1.2rem;
  color: #111;
}
.wtm-message-list li dd {
  display: block;
  height: 1rem;
  font-size: 0.6rem;
  line-height: 1rem;
  color: #666;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wtm-message-list li time {
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.55rem;
  line-height: 0.9rem;
  color: #bbb;
}
.wtm-message-list li .msg-list-del {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: -1rem;
  width: 1rem;
  height: 1rem;
  background-image: url(../images/del_b.png);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 60%;
  opacity: 0.5;
}
.wtm-chat-box {
  position: absolute;
  z-index: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #efefef;
}

.margin-heigh {
  display: block;
  width: 100%;
  height: 4.8rem;
}
.more {
  width: 95%;
  height: 0.05rem;
  line-height: 0.05rem;
  margin: 0 auto 1rem auto;
  position: relative;
}
.more a {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 5rem;
  margin-left: -2.5rem;
  background-color: #efefef;
  color: #888;
  text-align: center;
  font-size: 0.55rem;
  line-height: 0.9rem;
  top: -0.4rem;
}

.wtm-chat-product {
  width: 93%;
  margin: 0.5rem auto;
  padding: 0.5rem 0;
  border: solid 0.05rem #ddd;
  background-color: #fff;
  position: relative;
  z-index: 1;
}
.wtm-chat-product .goods-pic {
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
}
.wtm-chat-product .goods-pic img {
  width: 100%;
}
.wtm-chat-product .goods-content {
  margin: 0 0.5rem 0 3.5rem;
}
.wtm-chat-product .goods-name {
  font-size: 0.6rem;
  line-height: 0.6rem;
  height: 1.4rem;
  overflow: hidden;
  margin-bottom: 0.3rem;
  color: #000;
}
.wtm-chat-product .goods-price {
  font-size: 0.6rem;
  line-height: 0.9rem;
  height: 0.9rem;
  color: #ff1558;
  font-weight: 600;
}

.wtm-chat-con {
  position: absolute;
  z-index: auto;
  max-height: 100%;
  left: 0;
  right: 0;
  bottom: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
}
.wtm-chat-con dl {
  position: relative;
  min-height: 2.2rem;
  padding: 0.2rem 0;
  margin-bottom: 0.2rem;
  overflow: hidden;
}
.wtm-chat-con dl.msg-other {
  animation: optionMsgLeft 0.5s ease-in-out;
  -webkit-animation: optionMsgLeft 0.5s ease-in-out;
}
@keyframes optionMsgLeft {
  from {
    opacity: 0.5;
    left: -100%;
    right: 100%;
  }
  to {
    opacity: 1;
    left: 0;
    right: 0;
  }
}
@-webkit-keyframes optionMsgLeft {
  from {
    opacity: 0.5;
    left: -100%;
    right: 100%;
  }
  to {
    opacity: 1;
    left: 0;
    right: 0;
  }
}
.wtm-chat-con dl.msg-me {
  animation: optionMsgRight 0.5s ease-in-out;
  -webkit-animation: optionMsgRight 0.5s ease-in-out;
}
@keyframes optionMsgRight {
  from {
    opacity: 0.5;
    left: 100%;
    right: -100%;
  }
  to {
    opacity: 1;
    left: 0;
    right: 0;
  }
}
@-webkit-keyframes optionMsgRight {
  from {
    opacity: 0.5;
    left: 100%;
    right: -100%;
  }
  to {
    opacity: 1;
    left: 0;
    right: 0;
  }
}
.wtm-chat-con dl dt {
  width: 2rem;
  height: 2rem;
  position: absolute;
  z-index: 1;
  top: 0.3rem;
}
.wtm-chat-con dl dt i {
  width: 0.5rem;
  height: 0.5rem;
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100%;
}
.wtm-chat-con dl dt img {
  max-width: 2rem;
  max-height: 2rem;
  border-radius: 100%;
}
.wtm-chat-con dl.msg-other dt {
  left: 0.4rem;
}
.wtm-chat-con dl.msg-other dt i {
  left: 2.3rem;
  background-image: url(../images/msg_other.png);
}
.wtm-chat-con dl.msg-me dt {
  right: 0.4rem;
}
.wtm-chat-con dl.msg-me dt i {
  right: 2.3rem;
  background-image: url(../images/msg_me.png);
}
.wtm-chat-con dl dd {
  display: block;
  max-width: 10rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  min-height: 0.9rem;
  font-size: 0.6rem;
  line-height: 0.9rem;
  color: #000;
  word-wrap: break-word;
}
.wtm-chat-con dl dd img {
  background: #fff;
  max-width: 8rem;
  max-height: 8rem;
  padding: 0.2rem;
  border-radius: 0.3rem;
  vertical-align: text-bottom;
  margin: 0 0.2rem;
}
.wtm-chat-con dl dd span.msg-time {
  display: block;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 0.45rem;
  color: #999;
  line-height: 20px;
  text-align: left;
}
.wtm-chat-con dl dd span.msg-text {
  display: block;
  color: #333;
  line-height: 20px;
  max-width: 300px;
  font-size: 0.6rem;
  word-wrap: break-word;
}
.wtm-chat-con dl.msg-other dd {
  margin-left: 3rem;
  float: left;
  background-color: #fff;
}
.wtm-chat-con dl.msg-me dd {
  margin-right: 3rem;
  float: right;
  background-color: #ffd779;
}

.wtm-chat-bottom {
  position: absolute;
  z-index: auto;
  left: 0;
  right: 0;
  /* bottom: 0; kee */
  bottom: 5px;
  border-radius: 5px; /*kee add */
}
.chat-input-box {
  position: relative;
  z-index: 1;
  display: block;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
}
.chat-input-box .open-smile {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
}
.chat-input-box .open-smile a {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url(../images/smile_b.png);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 65%;
  opacity: 0.75;
}
.chat-input-box .input-box {
  position: absolute;
  z-index: 1;
  top: 0.24rem;
  right: 0.4rem;
  bottom: 0.24rem;
  left: 2rem;
  background: #f5f5f5;
  border: solid 0.05rem #eee;
  border-radius: 0.5rem;
}
.chat-input-box .input-box input[type="text"] {
  /* background-color: transparent; kee */
  border: none;
  width: 82%;
  height: 1.2rem;
  padding: 0.15rem 17% 0 1%;
  font-size: 0.6rem;
  /* line-height: 1.2rem; kee */
}
.chat-input-box .input-box .submit {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  font-size: .8rem; /*kee add */
  text-align: center; /*kee add */
  color: #fff; /*kee add */
  padding-top: .2rem; /*kee add */
  display: block;
  width: 1.8rem;
  /* height: 1.4rem; kee */
  height: 1.2rem;
  background-color: #4b89dc;
  /* background-image: url(../images/enter_w.png); kee */
  /* background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 55%; kee comment*/
  border: none;
  border-radius: 0.15rem;
}
.chat-smile-box {
  display: block;
  width: 100%;
  height: 4.2rem;
  background-color: #fafafa;
  border-top: solid 0.05rem #ddd;
}
.chat-smile-box ul {
  font-size: 0;
}
.chat-smile-box ul li {
  display: inline-block;
  width: 12.5%;
  height: 1rem;
  padding: 0.3rem 0 0 0;
  text-align: center;
  vertical-align: middle;
}
.chat-smile-box ul li img {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.send_goods_url {
  color: #fff;
  background: red;
  font-size: 0.5rem;
  padding: 4px 1em;
  border-radius: 12px;
}
/*发送图片 */
.chat-input-box .open-smile {
  display: block;
  height: 1.5rem;
  padding: 0.25rem;
  width: 3.1rem;
}
.chat-input-box .open-smile a {
  float: left;
  height: 1.5rem;
  opacity: 0.75;
  width: 1.5rem;
}
.wtm-upload {
  border: none;
  border-radius: 0.1rem;
  display: inline-block;
  float: right;
  height: 1.54rem;
  vertical-align: top;
  width: 1.54rem;
}
.chat-input-box .input-box {
  background: #f5f5f5 none repeat scroll 0 0;
  border: 0.05rem solid #eee;
  border-radius: 0.2rem;
  bottom: 0.24rem;
  left: 3.5rem;
  position: absolute;
  right: 0.4rem;
  top: 0.24rem;
  z-index: 1;
}

.header-r2 {
  position: absolute;
  z-index: 1;
  top: 0.3rem;
  right: 2.4rem;
  font-size: 0;
  text-align: right;
}
.header-r2 a.into_shop {
  text-align: center;
  margin: 0;
  padding: 0;
  display: block;
  font-size: 0.6rem;
  width: 2.2rem;
  height: 1.25rem;
  line-height: 1.25rem;
  background-color: #ff1558;
  border-radius: 1rem;
  color: #fff;
}
