/* Keep Kommo's own button, destination and appearance; only coordinate the page UI. */
html body .amo-button-holder {
  /* Native children have large z-indices; contain them below the consent UI. */
  z-index: 95 !important;
  isolation: isolate;
}
/* No pulsing, shaking or rotating animations, in keeping with the approved site. */
html body #amobutton,
html body #amobutton.amo_animation_shake,
html body #amobutton::before,
html body #amobutton::after {
  animation: none !important;
}
html[data-cookie-ui="preferences"] body .amo-button-holder {
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 700px) {
  html body .amo-button-holder {
    right: max(16px, env(safe-area-inset-right)) !important;
  }
  /* Make room for the cookie decision on narrow screens. Returns after any choice. */
  html[data-cookie-ui="banner"] body .amo-button-holder {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .amo-button-holder *,
  html body .amo-button-holder *::before,
  html body .amo-button-holder *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  html body .amo-button-holder { display: none !important; }
}
