/* 하단 탭바 navigation/bottom + [Bottom Sheet_고객센터](표기 "고객지원") — components/common/BottomNav.tsx
   새 메인((home) home.css)과 기존 화면((site) bootstrap + style.css, html 62.5%) 공용이라 rem·변수 대신 px·값을 직접 쓰고
   bootstrap 의 a·button 기본값(밑줄·링크색·hover)을 덮는다. Figma 1434:3799 / 1438:3328, 12-02. */

.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
  display: flex; align-items: center; box-sizing: content-box; height: 60px; margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: #fff; filter: drop-shadow(0 -1px 4px rgba(0, 0, 0, .04));
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.bnav > a, .bnav > a:hover, .bnav > a:focus, .bnav > a:visited, .bnav > button {
  flex: 1 1 0; min-width: 0; height: 60px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent;
  font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0;
  color: #a2a5aa; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bnav > .on, .bnav > a.on:hover, .bnav > a.on:focus, .bnav > a.on:visited { color: #3d62ac; font-weight: 600; }
.bnav > a:focus:not(:focus-visible), .bnav > button:focus:not(:focus-visible) { outline: none; }
.bnav > a:focus-visible, .bnav > button:focus-visible { outline: 2px solid #3d62ac; outline-offset: -2px; }
.bnav img { display: block; width: 24px; height: 24px; flex: none; }

/* 바텀시트 — 탭바를 덮지 않고 탭바 바로 위에서, 탭바 뒤에서 올라오듯이(Dim 도 탭바 위까지만) */
.bnav-dim {
  position: fixed; left: 0; right: 0; top: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 1040;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: rgba(0, 0, 0, .4); animation: bnav-dim-in .2s ease-out;
}
.bnav-sheet {
  display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 40px); box-sizing: border-box;
  border-radius: 20px 20px 0 0; background: #fff; text-align: left; animation: bnav-sheet-up .25s ease-out;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.bnav-sheet *, .bnav-sheet *::before, .bnav-sheet *::after { box-sizing: border-box; }
@keyframes bnav-dim-in { from { background: transparent; } }
@keyframes bnav-sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .bnav-dim, .bnav-sheet { animation: none; } }
.bnav-sheet-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 20px; }
.bnav-sheet-head p { margin: 0; font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: 0; color: #1b1c1e; white-space: nowrap; }
.bnav-sheet-close { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bnav-sheet-close img { display: block; width: 20px; height: 20px; }
.bnav-sheet-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 0 24px 24px; }
/* list/item — Figma 테두리는 안쪽(크기 미포함)이라 padding 19 + 테두리 1 = 62px */
.bnav-sheet-body > a, .bnav-sheet-body > a:hover, .bnav-sheet-body > a:focus, .bnav-sheet-body > a:visited {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; margin: 0; padding: 19px;
  border: 1px solid #e8eaed; border-radius: 12px; background: #fff; text-decoration: none; letter-spacing: 0;
}
.bnav-sheet-body .t { flex: none; width: 88px; font-size: 15px; line-height: 22px; font-weight: 500; color: #1b1c1e; }
.bnav-sheet-body .d { font-size: 14px; line-height: 20px; font-weight: 500; color: #73777c; white-space: nowrap; }
.bnav-sheet-body > a:focus-visible, .bnav-sheet-close:focus-visible { outline: 2px solid #3d62ac; outline-offset: 2px; }

/* 탭바가 있는 화면(BottomNav 가 body.has-bnav) — MO/TA 만 */
@media (max-width: 1024px) {
  body.has-bnav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* 기존 화면 모바일 헤더의 전체메뉴 아이콘 → 하단 [전체]로 이동 (접수 단계처럼 탭바 없는 화면은 그대로) */
  body.has-bnav .header_content .moblie_wrap .fullMenuOpener { display: none; }
  /* 기존 화면 하단 고정 패널(요금제 상세 가입 영역·요금제 목록 필터)은 탭바 위로 */
  body.has-bnav .rate_select_area, body.has-bnav .filter_aside { bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1025px) {
  .bnav, .bnav-dim { display: none; }
}
