/* assets/css/chat.css */
.gapgpt-chat { font-family: inherit; }

.gapgpt-chat--inline .gapgpt-box {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  max-width: 480px;
  overflow: hidden;
}

.gapgpt-chat--floating {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  z-index: 9999;
}

.gapgpt-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #10a37f;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.gapgpt-chat--floating .gapgpt-box {
  display: none;
  position: absolute;
  inset-block-end: 70px;
  inset-inline-end: 0;
  width: 340px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  overflow: hidden;
}

.gapgpt-chat--floating.gapgpt-open .gapgpt-box { display: block; }

.gapgpt-messages {
  height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gapgpt-msg {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 85%;
  white-space: pre-wrap;
  line-height: 1.6;
}

.gapgpt-msg--user { align-self: flex-start; background: #f0f0f0; }
.gapgpt-msg--assistant { align-self: flex-end; background: #d9f3ec; }

.gapgpt-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #eee;
}

.gapgpt-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.gapgpt-form button {
  background: #10a37f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
}
