/* chinaauction25 read-only browsing. The proxy already blanked every seller
   contact (WhatsApp, WeChat, phone, QR) server-side; the buttons and panels
   that led to them are hidden so pages do not offer what cannot work.
   che168 builds class names as <Module>_<name>__<hash>; the hash changes per
   deploy, so rules match on the stable prefix. */
[class*="Header_chatBtn__"],
[class*="Header_floatingChatIcon__"],
[class*="_contactBtns__"],
[class*="_carActions__"]:has(> [class*="whatsappButton__"], > [class*="wechatButton__"]),
[class*="whatsappButton__"],
[class*="wechatButton__"],
[class*="whatsappBtn__"],
[class*="wechatBtn__"],
footer [class*="Footer_main"] div:has(> [class*="Footer_contactList__"]),
[class*="Footer_contactList__"],
a[href^="#?text="],
[data-ca-hidden] {
  display: none !important;
}

/* The contact dialog is closed by shim.js; it stays rendered (invisible) so
   its closing animation can finish and antd releases the page's scroll lock,
   which display:none would leave stuck. */
.ant-modal-root:has([class*="Header_chatModal"]) {
  visibility: hidden !important;
  pointer-events: none !important;
}

a[data-ca-inert] {
  cursor: default;
  text-decoration: none;
}

/* Our own account entry (shim.js): sign out, password, two-factor. */
.ca-account {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #14151a;
  color: #fff !important;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  opacity: .92;
}
.ca-account:hover {
  opacity: 1;
}
.ca-account svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media print {
  .ca-account {
    display: none;
  }
}
/* che168's mobile layout opens filters, sort and pickers as antd-mobile popups
   whose action bar sits at the bottom-left ("Reset" next to "View (N)"). Our
   fixed button would lie on top of it and swallow the tap, so step aside while
   any popup mask is shown (antd-mobile hides a closed mask with display:none). */
body:has(.adm-mask:not([style*="display: none"])) .ca-account {
  display: none !important;
}

/* Local "not available" pages. */
.np-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  color: #14151a;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.np-page main {
  max-width: 440px;
  margin: 24px;
  padding: 32px;
  border-top: 4px solid #d12b2b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.np-page h1 {
  margin: 0 0 8px;
  font-size: 20px;
}
.np-page p {
  margin: 0 0 20px;
  color: #3f3f46;
}
.np-page a {
  color: #d12b2b;
  font-weight: 600;
}

