html.aitp-ai-active #ai-chat-button-web {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.aitp-ai-active .andata-ai-chat-sheet {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 100000 !important;
}

html.aitp-ai-active .andata-ai-chat-sheet button,
html.aitp-ai-active .andata-ai-chat-sheet a,
html.aitp-ai-active .andata-ai-chat-sheet textarea {
  min-height: 44px;
}

html.aitp-ai-active .andata-ai-chat-sheet button {
  min-width: 44px;
}

#aitp-ai-launcher {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 174px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid #0b3457;
  border-radius: 12px;
  background: #0b3457;
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 34, 57, .24);
  font: 750 14px/1.2 Inter, Arial, sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#aitp-ai-launcher::before {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  color: #f2a31b;
  font-size: 13px;
  font-weight: 850;
  content: "AI";
}

#aitp-ai-launcher:hover {
  border-color: #14766e;
  background: #14766e;
  box-shadow: 0 16px 38px rgba(20, 118, 110, .26);
  transform: translateY(-1px);
}

#aitp-ai-launcher:focus-visible,
html.aitp-ai-active .andata-ai-chat-sheet button:focus-visible,
html.aitp-ai-active .andata-ai-chat-sheet a:focus-visible,
html.aitp-ai-active .andata-ai-chat-sheet textarea:focus-visible {
  outline: 3px solid #f2a31b !important;
  outline-offset: 3px !important;
}

#aitp-ai-launcher[aria-busy="true"] {
  cursor: progress;
  opacity: .82;
}

html.aitp-ai-open #aitp-ai-launcher {
  display: none;
}

#aitp-ai-status {
  position: fixed;
  right: 18px;
  bottom: max(84px, calc(84px + env(safe-area-inset-bottom)));
  z-index: 99991;
  width: min(340px, calc(100vw - 36px));
  padding: 11px 13px;
  border: 1px solid #d7e0e7;
  border-radius: 9px;
  background: #fff;
  color: #34485d;
  box-shadow: 0 12px 30px rgba(11, 34, 57, .15);
  font: 600 13px/1.4 Inter, Arial, sans-serif;
}

#aitp-ai-status[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  #aitp-ai-launcher {
    right: 14px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    min-height: 58px;
  }

  #aitp-ai-status {
    right: 14px;
    bottom: max(78px, calc(78px + env(safe-area-inset-bottom)));
    width: calc(100vw - 28px);
  }

  html.aitp-ai-active .andata-ai-chat-panel {
    max-width: 100vw !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aitp-ai-launcher {
    transition: none !important;
  }
}
