/* wp-content/plugins/ai-engine-addon-simplisio/assets/css/simplisio-chatbot-styles.css */

.mwai-chatgpt-theme .mwai-reply > div {
  min-width: 0;
}

/* --- The PRE Element Fix --- */
/* This is still necessary to handle the code INSIDE the now-correctly-sized block */
.mwai-reply .code-block-wrapper pre {
  overflow-x: auto;
}

/* --- Restore Your Original Wrapper & Button styles --- */
/* No special fixes needed here anymore */
.code-block-wrapper {
  position: relative;
  background-color: #2d2d2d;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 16px;
  padding-top: 45px;
  margin: 1.2em 0;
}

.mwai-reply .code-block-wrapper .copy-code-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background-color: #444857;
  color: #e2e2e2;
  border: 1px solid #6c707e;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  opacity: 0.3;
  transition: opacity 0.2s ease-in-out;
}

.code-block-wrapper:hover .copy-code-button {
  opacity: 1;
}

/* We only need to reset the PRE tag now */
.code-block-wrapper pre {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit;
  font-family: inherit;

  /* The critical part: make the code itself scrollable */
  overflow-x: auto;
}
