/* ============================================================================
   AI 챗봇 (DB 직접 연동) — 2026-11-29
   기존 상담 도우미(#sfHelper) 톤에 맞춘 최소 스타일.
   · 이 파일은 추가 전용입니다. 다른 CSS 를 덮어쓰지 않습니다.
   ========================================================================== */

:root {
  --cb-brand: var(--sf-brand, #1e5eff);
  --cb-brand-soft: var(--sf-brand-soft, #eaf1ff);
  --cb-ink: var(--sf-ink, #0f172a);
  --cb-ink2: var(--sf-ink-2, #334155);
  --cb-muted: var(--sf-muted, #64748b);
  --cb-line: var(--sf-line, #e2e8f0);
  --cb-bg: #ffffff;
  --cb-shadow: 0 18px 50px rgba(15, 23, 42, .18);
}

/* ---------------------------------------------------------------- 런처 */
.cb-launcher {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e5eff 0%, #3b82f6 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 10px 26px rgba(30, 94, 255, .35);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.cb-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30, 94, 255, .42); }
.cb-launcher-ico { font-size: 17px; line-height: 1; }
.cb-launcher-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.cb-launcher.is-hidden { display: none; }

/* 상담 도우미 안에 들어간 버튼 */
.sf-helper-item--chat { background: var(--cb-brand-soft); color: var(--cb-brand); }
.sf-helper-item--chat:hover { background: #dbe8ff; color: var(--cb-brand); }

/* ---------------------------------------------------------------- 패널 */
.cb-panel {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 950;
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 620px;
  max-height: calc(100vh - 130px);
  display: none;
  flex-direction: column;
  background: var(--cb-bg);
  border: 1px solid var(--cb-line);
  border-radius: 20px;
  box-shadow: var(--cb-shadow);
  overflow: hidden;
  font-family: inherit;
}
.cb-panel.is-open { display: flex; }
.cb-panel * { box-sizing: border-box; }

.cb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  background: linear-gradient(135deg, #12306e 0%, #1e5eff 100%);
  color: #fff;
}
.cb-head-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  font-size: 17px;
}
.cb-head-txt { flex: 1; min-width: 0; }
.cb-head-txt strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.cb-head-txt span { display: block; margin-top: 2px; font-size: 11px; opacity: .85; }
.cb-close {
  width: 30px; height: 30px;
  border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer;
}

.cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 6px;
  background: #f6f8fc;
  scroll-behavior: smooth;
}
.cb-msg { display: flex; margin-bottom: 12px; }
.cb-msg--bot { justify-content: flex-start; }
.cb-msg--user { justify-content: flex-end; }
.cb-bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--cb-ink);
  background: #fff;
  border: 1px solid var(--cb-line);
  white-space: pre-line;
  word-break: break-word;
}
.cb-msg--user .cb-bubble {
  background: var(--cb-brand);
  border-color: var(--cb-brand);
  color: #fff;
}
.cb-bubble a { color: var(--cb-brand); font-weight: 700; }

/* 섹션 */
.cb-sec {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--cb-line);
  border-radius: 14px;
  background: #fff;
}
.cb-sec-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cb-ink);
  letter-spacing: -.02em;
}
.cb-sec-text {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--cb-muted);
}
.cb-rows { margin: 9px 0 0; padding: 0; }
.cb-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--cb-line);
  font-size: 11.5px;
  line-height: 1.5;
}
.cb-row:first-child { border-top: 0; }
.cb-row dt { flex: 0 0 92px; color: var(--cb-muted); font-weight: 700; }
.cb-row dd { flex: 1; margin: 0; color: var(--cb-ink2); }

