@charset "utf-8";
/* =========================================================
   사이트 이용 안내 챗봇 (2026-10-13)
   오른쪽 아래 단추 → 떠 있는 창. 머리를 끌면 옮겨지고, 가장자리 · 모서리를 끌면 크기가 바뀐다.
   색 · 그림자는 테마 토큰(wsrf2026.css :root)을 쓰고, 없을 때 값을 붙여 둔다.
   옛 default.css 의 button · input · ol 규칙이 새지 않게 #wcb 아래만 다시 잡는다.
   ========================================================= */

#wcb, #wcb *, #wcb *::before, #wcb *::after { box-sizing: border-box; }
#wcb {
  --wcb-navy: var(--navy, #003F8C);
  --wcb-navy-deep: var(--navy-deep, #002C63);
  --wcb-ink: var(--ink, #16202E);
  --wcb-ink-2: var(--ink-2, #4A5A6E);
  --wcb-line: var(--line, #DCE4EE);
  --wcb-tint: var(--tint, #F2F6FB);
  --wcb-green: var(--green-deep, #1F8403);
  font-family: var(--font-sans, "Pretendard", "Malgun Gothic", sans-serif);
  color: var(--wcb-ink);
  letter-spacing: -0.01em;
}
#wcb [hidden] { display: none !important; }
#wcb button { font: inherit; color: inherit; margin: 0; cursor: pointer; background: none; border: 0; padding: 0; }
#wcb svg { width: 20px; height: 20px; flex: none; }

/* 맨 위로 단추는 챗봇 단추 위로 올린다 */
.to-top { bottom: 88px; }

/* ── 단추 ──────────────────────────────────────────────── */
#wcb .wcb-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9980;
  display: inline-flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 22px 0 18px;
  background: var(--wcb-navy); color: #fff;
  border-radius: 29px;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 30, 70, .22), 0 14px 30px rgba(0, 30, 70, .22);
  transition: background .18s, transform .18s;
}
#wcb .wcb-fab:hover { background: var(--wcb-navy-deep); transform: translateY(-1px); }
#wcb .wcb-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--wcb-navy); }
#wcb .wcb-fab svg { width: 24px; height: 24px; }
#wcb .wcb-fab .wcb-x { display: none; }
#wcb.is-open .wcb-fab .wcb-chat { display: none; }
#wcb.is-open .wcb-fab .wcb-x { display: block; }

/* ── 창 ────────────────────────────────────────────────── */
#wcb .wcb-panel {
  position: fixed; z-index: 9990;
  left: 0; top: 0; width: 400px; height: 600px;   /* 실제 자리는 JS 가 잡는다 */
}
#wcb .wcb-in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--wcb-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14), 0 24px 56px rgba(0, 20, 50, .26);
}
#wcb .wcb-panel.is-dragging { user-select: none; }
#wcb .wcb-panel.is-dragging .wcb-in { box-shadow: 0 10px 20px rgba(0, 0, 0, .18), 0 30px 70px rgba(0, 20, 50, .32); }

#wcb .wcb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px 12px 16px;
  background: var(--wcb-navy); color: #fff;
  cursor: move; user-select: none; touch-action: none;
}
#wcb .wcb-head__ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
}
#wcb .wcb-head__t { flex: 1; min-width: 0; line-height: 1.3; }
#wcb .wcb-head__t b { display: block; font-size: 19px; }
#wcb .wcb-head__t span { display: block; font-size: 14.5px; color: #C8DAF0; }
#wcb .wcb-ic {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 8px; color: #fff;
}
#wcb .wcb-ic:hover { background: rgba(255, 255, 255, .14); }
#wcb .wcb-ic:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

#wcb .wcb-body {
  position: relative;   /* 안내 카드로 스크롤할 때 offsetTop 기준 */
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 14px 8px;
  background: #F4F7FB;
}

#wcb .wcb-form {
  display: flex; gap: 8px; align-items: center;
  margin: 0; padding: 8px 12px 12px;
  background: #fff;
}
#wcb .wcb-form input {
  flex: 1; min-width: 0; height: 52px; margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong, #C3D0E0); border-radius: 26px;
  font: inherit; font-size: 17px; color: var(--wcb-ink); background: #fff;
}
#wcb .wcb-form input:focus { outline: none; border-color: var(--wcb-navy); box-shadow: 0 0 0 3px rgba(0, 63, 140, .15); }
#wcb .wcb-form button {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; background: var(--wcb-navy); color: #fff;
}
#wcb .wcb-form button svg { width: 24px; height: 24px; }
#wcb .wcb-form button:hover { background: var(--wcb-navy-deep); }

/* 자주 찾는 안내 — 입력칸 바로 위에 늘 떠 있다 */
#wcb .wcb-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px 2px;
  border-top: 1px solid var(--wcb-line);
  background: #fff;
}
#wcb .wcb-quick:empty { display: none; }
#wcb .wcb-quick .wcb-chip { padding: 7px 13px; }

