/* Codecyon WhatsApp chat button (custom/whatsapp.js) */
.cc-wa {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: cc-wa-in .5s cubic-bezier(.2, .8, .2, 1) both;
  transition: translate .3s ease;
}
.cc-wa-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cc-wa-icon svg { width: 32px; height: 32px; }
.cc-wa-icon::after {                         /* soft pulse ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: cc-wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.cc-wa-bubble {
  display: flex;
  flex-direction: column;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.cc-wa-bubble b { font-weight: 600; }
.cc-wa-bubble span { color: #555; font-size: 12px; }
.cc-wa:hover .cc-wa-icon, .cc-wa:focus-visible .cc-wa-icon { transform: scale(1.07); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.cc-wa:hover .cc-wa-bubble, .cc-wa:focus-visible .cc-wa-bubble, .cc-wa.is-peek .cc-wa-bubble { opacity: 1; transform: none; }
.cc-wa:focus-visible { outline: none; }
.cc-wa:focus-visible .cc-wa-icon { outline: 3px solid #fff; outline-offset: 3px; }
.cc-wa.is-end { translate: 0 -64px; }

@keyframes cc-wa-in { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes cc-wa-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

@media (max-width: 640px) {
  .cc-wa { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .cc-wa-icon { width: 52px; height: 52px; }
  .cc-wa-icon svg { width: 28px; height: 28px; }
  .cc-wa-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-wa, .cc-wa-icon::after { animation: none; }
}
@media print { .cc-wa { display: none; } }
