/* 휴대폰 아래 전화 · 상담 띠(미리보기 2026-11-20 밤 — 이사 '전화가 많이 줄었다고 했잖아? 홈페이지를 바꾸면서 전화하기가 힘들어졌나....?' → '아래 띠 되살리기 (추천)', 총괄 전달).
   pages.json 의 callBar 가 있는 페이지만 이 파일을 받는다(head.html) — body.callbar · parts/diag.html 의 .cbar.
   809px 이하에서만: 화면 아래에 [전화하기](한 번에 tel:) · [무료 상담](한 화면 문의 창) 두 단추를 늘 보이게 하고, 오른쪽 아래 둥근 단추(.dg-mfab)는 뺀다.
   띠가 본문 · 바닥글을 가리지 않게 body 아래 여백 = 띠 높이(아이폰 홈 막대 포함). 문의 창이 열리면 띠는 내려감(site.js is-hide).
   PC · 태블릿(810px 이상)은 그대로 — 띠는 안 보이고, 홈은 [무료 상담] 창을 위해 붙인 진단의 떠 있는 단추 · 태블릿 아래 띠도 숨김(홈은 11-17 부터 문의 없음) */
.cbar { display: none; }
.pg-home.callbar .dg-fab, .pg-home.callbar .mbar { display: none !important; }

@media (max-width: 809px) {
  body.callbar { --cbar-h: 69px; padding-bottom: calc(var(--cbar-h) + env(safe-area-inset-bottom)); }
  .callbar .dg-mfab { display: none !important; }
  .callbar .ft-in, .callbar.pg-home .ft-in { padding-bottom: 28px; }   /* 둥근 단추 자리(100px)는 이제 필요 없음 — 띠 자리는 body 여백이 맡음 */
  .callbar .ind-dock { bottom: calc(var(--cbar-h) + 10px + env(safe-area-inset-bottom)); }   /* 홈 업종 줄은 띠 바로 위 */

  .cbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; box-sizing: border-box; left: 0; right: 0; bottom: 0; z-index: 57;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e3e7ee; box-shadow: 0 -6px 18px rgba(15, 22, 38, .07);
    transition: transform .3s ease; }
  .cbar.is-hide { transform: translateY(110%); }
  .cbar a, .cbar button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: 10px;
    font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: #fff; -webkit-tap-highlight-color: transparent; }
  .cbar .ico { font-size: 19px; }
  .cbar-call { background: #2f9e64; }   /* 둥근 단추의 전화 초록과 같은 색(2026-11-13) */
  .cbar-form { background: var(--blue); }
  .cbar a:active, .cbar button:active { filter: brightness(.92); }
}

@media (prefers-reduced-motion: reduce) {
  .cbar { transition: none; }
}