/* 크기 손잡이 — 네 변 · 네 모서리 */
#wcb .wcb-rz { position: absolute; z-index: 3; touch-action: none; }
#wcb .wcb-rz--n, #wcb .wcb-rz--s { left: 14px; right: 14px; height: 10px; cursor: ns-resize; }
#wcb .wcb-rz--n { top: -5px; }
#wcb .wcb-rz--s { bottom: -5px; }
#wcb .wcb-rz--e, #wcb .wcb-rz--w { top: 14px; bottom: 14px; width: 10px; cursor: ew-resize; }
#wcb .wcb-rz--e { right: -5px; }
#wcb .wcb-rz--w { left: -5px; }
#wcb .wcb-rz--ne, #wcb .wcb-rz--nw, #wcb .wcb-rz--se, #wcb .wcb-rz--sw { width: 18px; height: 18px; }
#wcb .wcb-rz--ne { top: -6px; right: -6px; cursor: nesw-resize; }
#wcb .wcb-rz--sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
#wcb .wcb-rz--nw { top: -6px; left: -6px; cursor: nwse-resize; }
#wcb .wcb-rz--se { bottom: -6px; right: -6px; cursor: nwse-resize; }
/* 오른쪽 아래 모서리에 잡는 자리 표시 */
#wcb .wcb-rz--se::after {
  content: ""; position: absolute; right: 9px; bottom: 9px; width: 9px; height: 9px;
  background:
    linear-gradient(135deg, transparent 45%, #9AAABF 45%, #9AAABF 55%, transparent 55%),
    linear-gradient(135deg, transparent 75%, #9AAABF 75%, #9AAABF 85%, transparent 85%);
}

/* ── 말풍선 ───────────────────────────────────────────── */
#wcb .wcb-row { display: flex; margin: 0 0 12px; }
#wcb .wcb-row--me { justify-content: flex-end; }
#wcb .wcb-me {
  max-width: 82%; padding: 9px 14px;
  background: var(--wcb-navy); color: #fff;
  border-radius: 16px 16px 4px 16px;
  font-size: 17px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;
}
#wcb .wcb-bot {
  max-width: 100%; width: 100%;
  padding: 13px 14px;
  background: #fff; border: 1px solid var(--wcb-line);
  border-radius: 4px 16px 16px 16px;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
#wcb .wcb-bot p { margin: 0 0 8px; }
#wcb .wcb-bot p:last-child { margin-bottom: 0; }
#wcb .wcb-bot a { color: var(--wcb-navy); font-weight: 700; }
#wcb .wcb-sub { margin: 10px 0 6px !important; font-size: 15px; color: var(--wcb-ink-2); font-weight: 600; }

#wcb .wcb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#wcb .wcb-chip {
  padding: 8px 14px;
  border: 1px solid #B9CBE3 !important; border-radius: 999px;
  background: #fff !important; color: var(--wcb-navy) !important;
  font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left;
}
#wcb .wcb-chip:hover { background: var(--wcb-tint) !important; border-color: var(--wcb-navy) !important; }
#wcb .wcb-chip--all { border-style: dashed !important; color: var(--wcb-ink-2) !important; }
#wcb .wcb-grp { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--wcb-ink-2); }
#wcb .wcb-grp:first-child { margin-top: 2px; }

#wcb .wcb-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
#wcb .wcb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AAABF; animation: wcb-dot 1s infinite ease-in-out; }
#wcb .wcb-typing i:nth-child(2) { animation-delay: .15s; }
#wcb .wcb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wcb-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

/* ── 안내 카드 ────────────────────────────────────────── */
#wcb .wcb-card__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
#wcb .wcb-card__h b { font-size: 20px; line-height: 1.35; color: var(--wcb-ink); }
#wcb .wcb-who {
  padding: 2px 8px; border-radius: 999px;
  background: #E7F4E2; color: var(--wcb-green);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
#wcb .wcb-steps { list-style: none; margin: 0; padding: 0; }
#wcb .wcb-steps li { margin: 0 0 14px; padding: 0; list-style: none; }
#wcb .wcb-steps li:last-child { margin-bottom: 4px; }
#wcb .wcb-step {
  display: inline-block; margin: 0 0 4px;
  padding: 2px 10px; border-radius: 5px;
  background: var(--wcb-navy); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.6;
}
#wcb .wcb-steps p { margin: 0 0 10px; font-size: 17px; }
#wcb .wcb-shot {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--wcb-line) !important; border-radius: 8px; overflow: hidden;
  background: var(--wcb-tint) !important; cursor: zoom-in;
}
#wcb .wcb-shot img { display: block; width: 100%; height: auto; max-width: none; }
#wcb .wcb-shot span {
  position: absolute; right: 6px; bottom: 6px;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(10, 25, 45, .72); color: #fff;
  font-size: 14px; font-weight: 600;
}
#wcb .wcb-shot:hover { border-color: var(--wcb-navy) !important; }
#wcb .wcb-tip {
  margin: 10px 0 0 !important; padding: 9px 12px;
  border-radius: 8px; background: #FFF7E3; color: #6A4A00;
  font-size: 16px; line-height: 1.6;
}
#wcb .wcb-card__f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#wcb .wcb-go, #wcb .wcb-more {
  display: inline-flex; align-items: center; gap: 4px;
  height: 50px; padding: 0 18px; border-radius: 8px;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
#wcb .wcb-go { background: var(--wcb-navy); color: #fff !important; }
#wcb .wcb-go:hover { background: var(--wcb-navy-deep); }
#wcb .wcb-more { border: 1px solid var(--wcb-line); color: var(--wcb-ink-2) !important; background: #fff; }
#wcb .wcb-tel { white-space: nowrap; }

/* ── 사진 크게 보기 ───────────────────────────────────── */
#wcb .wcb-zoom {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 18, 32, .84);
  cursor: zoom-out;
}
#wcb .wcb-zoom img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
#wcb .wcb-zoom button {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
}
#wcb .wcb-zoom button svg { width: 24px; height: 24px; }

/* ── 좁은 화면 ────────────────────────────────────────── */
@media (max-width: 560px) {
  #wcb .wcb-fab { right: 14px; bottom: 14px; height: 54px; padding: 0 18px 0 15px; font-size: 17px; }
  .to-top { right: 14px; bottom: 76px; }
  #wcb .wcb-zoom { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #wcb .wcb-fab, #wcb .wcb-typing i { transition: none; animation: none; }
}

/* 배번표 · 상장 등을 인쇄할 때 끼지 않게 */
@media print { #wcb { display: none !important; } }
