/* 深小服侧栏 + 未读红点 */
.new-online-side-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.35);
}
.new-online-side-mask.is-open {
  display: block;
}
.new-online-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 4001;
  width: 600px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(40, 40, 43, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.new-online-side-panel.is-open {
  transform: translateX(0);
}
.new-online-side-panel__hd {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #E4E9F0;
}
.new-online-side-panel__title {
  font-size: 16px;
  font-weight: 500;
  color: #28282B;
}
.new-online-side-panel__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #5B5F69;
  cursor: pointer;
  padding: 4px 8px;
}
.new-online-side-panel__bd {
  flex: 1;
  min-height: 0;
}
.new-online-side-panel__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
body.new-online-side-open {
  overflow: hidden;
}

/* 在线客服未读数量角标 */
.right-feedback .service .msg-red,
#msg-red.msg-red {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #F53F3F;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

/* 右下角未读提示 */
.new-online-unread-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5000;
  max-width: 320px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #E4E9F0;
  box-shadow: 0 4px 16px rgba(197, 205, 223, 0.35);
  color: #F53F3F;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.new-online-unread-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
