/* 本站用本地客服窗；屏蔽第三方 Chatwoot 圆形钮 */
.woot--bubble-holder,
.woot-widget-bubble,
.woot-widget-holder,
#cw-bubble-holder,
#cw-widget-holder,
iframe[src*="chatwoot"] {
  display: none !important;
  pointer-events: none !important;
}

#bochk-live-chat-root {
  position: fixed;
  z-index: 10050;
  right: 16px;
  bottom: 16px;
  font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
}

#bochk-live-chat-root.bochk-chat-panel-open #bochk-chat-fab {
  display: none;
}

#bochk-chat-fab {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #990000;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#bochk-chat-panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 80px));
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#bochk-chat-panel[hidden] {
  display: none !important;
}

.bochk-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #990000;
  color: #fff;
  flex-shrink: 0;
}

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

.bochk-chat-toolbar {
  flex-shrink: 0;
}

.bochk-chat-login-hint {
  display: block;
  width: calc(100% - 20px);
  margin: 8px 10px 0;
  padding: 8px 10px;
  border: 1px solid #e0c4c4;
  border-radius: 8px;
  background: #fff8f8;
  color: #990000;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

#bochk-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 8px;
  background: #f3f3f3;
}

.bochk-chat-row {
  display: flex;
  align-items: flex-start;
  margin: 0 0 14px;
  gap: 8px;
}

.bochk-chat-row.is-visitor {
  justify-content: flex-end;
}

.bochk-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 3px;
}

.bochk-chat-agent-col {
  max-width: 82%;
}

.bochk-chat-msg {
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.bochk-chat-row.is-agent .bochk-chat-msg {
  background: #fff;
  color: #222;
  border: 1px solid #e8e8e8;
  border-top-left-radius: 6px;
}

.bochk-chat-agent-label {
  margin: 4px 0 0 4px;
  font-size: 12px;
  color: #888;
}

.bochk-chat-row.is-visitor .bochk-chat-msg {
  max-width: 78%;
  background: #a11919;
  color: #fff;
  border-top-right-radius: 6px;
}

.bochk-chat-img {
  display: block;
  max-width: min(220px, 70vw);
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.bochk-chat-video {
  display: block;
  max-width: min(220px, 70vw);
  border-radius: 10px;
}

.bochk-chat-upload-hint {
  flex-shrink: 0;
  min-height: 0;
  padding: 0 12px 4px;
  font-size: 12px;
  color: #990000;
  text-align: center;
}

.bochk-chat-attach-sheet {
  margin: 0 12px 6px;
  padding: 6px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid #ececec;
}

.bochk-chat-attach-sheet[hidden] {
  display: none !important;
}

.bochk-attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  text-align: left;
}

.bochk-attach-item + .bochk-attach-item {
  border-top: 1px solid #f0f0f0;
}

.bochk-attach-item:active {
  background: #fafafa;
}

.bochk-attach-ico {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #b5b5b5;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.bochk-ico-gallery {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5Z'/%3E%3C/svg%3E");
}

.bochk-ico-camera {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7h3l2-2h6l2 2h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2m8 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7h3l2-2h6l2 2h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2m8 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4'/%3E%3C/svg%3E");
}

.bochk-ico-folder {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z'/%3E%3C/svg%3E");
}

.bochk-chat-compose {
  flex-shrink: 0;
  padding: 0 10px 10px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  gap: 8px;
}

#bochk-chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ddd;
  flex: 1;
  min-width: 0;
}

#bochk-chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 6px 4px;
}

.bochk-compose-btn {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.bochk-chat-send-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 22px;
  min-width: 58px;
  height: 44px;
  padding: 0 16px;
  background: #990000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
}

.bochk-chat-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bochk-chat-send-btn:active {
  background: #770000;
}

.bochk-chat-powered {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

@media (max-width: 767px) {
  #bochk-live-chat-root {
    right: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
  }

  #bochk-chat-fab {
    pointer-events: auto;
    position: fixed;
    right: 12px;
    bottom: 12px;
  }

  #bochk-chat-panel {
    pointer-events: auto;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: min(78vh, 640px);
    border-radius: 16px 16px 12px 12px;
  }
}