/* Scoped base styles also support the existing translated catalogue pages. */
.contact-options, .contact-options * { box-sizing: border-box; }
.contact-options { font: 16px/1.5 Inter, Arial, sans-serif; color: #fff; --red: #d92d20; }
.contact-options a { text-decoration: none; }
.contact-options .contact-card-head { display: flex; align-items: center; }
.contact-options .contact-card-head > div { display: grid; }
.contact-options .contact-card-head small { color: #ffffff80; margin-top: 3px; }
.contact-options .contact-icon { display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 900; }
.contact-options .whatsapp { background: #25d366; }
.contact-options .telegram { background: #229ed9; }
.contact-options .wechat { background: #07c160; }
.contact-options .qr-window { position: relative; aspect-ratio: 1; margin: 0 auto; overflow: hidden; background: white; }
.contact-options .qr-window img { position: absolute; display: block; max-width: none; height: auto; }
.contact-options .qr-whatsapp .qr-window img { width: 196.7%; left: -48.3%; top: -163.3%; }
.contact-options .qr-telegram .qr-window img { width: 159.3%; left: -29.6%; top: -118.6%; }
.contact-options .qr-wechat .qr-window img { width: 135.2%; left: -17.5%; top: -43.4%; }
.contact-options .qr-caption { display: flex; justify-content: center; align-items: center; color: #ffffff94; }
.contact-options .copy-number { font: inherit; cursor: pointer; }
/* Compact contact rail. It overlays the edge; page dimensions remain original. */
.contact-options.contact-options-top { position: fixed; z-index: 45; right: 16px; top: 50%; transform: translateY(-50%); width: 100px; padding: 0; margin: 0; display: block; background: transparent; }
.contact-stack { display: flex; flex-direction: column; padding: 5px; border: 1px solid #ffffff24; border-top: 2px solid var(--red); border-radius: 13px; background: #111216ec; backdrop-filter: blur(14px); box-shadow: 0 6px 24px #0003; }
.contact-options .contact-card { display: block; padding: 0; background: transparent; }
.contact-trigger { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 88px; padding: 10px 2px; color: #eee; background: transparent; border: 0; cursor: pointer; font: 600 9px/1.3 system-ui; border-radius: 7px; }
.contact-card + .contact-card .contact-trigger { border-top: 1px solid #ffffff1a; }
.contact-trigger:hover, .contact-trigger[aria-expanded="true"] { background: #ffffff0b; color: #fff; }
.contact-trigger:focus-visible, .contact-menu-toggle:focus-visible, .contact-panel-close:focus-visible { outline: 2px solid #f16c62; outline-offset: 3px; }
.contact-options .qr-stage { display: block; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.contact-options .qr-stage::before { display: none; }
.contact-trigger .qr-window { display: block; width: 68px; height: 68px; border: 2px solid white; border-radius: 3px; box-shadow: none; }
.contact-panel { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); width: 292px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; color: #fff; background: #17181cfb; border: 1px solid #ffffff26; border-top: 2px solid var(--red); border-radius: 14px; box-shadow: 0 14px 48px #0005; }
.contact-panel[hidden] { display: none; }
.contact-card.is-open::before { content: ""; position: absolute; right: 100%; width: 14px; top: 0; bottom: 0; }
.contact-panel .contact-card-head { gap: 10px; padding-right: 16px; margin-bottom: 16px; font-size: 14px; }
.contact-panel .contact-icon { width: 32px; height: 32px; font-size: 9px; }
.contact-panel .contact-card-head small { font-size: 10px; letter-spacing: .05em; }
.contact-panel .qr-window { width: 240px; max-width: 100%; border: 8px solid white; border-radius: 8px; box-shadow: none; }
.contact-panel .qr-caption { font-size: 9px; margin-top: 10px; }
.contact-panel > a, .contact-panel > .copy-number { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 42px; margin-top: 14px; border: 1px solid #ffffff40; border-radius: 6px; font-size: 12px; font-weight: 700; background: transparent; color: #fff; }
.contact-panel > a:hover, .contact-panel > .copy-number:hover { background: var(--red); border-color: var(--red); color: white; }
.contact-panel-close { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: #ffffff0c; color: white; border-radius: 50%; cursor: pointer; font-size: 21px; }
.contact-phone { display: block; text-align: center; margin-top: 10px; color: #aaa; font-size: 10px; letter-spacing: .04em; }
.contact-menu-toggle { display: none; }
@media (max-width: 700px) {
  .contact-options.contact-options-top { right: 12px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; transform: none; }
  .contact-menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 56px; height: 56px; padding: 4px; border: 1px solid #ffffff40; border-top: 2px solid var(--red); border-radius: 14px; background: #15161a; color: white; box-shadow: 0 5px 20px #0003; font: 600 9px/1.4 system-ui; cursor: pointer; }
  .contact-menu-toggle > span:first-child { color: #ef6259; font-size: 22px; line-height: 1; }
  .contact-stack { backdrop-filter: none; display: none; position: absolute; bottom: 66px; right: 0; padding: 3px; width: 88px; }
  .contact-options.menu-open .contact-stack { display: flex; }
  .contact-trigger { width: 80px; min-height: 100px; padding: 7px 1px; }
  .contact-trigger .qr-window { width: 68px; height: 68px; }
  .contact-options .contact-panel { position: fixed; width: min(292px, calc(100vw - 136px)); right: 108px; top: auto; bottom: 66px; transform: none; max-height: calc(100dvh - 100px); padding: 14px; }
  .contact-panel .contact-card-head { font-size: 12px; gap: 6px; margin-bottom: 12px; }
  .contact-panel .contact-icon { display: none; }
  .contact-panel .qr-window { width: 240px; }
  .contact-card.is-open::before { display: none; }
  .floating-chat { right: 80px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; padding: 5px; gap: 0; border: 1px solid #ddd; }
  .floating-chat strong { display: none; }
  .floating-chat span { flex: 0 0 36px; width: 36px; height: 36px; }
}

@media (min-width: 701px) and (hover: hover) {
  .contact-card:not(.hover-dismissed):hover .contact-panel { display: block; }
  .contact-card:not(.hover-dismissed):hover::before { content: ""; position: absolute; right: 100%; width: 14px; top: 0; bottom: 0; }
}

.contact-stack { direction: ltr; }
.contact-hint { margin: 0; padding: 7px 2px 10px; color: #e2e2e5; text-align: center; font-size: 10.5px; font-weight: 500; line-height: 1.4; overflow-wrap: normal; }
@media (max-width: 700px) {
  .contact-hint { padding: 7px 1px 9px; font-size: 10px; }
}

/* Supplied sales QR crops keep their original modules and quiet zones. */
.contact-options[data-sales="xiebaotu"] .qr-window img,
.contact-options[data-sales="huangrong"] .qr-window img,
.contact-options[data-sales="zhangzidong"] .qr-window img { width: 100%; height: 100%; left: 0; top: 0; object-fit: contain; }

/* No broken-image glyphs: link actions remain available while the QR loads. */
.contact-options .qr-window:not([data-qr-state="ready"]) img { opacity: 0; }
.qr-load-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 3px; color: #555; background: #fff; text-align: center; font: 10px/1.4 system-ui; }
.qr-window[data-qr-state="ready"] .qr-load-status { display: none; }
.contact-options .qr-retry { display: block; margin: 10px auto 0; padding: 7px 12px; border: 1px solid #777; border-radius: 5px; background: transparent; color: white; cursor: pointer; font: 12px/1.4 system-ui; }
.contact-options .qr-retry[hidden] { display: none; }
