/* Floating email and Hong Kong WhatsApp links for non-Simplified-Chinese pages. */
.es-floating-contact {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
  direction: ltr;
}

.es-floating-contact__link {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.es-floating-contact__link:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
}

.es-floating-contact__link:focus-visible {
  outline: 3px solid #0f2c59;
  outline-offset: 3px;
}

.es-floating-contact__link svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.es-floating-contact__email { background: #0879e6; }
.es-floating-contact__whatsapp { background: #25d366; }

/* Keep the navigation drawer and its existing call button unobstructed. */
@media (max-width: 992px) {
  body:has(.mobile-nav-drawer.active) .es-floating-contact { display: none; }
}

@media (max-width: 768px) {
  .es-floating-contact {
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .es-floating-contact__link {
    width: 50px;
    height: 50px;
  }

  .es-floating-contact__link svg {
    width: 25px;
    height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-floating-contact__link { transition: none; }
}

@media print {
  .es-floating-contact { display: none; }
}
