#gyOnlineContactModal .modal-from {
  display: flex;
  padding-bottom: 0;
}
#gyOnlineContactModal .modal-from-top {
  background-color: #fff;
  border-bottom: 1px solid #e2e2e2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
#gyOnlineContactModal .gy-modal-left-box {
  width: 70%;
  border-right: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
}
#gyOnlineContactModal .gy-modal-right-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#gyOnlineContactModal .modal-from-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  width: 100%;
}

/* 更多-start */
#gyOnlineContactModal .onlineMore-container .hiddenMore {
  display: none !important;
}
#gyOnlineContactModal .onlineMore-bubble {
  position: absolute;
  display: inline-block;
  color: #555;
  background: #fff;
  width: 110px;
  top: 140%;
  right: -5px;
  padding: 3px 8px;
  /* 优化盒子阴影：从箭头下方开始产生阴影，避免与箭头阴影重叠 */
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  z-index: 12;
}
#gyOnlineContactModal .onlineMore-bubble::before {
  content: "";
  border: 6px solid transparent;
  border-bottom-color: #fff;
  position: absolute;
  top: -12px;
  right: 10px;
  /* 精确调整箭头阴影：向上微移+减小模糊，避免与盒子阴影衔接处产生横线 */
  filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.09));
  /* 关键：用背景色覆盖可能的阴影残留（箭头边缘若有阴影溢出时） */
  background-clip: padding-box;
}

#gyOnlineContactModal .gy-onlineMore-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}

#gyOnlineContactModal .onlineMore-text {
  font-size: 12px;
  color: #333333;
}

#gyOnlineContactModal .onlineMore-badge {
  display: inline-block;
  width: 30px;
  background-color: red;
  color: #fff !important;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
}

/* 下拉 */
#gyOnlineContactModal .toggle-btn {
  width: 35px;
  height: 18px;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  background-color: #f1f1f1;
  transition: transform 0.3s ease;
}
/* 滑块样式 */
#gyOnlineContactModal .toggle-btn .slider {
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}
/* 激活状态样式 */
#gyOnlineContactModal .toggle-btn.active {
  background-color: #4285f4; /* 蓝色，可自定义 */
}
#gyOnlineContactModal .toggle-btn.active .slider {
  transform: translateX(18px); /* 滑块右移距离 = 容器宽度 - 滑块宽度 */
}
/* 更多-end */

/* 左侧-聊天内容框-start */
#gyOnlineContactModal .modal-from-gyContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#gyOnlineContactModal .modal-from-gyContent .gyChatContentBox {
  width: 100%;
  height: 65%;
  padding: 10px;
  background-color: #f6f6f6;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
}

/* 聊天滚动条样式调整-start */
/* 整体左侧 */
#gyOnlineContactModal .modal-from-gyContent::-webkit-scrollbar-track-piece {
  background-color: #f8f8f8;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
#gyOnlineContactModal .modal-from-gyContent::-webkit-scrollbar {
  width: 4px;
}

#gyOnlineContactModal .modal-from-gyContent::-webkit-scrollbar-thumb {
  background-color: #dddddd;
  background-clip: padding-box;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
#gyOnlineContactModal .modal-from-gyContent::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
/* 聊天记录框 */
#gyOnlineContactModal .gyChatContentBox::-webkit-scrollbar-track-piece {
  background-color: #f8f8f8;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
#gyOnlineContactModal .gyChatContentBox::-webkit-scrollbar {
  width: 4px;
}

#gyOnlineContactModal .gyChatContentBox::-webkit-scrollbar-thumb {
  background-color: #dddddd;
  background-clip: padding-box;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
#gyOnlineContactModal .gyChatContentBox::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
/* 聊天滚动条样式调整-end */

.gyChatContentBox .chatTipsBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: 8px;
  background: #e6f7ff;
  box-sizing: border-box;
  border: 1px solid #91d5ff;
  /* margin: 0 10px 15px; */
  position: sticky;
  z-index: 10; 
  top: 0
}
.gyChatContentBox .noNewsBox {
  font-size: 12px;
  color: #999999;
  text-align: center;
  margin-top: 10px;
}

