/* Actual Jivo DOM, observed 2026-10-19. Desktop is untouched. */
@media (max-width: 900px) {
  #jvLabelWrap {
    top: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    transform: none !important;
    width: 96px !important;
    max-width: calc(100% - 24px) !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 16px #0002 !important;
  }
  #jvLabelWrap > .text__NxxwW,
  #jvLabelWrap > .hoverArea__jN5kF,
  #jvLabelWrap > .leaf__Ll_sH { display: none !important; }
  #jvLabelWrap > .icon__VbLuE {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
  }
  #jvLabelWrap::after {
    content: "Чат";
    color: var(--jv-label-text-color, #fff);
    font: 600 14px/1 Arial, sans-serif;
    letter-spacing: 0;
  }
  #jvLabelWrap:focus-visible { outline: 3px solid #222d38; outline-offset: 3px; }
  /* Native minimized container can still cover the new bottom launcher. */
  html[data-boxpro-jivo-ready]:not([data-boxpro-jivo-open]) #jcont {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html[data-boxpro-jivo-ready]:not([data-boxpro-jivo-open]) #jcont * { pointer-events: none !important; }
  html[data-boxpro-jivo-open] #jcont {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) auto !important;
    width: min(336px, calc(100% - 16px)) !important;
    height: min(496px, calc(100dvh - 16px)) !important;
    transform: none !important;
  }
  html[data-boxpro-jivo-open] #jcont > .main__XJNUl {
    width: 100% !important;
    height: 100% !important;
  }
}
