#bms_messages hr {
  text-align: left;
  display: inline-block;
  margin-bottom: 0.5rem;
  width: 25%;
  margin-top: 0.5rem;
}
.user-message {
  margin-bottom: 0.5rem;
}
#your_container {
  height: 600px;
  width: 100%;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
#bms_messages_container {
  height: 100%;
  width: 100%;
  background-color: #eee;
}

#bms_chat_header {
  padding: 6px;
  font-size: 16px;
  height: 50px;
  background: #ddd;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.bms_chat_header_title {
  display: flex;
}
#bms_status_icon {
  color: #4caf50;
  margin-right: 8px;
}
#bms_messages {
  display: none;
  height: 550px;
  background-color: #eee;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2) inset;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
}
.bms_message {
  margin-bottom: 20px;
  word-wrap: break-word;
}
.bms_message_box {
  max-width: 70%;
  border-radius: 20px;
  padding: 10px;
}
.bms_left {
  float: left;
  clear: both;
  background: #fff;
  color: #333;
  border: 2px solid #13178e;
  border-radius: 30px 30px 30px 0px;
}
.bms_right {
  float: right;
  clear: both;
  background: #13178e;
  color: #fff;
  border: 2px solid #13178e;
  border-radius: 30px 30px 0px 30px;
}
#product_type,
#question_type {
  border: 1px solid #ccc;
  border-radius: 0;
  box-sizing: border-box;
  margin: 7px 0;
  padding: 8px 10px;
  height: 44px;
}
.form-group {
  display: flex;
  flex-direction: column; /* 縦に並べるために列方向に設定 */
  margin-bottom: 15px;
}

.uniform-width {
  flex: 1;
  max-width: 300px;
}

.loading {
  display: flex;
}
.loading > span {
  margin: 5px 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #888;
  animation: loading_anime 1s linear 0s infinite normal both;
}
.loading > span:nth-of-type(2) {
  animation-delay: 0.2s;
}
.loading > span:nth-of-type(3) {
  animation-delay: 0.4s;
}
@keyframes loading_anime {
  0% {
    transform: scale(0);
  }
  25% {
    transform: scale(1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.button-container .inquiryUrl {
  color: #186e73;
  text-align: left;
  display: inline-block;
  font-weight: bold;
}
.button-container .inquiryUrl:hover {
  opacity: 0.7;
}
.ai-caution {
  font-size: 12px;
  color: #5a5a5a;
}
.textarea-container {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}
#bms_send_message{
  font-size: 14px;
}
textarea {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  resize: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.warning-message {
  color: red;
  font-size: 0.9em;
  position: absolute;
  top: -0.75rem;
  left: 1rem;
}
#bms_send_btn {
  padding: 8px 15px;
  background-color: #e7e7e7;
  color: #ffffff;
  border: 1px solid #ccc;
  cursor: inherit;
  width: 33.33%;
  margin: 0 auto 20px;
  display: block;
}
/* レスポンシブ対応 */
@media (max-width: 600px) {
  textarea {
    height: 80px;
  }
  #bms_send_btn {
    width: 100%;
  }
}
p[id^="Title"] {
  margin-top: 1rem;
}
p[id^="Title"] a {
  font-weight: bold;
  font-size: 1.1rem;
}
p[id^="reason"] {
  margin-bottom: 1rem;
}
.feedback-container {
  margin-top: 20px; /* 上の要素との間隔 */
  text-align: center; /* テキストを中央に配置 */
}

.feedback-button {
  background-color: #186e73; /* ボタンの背景色 */
  color: white; /* ボタンの文字色 */
  border: none;
  border-radius: 5px; /* 角を丸く */
  padding: 10px 20px; /* ボタンの内側の余白 */
  margin: 10px; /* ボタン間の間隔を調整 */
  cursor: pointer; /* カーソルをポインターに */
  transition: background-color 0.3s; /* ホバー効果のための遷移 */
}

.feedback-button:hover {
  opacity: 0.7;
}

.feedback-button:disabled {
  background-color: #d3d3d3; /* クリック後の無効色 */
  cursor: not-allowed; /* クリック不可のカーソル */
}

.delayed-call {
  color: red;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.error-message {
  color: red;
}
