.cgsp-chat {
  max-width: 920px;
  margin: 24px auto;
  font-family: inherit;
}

.cgsp-card {
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.cgsp-header {
  padding: 22px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #f7f7f7;
}

.cgsp-header h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.cgsp-header p {
  margin: 0;
  line-height: 1.5;
}

.cgsp-messages {
  padding: 20px;
  max-height: 540px;
  overflow-y: auto;
  background: #fbfbfb;
}

.cgsp-message {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.55;
  border: 1px solid #e5e5e5;
}

.cgsp-message p {
  margin: 8px 0 0;
}

.cgsp-user {
  background: #eef3ff;
  margin-left: 12%;
}

.cgsp-assistant {
  background: #fff;
  margin-right: 8%;
}

.cgsp-form {
  padding: 18px 20px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.cgsp-question {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.cgsp-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cgsp-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.cgsp-actions button[type="submit"] {
  background: #111;
  color: #fff;
}

.cgsp-actions button[type="button"] {
  background: #eee;
  color: #111;
}

.cgsp-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cgsp-disclaimer {
  padding: 0 20px 20px;
  margin: 0;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .cgsp-user,
  .cgsp-assistant {
    margin-left: 0;
    margin-right: 0;
  }

  .cgsp-header,
  .cgsp-form,
  .cgsp-messages {
    padding-left: 14px;
    padding-right: 14px;
  }
}
