#gnatty-chat {
  position: fixed;
  bottom: 110px; /* place above button */
  right: 20px;
  min-width: 260px;   /* smaller default */
  min-height: 340px;   /* smaller default */
  max-width: 800px;
  max-height: 600px;
  z-index: 2147483647 !important; /* max 32‑bit int – ensure topmost */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  resize: both;  /* enable user resizing */
  overflow: auto;   /* allow scroll when content exceeds */
  display: none; /* hidden until toggled */
  pointer-events: auto !important; /* make sure it can receive touches */
}
/* Ensure everything inside the chat box can receive touches */
#gnatty-chat, #gnatty-chat *, #gnatty-chat iframe {
  pointer-events: auto !important;
}


/* Make sure the iframe inside the chat fills the container */
#gnatty-chat iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  pointer-events: auto !important;
}


#gnatty-chat-toggle {
  position: fixed ;
  bottom: 80px ; /* default for desktop */
  right: 25px ;
  width: 56px ;
  height: 56px ;
  background: #504caf;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 2147483647 !important; /* max 32‑bit int, ensures topmost */
  pointer-events: auto; /* ensure clicks are registered */
}

#gnatty-chat-toggle img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Mobile adjustments – raise the button and chat a bit higher */
@media (max-width: 600px) {
  #gnatty-chat {
    bottom: 150px;
  }
  #gnatty-chat-toggle {
    bottom: 80px;
  }
}
