
#chatbot-widget-btn {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #005aab;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

/* 🔥 주변 음영 */
#chatbot-widget-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

/* 🔥 iframe 기본 상태 (숨김 but display 유지) */
#chatbot-widget-frame {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 430px;
  height: 740px;
  border: none;
  z-index: 10001;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 12px;

  /* 🔥 애니메이션 핵심 */
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* ✅ 열렸을 때 */
#chatbot-widget-frame.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ✅ 백드롭 열림 */
#chatbot-widget-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#chatbot-widget-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 640px) {
  #chatbot-widget-frame {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}