/* IVRITours look for the NagishLi accessibility button: round, brand coloured,
   modern accessibility figure, a soft "breathing" ring, and a lift on hover.
   Sits at the top of the right-hand floating column (above WhatsApp + chat). */

#NagishLiTrigger {
  max-width: none !important;
  max-height: none !important;
  width: 56px !important;
  height: 56px !important;
  right: 16px !important;
  bottom: 152px !important;
  left: auto !important;
}
@media (min-width: 640px) {
  #NagishLiTrigger { right: 24px !important; bottom: 160px !important; }
}

#NagishLiTrigger .nagishli-trigger-icon {
  position: relative !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--it-blue, #1f5fa8), var(--it-navy, #1d3329)) !important;
  box-shadow: 0 10px 28px rgba(var(--it-blue-rgb, 31, 95, 168), .38), inset 0 0 0 2px rgba(255, 255, 255, .25) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease !important;
  overflow: visible !important;
}
/* Replace the stock picture with a modern accessibility figure */
#NagishLiTrigger .nagishli-trigger-icon img { display: none !important; }
#NagishLiTrigger .nagishli-trigger-icon::before {
  content: '';
  width: 32px;
  height: 32px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.2'/%3E%3Ccircle cx='12' cy='6.6' r='1.5' fill='white' stroke='none'/%3E%3Cpath d='M6.8 9.3c3.4.9 7 .9 10.4 0'/%3E%3Cpath d='M12 9.9v4.2'/%3E%3Cpath d='M12 14.1l-2.4 4.4'/%3E%3Cpath d='M12 14.1l2.4 4.4'/%3E%3C/svg%3E");
  transition: transform .5s ease;
}
/* Breathing ring */
#NagishLiTrigger .nagishli-trigger-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--it-blue, #1f5fa8);
  animation: ivriA11yPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ivriA11yPulse {
  0% { transform: scale(1); opacity: .65; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
#NagishLiTrigger .nagishli-trigger-icon:hover,
#NagishLiTrigger .nagishli-trigger-icon:focus-visible {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 16px 36px rgba(var(--it-blue-rgb, 31, 95, 168), .5), inset 0 0 0 2px rgba(255, 255, 255, .4) !important;
  outline: none !important;
}
#NagishLiTrigger .nagishli-trigger-icon:hover::before,
#NagishLiTrigger .nagishli-trigger-icon:focus-visible::before { transform: rotate(360deg); }
#NagishLiTrigger .nagishli-trigger-icon:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--it-blue, #1f5fa8) !important;
}

@media (prefers-reduced-motion: reduce) {
  #NagishLiTrigger .nagishli-trigger-icon::after { animation: none; }
  #NagishLiTrigger .nagishli-trigger-icon,
  #NagishLiTrigger .nagishli-trigger-icon::before { transition: none !important; }
}

/* Hidden while a site lightbox is open (NagishLi forces the top z-index) */
body.ivri-modal-open #NagishLiTrigger { display: none !important; }
