/* Match the vendor's important reset rules without relying on numbered classes. */
body > [class][data-contact-widget="konget"] {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 20px !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 10002 !important;
}
body > div[class][data-contact-widget="konget"] > button {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}
/* The automatic label and pulse extend outside the launcher and intercept clicks. */
body > div[class][data-contact-widget="konget"] > div:nth-child(-n+2) { display: none !important; }
body > [class][data-contact-widget="konget"] :is(svg, img) { width: 34px !important; height: 34px !important; }
body > [class][data-contact-widget-kind="campaign"] {
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 76px)) !important;
  border-radius: 50% !important;
}
body > [class][data-contact-widget-kind="campaign"] > :is(img, span) {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  padding: 10px !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  object-fit: contain !important;
}

body > [class][data-contact-widget-cta-overlap="true"],
body.site-form-modal-open > [class][data-contact-widget="konget"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body > [class][data-contact-widget-cta-overlap="true"] *,
body.site-form-modal-open > [class][data-contact-widget="konget"] * {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  body > [class][data-contact-widget="konget"] {
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
  }
  body > [class][data-contact-widget="konget"] :is(svg, img) { width: 30px !important; height: 30px !important; }
  body > [class][data-contact-widget-kind="campaign"] {
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 68px)) !important;
  }
}
