@media (max-width: 768px) {
  #jvLabelWrap,
  #jivo_chat_widget,
  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) body > jdiv,
  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) body > [class*="jivo"][class*="button"],
  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) body > [class*="jivo"][class*="widget"] {
    display: none !important;
  }

  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) #jivo-iframe-container,
  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) #jivo_container {
    display: none !important;
  }

  #jivo_custom_widget {
    position: fixed;
    right: 0;
    top: clamp(170px, 24vh, 260px);
    z-index: 300000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    padding: 0 7px 0 10px;
    border: 0;
    border-radius: 999px 0 0 999px !important;
    color: #f8fafc;
    background: linear-gradient(135deg, #5b8cff 0%, #7c3aed 58%, #22d3ee 100%);
    box-shadow:
      0 14px 34px rgba(91, 140, 255, 0.28),
      0 0 24px rgba(124, 58, 237, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    font-family: "Manrope", sans-serif;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  }

  #jivo_custom_widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 44%);
    pointer-events: none;
  }

  #jivo_custom_widget:active {
    transform: translateX(2px) scale(0.98);
  }

  .jivo-custom-widget__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 0;
    color: #ffffff;
    background: transparent;
  }

  .jivo-custom-widget__icon svg {
    width: 23px;
    height: 23px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
  }

  .jivo-custom-widget__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  #jvLabelWrap {
    display: none !important;
  }

  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) #jivo-iframe-container,
  html.jivo-custom-launcher-enabled:not(.jivo-chat-open) #jivo_container {
    display: none !important;
  }

  #jivo_chat_widget {
    display: none !important;
  }

  #jivo_custom_widget {
    position: fixed;
    right: 36px;
    bottom: 0;
    z-index: 300000;
    display: none;
    align-items: center;
    justify-content: center;
    width: min(328px, calc(100vw - 48px));
    min-height: 56px;
    padding: 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, rgba(18, 24, 39, 0.98), rgba(25, 33, 52, 0.98));
    box-shadow:
      0 16px 36px rgba(5, 10, 20, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    font-family: "Manrope", sans-serif;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  }

  .jivo-custom-widget__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 20px 0 34px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    color: #f8fafc;
  }

  .jivo-custom-widget__icon {
    display: none;
  }

  #jivo_custom_widget::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 6px rgba(100, 116, 139, 0.16);
  }

  #jivo_custom_widget.jivo_online::before {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
  }

  #jivo_custom_widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(5, 10, 20, 0.42);
    filter: brightness(1.02);
  }

  #jivo_custom_widget:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.24);
    outline-offset: 2px;
  }
}
