/* Optional assistant thinking disclosure. Load after the production stylesheet. */
.crm-thinking {
  box-sizing: border-box;
  margin: 6px 0 10px;
  background: #ffffff;
  border: 1px solid #9aafc1;
  border-radius: 10px;
  color: #243746;
}
.crm-thinking .crm-thinking-toggle {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: #2f4659;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.crm-thinking .crm-thinking-toggle:hover { background: #f1f5f9; }
.crm-thinking .crm-thinking-toggle:focus-visible {
  outline: 3px solid #0a63c7;
  outline-offset: -3px;
}
.crm-thinking-caret {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.crm-thinking-toggle[aria-expanded="true"] .crm-thinking-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}
.crm-thinking .crm-thinking-body {
  box-sizing: border-box;
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 12px;
  border-top: 1px solid #c6d3df;
  background: #f8fafc;
  color: #243746;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: normal;
}
.crm-thinking .crm-thinking-body[hidden] { display: none; }
@media (max-width: 600px) {
  .crm-thinking .crm-thinking-toggle { min-height: 44px; padding: 8px 11px; }
  .crm-thinking .crm-thinking-body { padding: 10px 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-thinking,
  .crm-thinking .crm-thinking-toggle,
  .crm-thinking-caret {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
