/* ai챗봇 */
#lmsChatbotClose {background: transparent; color:#333;}
.chatBot {position: fixed;
    right: 1rem;
    width: 80px;
    height: 80px;
    background: transparent url(../../common/images/icon_chatbot.png) 50% 50% no-repeat;
    background-size:100%;
    z-index: 100;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-full);
    transition: transform 0.4s ease;
}
.chatBot:hover {animation: bounceScale 0.4s ease;}
@keyframes bounceScale {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  60%  { transform: scale(0.95); }
  80%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 챗봇 레이어 기본 상태 */
.chatbot-layer {
  position: fixed;
  bottom: 80px;
  right: 0px;
  width: min(400px, 95vw);
  height: 80vh;
  z-index: 1000;
  pointer-events: none; /* 기본 비활성 */
}

/* 콘텐츠 박스 */
.chatbot-layer__content {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  height: 100%;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 활성화 시 슬라이드 업 */
.chatbot-layer.active {
  pointer-events: auto;
}
.chatbot-layer.active .chatbot-layer__content {
  transform: translateY(0);
}

/* 헤더 */
.chatbot-head {
  padding: 6px 16px;
  background: linear-gradient(90deg, var(--color-secandary), #f9f0ec);
  color: var(--text-invert);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-head strong {
    background: url(../images/common/h1_logo.png) 1rem 50% no-repeat;
    font-size: 0;
    width: 120px;
    height: 32px;
    background-size: contain;
}

/* iframe */
#chatbotFrame {
  flex: 1;
  border: 0;
  width: 100%;
}

@media screen and (max-width: 680px) {
    .chatBot {display: none;}
}