/* /assets/chatwoot/chatwoot.css */
/* A maior parte do visual vem do Inbox settings + chatwootSettings. */

.gpix-chatwoot-launcher {
  display: none;
  position: fixed;
  z-index: 899;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #03110f;
  background: #00e0c6;
  border: 1px solid rgba(236, 255, 251, 0.5);
  border-radius: 50%;
  box-shadow: 0 14px 30px -16px rgba(0, 224, 198, 0.8), 0 8px 24px -16px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gpix-chatwoot-launcher.is-collision-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gpix-chatwoot-launcher svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gpix-chatwoot-launcher:focus-visible {
  outline: 2px solid #ecfffb;
  outline-offset: 3px;
}

.gpix-chatwoot-launcher[aria-busy="true"] svg {
  animation: gpix-chatwoot-pulse 850ms ease-in-out infinite alternate;
}

@keyframes gpix-chatwoot-pulse {
  to { opacity: 0.42; transform: scale(0.88); }
}

@media (max-width: 720px), (pointer: coarse) {
  .gpix-chatwoot-launcher { display: grid; }

  .woot--bubble-holder,
  .woot-widget-bubble {
    display: none !important;
  }

  html[data-gpix-chatwoot-open="true"] .gpix-chatwoot-launcher,
  html[data-gpix-chatwoot-suppressed="true"] .gpix-chatwoot-launcher,
  html[data-gpix-virtual-keyboard="true"] .gpix-chatwoot-launcher {
    display: none !important;
  }
}

html[data-gpix-chatwoot-suppressed="true"] .woot-widget-holder,
html[data-gpix-chatwoot-suppressed="true"] .woot--bubble-holder,
html[data-gpix-chatwoot-suppressed="true"] .woot-widget-bubble,
html[data-gpix-chatwoot-suppressed="true"] #chatwoot_live_chat_widget,
html[data-public-menu-open="true"] .gpix-chatwoot-launcher,
html[data-gpix-virtual-keyboard="true"] .woot-widget-holder,
html[data-gpix-virtual-keyboard="true"] .woot--bubble-holder,
html[data-gpix-virtual-keyboard="true"] .woot-widget-bubble,
html[data-gpix-virtual-keyboard="true"] #chatwoot_live_chat_widget,
html[data-public-menu-open="true"] .woot-widget-holder,
html[data-public-menu-open="true"] .woot--bubble-holder,
html[data-public-menu-open="true"] .woot-widget-bubble,
html[data-public-menu-open="true"] #chatwoot_live_chat_widget,
body.modal-open .woot-widget-holder,
body.modal-open .woot--bubble-holder,
body.modal-open .woot-widget-bubble,
body.modal-open #chatwoot_live_chat_widget,
body.modal-open .gpix-chatwoot-launcher,
body.gpix-print-qr .woot-widget-holder,
body.gpix-print-qr .woot--bubble-holder,
body.gpix-print-qr .woot-widget-bubble,
body.gpix-print-qr #chatwoot_live_chat_widget,
body.gpix-print-qr .gpix-chatwoot-launcher {
  display: none !important;
}

html[data-gpix-chatwoot-open="true"] #gpix-mascote,
html[data-gpix-virtual-keyboard="true"] #gpix-mascote {
  display: none !important;
}

@media print {
  .woot-widget-holder,
  .woot--bubble-holder,
  .woot-widget-bubble,
  #chatwoot_live_chat_widget,
  .gpix-chatwoot-launcher {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gpix-chatwoot-launcher[aria-busy="true"] svg { animation: none; opacity: 0.55; }
}
