body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.chat-container {
  width: 90%;
  height: 400px;
  background-color: #e0edff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid #003B6C;
  overflow: hidden;
  display: flex;
  flex-direction: column;  
}

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.product-buttons button {
  width: 150px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  background: none;
  color: #1976d2;
  padding: 2px;
  border: none;
  cursor: pointer;
}

.product-buttons button:hover {
  color: #1565c0;
}

.chat-box {
  padding: 10px;
  border-radius: 10px;
  /* height: 260px; */
  max-width: 100%;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;    
}

.message-bubble, .usermessage-bubble {
  position: relative;
  border-radius: 10px;
  padding: 10px 15px;
  max-width: 90%;
}

.message-bubble {
  background-color: white;
  display: flex;
  align-items: center;
}

.message-bubble::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: white;
  border-left: 0;
  margin-top: -10px;
}

.chat-message {
  align-items: center;
}

.chat-message p {
  margin: 0;
  background-color: white;
  border-radius: 10px;
}

.input-section {
  display: flex;
  flex-direction: column;
  padding: 5px;
  color: black;
  flex: 0 0 auto;
}

.input-section p {
  margin-bottom: 5px;
  font-size: 14px;
}

.warning {
  color: red;
  font-weight: bold; /* Optional: Make it bold for emphasis */
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.icon-left {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none; /* Allows clicks to pass through to input */
}

#user-input {
  width: 100%;
  padding: 10px 40px 10px 40px; /* Padding to make room for icons */
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#user-input:-webkit-autofill {
  background-color: white !important; /* オートフィル時の背景色を白に固定 */
  color: inherit !important; /* テキスト色も継承 */
  border: 1px solid #ccc !important; /* 境界線もオートフィル時に合わせる */
  -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* 背景色を強制的に適用 */
  box-shadow: 0 0 0px 1000px white inset !important; /* FirefoxやEdgeなどの対応 */
}

#send-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

#send-button img {
  width: 20px;
  height: 20px;
}

.message-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end; /* Align user messages to the right */
  margin: 10px 0;
  width: 100%;
}

.incoming-message {
  justify-content: flex-start; /* Align product messages to the left */
}

.usermessage-bubble {
  background-color: white;
  color: black;
  display: flex;
  justify-content: flex-end;
}

.usermessage-bubble::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -10px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: white;
  border-right: 0;
  margin-top: -10px;
}

.robot-icon {
  width: 48px;
  height: 48px;
  margin-right: 15px;
}

.frog-icon {
  width: 48px;
  height: 48px;
  margin-left: 15px;
}
