/* 消息中心 - 客服 Tab 双入口 */
[class*="online-customers-wrapper"],
[class*="online-customers"] {
  background: transparent !important;
}

[class*="online-customers"] [class*="button-mobile"] {
  display: none !important;
}

[class*="other-customers"],
[class*="service-other-customers"] {
  display: none !important;
}

[class*="inner-online-customers"] {
  text-align: center;
  padding: 0.28rem 0.2rem 0.12rem;
}

[class*="default-title"] {
  font-size: 0.34rem !important;
  font-weight: 700 !important;
  color: #222 !important;
}

[class*="default-describe"] {
  margin-top: 0.12rem;
  font-size: 0.24rem !important;
  color: #999 !important;
  line-height: 1.5;
}

.cs-hub-picker-actions {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #f0f0f0;
  margin-top: 0.12rem;
}

.cs-hub-choice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.34rem 0.12rem;
  border: 0;
  background: #fff;
  color: #ff6700;
  font-size: 0.28rem;
  cursor: pointer;
}

.cs-hub-choice + .cs-hub-choice {
  border-left: 1px solid #f0f0f0;
}

.cs-hub-choice-img {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cs-hub-choice-text { font-weight: 500; }
.cs-hub-choice-arrow { font-size: 0.34rem; line-height: 1; opacity: 0.9; }

/* 用户在线客服页 - 图四 */
.cs-chat-page {
  min-height: 100vh;
  background: #f3f5f8;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
}

.csu-header {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.22rem 0.24rem;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.csu-back {
  border: 0;
  background: transparent;
  font-size: 0.5rem;
  line-height: 1;
  color: #333;
  padding: 0 0.08rem;
}

.csu-head-avatar {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  object-fit: cover;
}

.csu-head-title {
  font-size: 0.3rem;
  font-weight: 600;
}

.csu-head-status {
  font-size: 0.22rem;
  color: #16a34a;
  margin-top: 0.04rem;
}

.csu-agent-card {
  display: flex;
  gap: 0.2rem;
  margin: 0.2rem 0.24rem 0;
  padding: 0.24rem;
  background: #fff;
  border-radius: 0.16rem;
  box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.04);
}

.csu-agent-avatar {
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.csu-agent-name-row {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  flex-wrap: wrap;
}

.csu-agent-name {
  font-size: 0.3rem;
  font-weight: 700;
}

.csu-agent-badge {
  font-size: 0.2rem;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 0.08rem;
  padding: 0.04rem 0.1rem;
}

.csu-agent-desc {
  margin-top: 0.12rem;
  font-size: 0.24rem;
  color: #666;
  line-height: 1.5;
}

.csu-body {
  flex: 1;
  overflow: auto;
  padding: 0.24rem;
}

.csu-empty {
  text-align: center;
  color: #999;
  font-size: 0.26rem;
  padding: 1rem 0.4rem;
}

.csu-time {
  text-align: center;
  color: #999;
  font-size: 0.22rem;
  margin: 0.16rem 0;
}

.csu-row {
  display: flex;
  align-items: flex-end;
  gap: 0.12rem;
  margin-bottom: 0.2rem;
}

.csu-row.is-user {
  justify-content: flex-end;
}

.csu-row.is-agent {
  justify-content: flex-start;
}

.csu-msg-avatar {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.csu-bubble {
  max-width: 72%;
  padding: 0.2rem 0.24rem;
  border-radius: 0.16rem;
  font-size: 0.28rem;
  line-height: 1.5;
  word-break: break-word;
}

.csu-row.is-agent .csu-bubble {
  background: #fff;
  color: #333;
  border-bottom-left-radius: 0.04rem;
  box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.05);
}

.csu-row.is-user .csu-bubble {
  background: #3b82f6;
  color: #fff;
  border-bottom-right-radius: 0.04rem;
}

.csu-read {
  font-size: 0.2rem;
  color: #9ca3af;
  align-self: flex-end;
  padding-bottom: 0.06rem;
}

.csu-footer {
  display: flex;
  gap: 0.16rem;
  padding: 0.2rem 0.24rem calc(0.2rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #edf0f4;
}

.csu-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 0.12rem;
  padding: 0.18rem 0.22rem;
  font-size: 0.28rem;
  outline: none;
}

.csu-send {
  border: 0;
  border-radius: 0.12rem;
  padding: 0 0.28rem;
  background: #3b82f6;
  color: #fff;
  font-size: 0.28rem;
}
