#salesally-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  /* 用于动画和整体控制 */
  pointer-events: none; /* 防止遮挡页面 */
}

#salesally-chat-floating {
  position: relative;   /* 改掉 fixed */
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  pointer-events: auto; /* 恢复点击能力 */
}

/* ====== 初始态：招呼气泡 ====== */
#salesally-greeting-bubble {
  background: #F2F2F2;
  border-radius: 20px;
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  margin-bottom: 10px;
  max-width: 240px;
}

/* ====== AI头像（悬浮按钮态） ====== */
#salesally-chat-avatar {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  cursor: pointer;
  float: right;
}

#salesally-chat-avatar img {
  width: 100%;
  height: 100%;
}

/* ====== 对话窗口 ====== */
#salesally-chat-window {
  position: absolute;   /* 相对于 #chat-parent */
  right: 0;
  bottom: 0;
  width: 360px;         /* 保持你现有尺寸 */
  height: 630px;
  background: #fff;
  border: 1px solid #D7D7D7;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}

/* ====== 标题栏 ====== */
#salesally-chat-header {
  height: 40px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  position: relative;
}

/* ====== 右侧按钮 ====== */
.salesally-header-btn {
  width: 15px;
  height: 15px;
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
}

/* ====== 问号悬浮提示 ====== */
#salesally-help-tip {
  position: absolute;
  top: 40px;
  right: 0;
  background: #F2F2F2;
  border-radius: 20px;
  padding: 15px;
  font-size: 15px;
  font-weight: 300;
  line-height: 150%;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 240px;
}

/* ====== iframe 容器 ====== */
#salesally-iframe-wrapper {
  flex: 1;
  width: 100%;
}

#salesally-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}