/* CantonCPP floating contact: scoped styles, no library or timer required. */
.cpp-wa {
  position: fixed; right: max(18px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom)); z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 118px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; text-decoration: none; -webkit-tap-highlight-color: transparent;
  isolation: isolate; touch-action: manipulation;
}
.cpp-wa::before, .cpp-wa::after {
  content: ""; position: absolute; width: 76px; height: 76px; top: 7px;
  border-radius: 50%; pointer-events: none; z-index: -1;
}
.cpp-wa::before { background: rgba(37,211,102,.045); transform: scale(1.08); }
.cpp-wa::after { border: 1px solid rgba(37,211,102,.22); animation: cpp-wa-ring 3.2s ease-out 3; }
.cpp-wa__art {
  display: block; width: 100px; height: 117px; max-width: none; object-fit: contain;
  transform-origin: 50% 75%; transition: transform .3s ease, filter .3s ease;
  animation: cpp-wa-float 4s ease-in-out 2;
}
.cpp-wa__bubble {
  position: absolute; right: calc(100% + 8px); top: 34px; display: block;
  box-sizing: border-box; padding: 13px 17px; border: 1px solid #e5e9e6;
  border-radius: 13px; background: #fff; color: #183426;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif; white-space: nowrap;
  box-shadow: 0 5px 24px rgba(16,35,23,.14);
  opacity: 0; visibility: hidden; transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  animation: cpp-wa-intro 7s ease 1s 1;
}
.cpp-wa__bubble::after {
  content: ""; position: absolute; right: -5px; top: 17px; width: 8px; height: 8px;
  background: #fff; border-top: 1px solid #e5e9e6; border-right: 1px solid #e5e9e6;
  transform: rotate(45deg);
}
.cpp-wa:hover .cpp-wa__art, .cpp-wa:focus-visible .cpp-wa__art {
  animation: none; transform: translateY(-3px) rotate(-2deg) scale(1.04);
  filter: drop-shadow(0 5px 6px rgba(22,25,32,.14));
}
.cpp-wa:hover .cpp-wa__bubble, .cpp-wa:focus-visible .cpp-wa__bubble {
  animation: none; opacity: 1; visibility: visible; transform: translateX(0);
}
.cpp-wa:focus-visible { outline: 3px solid #84428c; outline-offset: 4px; }
.cpp-wa:active .cpp-wa__art { transform: scale(.96); }
@keyframes cpp-wa-ring {
  0% { transform: scale(.8); opacity: .65; }
  85%, 100% { transform: scale(1.4); opacity: 0; }
}
@keyframes cpp-wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes cpp-wa-intro {
  0%, 100% { opacity: 0; visibility: hidden; transform: translateX(6px); }
  8%, 90% { opacity: 1; visibility: visible; transform: translateX(0); }
}
@media (max-width: 640px) {
  .cpp-wa { width: 72px; height: 86px; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .cpp-wa__art { width: 72px; height: 84px; }
  .cpp-wa::before, .cpp-wa::after { width: 55px; height: 55px; top: 5px; }
  .cpp-wa__bubble { top: 22px; padding: 10px 12px; font-size: 12px; }
  .cpp-wa__bubble::after { top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cpp-wa::after, .cpp-wa__art, .cpp-wa__bubble { animation: none; transition: none; }
  .cpp-wa::after { opacity: 0; }
  .cpp-wa:hover .cpp-wa__art, .cpp-wa:focus-visible .cpp-wa__art { transform: none; }
}
