/* RAYAAN Egypt WhatsApp Companion v1.3.0 — emerald glass orb.
 * ONLY styles the companion link. No Call Now Button, theme, Elementor, or global changes.
 * This follows the user's bright, luminous WhatsApp reference image.
 */
#rayaan-wa-companion-stable {
  --ry-wa-green-1: #4cf6a1;
  --ry-wa-green-2: #22d97b;
  --ry-wa-green-3: #10b969;
  --ry-wa-green-4: #079f58;
  position: fixed !important;
  inset: auto 18px calc(18px + env(safe-area-inset-bottom, 0px)) auto !important;
  z-index: 99989 !important; /* below current call control (99990), above ordinary content */
  box-sizing: border-box !important;
  display: inline-flex !important; /* stable from first paint; no JS toggling */
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at 28% 16%, var(--ry-wa-green-1) 0%, var(--ry-wa-green-2) 33%, var(--ry-wa-green-3) 72%, var(--ry-wa-green-4) 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.52),
    inset 0 -5px 8px rgba(0,101,58,.24),
    0 7px 14px rgba(0,106,58,.26),
    0 2px 5px rgba(0,106,58,.15),
    0 0 0 4px rgba(43,230,135,.13) !important;
  text-decoration: none !important;
  text-align: center !important;
  line-height: 1 !important;
  cursor: pointer !important;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* The glass highlight follows the sphere. */
#rayaan-wa-companion-stable::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 3px 5px auto;
  height: 46%;
  border-radius: 999px 999px 45% 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.53), rgba(255,255,255,.13) 55%, transparent);
  pointer-events: none;
}
#rayaan-wa-companion-stable::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(57,233,143,.25);
  box-shadow: 0 0 12px rgba(50,224,131,.12);
  pointer-events: none;
}
#rayaan-wa-companion-stable svg {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  max-width: none !important;
  fill: currentColor !important;
  color: #fff !important;
  filter: drop-shadow(0 2px 2px rgba(0,101,54,.20));
  pointer-events: none;
}
#rayaan-wa-companion-stable:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.55), inset 0 -5px 9px rgba(0,101,58,.21), 0 10px 20px rgba(0,106,58,.31), 0 0 0 4px rgba(43,230,135,.16) !important;
}
#rayaan-wa-companion-stable:active { transform: scale(.97); }
#rayaan-wa-companion-stable:focus-visible {
  outline: 3px solid #075b38 !important;
  outline-offset: 5px !important;
}
#rayaan-wa-companion-stable .rayaan-wa-companion-hint {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(13,134,72,.12);
  background: rgba(255,255,255,.97);
  color: #0c7548 !important;
  -webkit-text-fill-color: #0c7548 !important;
  box-shadow: 0 5px 17px rgba(9,53,37,.13);
  font: 700 12px/1.35 Tahoma,Arial,sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transform: translateY(-50%) translateX(5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
#rayaan-wa-companion-stable:hover .rayaan-wa-companion-hint,
#rayaan-wa-companion-stable:focus-visible .rayaan-wa-companion-hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
/* Mobile: existing Call Now Button stays on the right, companion sphere on the left. */
@media (max-width: 767px) {
  #rayaan-wa-companion-stable {
    left: 12px !important;
    right: auto !important;
    bottom: calc(13px + env(safe-area-inset-bottom, 0px)) !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
  #rayaan-wa-companion-stable .rayaan-wa-companion-hint { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #rayaan-wa-companion-stable,
  #rayaan-wa-companion-stable .rayaan-wa-companion-hint { transition: none !important; }
}
@media print { #rayaan-wa-companion-stable { display: none !important; } }

/* Mobile browsers can synthesize hover on tap. Keep a steady orb without transient paint flicker. */
@media (hover:none) and (pointer:coarse) {
  #rayaan-wa-companion-stable { transition: none !important; transform: none !important; }
  #rayaan-wa-companion-stable:hover { transform: none !important; }
}
