/* ROYJU v3.9.61 · 휴대폰 최적화 (사용자 99% 모바일) — 모든 화면 공통 · 데스크톱에는 영향 없음
 *   ① 글자 입력 칸 16px (아이폰 자동 확대 막기) ② 누르기 쉬운 크기 (44px) ③ 작은 글씨 최소 12px
 *   ④ 아래 고정 바(시작하기 · 앱 탭)가 있으면 챗봇 버튼을 위로 ⑤ 노치 · 홈 바 영역(safe-area) */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: rgba(255, 61, 142, .12); overflow-x: hidden; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .btn.btn-sm { min-height: 38px; }
  img, video, canvas { max-width: 100%; }
  /* 바닥 링크: 손가락으로 누르기 쉽게 */
  .ft .row { flex-wrap: wrap; gap: 4px 18px !important; }
  .ft .row a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
  .ft a[href^="tel:"] { display: inline-flex; min-height: 36px; align-items: center; }
  /* 아래 고정 바가 있는 화면: 내용 · 챗봇이 가리지 않게 */
  body.has-bbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-bbar #rjcb { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  body.has-bbar #rjcb .cb-fab { padding: 5px !important; gap: 0 !important; }
  body.has-bbar #rjcb .cb-fab .cb-lb, body.has-bbar #rjcb .cb-tease { display: none !important; }
  body.has-bbar #rjcb.open .cb-pan { bottom: 0; }
}

/* 공개 화면 · 아래 고정 "시작하기" 바 (휴대폰만 · 조금 내리면 나타남) */
.rj-mbar { display: none; }
@media (max-width: 768px) {
  .rj-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 -10px 30px -18px rgba(14, 26, 58, .35);
    transform: translateY(110%); transition: transform .28s ease; }
  .rj-mbar.on { transform: none; }
  .rj-mbar a { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 14px; font-weight: 800; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
  .rj-mbar .p { flex: 1.6; color: #fff; background: linear-gradient(90deg, #FF3D8E, #8B5CF6); box-shadow: 0 10px 22px -12px #FF3D8E; }
  .rj-mbar .s { color: #0E1A3A; background: #F1F2F7; }
}
