.fa-live-chat {
  --chat-bg: #0b1825;
  --chat-panel: #102234;
  --chat-line: #29445c;
  --chat-text: #edf5f8;
  --chat-muted: #8ca2b3;
  --chat-accent: #5de2b5;
  position: fixed;
  z-index: 1200;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 24px));
  height: 480px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--chat-line);
  border-radius: 15px;
  background: var(--chat-bg);
  color: var(--chat-text);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}
.fa-live-chat.is-minimized {
  width: 235px;
  height: 48px;
  grid-template-rows: 48px;
}
.fa-live-chat.is-maximized {
  width: min(760px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
}
.fa-live-chat.is-minimized .fa-chat-body,
.fa-live-chat.is-minimized .fa-chat-compose {
  display: none;
}
.fa-chat-head {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px 0 13px;
  border-bottom: 1px solid var(--chat-line);
  background: linear-gradient(135deg, #132b3c, #0c1c2b);
}
.fa-chat-title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}
.fa-chat-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(93, 226, 181, .18);
}
.fa-chat-online {
  color: var(--chat-accent);
  font: 500 10px "DM Mono", monospace;
}
.fa-chat-unread {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff7f8c;
  color: #fff;
  font-size: 10px;
}
.fa-chat-unread[hidden] { display: none; }
.fa-chat-actions { display: flex; gap: 4px; }
.fa-chat-action {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #36546c;
  border-radius: 7px;
  background: #0b1926;
  color: #adc0ce;
  cursor: pointer;
  font: 700 14px/1 sans-serif;
}
.fa-chat-action:hover,
.fa-chat-action:focus-visible {
  color: #fff;
  border-color: var(--chat-accent);
  outline: none;
}
.fa-chat-body {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  scrollbar-color: #315069 transparent;
}
.fa-chat-empty,
.fa-chat-error {
  margin: 30px 8px;
  color: var(--chat-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.fa-chat-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fa-chat-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.fa-chat-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #193248;
  color: var(--chat-accent);
  font-weight: 800;
  font-size: 12px;
}
.fa-chat-message {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #203a50;
  border-radius: 4px 11px 11px;
  background: var(--chat-panel);
}
.fa-chat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.fa-chat-meta strong {
  overflow: hidden;
  color: #dbe9ef;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-chat-meta time {
  flex: 0 0 auto;
  color: #657f93;
  font: 9px "DM Mono", monospace;
}
.fa-chat-message p {
  margin: 0;
  color: #bed0dc;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.fa-chat-compose {
  padding: 10px;
  border-top: 1px solid var(--chat-line);
  background: #091521;
}
.fa-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.fa-chat-input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #304c63;
  border-radius: 9px;
  background: #07121d;
  color: var(--chat-text);
  font: 12px inherit;
}
.fa-chat-input:focus {
  border-color: var(--chat-accent);
  outline: none;
}
.fa-chat-send {
  min-width: 58px;
  border: 0;
  border-radius: 9px;
  background: var(--chat-accent);
  color: #062018;
  font-weight: 800;
  cursor: pointer;
}
.fa-chat-login {
  margin: 0;
  color: var(--chat-muted);
  text-align: center;
  font-size: 11px;
}
.fa-chat-login a { color: var(--chat-accent); }
.fa-chat-status {
  min-height: 14px;
  margin-top: 5px;
  color: #ff9aa5;
  font-size: 10px;
}
.fa-chat-notices {
  position: fixed;
  z-index: 1199;
  right: 18px;
  bottom: 76px;
  width: min(300px, calc(100vw - 24px));
  display: grid;
  gap: 7px;
  pointer-events: none;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}
.fa-chat-notice {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid #29445c;
  border-radius: 10px;
  background: rgba(11, 24, 37, .96);
  color: #edf5f8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  animation: fa-chat-notice-in .18s ease-out;
}
.fa-chat-notice strong {
  color: var(--chat-accent, #5de2b5);
  font-size: 10px;
}
.fa-chat-notice span {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fa-chat-notice.is-hiding {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
@keyframes fa-chat-notice-in {
  from { opacity: 0; transform: translateY(6px); }
}
@media (max-width: 620px) {
  .fa-live-chat {
    right: 8px;
    bottom: 76px;
    width: calc(100vw - 16px);
    height: min(480px, calc(100vh - 150px));
  }
  .fa-live-chat.is-minimized {
    right: 10px;
    width: 220px;
    height: 48px;
  }
  .fa-live-chat.is-maximized {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }
  .fa-chat-notices {
    right: 10px;
    bottom: 132px;
    width: min(290px, calc(100vw - 20px));
  }
}
