/* H5 dimensions for the voice-only controls; legacy compiled rpx values are invalid CSS. */
body.pages-chat-chat .message-list .message-item .bubble .voice-content {
  height: 24px;
  min-width: 72px;
  max-width: 220px;
  gap: 4px;
}
body.pages-chat-chat .message-list .message-item .bubble .voice-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
body.pages-chat-chat .message-list .message-item .bubble .voice-duration {
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
}
body.pages-chat-chat .uc-voice-btn {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Voice and text are rendered mutually exclusively; never force a hidden text box visible. */
body.pages-chat-chat .wechat-input-container.uc-voice-mode .input-wrapper {
  display: flex !important;
  align-items: stretch;
  height: var(--composer-height, 40px) !important;
  min-height: var(--composer-height, 40px) !important;
}
body.pages-chat-chat .wechat-input-container.uc-voice-mode .input-wrapper-ios {
  height: var(--composer-height, 40px) !important;
  min-height: var(--composer-height, 40px) !important;
}
body.pages-chat-chat .wechat-input-container.uc-voice-mode .voice-slot-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}
body.pages-chat-chat .wechat-input-container.uc-voice-mode .uc-voice-btn {
  height: 100% !important;
  min-height: 0;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}
body.pages-chat-chat .wechat-input-container.uc-voice-mode .uc-voice-btn:active,
body.pages-chat-chat .wechat-input-container.uc-voice-mode .uc-voice-btn-recording {
  background: #e5e5e5;
}
body.pages-chat-chat .uc-voice-btn, body.pages-chat-chat .uc-voice-btn * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  touch-action: none;
}
body.pages-chat-chat .uc-voice-btn .uc-voice-btn-text {
  font-size: 14px;
  line-height: 1;
  color: #333;
  pointer-events: none;
}
body.pages-chat-chat .record-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .05);
  pointer-events: none;
}
body.pages-chat-chat .record-panel {
  min-width: 180px;
  max-width: 260px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .75);
  box-sizing: border-box;
  text-align: center;
}
body.pages-chat-chat .record-panel.cancel {
  background: rgba(255, 77, 79, .85);
}
body.pages-chat-chat .record-text {
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}
