/* Hide Intercom default launcher (it resets position after chat close on mobile). */
.intercom-lightweight-app-launcher,
.intercom-launcher,
.intercom-app-launcher,
iframe.intercom-launcher-frame,
div[class*='intercom-with-namespace'] .intercom-launcher {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Custom draggable support button (see intercom.js) */
#ng-support-launcher {
  position: fixed;
  z-index: 2147483000;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1f8ceb;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#ng-support-launcher:active {
  cursor: grabbing;
  transform: scale(0.96);
}

#ng-support-launcher.is-hidden,
html.ng-game-open #ng-support-launcher {
  display: none !important;
}

html.ng-game-open .intercom-lightweight-app-launcher,
html.ng-game-open .intercom-launcher,
html.ng-game-open .intercom-app-launcher,
html.ng-game-open iframe.intercom-launcher-frame {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#ng-support-launcher svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  pointer-events: none;
}

/*
 * Fullscreen messenger only while chat is open (class toggled in intercom.js).
 * Do not constrain .intercom-messenger-frame by default — that breaks the panel.
 */
html.ng-intercom-chat-open #intercom-container,
html.ng-intercom-chat-open #intercom-container .intercom-messenger-frame,
html.ng-intercom-chat-open .intercom-messenger-frame,
html.ng-intercom-chat-open .intercom-messenger-frame > iframe,
html.ng-intercom-chat-open [class*='intercom-messenger-frame'] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  border-radius: 0 !important;
  z-index: 2147483001 !important;
}

html.ng-intercom-chat-open iframe[name='intercom-messenger-frame'],
html.ng-intercom-chat-open iframe[name='intercom-notifications-frame'] {
  max-height: none !important;
}
