/* Hide the native launcher only after the custom button is initialized.
   Restore the entire native widget before opening chat or the channel menu. */
html.evrika-jivo-custom body > jdiv,
html.evrika-jivo-custom #jivo_chat_widget,
html.evrika-jivo-custom #jivo-iframe-container { display: none !important; }
#evrika-jivo-button {
  --jivo-size: 64px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 11001;
  display: grid;
  place-items: center;
  width: var(--jivo-size);
  height: var(--jivo-size);
  min-width: 0;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  border-radius: 50%;
  background: linear-gradient(100deg, #ff8500 0%, #ff6509 29%, #ed3539 62%, #c71d54 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transform: scale(1);
  transition: transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#evrika-jivo-button[hidden] { display: none !important; }
#evrika-jivo-button .evrika-jivo-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  box-sizing: border-box;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 14px;
  background: #d71935;
  color: #fff;
  font: 700 12px/20px Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}
#evrika-jivo-button .evrika-jivo-badge[hidden] { display: none !important; }
/* Override theme/browser button rings in every pointer interaction state. */
#evrika-jivo-button:hover,
#evrika-jivo-button:focus,
#evrika-jivo-button:active {
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
#evrika-jivo-button::-moz-focus-inner { border: 0; }
/* Keep a thin brand-colour indicator for keyboard navigation. */
#evrika-jivo-button:focus-visible {
  outline: 2px solid #ed3539 !important;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  #evrika-jivo-button:hover { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  #evrika-jivo-button { transition: none; }
}
#evrika-jivo-button .evrika-jivo-bubble {
  position: relative;
  display: block;
  width: 43%;
  height: 45%;
  border-radius: 50%;
  background: #fff;
}
#evrika-jivo-button .evrika-jivo-bubble::after {
  content: '';
  position: absolute;
  right: -3%;
  bottom: 0;
  width: 35%;
  height: 35%;
  background: #fff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
@media (max-width: 767px) {
  #evrika-jivo-button { --jivo-size: 60px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
