/** 
 * 描述：手机版客服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.7rem; 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.7rem; line-height: 0.7rem; 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.7rem; 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.7rem; 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;}
.chat-input-box { position: relative; z-index: 1; display: block; height: 2rem; background-color: rgba(255,255,255,0.90)}
.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.2rem;}
.chat-input-box .input-box input[type="text"] { background-color: transparent; border: none; width: 82%; height: 1.2rem; padding: 0.15rem 17% 0 1%; font-size: 0.6rem; line-height: 1.2rem;}
.chat-input-box .input-box .submit{ position: absolute; z-index: 1; top: 0; right:0; display: block; width: 2.0rem; height: 1.4rem; background-color: #36c88e;  background-repeat: no-repeat; background-position: 50% 50%; background-size: 55%; border: none; border-radius: 0.15rem;color: #fff;font-size: 0.65rem;text-align: center;line-height: 1.4rem;font-weight: 500;}
.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;}
a.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;}