.show-more-btn {
  background: none;
  color: var(--ai12z-knowledge-box-show-more-color, #4a8aff);
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  border: 1px solid var(--ai12z-knowledge-box-show-more-border, blue);
  padding: 10px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  margin: auto;
  display: block;
  z-index: 20;
  position: relative;
  width: 30%;
}

.show-more-btn:hover {
  color: var(--ai12z-knowledge-box-show-more-hover-color, #1a73e8);
  background: rgba(74, 138, 255, 0.08);
}

.show-more-btn:active {
  background: rgba(74, 138, 255, 0.15);
}

.show-more-btn svg {
  vertical-align: middle;
  gap: 5px;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
  margin-left: 10px;
  font-size: 20;
}

.message-text {
  line-height: 1.55;
  font-size: 15px;
  color: var(--ai12z-knowledge-box-text-color, #1e1e1e);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.fade-overlay {
  /* Only visible when content is truncated */
  position: absolute;
  bottom: 0; /* Positioned at the bottom of the chat-message container */
  left: 0;
  right: 0;
  height: 100px; /* A fixed height for the gradient */
  z-index: 10;
  pointer-events: none; /* Allows clicks to pass through to the button */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;

  /* Create the vertical gradient effect */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    /* Transparent at the top of the fade */ var(--ai12z-knowledge-box-bg-color, #ffffff) 85% /* Solid background color at the bottom */
  );
}

/* * The fade overlay needs to cover the bottom of the 'truncated' text 
* and be positioned absolutely relative to the 'chat-message' container (which should be relative).
*/
.chat-message {
  position: relative; /* Crucial for absolute positioning of fade-overlay */
}

.custom-line-clamp {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp);
  line-clamp: var(--line-clamp);
}

.ai12z-form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ai12zBtn {
  background-color: var(--ai12z-knowledge-box-primary-color);
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  margin: 5px;
}