.gyChatContentBox .gyChatList {
  width: 100%;
}
.gyChatContentBox .gyChatList .productContactTalk,
.gyChatContentBox .gyChatList .yourselfSendTalk {
  margin-bottom: 20px;
}
.gyChatContentBox .gyChatList .productContactTalk {
  display: flex;
  justify-content: start;
}
.gyChatContentBox .gyChatList .yourselfSendTalk {
  display: flex;
  justify-content: end;
}
.gyChatList .productContactTalk .contactAva,
.gyChatList .yourselfSendTalk .yourselfAva {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #156bff;
}
.gyChatList .yourselfSendTalk .yourselfAva {
  background-color: #fff;
  color: #000;
}
.productContactTalk .contactMsg,
.yourselfSendTalk .yourselfMsg {
  flex: 1;
}
.productContactTalk .contactMsg .contactTime,
.yourselfSendTalk .yourselfMsg .yourselfTime {
  font-size: 10px;
  color: #9e9e9e;
}
.productContactTalk .contactMsg .contactText,
.yourselfSendTalk .yourselfMsg .yourselfText {
  border-radius: 5px;
  background: #ffffff;
  padding: 5px 8px;
  box-sizing: border-box;
  color: #333333;
  font-size: 10px;
  font-weight: bold;
  min-width: 33%;
  min-height: 48px;
  max-width: 85%;
  /* 当内容出现多行时(文字+图片+文字+图片) 多条记录会挤出去 */
  display: flex;
  flex-direction: column;
}
.productContactTalk .contactMsg .contactText img,
.yourselfSendTalk .yourselfMsg .yourselfText img {
  width: 100%;
  height: 100%;
}
.productContactTalk .contactMsg {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.productContactTalk .contactMsg .contactTime {
  margin-left: 5px;
}
.yourselfSendTalk .yourselfMsg {
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  align-items: end;
}
.yourselfSendTalk .yourselfMsg .yourselfTime {
  margin-right: 5px;
}

/* 左侧底部商品信息和输入框 */
.gyChatBottomBox {
  width: 100%;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.gyChatBottomBox .producInfoBox {
  width: 100%;
  height: 65px;
  border-bottom: 1px solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 14px 3px 7px;
  box-sizing: border-box;
}
.gyChatBottomBox .producInfoBox .gyProImg {
  width: 50px;
  height: 50px;
  border: 1px dashed #d8d8d8;
}
.producInfoBox .gyProImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gyChatBottomBox .producInfoBox .gyProInfo {
  flex: 1;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 0;
  box-sizing: border-box;
}
.producInfoBox .gyProInfo .proName {
  font-weight: bold;
  font-size: 10px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.producInfoBox .gyProInfo .proData {
  font-size: 10px;
  font-weight: bold;
  color: #808080;
}
.gyChatBottomBox .producInfoBox .gyProPhoneBtn {
  opacity: 1;
  width: 60px;
  height: 22px;
  border-radius: 60px;
  background: #ffffff;
  text-align: center;
  line-height: 22px;
  font-size: 10px;
  font-weight: bold;
  color: #156bff;
  box-sizing: border-box;
  border: 1px solid #156bff;
  margin-left: 20px;
  cursor: pointer;
}

/* 底部聊天输入 */
.gyChatBottomBox .gyInputBox {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 8px;
  box-sizing: border-box;
}
/* .gyChatBottomBox  .gyInputBox .uploadIcon{
    height: 20px;
} */
.gyChatBottomBox .gyInputBox .gyInputMsg {
  flex: 1;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 10px;
  color: #000000;
  padding: 10px 10px 5px;
  box-sizing: border-box;
}
.gyInputBox .gyInputMsg .gy-word {
  height: 107px;
  overflow: auto;
  background-color: #f5f5f5;
}
.gyInputMsg .gy-word div {
    max-width: 100%;
  }
.gyInputBox .gyInputMsg .gy-word img {
  max-width: 100%;
}
.gyInputBox .gyInputMsg .gy-word:empty::before {
  content: attr(placeholder);
  color: #c0c4cc;
}

.gyInputBox .gyInputMsg .gy-word:focus::before {
  content: none;
}
.gyInputBox .gyInputMsg .gy-word::-webkit-scrollbar-track-piece {
  background-color: #f8f8f8;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

.gyInputBox .gyInputMsg .gy-word::-webkit-scrollbar {
  width: 4px;
}

.gyInputBox .gyInputMsg .gy-word::-webkit-scrollbar-thumb {
  background-color: #dddddd;
  background-clip: padding-box;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

.gy-word::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}
.gyInputBox .gyInputMsg .gy-send-btn {
  cursor:pointer;
  width: 60px;
  height: 22px;
  border-radius: 60px;
  background: #156bff;
  text-align: center;
  /* line-height: 22px; */
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  box-sizing: border-box;
  border: 1px solid #156bff;
  margin-top: 5px;
}
/* 左侧-聊天内容框-end */

/* 右侧-聊天列表-start */
#gyOnlineContactModal .modal-from-gyList{
    width: 100%;
    height: 100%;
    overflow: auto;
}
#gyOnlineContactModal .modal-from-gyList::-webkit-scrollbar-track-piece {
    background-color: #f8f8f8;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }
  #gyOnlineContactModal .modal-from-gyList::-webkit-scrollbar {
    width: 4px;
  }
  
  #gyOnlineContactModal .modal-from-gyList::-webkit-scrollbar-thumb {
    background-color: #dddddd;
    background-clip: padding-box;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }
  #gyOnlineContactModal .modal-from-gyList::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
  }
#gyOnlineContactModal .modal-from-gyList .chatPartnerList {
  width: 100%;
}
.chatPartnerList .chatPartnerList-item {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    border-bottom: 1px solid #d8d8d8;
    box-sizing: border-box;
    cursor: pointer;
}
.chatPartnerList .chatPartnerList-item .chatPartnerList-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #156bff;
}
.chatPartnerList .chatPartnerList-item .chatPartnerList-lastMessage {
    flex: 1;
    margin:0 5px;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.chatPartnerList .chatPartnerList-item  .chatPartnerList-badge{
    display: inline-block;
	width: 38px;
	background-color: red;
	color: #fff !important;
	font-size: 10px;
    /* padding: 0 5px; */
	border-radius: 10px;
	box-sizing: border-box;
	text-align: center;
}
/* 勿扰 */
.chatPartnerList .chatPartnerList-item .chatPartnerListDot {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #156bff;
}

.chatPartnerList .chatPartnerList-item .chatPartnerListDot::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
}
/* 置顶 */
.chatPartnerList .pinned-item {
  background: #eef6ff;
}
/* 选中 */
.chatPartnerList .gyNowChat-item {
  background: #f5f5f5;
}
/* 右侧-聊天列表-end */

/* 联系电话弹窗 -start*/
#gyContactPhoneBox .gyContactBoxContent{
    padding: 15px;
    font-size: 14px;
    color: #333333;
    box-sizing: border-box;
}
#gyContactPhoneBox  .gyContactPhoneBtn{
  width: 56px;
  height: 32px;
  border-radius: 4px;
  background: #3A69F9;
  color: #fff;
}
/* 联系电话弹窗 -end*/
