/* Ecomcloud mobile chat fix
   Desktop: full text button remains.
   Mobile: small round chat icon above Request Automation Audit button.
*/

@media (max-width: 768px) {
  html body .chat-button {
    position: fixed !important;
    right: 18px !important;
    left: auto !important;
    bottom: calc(106px + env(safe-area-inset-bottom)) !important;

    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;

    z-index: 2147483647 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
    pointer-events: auto !important;
  }

  html body .chat-button * {
    font-size: 0 !important;
  }

  html body .chat-button::after {
    content: "💬" !important;
    font-size: 26px !important;
    line-height: 1 !important;
    display: block !important;
  }

  html body .chat-window,
  html body .chat-panel,
  html body #chat-window,
  html body #chat-panel,
  html body .ecomcloud-chat-window,
  html body .ecomcloud-chat-panel {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: 78vh !important;
    z-index: 2147483647 !important;
  }
}