.cb-cards { display: grid; gap: 8px; margin-top: 9px; }
.cb-card {
  display: block;
  padding: 10px 11px;
  border: 1px solid var(--cb-line);
  border-radius: 12px;
  background: #fbfcff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cb-card:hover { border-color: #b9cdff; box-shadow: 0 6px 16px rgba(30, 94, 255, .10); }
.cb-card-top { display: flex; align-items: flex-start; gap: 6px; }
.cb-card-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cb-ink);
  line-height: 1.45;
  letter-spacing: -.02em;
}
.cb-card-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--cb-brand-soft);
  color: var(--cb-brand);
  font-size: 10px;
  font-weight: 800;
}
.cb-card-sub { margin-top: 3px; font-size: 11px; color: var(--cb-muted); }
.cb-card-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
  color: var(--cb-brand);
  letter-spacing: -.03em;
}
.cb-card-note { margin-top: 3px; font-size: 10.5px; color: var(--cb-muted); line-height: 1.5; }
.cb-card-more {
  display: inline-block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--cb-brand);
}

.cb-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--cb-brand-soft);
  color: var(--cb-brand);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.cb-consult {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ffd9a8;
  border-radius: 12px;
  background: #fff8ec;
}
.cb-consult-title { font-size: 12px; font-weight: 800; color: #8a5300; }
.cb-consult-text { margin-top: 4px; font-size: 11px; line-height: 1.55; color: #8a5300; }
.cb-consult-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cb-mini-btn {
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #8a5300;
  border: 1px solid #f0c98f;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.cb-mini-btn--primary { background: #b46b00; border-color: #b46b00; color: #fff; }

.cb-form { display: none; margin-top: 10px; gap: 6px; flex-direction: column; }
.cb-form.is-open { display: flex; }
.cb-form input,
.cb-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e5cfae;
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--cb-ink);
}
.cb-form textarea { resize: vertical; min-height: 54px; }
.cb-form-row { display: flex; gap: 6px; }
.cb-form-msg { font-size: 11px; color: #8a5300; min-height: 14px; }

/* 입력·빠른 버튼 */
.cb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 0;
  background: #fff;
  border-top: 1px solid var(--cb-line);
}
.cb-chip {
  padding: 7px 11px;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cb-ink2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.cb-chip:hover { border-color: #b9cdff; color: var(--cb-brand); background: #f4f8ff; }

.cb-inputbar {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
}
.cb-input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--cb-line);
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  color: var(--cb-ink);
}
.cb-input:focus { outline: 2px solid #cfe0ff; background: #fff; }
.cb-send {
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--cb-brand);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.cb-send[disabled] { opacity: .55; cursor: default; }

.cb-typing { display: inline-flex; gap: 4px; align-items: center; }
.cb-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8;
  animation: cb-dot 1s infinite ease-in-out;
}
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.cb-foot-note {
  padding: 0 14px 10px;
  background: #fff;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.5;
}

/* 상품별 「이 상품 물어보기」 버튼 */
.cb-ask-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  min-height: 42px;
  border: 1px solid #bcd0ff;
  border-radius: 11px;
  background: #f2f7ff;
  color: var(--cb-brand);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -.02em;
}
.cb-ask-btn:hover { background: #e6efff; }
.sf-card-actions .cb-ask-btn { min-height: 38px; padding: 0 10px; font-size: 11.5px; flex: 1 1 auto; }
.sf-detail-actions .cb-ask-btn { margin-bottom: 8px; width: 100%; }

/* 모바일 */
@media (max-width: 860px) {
  .cb-launcher {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    padding: 10px 14px;
    font-size: 12.5px;
    /* 하단 도우미 바(.sf-helper, z 900)보다 아래 — 어떤 화면에서 겹쳐도 바의 버튼이 먼저 눌린다 */
    z-index: 890;
  }
  /* 2026-11-29 — 사은품 화면(gl-page)은 페이지 자체 하단 바(.gl-mbar, 높이 53px) 때문에
     도우미 바가 53px 위로 올라가 있어 런처가 그 가운데를 덮었다.
     런처도 같은 높이만큼 올려 도우미 바를 가리지 않는다(도우미 바 높이 59.5 + 여백 8 + 53). */
  .gl-page .cb-launcher,
  body:has(.gl-mbar) .cb-launcher {
    bottom: calc(127px + env(safe-area-inset-bottom));
  }
  .cb-panel {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: none;
    height: 88vh;
    max-height: none;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  .cb-head { padding-top: calc(14px + env(safe-area-inset-bottom) * 0); }
  .cb-body { padding-bottom: 10px; }
  .cb-rows .cb-row dt { flex-basis: 78px; }
}

@media (min-width: 861px) and (max-width: 1499px) {
  /* 상담 도우미 레일이 숨는 구간에서도 런처는 그대로 보인다 */
  .cb-launcher { bottom: 24px; }
}

/* ============================================================================
   2026-11-29 추가 — 음성 입출력 (🎤 마이크 질문 · 🔊 답변 음성 읽기)
   · 마이크: 입력창 오른쪽, 녹음 중에는 빨간 펄스
   · 읽기 토글: 헤더 오른쪽 🔇(꺼짐)/🔊(켜짐), 기본은 항상 꺼짐
   · 말풍선 옆 작은 🔊 는 그 답변만 읽어준다
   ========================================================================== */
.cb-tts {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.cb-tts:hover { background: rgba(255, 255, 255, .28); }
.cb-tts.is-on {
  background: #fff;
  color: var(--cb-brand);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .32);
}

.cb-mic {
  flex: 0 0 auto;
  width: 44px;
  border: 1px solid var(--cb-line);
  border-radius: 12px;
  background: #f1f5fb;
  color: var(--cb-ink2);
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cb-mic:hover { background: #eaf1ff; border-color: #b9cdff; color: var(--cb-brand); }
.cb-mic.is-rec {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  animation: cb-mic-pulse 1.2s infinite;
}
@keyframes cb-mic-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, .42); }
  70%  { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.cb-listen {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 0 2px 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.cb-listen:hover { color: var(--cb-brand); border-color: #b9cdff; background: #f4f8ff; }
.cb-listen.is-playing { color: var(--cb-brand); border-color: #b9cdff; background: #eef4ff; }

@media (max-width: 860px) {
  .cb-mic { width: 42px; }
  .cb-tts { width: 30px; height: 30px; }
}

/* ============================================================================
   2026-11-29 추가 — 「말로 하는 상담」 마이크 아이콘 · 본문 진입 버튼
   · 런처·창 헤더·상담 도우미·상품 버튼의 💬 를 마이크(SVG)로 통일
   · 각 페이지 본문의 [data-cb-starter] 칩 — 어수선하지 않게 한 줄 pill
   ========================================================================== */
.cb-launcher-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px;
}
.cb-launcher-txt { white-space: nowrap; }
.cb-head-ico svg { display: block; }
.sf-helper-ico svg { display: block; }
.cb-ask-btn svg { flex: 0 0 auto; }

.cb-starter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 9px;
  border: 1px solid #c7d8ff; border-radius: 999px;
  background: linear-gradient(135deg, #f4f8ff 0%, #e9f1ff 100%);
  color: #1746c9; font-family: inherit; font-size: 13px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2; text-align: left; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.cb-starter:hover { transform: translateY(-1px); border-color: #9fbaff; background: #eaf2ff; box-shadow: 0 10px 22px -16px rgba(30, 94, 255, .85); }
.cb-starter:focus-visible { outline: 2px solid #1e5eff; outline-offset: 2px; }
.cb-starter-ico {
  flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, #1e5eff 0%, #3b82f6 100%);
  color: #fff; box-shadow: 0 4px 10px -6px rgba(30, 94, 255, .9);
}
.cb-starter-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cb-starter-txt strong { font-size: 13px; font-weight: 800; color: #12306e; }
.cb-starter-txt > span { font-size: 11px; font-weight: 700; color: #5b7cc4; letter-spacing: -.01em; }
.cb-starter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cb-starter-row--tight { margin: 0 0 14px; }
.cb-starter-side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

@media (max-width: 600px) {
  .cb-starter { width: 100%; justify-content: center; padding: 9px 12px; }
  .cb-starter-txt > span { display: none; }
  .cb-starter-side { width: 100%; justify-content: flex-start; margin-top: 12px; }
}

/* ============================================================================
   2026-11-29 추가 — 입력창 오른쪽 「🎤 말하기 ↔ ↑ 전송」 한 자리 자동 전환
   · 입력이 비면 말하기만, 공백 제외 1자 이상이면 같은 자리가 전송으로 바뀐다.
   · 자리 폭을 고정해 전환할 때 입력창이 흔들리지 않고, 두 면은 겹쳐 두고
     투명도·살짝 밀림만 바꿔 부드럽게 교차한다.
   ========================================================================== */
.cb-act {
  position: relative;
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #b9cdff;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--cb-brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.cb-act:hover { background: #e2ecff; border-color: #9dbaff; }
.cb-act-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity .16s ease, transform .16s ease;
}
.cb-act-face--mic svg { width: 16px; height: 16px; }
.cb-act-face--send { opacity: 0; transform: translateY(7px) scale(.92); }
.cb-act.is-send {
  background: var(--cb-brand);
  border-color: var(--cb-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 94, 255, .26);
}
.cb-act.is-send .cb-act-face--mic { opacity: 0; transform: translateY(-7px) scale(.92); }
.cb-act.is-send .cb-act-face--send { opacity: 1; transform: none; }
.cb-act-arrow { font-size: 14px; transform: translateY(-1px); }
.cb-act[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.cb-act.is-rec {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  animation: cb-mic-pulse 1.2s infinite;
}
.cb-act.is-rec .cb-act-txt { letter-spacing: -.2px; }
@media (max-width: 860px) {
  .cb-act { min-width: 88px; padding: 0 10px; font-size: 12.5px; }
}

/* ============================================================================
   2026-11-29 추가 — 상품 카드 「이 상품 물어보기」를 작은 원형 마이크 1개로 통일
   · 글자 버튼(이 상품 말로 물어보기)을 없애고, 카드 버튼 줄 오른쪽 끝에 36px 원형.
   · 대상 카드: 렌탈(.sf-card) · 가전 사은품(.gl-card) · 사업자(.v4-product) · 메인 사은품(.gift-card)
   ========================================================================== */
.cb-ask-btn--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  flex: 0 0 36px; margin-left: auto;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff; cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .95);
  transition: background .15s ease, transform .15s ease;
}
.cb-ask-btn--icon:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); }
.cb-ask-btn--icon:focus-visible { outline: 2px solid #1e5eff; outline-offset: 2px; }
.cb-ask-btn--icon svg { width: 17px; height: 17px; }
.sf-card-actions .cb-ask-btn--icon,
.gl-card__acts .cb-ask-btn--icon,
.v4-product__actions .cb-ask-btn--icon,
.gift-card__acts .cb-ask-btn--icon {
  width: 36px; min-height: 36px; padding: 0; flex: 0 0 36px; margin-left: auto;
}
@media (max-width: 600px) {
  .cb-ask-btn--icon,
  .sf-card-actions .cb-ask-btn--icon,
  .gl-card__acts .cb-ask-btn--icon,
  .v4-product__actions .cb-ask-btn--icon,
  .gift-card__acts .cb-ask-btn--icon {
    width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px;
  }
  .cb-ask-btn--icon svg { width: 16px; height: 16px; }
}

/* 히어로 예시 칩 줄 맨 앞에 한 줄로 붙는 「말로 하는 상담」 (별도 줄 제거) */
.cb-starter--inline {
  width: auto; flex: 0 0 auto;
  padding: 5px 12px 5px 6px; gap: 6px; font-size: 12px;
}
.cb-starter--inline .cb-starter-ico { width: 20px; height: 20px; }
.cb-starter--inline .cb-starter-txt strong { font-size: 12px; }
.cb-starter--inline .cb-starter-txt > span { font-size: 10.5px; }
@media (max-width: 600px) {
  .cb-starter.cb-starter--inline {
    width: auto; justify-content: flex-start; padding: 5px 10px 5px 6px; gap: 6px;
  }
  .cb-starter--inline .cb-starter-txt > span { display: none; }
}

/* 카드 버튼 줄 높이가 다른 화면(렌탈 40px · 사업자 40px)에서도 마이크는 가운데 정렬 */
.sf-card-actions .cb-ask-btn--icon,
.gift-card__acts .cb-ask-btn--icon,
.gl-card__acts .cb-ask-btn--icon { align-self: center; }
/* 사업자(b2b) 카드: 버튼 줄 자식 전체에 걸린 height/radius 규칙보다 우선해 원형 유지 */
body.sf-page .v4-cat .v4-product__actions > .cb-ask-btn--icon {
  width: 40px; height: 40px; min-height: 40px; flex: 0 0 40px;
  border: 0; border-radius: 999px; padding: 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff; align-self: center;
}
body.sf-page .v4-cat .v4-product__actions > .cb-ask-btn--icon:hover { background: #1d4ed8; color: #fff; }
/* 메인 「인터넷 가입하면 가전 사은품」 카드(.sf-giftcard)도 같은 원형 마이크를 쓴다 */
.sf-giftcard-actions .cb-ask-btn--icon { width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px; margin-left: auto; align-self: center; }
/* 메인 사은품 카드는 두 버튼이 2칸 그리드라, 마이크가 아래 줄로 떨어지지 않게 3번째 칸(auto)을 둔다 */
.sf-page .sf-giftcard-actions { grid-template-columns: 1fr 1fr auto; }
.sf-page .sf-giftcard-actions .cb-ask-btn--icon { align-self: center; }
@media (max-width: 640px) {
  .sf-page .sf-giftcard-actions { gap: 5px; }
  .sf-page .sf-giftcard-actions .sf-btn { padding: 0 3px; font-size: 11.5px; }
  .sf-page .sf-giftcard-actions .cb-ask-btn--icon { width: 30px; height: 30px; min-height: 30px; flex-basis: 30px; }
}

/* ============================================================================
   2026-11-29 모바일 보완
   1) 플로팅 런처는 모바일 하단 상담 바(.sf-helper)의 「24시 말로 하는 상담」 버튼과
      같은 일을 하므로 모바일에서만 숨긴다(PC 우측 하단 런처는 그대로).
   2) 패널 폭을 left/right 기준으로 고정한다 — width:100% 가 화면 폭 계산과
      어긋나면 좌우로 밀려 보일 수 있어, 다른 페이지와 같은 고정 폭이 된다.
   3) z-index 를 1050 으로 올린다 — 페이지의 sticky 헤더(internet-v4-indep 의 999 등)가
      패널 위를 덮어 상단 ✕ 닫기 버튼이 가려지던 문제. 상단 여백도 남겨 ✕ 가
      화면 밖으로 잘리지 않게 한다.
   ========================================================================== */
.cb-panel { z-index: 1050; }

@media (max-width: 860px) {
  /* 하단 상담 바가 있는 화면에서만 런처를 숨긴다(로그인 등 바가 없는 화면은 런처 유지) */
  body:has(#sfHelper) .cb-launcher { display: none !important; }
  .cb-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 88vh;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }
}

/* 인터넷 랜딩(internet-v4-indep) 계열 페이지에는 DOM 글자에서 ✕(U+2715)를 지우는
   이모지 정리 스크립트가 돌아 닫기 버튼이 빈칸이 된다. 글자 대신 CSS 로 그려
   어떤 페이지에서도 X 가 보이게 한다. */
.cb-close { display: grid; place-items: center; font-size: 0; line-height: 1; }
.cb-close::before { content: "\2715"; font-size: 15px; line-height: 1; font-weight: 700; }
