/* Hide the default Jivo button */
#jivo_chat_widget {
  display: none !important;
}

/* Custom round support button */
#jivo_custom_widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #00c234;
  box-shadow: 0 0px 40px rgba(0, 194, 81, 1);
  cursor: pointer;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#jivo_custom_widget:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 181, 194, 0.6);
}

/* Headset icon */
#jivo_custom_icon {
  display: block;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: jivo-wiggle 5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes jivo-wiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  83%            { transform: rotate(-18deg); }
  87%            { transform: rotate(18deg); }
  91%            { transform: rotate(-10deg); }
  95%            { transform: rotate(8deg); }
  98%            { transform: rotate(-4deg); }
}

/* Mobile: smaller button, slightly higher bottom to not overlap browser nav */
@media (max-width: 768px) {
  #jivo_custom_widget {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  #jivo_custom_icon {
    width: 24px;
    height: 24px;
  }
}
