#asc-chatbot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple SD Gothic Neo, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

#asc-chatbot-button {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  font-size: 22px;
  background: #6c1cff;
  color: #fff;
}

#asc-chatbot-window {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 360px;
  height: 520px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  display: none;
  overflow: hidden;
}

#asc-chatbot-window.open { display: flex; flex-direction: column; }

.asc-chat-header {
  height: 48px;
  background: #6c1cff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-weight: 600;
}

.asc-chat-title { font-size: 14px; }
#asc-chatbot-close {
  background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer;
}

.asc-chat-messages {
  padding: 12px;
  flex: 1;
  overflow: auto;
  background: #fafafa;
}

.asc-chat-msg {
  max-width: 85%;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid #eee;
}

.asc-chat-msg.is-user {
  margin-left: auto;
  background: #e9e2ff;
  border-color: #ded2ff;
}

.asc-chat-msg.is-bot { background: #fff; }

.asc-chat-msg.loading {
  opacity: 0.8;
  font-style: italic;
}

.asc-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}
.asc-chat-form input[type="text"] {
  flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.asc-chat-form button {
  padding: 0 14px; border: none; background: #6c1cff; color: #fff; border-radius: 8px; cursor: pointer; font-weight: 600;
}

/* 모바일: 풀스크린 */
@media (max-width: 768px) {
  #asc-chatbot-window {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  #asc-chatbot-button {
    width: 52px; height: 52px; font-size: 20px;
  }
}
