/* 各メッセージの基本スタイル */

#chatbot-messages{
  background: #fff;
}

#chatbot-messages .message {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  max-width: calc(100% - 50px);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.bot-message {
  background-color: #e5e5e5;
  color: #333;
}
.bot-message::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  z-index: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 10px solid #e5e5e5;
  width: 0;
  height: 0;
}

.user-message {
  background-color: #007bff;
  color: white;
}
.user-message::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -10px;
  z-index: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 10px solid #007bff;
  width: 0;
  height: 0;
}

#chatbot-input {
  display: flex;
  flex-direction: column;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  border-top: 1px solid #ccc;
  background-color: #f5f5f5;
}

#chatbot-messages .opening_statement .privacy-policy a{
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
}

/* 入力フォーム */
#chatbot-input textarea {
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 1.5em;
  resize: none;
  width: 100%;
  max-height: 50vh;
  font-size: 15px;
  line-height: 1.25;
}
#chatbot-input textarea::placeholder {
  color: #aaa;
}
#chatbot-input-button{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
#chatbot-input-button button#reset-btn {
  background-color: #F44336;
  width: 40vw;
}
#chatbot-input-button button#send-btn {
  background-color: #007bff;
  width: 30vw;
}
#chatbot-input-button button#reset-btn,#chatbot-input-button button#send-btn {
  margin: 10px 0 0;
  padding: 10px 16px;
  border: none;
  color: white;
  font-size: 14px;
  border-radius: 100vw;
  cursor: pointer;
}