#sy-contact-dock {
  position: fixed;
  z-index: 90;
  top: 50%;
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 10px));
  transform: translateY(-50%);
  width: 74px;
  font-family: inherit;
  line-height: 1.3;
}

#sy-contact-dock.sy-contact-dock--placed {
  top: max(calc(env(safe-area-inset-top, 0px) + 10px), var(--sy-contact-top));
  bottom: auto;
  transform: none;
}

#sy-contact-dock .sy-contact-dock__rail {
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #e3e7eb;
  border-top: 3px solid #df0a23;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 25px #17263621;
}

#sy-contact-dock .sy-contact-dock__item {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 74px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: #fff;
  color: #34404b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color 160ms ease, color 160ms ease;
}

#sy-contact-dock .sy-contact-dock__item[hidden] { display: none !important; }
#sy-contact-dock .sy-contact-dock__item--wechat { border-bottom: 0; }
#sy-contact-dock .sy-contact-dock__item svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
#sy-contact-dock .sy-contact-dock__item--whatsapp svg { color: #138a45; }
#sy-contact-dock .sy-contact-dock__item--wechat svg { color: #168849; }
#sy-contact-dock .sy-contact-dock__item--email svg { color: #df0a23; }
#sy-contact-dock .sy-contact-dock__item:hover,
#sy-contact-dock .sy-contact-dock__item[aria-expanded="true"] { color: #b7081c; background: #fff2f3; }
#sy-contact-dock .sy-contact-dock__item:focus-visible { outline: 3px solid #df0a23; outline-offset: -4px; background: #fff2f3; }

#sy-contact-wechat-dialog {
  box-sizing: border-box;
  width: min(390px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px 28px 24px;
  border: 1px solid #e2e6e9;
  border-top: 3px solid #df0a23;
  border-radius: 10px;
  background: #fff;
  color: #182332;
  box-shadow: 0 18px 75px #06152540;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
  font-family: inherit;
}

#sy-contact-wechat-dialog:not([open]) { display: none; }
#sy-contact-wechat-dialog::backdrop { background: #1021318c; }
#sy-contact-wechat-dialog .sy-contact-dock__close {
  position: absolute;
  display: flex;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #44505e;
  cursor: pointer;
}
#sy-contact-wechat-dialog .sy-contact-dock__close:hover { background: #f1f3f5; color: #df0a23; }
#sy-contact-wechat-dialog .sy-contact-dock__close svg { width: 22px; height: 22px; }
#sy-contact-wechat-dialog .sy-contact-dock__eyebrow { margin: 0 28px 10px; color: #df0a23; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 1.7px; }
#sy-contact-wechat-dialog h2 { margin: 0 0 12px; color: #182332; font-size: 25px; line-height: 1.2; letter-spacing: -.5px; }
#sy-contact-wechat-description { margin: 0 auto; max-width: 285px; color: #55616d; font-size: 14px; line-height: 1.6; }
#sy-contact-wechat-dialog .sy-contact-dock__qr { box-sizing: border-box; width: min(100%, 288px); margin: 20px auto 16px; padding: 10px; border: 1px solid #edf0f2; border-radius: 5px; background: #fff; }
#sy-contact-wechat-dialog .sy-contact-dock__qr img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 644 / 668; object-fit: contain; background: #fff; }
#sy-contact-wechat-dialog .sy-contact-dock__help { margin: 0 auto 12px; max-width: 280px; color: #55616d; font-size: 12px; line-height: 1.6; }
#sy-contact-wechat-dialog .sy-contact-dock__qr-link { display: inline-block; min-height: 44px; padding: 12px 4px; color: #a20b1c; font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
#sy-contact-wechat-dialog :focus-visible { outline: 3px solid #df0a23; outline-offset: 3px; }

@media (max-width: 640px) {
  #sy-contact-dock { top: auto; right: max(9px, calc(env(safe-area-inset-right, 0px) + 7px)); bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 80px)); width: 60px; transform: none; }
  #sy-contact-dock .sy-contact-dock__rail { border-radius: 6px; box-shadow: 0 5px 20px #1726361f; }
  #sy-contact-dock .sy-contact-dock__item { min-height: 58px; gap: 4px; padding: 6px 1px; font-size: 9px; }
  #sy-contact-wechat-dialog { padding: 29px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #sy-contact-dock .sy-contact-dock__item { transition: none; }
  #sy-contact-wechat-dialog { scroll-behavior: auto; }
}

@media print {
  #sy-contact-dock, #sy-contact-wechat-dialog { display: none !important; }
}
