#vanvc-live-chat-root {
  position: fixed;
  right: 0px;
  bottom: 90px; /* 如果你有底部导航，可调大一些 */
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transform: translateX(-25%);
  transition: transform .5s;
}

/*#vanvc-live-chat-root:hover{*/
/*    transform: translateX(-35%);*/
/*}*/

.vanvc-chat-btn {
  background: #fff;
  /*color: #fff;*/
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.vanvc-chat-panel {
  position: fixed;
  right: 14px;
  bottom: 90px;
  width: 320px;
  max-width: calc(100vw - 28px);
  height: 420px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
}

.vanvc-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vanvc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  padding: 10px 12px;
}

.vanvc-chat-title {
  font-weight: 800;
  font-size: 14px;
}

.vanvc-chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.vanvc-chat-body {
  padding: 10px 10px;
  height: calc(100% - 44px - 56px - 24px);
  overflow: auto;
  background: #f7f7f7;
  flex: 1;
}

.vanvc-chat-msg {
  display: flex;
  margin: 8px 0;
}

.vanvc-chat-msg.me {
  justify-content: flex-end;
}

.vanvc-chat-msg .bubble {
  max-width: 76%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  background: #fff;
  border: 1px solid #e7e7e7;
}

.vanvc-chat-msg.me .bubble {
  background: #111;
  color: #fff;
  border-color: #111;
}

.vanvc-chat-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

.vanvc-chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px 10px;
  outline: none;
  font-size: 13px;
}

.vanvc-chat-send {
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vanvc-chat-status {
  padding: 6px 10px;
  font-size: 12px;
  color: #666;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-content: center;
  transform: translateX(0%);
  transition: transform .3s;
}

.vanvc-chat-status.is-hidden{
    transform: translateX(-100%);
    height: 0px;
    padding: 0px;
    border: none;
}

.vanvc-chat-status span{
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vanvc-chat-status svg{
    cursor: pointer;
    margin-left: 10px;
}

/* Mobile: make panel larger and easier to type */
@media (max-width: 480px) {
  #vanvc-live-chat-root {
    right: 10px;
    bottom: 86px;
  }
  .vanvc-chat-panel {
    right: 10px;
    bottom: 86px;
    width: calc(100vw - 20px);
    height: 60vh;
    max-height: 70vh;
  }
}
