.apppkg-tg-contact{
  position:fixed;
  inset:auto 0 0 auto;
  z-index:160;
  pointer-events:none;
  font-family:inherit;
}
.apppkg-tg-backdrop{display:none!important}
.apppkg-tg-contact-card{
  position:fixed;
  right:max(22px,env(safe-area-inset-right));
  bottom:112px;
  z-index:2;
  width:min(380px,calc(100vw - 30px));
  max-height:calc(100vh - 150px);
  overflow:auto;
  padding:22px;
  box-sizing:border-box;
  border:1px solid rgba(27,86,68,.10);
  border-radius:22px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 64px rgba(19,58,45,.22);
  color:#103b31;
  opacity:0;
  visibility:hidden;
  transform:translateY(14px) scale(.98);
  transform-origin:bottom right;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  scrollbar-width:thin;
  scrollbar-color:#c7d8d1 transparent;
}
.apppkg-tg-contact-card::-webkit-scrollbar{width:7px}
.apppkg-tg-contact-card::-webkit-scrollbar-track{background:transparent}
.apppkg-tg-contact-card::-webkit-scrollbar-thumb{background:#c7d8d1;border-radius:999px}
.apppkg-tg-contact.is-open .apppkg-tg-contact-card{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.apppkg-tg-head{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 40px;
  gap:14px;
  align-items:center;
}
.apppkg-tg-logo{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(145deg,#48c8f5 0%,#1c97ec 56%,#1588df 100%);
  box-shadow:0 14px 30px rgba(34,158,217,.28),inset 0 0 0 5px rgba(255,255,255,.64);
}
.apppkg-tg-logo svg{width:36px;height:36px;display:block;fill:currentColor}
.apppkg-tg-title{min-width:0}
.apppkg-tg-title h3{margin:0;color:#0e2f29;font-size:22px;line-height:1.12;font-weight:850;letter-spacing:-.55px}
.apppkg-tg-title p{margin:5px 0 0;color:#71867f;font-size:13px;line-height:1.45;font-weight:520}
.apppkg-tg-close{
  display:grid;
  place-items:center;
  align-self:start;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:#f1f6f4;
  color:#5f7970;
  font:inherit;
  font-size:26px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.apppkg-tg-close:hover{background:#e7f1ed;color:#173f34;transform:rotate(3deg)}
.apppkg-tg-account-link{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin-top:18px;
  min-height:92px;
  padding:15px 18px;
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid rgba(34,158,217,.20);
  border-radius:16px;
  background:linear-gradient(135deg,#effbff 0%,#f8fdff 58%,#eef9ff 100%);
  text-decoration:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.66);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.apppkg-tg-account-link:hover{transform:translateY(-1px);border-color:rgba(34,158,217,.34);box-shadow:0 12px 28px rgba(34,158,217,.10)}
.apppkg-tg-account-avatar{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:#d7f5e9;
  color:#15906d;
}
.apppkg-tg-account-avatar svg{width:20px;height:20px;display:block;fill:currentColor}
.apppkg-tg-account-copy{position:relative;z-index:1;min-width:0}
.apppkg-tg-account-copy strong{display:block;color:#158bd7;font-size:21px;line-height:1.1;font-weight:850;letter-spacing:-.3px}
.apppkg-tg-account-copy span{display:block;margin-top:5px;color:#728882;font-size:13px;font-weight:600}
.apppkg-tg-watermark{
  position:absolute;
  right:12px;
  top:12px;
  width:78px;
  height:78px;
  color:#42b5f0;
  opacity:.11;
  transform:rotate(-9deg);
}
.apppkg-tg-watermark svg{width:100%;height:100%;display:block;fill:currentColor}
.apppkg-tg-actions{display:grid;gap:10px;margin-top:12px}
.apppkg-tg-open,.apppkg-tg-copy{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:52px;
  padding:0 16px;
  border-radius:13px;
  box-sizing:border-box;
  font:inherit;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.apppkg-tg-open{
  border:1px solid #2aa8ed;
  color:#fff;
  background:linear-gradient(135deg,#38baf4 0%,#229ed9 52%,#1589e8 100%);
  box-shadow:0 13px 30px rgba(34,158,217,.28);
}
.apppkg-tg-open:hover{transform:translateY(-1px);box-shadow:0 17px 36px rgba(34,158,217,.34)}
.apppkg-tg-open svg{width:22px;height:22px;display:block;fill:currentColor}
.apppkg-tg-open .apppkg-tg-external{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.apppkg-tg-copy{
  border:1px solid #a9d7c5;
  background:#fff;
  color:#155242;
}
.apppkg-tg-copy:hover{transform:translateY(-1px);border-color:#79c2a7;background:#fbfefd;box-shadow:0 10px 24px rgba(18,96,71,.08)}
.apppkg-tg-copy.is-copied{border-color:#6ec3a2;background:#edf9f4;color:#0d8160}
.apppkg-tg-copy svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2}
.apppkg-tg-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid #e8efec;
  color:#7d9089;
  font-size:12px;
  font-weight:600;
  text-align:center;
}
.apppkg-tg-footer svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2}
.apppkg-tg-contact-button{
  position:fixed;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:3;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:linear-gradient(145deg,#39baf2,#1694df);
  color:#fff;
  box-shadow:0 15px 36px rgba(34,158,217,.36);
  cursor:pointer;
  pointer-events:auto;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.apppkg-tg-contact-button::before{
  content:"联系我们";
  position:absolute;
  right:9px;
  bottom:calc(100% + 10px);
  width:max-content;
  padding:8px 12px;
  border-radius:10px;
  background:#fff;
  color:#4c6d62;
  font-size:12px;
  font-weight:700;
  box-shadow:0 8px 24px rgba(19,58,45,.12);
}
.apppkg-tg-contact-button::after{
  content:"";
  position:absolute;
  right:20px;
  bottom:calc(100% + 8px);
  width:9px;
  height:9px;
  background:#fff;
  transform:rotate(45deg);
}
.apppkg-tg-contact-button:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(34,158,217,.42);filter:brightness(1.02)}
.apppkg-tg-contact.is-open .apppkg-tg-contact-button{transform:scale(.96);box-shadow:0 11px 28px rgba(34,158,217,.32)}
.apppkg-tg-contact-button>svg{width:30px;height:30px;display:block;fill:currentColor}
.apppkg-tg-contact-button:focus-visible,.apppkg-tg-copy:focus-visible,.apppkg-tg-account-link:focus-visible,.apppkg-tg-open:focus-visible,.apppkg-tg-close:focus-visible{outline:3px solid rgba(34,158,217,.25);outline-offset:3px}
@media(max-width:599px){
  .apppkg-tg-contact-card{right:max(12px,env(safe-area-inset-right));bottom:84px;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 110px);padding:18px;border-radius:18px}
  .apppkg-tg-head{grid-template-columns:54px minmax(0,1fr) 36px;gap:11px}
  .apppkg-tg-logo{width:54px;height:54px}.apppkg-tg-logo svg{width:31px;height:31px}
  .apppkg-tg-title h3{font-size:20px}.apppkg-tg-title p{font-size:12px}
  .apppkg-tg-close{width:36px;height:36px;font-size:24px}
  .apppkg-tg-account-link{grid-template-columns:42px minmax(0,1fr);gap:10px;margin-top:15px;min-height:82px;padding:13px 14px;border-radius:14px}
  .apppkg-tg-account-avatar{width:42px;height:42px}.apppkg-tg-account-avatar svg{width:23px;height:23px}
  .apppkg-tg-account-copy strong{font-size:20px}.apppkg-tg-account-copy span{font-size:12px}
  .apppkg-tg-watermark{width:66px;height:66px;right:8px;top:10px}
  .apppkg-tg-open,.apppkg-tg-copy{min-height:50px;border-radius:12px;font-size:15px}
  .apppkg-tg-footer{margin-top:12px;padding-top:12px;font-size:11px}
  .apppkg-tg-contact-button{right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:54px;height:54px}
  .apppkg-tg-contact-button>svg{width:28px;height:28px}
  .apppkg-tg-contact-button::before{display:none}.apppkg-tg-contact-button::after{display:none}
  #toast{bottom:80px}
}
@media(prefers-reduced-motion:reduce){.apppkg-tg-backdrop,.apppkg-tg-contact-card,.apppkg-tg-contact-button,.apppkg-tg-open,.apppkg-tg-copy,.apppkg-tg-account-link{transition:none}}
.apppkg-tg-contact[hidden]{display:none!important}

/* Fix91 · floating contact label follows the selected site language. */
html[lang="zh-TW"] .apppkg-tg-contact-button::before{content:"聯絡我們"}
html[lang="en"] .apppkg-tg-contact-button::before{content:"Contact"}
html[lang="es"] .apppkg-tg-contact-button::before{content:"Contacto"}
html[lang="fr"] .apppkg-tg-contact-button::before{content:"Contact"}
