/* ── Input section (matches product InputContainer + InputBox) ──── */

.chat-input-section {
  flex-shrink: 0;
  padding: 0 16px;
  background: #ffffff;
}

.input-box {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 16px 0 rgba(209, 213, 219, 0.18);
  padding: 8px 8px 12px 8px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-box:focus-within {
  border-color: #7a7afe;
  box-shadow: 0 8px 16px 0 rgba(122, 122, 254, 0.12);
}

.chat-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  padding: 8px;
  width: 100%;
  background: transparent;
  resize: none;
  min-height: 40px;
  max-height: 160px;
  color: #030712;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.chat-input:disabled {
  color: #9ca3af;
}

.input-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 4px;
}

.input-left-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
}

.input-right-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.send-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #7a7afe;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  background: #6366f1;
}

.send-btn:disabled {
  background: #d1d5db;
  cursor: default;
}

.send-btn.stop-mode {
  background: #ef4444;
}

.send-btn.stop-mode:hover {
  background: #dc2626;
}

/* ── Footer note ──────────────────────────────────────────────────── */

.footer-note {
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}
