/* 자동 생성 파일 — 원본 redesign/shared/help-widget.css · 반영 redesign/_tools/release.js. 여기서 직접 고치지 말 것 */
/* shared/help-widget.css — 도움말 챗봇 화면(결정 108, 화면 기준 챗봇 화면 문서 0번 1안 · 1번 ①~④)
   홈 · 서비스 · 요금 페이지 오른쪽 아래. 모든 선택자는 .hw 아래(페이지 스타일과 섞이지 않게) */
.hw { --hw-ink: #16181d; --hw-sub: #575c66; --hw-mute: #6b707a; --hw-line: #e3e5ea; --hw-soft: #f5f6f8; --hw-brand: #c8115a; --hw-brand-ink: #96103f;
  position: fixed; right: 24px; bottom: 24px; z-index: 900; font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; letter-spacing: -0.01em; word-break: keep-all; color: var(--hw-ink); line-height: 1.6; text-align: left; }
.hw *, .hw *::before, .hw *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hw button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hw button:focus { outline: none; }
.hw button:focus-visible, .hw input:focus-visible { outline: 2px solid #1d2d5c; outline-offset: 2px; }
/* 플로팅 버튼 = 같은 로고 */
.hw-fab { display: block; width: 60px; height: 60px; border-radius: 18px; filter: drop-shadow(0 8px 18px rgba(22, 24, 29, .22)); transition: transform .2s; }
.hw-fab:hover { transform: translateY(-2px); }
.hw-fab img { display: block; width: 100%; height: 100%; }
.hw.is-open .hw-fab { display: none; }
.hw.is-away:not(.is-open) .hw-fab { opacity: 0; visibility: hidden; transform: translateY(8px); }   /* 체험 채팅 구간 등(data-hw-avoid)이 보이는 동안 */
.hw-fab { transition: transform .2s, opacity .2s, visibility .2s; }
/* 패널 380 × 최대 640 */
.hw-panel { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; width: 380px; height: min(640px, calc(100vh - 48px)); border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(22, 24, 29, .16), 0 0 0 1px rgba(22, 24, 29, .04); overflow: hidden; }
.hw-panel[hidden] { display: none; }
/* 머리: 로고 34 + 이름 + 초록 점 + (대화) 홈 · 닫기 */
.hw-hd { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.hw.is-chat .hw-hd { border-bottom: 1px solid #f0f1f4; }
.hw-lg { flex: none; width: 34px; height: 34px; object-fit: contain; }
.hw-hd b { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.hw-hd small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--hw-sub); }
.hw-hd small i { width: 6px; height: 6px; border-radius: 50%; background: #1f9d55; }
.hw-ic { margin-left: auto; display: flex; gap: 2px; }
.hw-ic button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--hw-sub); }
.hw-ic button:hover { background: var(--hw-soft); }
.hw-ic button[hidden] { display: none; }
.hw-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ① 검색형 홈 */
.hw-home { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hw-home[hidden] { display: none; }
.hw-hm { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 0; }
.hw-h { font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.hw-srch { display: flex; align-items: center; gap: 8px; height: 46px; margin-top: 14px; padding: 0 6px 0 14px; border: 1.5px solid var(--hw-ink); border-radius: 14px; }
.hw-srch svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--hw-ink); stroke-width: 2.2; stroke-linecap: round; }
.hw-srch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--hw-ink); }
.hw-srch input::placeholder { color: var(--hw-mute); }
.hw-srch input:focus { outline: none; }
.hw-tabs { display: flex; gap: 6px; margin-top: 16px; }
.hw-tabs button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--hw-soft); font-size: 12.5px; font-weight: 700; color: var(--hw-sub); }
.hw-tabs button.on { background: var(--hw-ink); color: #fff; }
.hw-ql { margin-top: 8px; }
.hw-ql button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 2px; border-bottom: 1px solid #f0f1f4; font-size: 13.5px; font-weight: 600; text-align: left; }
.hw-ql button:last-child { border-bottom: 0; }
.hw-ql button:hover { color: var(--hw-brand-ink); }
.hw-ql svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--hw-mute); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hw-cta { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin: 12px 16px 16px; border-radius: 14px; background: var(--hw-brand) !important; color: #fff !important; font-size: 14.5px !important; font-weight: 700; }
.hw-cta:hover { background: #a90e4c !important; }
/* 대화가 남아 있을 때 — 최근 대화 한 줄 · 이어서 물어보기 · 대화 지우고 새로 시작 */
.hw-bot { flex: none; padding: 12px 16px 16px; }
.hw-bot .hw-cta { width: 100%; margin: 0; }
.hw-last { margin-bottom: 10px; padding: 10px 14px; border-radius: 12px; background: var(--hw-soft); }
.hw-last[hidden], .hw-rs[hidden] { display: none; }
.hw-last small { display: block; font-size: 11.5px; font-weight: 700; color: var(--hw-mute); }
.hw-last p { margin-top: 2px; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-rs { display: block; width: 100%; margin-top: 10px; text-align: center; font-size: 12.5px !important; color: var(--hw-mute) !important; text-decoration: underline; text-underline-offset: 3px; }
.hw-rs:hover { color: var(--hw-sub) !important; }
.hw-sep { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: 11.5px; color: var(--hw-mute); }
.hw-sep::before, .hw-sep::after { content: ""; flex: 1; height: 1px; background: var(--hw-line); }
.hw-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* ② 대화 */
.hw-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hw-chat[hidden] { display: none; }
.hw-bd { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.hw-m { display: flex; align-items: flex-start; gap: 8px; }
.hw-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; max-width: 86%; }
.hw-col .hw-b { max-width: 100%; }
.hw-nm { font-size: 12px; font-weight: 600; color: var(--hw-sub); }
/* 카카오톡 비율 — 아이콘 36(이름 + 첫 말풍선 윗부분), 첫 말풍선 왼쪽 위만 각지게 */
.hw-m .hw-av { width: 28px; height: 28px; }   /* 머리줄 로고(34)보다 작게 */ .hw-av svg { display: block; width: 100%; height: 100%; }
.hw-col { gap: 3px; }
.hw-av { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.hw-av img { display: block; width: 42px; height: 42px; margin: -7px 0 0 -7px; max-width: none; }   /* 로고를 원형으로 — 브랜드색 원 + 흰 세미콜론 */
.hw-av.is-gap { visibility: hidden; }
.hw-b { max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 6px; background: var(--hw-soft); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.hw-b b { font-weight: 700; }
.hw-u { align-self: flex-end; max-width: 80%; padding: 8px 13px; border-radius: 16px 16px 6px 16px; background: var(--hw-brand); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.hw-chips button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--hw-line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hw-chips button:hover { border-color: #c9cdd5; }
.hw-chips button.go { color: var(--hw-brand); border-color: #f3c3d6; background: #fff5f9; }
.hw-nx { padding-left: 36px; font-size: 12px; font-weight: 700; color: var(--hw-sub); }
/* ③ 표 카드 · ④ 시간 카드 */
.hw-card { margin-left: 36px; padding: 12px 14px; border: 1px solid var(--hw-line); border-radius: 14px; background: #fff; }
.hw-ck { font-size: 12px; font-weight: 700; color: var(--hw-brand-ink); }
.hw-pt { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12.5px; }
.hw-pt td { padding: 6px 0; border-top: 1px solid #f0f1f4; vertical-align: top; }
.hw-pt tr:first-child td { border-top: 0; }
.hw-pt td:last-child { padding-left: 10px; text-align: right; font-weight: 700; white-space: nowrap; }
.hw-pt td small { display: block; font-size: 11.5px; font-weight: 500; color: var(--hw-mute); }
.hw-cg { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--hw-sub); }
.hw-chs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.hw-chs span { padding: 3px 9px; border-radius: 99px; background: var(--hw-soft); font-size: 12px; font-weight: 600; }
/* 입력 */
.hw-ft { flex: none; display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #f0f1f4; }
.hw-ft input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--hw-soft); font: inherit; font-size: 13.5px; color: var(--hw-ink); }
.hw-ft input::placeholder { color: var(--hw-mute); }
.hw-ft input:focus { outline: 2px solid #c9cdd5; outline-offset: 0; }
.hw-sd { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--hw-brand) !important; }
.hw-sd svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .hw-m, .hw-u, .hw-chips, .hw-card, .hw-nx { animation: hw-in .25s ease both; } }
@keyframes hw-in { from { opacity: 0; transform: translateY(4px); } }
/* 모바일 = 화면 꽉 차게 */
@media (max-width: 480px) {
  .hw { right: 16px; bottom: 16px; }
  .hw-fab { width: 56px; height: 56px; }
  /* 휴대폰도 전체 화면 대신 떠 있는 창(양옆 · 아래 12px, 화면 높이의 78%까지) — 2026-10-12 */
  .hw.is-open .hw-panel { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; height: min(620px, 78vh); height: min(620px, 78dvh); border-radius: 20px; }
}
/* 문의량 계산 카드 줄 · 플랜 고르기 카드(결정 116) — 값 칸이 긴 글이면 줄바꿈 · 왼쪽 맞춤 */
.hw-cl { margin-top: 6px; font-size: 12.5px; line-height: 1.55; font-weight: 600; color: var(--hw-ink); }
.hw-ck + .hw-cl { margin-top: 8px; }
.hw-cl + .hw-cl { padding-top: 6px; border-top: 1px solid #f0f1f4; font-weight: 500; color: var(--hw-sub); }
.hw-card.is-wide .hw-pt td:first-child { width: 96px; font-weight: 700; }
.hw-card.is-wide .hw-pt td:last-child { white-space: normal; text-align: left; font-weight: 500; color: var(--hw-sub); }
/* 답할 수 있는 범위 안내(2026-10-12) — 이어;톡 서비스 · 요금 · 도입만, 쇼핑몰 주문 문의는 해당 쇼핑몰로 */
.hw-scope { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--hw-mute); }
.hw-hd-scope { display: none !important; } .hw.is-chat .hw-hd-scope { display: flex !important; }   /* 머리줄 범위 줄은 채팅 화면에서만(첫 화면은 인사 아래 안내) */
