/* One shared centerline for the homepage's links, buttons and availability text. */
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.hero-foot > .contact-action,
.hero-foot > .contact-availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.4;
  white-space: nowrap;
}
button.contact-action,
a.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lp-text-muted, #626c65);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-foot > .contact-availability { padding: 0 9px; }
.contact-action:hover,
.contact-action:focus-visible { color: var(--lp-text-strong, #202822); }
.contact-action:focus-visible { outline: 2px solid #6451bd; outline-offset: 3px; }
.footer-links .contact-action { margin: 0; }

#contactStatus {
  position: fixed;
  z-index: 3000;
  inset-inline-start: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  box-sizing: border-box;
  border: 1px solid rgba(113, 129, 119, .18);
  border-radius: 12px;
  background: #fff;
  color: #26382e;
  box-shadow: 0 10px 38px rgba(34, 46, 38, .16);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  user-select: text;
  transform: translateX(-50%);
}
#contactStatus:empty { display: none; }

.wechat-dialog {
  width: min(412px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid rgba(131, 148, 138, .24);
  border-radius: 24px;
  background: #fff;
  color: #23312a;
  text-align: center;
  box-shadow: 0 24px 100px rgba(15, 30, 21, .2);
}
.wechat-dialog::backdrop { background: rgba(15, 24, 19, .42); backdrop-filter: blur(7px); }
.wechat-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wechat-dialog h2 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 650; }
#wechatClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f2f5f3;
  color: #405147;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
#wechatClose:focus-visible { outline: 2px solid #6451bd; outline-offset: 3px; }
.wechat-dialog__hint { margin: 7px 0 14px; font-size: 13px; line-height: 1.6; color: #607067; }
.wechat-dialog__qr-frame {
  position: relative;
  width: min(360px, 100%, max(240px, calc(100svh - 220px)));
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
/* The original 680 x 1005 contact card is intact. This viewport presents its full
   450px QR plus white margin using the 540 x 540 region at (70, 270). */
.wechat-dialog__qr-frame > .wechat-dialog__qr {
  position: absolute;
  display: block;
  width: 125.925926%;
  max-width: none;
  height: auto;
  left: -12.962963%;
  top: -50%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.wechat-dialog__original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: #486654;
  font-size: 12px;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .hero-foot { gap: 0 3px; }
  .hero-foot > .contact-action,
  .hero-foot > .contact-availability { padding-inline: 8px; }
  .wechat-dialog { padding: 20px; border-radius: 20px; }
}
