/* 채팅 버튼 및 팝업창 관련 스타일 */
#chat-popup {
  display: none;
}
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 50px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #007bff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
}
#chat-button:hover {
  transform: scale(1.1);
}
#chat-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
#chat-popup {
  position: fixed;
  bottom: 95px;
  right: 50px;
  width: 430px;
  height: 705px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
#chat-popup.show {
  opacity: 1;
  transform: translateY(0);
}
/* 헤더 영역 */
#chat-header {
  background-color: transparent;
  padding: 20px;
  font-size: 16px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
#chat-svg {
  margin-bottom: 0.5px;
}
#chat-header small {
  display: block;
  font-size: 12px;
  color: #666;
}
/* 대화 영역 */
#chat-body {
  padding: 10px;
  height: calc(95% - 140px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.message {
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
  max-width: 80%;
}
.message.bot {
  background-color: #e9ecef;
  align-self: flex-start;
}
.message.user {
  background-color: #007bff;
  color: #fff;
  align-self: flex-end;
}
/* 입력창 영역 */
#chat-input {
  padding: 10px;
  border-top: 1px solid #ddd;
}
.input-wrapper {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border-radius: 30px;
  padding: 5px 10px;
}
.input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  padding: 10px;
}
/* 보내기 버튼 스타일 */
.send-icon {
  cursor: pointer;
  background: none;
  border: none;
  display: inline-block;
  padding: 0;
  margin-left: 5px;
}
.send-icon img {
  display: block;
  width: 20px;
  height: 20px;
}