/* WP AI Engineer — WhatsApp Click-to-Chat Widget */

:root {
  --rgo-wa-color: #25D366;
  --rgo-wa-shadow: 0 4px 20px rgba(37,211,102,.45);
  --rgo-wa-size: 56px;
  --rgo-wa-z: 9999;
}

.rgo-wa-bubble {
  position: fixed;
  bottom: 24px;
  width: var(--rgo-wa-size);
  height: var(--rgo-wa-size);
  background: var(--rgo-wa-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--rgo-wa-shadow);
  text-decoration: none;
  z-index: var(--rgo-wa-z);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  transform: scale(0.7);
}

.rgo-wa-bubble.rgo-wa-visible {
  opacity: 1;
  transform: scale(1);
}

.rgo-wa-bottom-right { right: 24px; }
.rgo-wa-bottom-left  { left:  24px; }

.rgo-wa-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

/* Tooltip */
.rgo-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.rgo-wa-bubble.rgo-wa-bottom-left .rgo-wa-tooltip {
  right: auto;
  left: calc(100% + 12px);
}

.rgo-wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a2e;
  border-right: 0;
}

.rgo-wa-bubble.rgo-wa-bottom-left .rgo-wa-tooltip::after {
  right: auto;
  left: -5px;
  border-left-color: transparent;
  border-right-color: #1a1a2e;
  border-left: 0;
  border-right-width: 5px;
}

.rgo-wa-bubble:hover .rgo-wa-tooltip {
  opacity: 1;
}

/* Inline shortcode button */
.rgo-wa-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rgo-wa-inline:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Pulse animation on bubble */
@keyframes rgo-wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.rgo-wa-bubble.rgo-wa-visible {
  animation: rgo-wa-pulse 2.5s ease-out 1.5s 2;
}
