#aghux-inbox-chat {
  position: fixed;
  /* A abertura do Elementor usa 99999 na própria página inicial. */
  z-index: 100000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  font-family: inherit;
}

#aghux-inbox-chat [hidden] {
  display: none !important;
}

#aghux-inbox-chat button {
  cursor: pointer;
  font: inherit;
}

#aghux-inbox-chat button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #201d1c;
}

#aghux-inbox-chat .aghux-chat-toggle {
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #201d1c;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px #0004;
}

#aghux-inbox-chat .aghux-chat-panel {
  position: relative;
  width: min(24rem, calc(100vw - 2rem));
  height: min(35rem, calc(100dvh - 2rem));
  overflow: hidden;
  border: 1px solid #dedad7;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 36px #0003;
}

#aghux-inbox-chat .aghux-chat-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #817b76;
  border-radius: .625rem;
  background: #f4f2ef;
  color: #201d1c;
  font: 600 17px/1 system-ui, sans-serif;
}

#aghux-inbox-chat iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
#aghux-inbox-chat .aghux-chat-toggle { display:inline-flex; align-items:center; gap:.625rem; }
