/* 1. 채팅창 스타일 */
.chat-window {
  all: unset;
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 330px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: none;
  /* JS에서 제어 */
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
  /* 등장 애니메이션 */
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chat-header {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chat-body {
  flex: 1;
  padding: 20px;
  background: #fdfdfd;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 말풍선 공통 스타일 */
.msg {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-msg {
  align-self: flex-start;
  background: #e9ecef;
  color: #333;
  border-radius: 15px 15px 15px 0;
}

.user-msg {
  align-self: flex-end;
  background: #007bff;
  color: white;
  border-radius: 15px 15px 0 15px;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}

.chat-footer input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 20px;
  outline: none;
}

/* 2. 플로팅 버튼 스타일 */
.floating-chat-btn {
  all: unset;
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #007bff !important;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.floating-chat-btn:hover {
  transform: scale(1.1);
}

.floating-chat-btn svg {
  transition: transform 0.3s;
}
