/* ===== Container (panel) ===== */
.taeris-chat-wrap{
  position: fixed !important;
  right: 40px;
  bottom: 40px; /* FAB 위로 */
  width: 340px;
  max-width: calc(100vw - 80px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 999999 !important; /* 최상위 */
  display: none; /* 기본은 닫힘 */
}

.taeris-chat-wrap.is-open{
  display: block;
}

/* ===== Header ===== */
.taeris-chat-header{
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #223A5E;
  color: #fff;
}

.taeris-chat-title{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

.taeris-chat-status{
  font-size: 12px;
  opacity: .9;
}

.taeris-chat-close{
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
.taeris-chat-close:hover{
  background: rgba(255,255,255,.12);
}

/* ===== Messages ===== */
.taeris-chat-messages{
  height: calc(100% - 52px - 64px);
  padding: 10px;
  overflow: auto;
  background: #f7f7f9;
}

.taeris-chat-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  word-break: break-word;
  white-space: pre-wrap;
  font-size: 13px;
}

.taeris-chat-bubble.user{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}

.taeris-chat-bubble.admin{
  background: #223A5E;
  color: #fff;
  margin-left: auto;
}

.taeris-chat-meta{
  margin-top: 6px;
  font-size: 11px;
  opacity: .7;
}

/* ===== Footer ===== */
.taeris-chat-footer{
  height: 64px;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.taeris-chat-input{
  flex: 1;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.taeris-chat-send{
  width: 70px;
  border: none;
  border-radius: 12px;
  background: #223A5E;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.taeris-chat-send:disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* ===== System message ===== */
.taeris-chat-system{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
}

.taeris-chat-new-inquiry{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#223A5E;
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

/* ===== FAB ===== */
.taeris-chat-fab{
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #223A5E;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  cursor: pointer;
  z-index: 999900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taeris-chat-fab:hover{
  transform: translateY(-1px);
  background: #ffc300;
}

.taeris-chat-fab-icon{
  width: 26px;
  height: 26px;
  display:block;
}
