/* ════════════════════════════════════════════════════════════════
   ai-chat-fab.css — 화면 하단에 떠있는 "AI 챗봇" 진입 버튼(FAB).
   (2026-09-01 신규, 1차) 참고 스크린샷과 최대한 비슷하게 만든 버튼 UI.
   (2026-09-04, 2차) 우측 하단 기존 플로팅 버튼 묶음(.float-btns, index.css —
   카카오/전화/맨위로 등, bottom:80px) 바로 아래로 이동. z-index를 낮춰서
   .float-btns 리스트 뒤에 깔리도록 하고, bottom을 더 낮춰 "맨위로" 버튼
   아래에 위치시켰다. 실제 AI 대화 패널은 ai-chat-panel.js/css가 담당한다.
════════════════════════════════════════════════════════════════ */
.ai-chat-fab {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 1000;/* .float-btns(index.css, 999)보다 항상 위에 오도록 */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(120deg, #1e3a8a 0%, #4338ca 45%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(76, 29, 149, .35), 0 3px 8px rgba(30, 58, 138, .3);
  transition: transform .15s, box-shadow .15s;
}
.ai-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(76, 29, 149, .4), 0 4px 10px rgba(30, 58, 138, .35);
}
.ai-chat-fab:active { transform: translateY(0); }

.ai-chat-fab-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.ai-chat-fab-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  line-height: 1.25;
}
.ai-chat-fab-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: -.2px;
  white-space: nowrap;
}
.ai-chat-fab-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.ai-chat-fab-chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(255,255,255,.65);
  margin-left: 2px;
}

@media (max-width: 768px) {
  /* 2026-09-05: 모바일에서는 모양(알약형 + 아이콘 + 글자 + 화살표)은 그대로 두고
     전체를 축소판으로 — 화면을 덜 가리면서도 데스크톱과 동일한 느낌을 유지.
     (2026-09-05, 2차) 우측 하단 기존 플로팅 버튼 묶음(.float-btns — 카카오/유튜브/맨위로 등)과
     같은 자리(우측)에 겹쳐 보이던 문제 — 버튼 개수에 따라 .float-btns 스택 높이가
     달라져서 고정 bottom 값으로는 안전하게 피할 수 없으므로, 아예 반대편(좌측 하단)으로
     옮겨서 항상 서로 겹치지 않게 한다. */
  .ai-chat-fab {
    left: 12px;
    right: auto;
    bottom: calc(60px + 12px + env(safe-area-inset-bottom, 0px));
    padding: 5px 11px 5px 5px;
    gap: 6px;
    border-radius: 22px;
    box-shadow: 0 6px 14px rgba(76, 29, 149, .35), 0 2px 5px rgba(30, 58, 138, .3);
  }
  .ai-chat-fab-avatar { width: 24px; height: 24px; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
  .ai-chat-fab-eyebrow { font-size: 8px; }
  .ai-chat-fab-title { font-size: 11.5px; }
  .ai-chat-fab-chevron { font-size: 13px; margin-left: 1px; }
}
