/* Hide default Zendesk launcher */
#launcher,
iframe#launcher,
.zEWidget-launcher,
[data-test-id="launcher"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* AskJes Custom Chat Button */
#askjes-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: rgb(120, 163, 0);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 9999;
}

#askjes-chat-button:hover {
  background-color: rgb(100, 143, 0);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#askjes-chat-button .askjes-chat-icon {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#askjes-chat-button.chat-open .askjes-chat-icon {
  transform: rotate(180deg);
}

#askjes-chat-button.chat-open .askjes-chat-icon svg {
  transform: rotate(45deg);
}

/* Unread message indicator */
#askjes-chat-button .unread-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

#askjes-chat-button.has-unread {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(120, 163, 0, 0.7);
  }
  70% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(120, 163, 0, 0);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(120, 163, 0, 0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #askjes-chat-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  #askjes-chat-button .askjes-chat-icon svg {
    width: 20px;
    height: 20px;
  }
}
