/* 1. 검은 테두리 및 기본 아웃라인 완전 제거 */
#modalChatbot * {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

#modalChatbot button,
#modalChatbot select,
#modalChatbot textarea {
  border: none !important;
  background: none;
}

/* 2. 모달 및 창 크기 */
#modalChatbot .chatbot-modal-content {
  background: transparent !important;
  border: none !important;
}

#modalChatbot .chatbot-window {
  width: 660px;
  height: 820px;
  background-color: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

/* 3. 헤더 레이아웃 (오른쪽 정렬 보정) */
#modalChatbot .chatbot-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

#modalChatbot .chatbot-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

#modalChatbot .chatbot-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#modalChatbot .chatbot-language-select {
  height: 28px;
  border: 1px solid #ddd !important;
  border-radius: 14px;
  padding: 0 8px;
  font-size: 12px;
  background: #fff !important;
  cursor: pointer;
}

#modalChatbot .chatbot-close-x {
  font-size: 26px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

/* 4. 메시지 및 말풍선 (사라진 말풍선 복구) */
#modalChatbot .chatbot-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fff;
}

#modalChatbot .chatbot-messages-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#modalChatbot .chatbot-message-bubble {
  max-width: 80%;
  padding: 10px 15px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

#modalChatbot .chatbot-user-message {
  background-color: #b7dd44 !important;
  color: #000;
  align-self: flex-end;
  border-radius: 15px 15px 0 15px;
}

#modalChatbot .chatbot-bot-message {
  background-color: #dadada !important;
  color: #333;
  align-self: flex-start;
  border-radius: 15px 15px 15px 0;
}

/* 5. 하단 입력 영역 (높이 대폭 축소) */
#modalChatbot .chatbot-input-area {
  padding: 8px 15px 12px;
  border-top: 3px solid #9bc716;
  background: #fff;
}

#modalChatbot .chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
}

#modalChatbot .chatbot-textarea {
  flex: 1;
  font-size: 15px;
  height: 32px !important;
  resize: none;
  padding: 6px 0;
  line-height: 1.2;
}

#modalChatbot .chatbot-icon-btn img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* FAQ Box */
#modalChatbot .chatbot-faq-box {
  position: absolute;
  bottom: 65px;
  left: 15px;
  right: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  z-index: 100;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}