/* 챗봇 아이콘 기본 스타일 */
#embedded-chatbot {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 99;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* 챗봇 아이콘 래퍼 - PC 환경 (Seocho-150) */
.chatbot-icon--wrapper {
  width: 150px;
  height: 150px;
  background-image: url('https://chat.seocho.go.kr/chatbot/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

#embedded-chatbot:hover .chatbot-icon--wrapper {
  transform: scale(1.05);
}

/* 챗봇 호버 콘텐츠 박스 - PC 환경 */
.chatbot-icon--content {
  position: absolute;
  right: 150px;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  margin-right: 15px;
  font-size: 16px;
  line-height: 1.5;
}

#embedded-chatbot:hover .chatbot-icon--content {
  opacity: 1;
  visibility: visible;
}

.chatbot-icon--content div:first-child {
  margin-bottom: 5px;
}

/* 모바일 환경 (Seocho-80) - 768px 이하 */
@media screen and (max-width: 768px) {
  .chatbot-icon--wrapper {
    width: 80px;
    height: 80px;
  }

  .chatbot-icon--content {
    right: 80px;
    padding: 10px 15px;
    font-size: 14px;
    margin-right: 10px;
  }
}

/* 상단 이동 버튼과의 간섭 방지 */
/* 상단 이동 버튼: bottom: 20px, right: 20px, width: 32px, height: 32px, z-index: 90 */
/* 챗봇 아이콘: z-index: 9999 (상단 이동 버튼보다 위에 표시) */
/* 챗봇 아이콘을 상단 이동 버튼 위에 배치하여 겹치지 않도록 함 */
@media screen and (min-width: 769px) {
  #embedded-chatbot {
    /* PC: 아이콘 150px, 상단 이동 버튼 32px + bottom 20px = 52px */
    /* 아이콘을 상단 이동 버튼 위에 배치: 52px + 여백 20px = 72px */
    margin-bottom: 72px;
  }
}

@media screen and (max-width: 768px) {
  #embedded-chatbot {
    /* 모바일: 아이콘 80px, 상단 이동 버튼 32px + bottom 20px = 52px */
    /* 아이콘을 상단 이동 버튼 위에 배치: 52px + 여백 15px = 67px */
    margin-bottom: 67px;
  }
}

