/* ===== contract_phone 신청/견적 화면 스타일 (_apply.php 에서 분리) ===== */
.bxt2{max-width:1360px;margin:24px auto;padding:0 16px 48px;display:grid;grid-template-columns:minmax(0,1fr) 620px;gap:28px;align-items:start;font-family:'Pretendard',sans-serif;color:#191f28;}
.bxt2 *{box-sizing:border-box;}

/* 특수상품 표시(단순개봉 등) — 상세영역(.bxt2-left) 최상단 이미지 배너(.bxt2-flagimg: .bxt2-lsec 여백 + .bxt2-left img 전체폭 상속) + 제품명 옆 파란 글씨 */
.bxt2-flag-inline{margin-left:8px;color:#3182f6;font-weight:800;font-size:15px;vertical-align:middle;white-space:nowrap;}

/* 좌측: 제품/선택 */
.bxt2-left{min-width:0;}
.bxt2-title{font-size:22px;font-weight:800;margin:0 0 16px;}
.bxt2-img-empty{padding:60px 20px;text-align:center;color:#8b95a1;background:#f7f8fa;border-radius:12px;font-size:14px;margin-bottom:20px;}
/* 좌측: 상세 이미지 */
.bxt2-detail-hd{font-size:18px;font-weight:800;padding:0 0 14px;border-bottom:2px solid #191f28;margin-bottom:16px;}
.bxt2-left img{display:block;width:100%;height:auto;border-radius:8px;}
/* 통신사별 하단 콘텐츠(사전승낙서 등) — 상세이미지 바로 아래 */
.bxt2-consent{margin-top:16px;padding-top:16px;border-top:1px solid #f0f0f0;font-size:13px;color:#6b7684;line-height:1.6;}
.bxt2-consent img{display:inline-block;width:auto;max-width:100%;height:auto;border-radius:0;vertical-align:middle;}
.bxt2-consent a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:inherit;}
.bxt2-consent .tg2{font-weight:600;}
/* 우측 패널 내부 선택 영역 */
.bxt2-panel-pad{padding:18px 20px;border-bottom:1px solid #f2f2f2;}
.bxt2-panel-pad .bxt2-title{font-size:18px;margin:0 0 8px;}
.bxt2-panel-pad .bxt2-row{padding:12px 0;}
/* 우측 카드 내부 2단 (좌:제품선택 / 우:할인·가격) — 가운데 세로 경계선 */
.bxt2-card-cols{display:grid;grid-template-columns:1fr 1fr;align-items:start;}
.bxt2-col-l{padding:18px 20px;min-width:0;}
/* 제품명: 카드 전체폭 헤더(좌/우 컬럼 공통 위) — 두 컬럼이 같은 높이에서 시작되도록 */
.bxt2-card-title{font-size:18px;margin:0;padding:16px 20px 0;}
.bxt2-col-r{border-left:1px solid #eee;min-width:0;}
.bxt2-col-pad{padding:18px 20px;border-bottom:1px solid #f2f2f2;}
/* 카드 내부 선택 행: 라벨 위 / 컨트롤 아래(좁은 칼럼 대응) */
.bxt2-card-cols .bxt2-row{display:block;padding:10px 0;border-top:0;}
.bxt2-card-cols .bxt2-row > .lab{display:block;padding:0 0 8px;font-size:13px;}
@media (max-width:700px){
  .bxt2-card-cols{grid-template-columns:1fr;}
  .bxt2-col-r{border-left:0;border-top:1px solid #eee;}
}
.bxt2-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:start;padding:16px 0;border-top:1px solid #f0f0f0;}
.bxt2-row:first-of-type{border-top:0;}
.bxt2-row > .lab{font-size:14px;font-weight:600;color:#4b5563;padding-top:10px;}
/* 필수 선택 라벨 마커 — 라벨 텍스트(예:'용량')와 [필수]를 글자 하단(바텀 끝) 기준 정렬.
   baseline은 폰트크기가 다른 두 글자(13/12px)의 기준선만 맞춰 한글 밑선이 어긋나므로 flex-end 사용.
   :has() 미지원 브라우저 대비, 라벨을 직접 flex 컨테이너로 지정(STEP1 카드 라벨 + STEP2 폼 라벨).
   라벨/마커 line-height를 동일하게 둬야 flex 하단정렬이 글자 밑선에 정확히 붙는다. */
.bxt2-card-cols .bxt2-row > .lab,
.bxt2-lead .bxt2-row > .lab{display:flex;align-items:flex-end;flex-wrap:wrap;line-height:1.15;}
/* 대괄호가 기준선 아래로 더 내려와 시각적으로 1~2px 낮게 보이는 것 보정(위로 살짝 올림) */
.bxt2-must{margin-left:4px;font-size:12px;font-weight:700;line-height:1.15;color:#dc2626;position:relative;top:-2px;}
/* STEP2 폼(이름/연락처) 라벨은 14px(카드 13px보다 큼)이라 같은 보정값이 0.5px 과함 → 0.5px 덜 올림 */
.bxt2-lead .bxt2-must{top:-1.5px;}
.bxt2-chips{display:flex;flex-wrap:wrap;gap:8px;}
.bxt2-chip{min-height:44px;padding:0 14px;border:1px solid #e5e8eb;background:#fff;border-radius:10px;font-weight:600;font-size:14px;cursor:pointer;}
.bxt2-chip.sm{font-size:12.5px;padding:0 10px;}
/* 현재 통신사 칩: 본사 3개 / 알뜰폰 3개를 줄바꿈(flex 강제 줄넘김) */
.bxt2-chip-break{flex-basis:100%;height:0;margin:0;padding:0;}
/* 알뜰폰 접두 라벨: 'KT망/SK망/LG망' 칩 앞에 한 번만 표기(칩마다 '알뜰폰' 중복 제거) */
.bxt2-chip-pfx{display:inline-flex;align-items:center;font-size:14px;font-weight:600;color:#4b5563;margin-right:2px;}
.bxt2-chip.on{border-color:#3182f6;background:#e8f3ff;color:#3182f6;}
.bxt2-ro{display:inline-block;min-height:44px;line-height:44px;padding:0 16px;border:1px solid #e5e8eb;border-radius:10px;background:#f8f9fa;font-weight:700;}
.bxt2-empty{font-size:13px;color:#8b95a1;padding-top:12px;}
.bxt2-select{width:100%;height:48px;padding:0 12px;border:1px solid #e5e8eb;border-radius:10px;font-size:15px;background:#fff;}
.bxt2-plan-meta{margin-top:8px;font-size:13px;color:#6b7684;}
/* 요금제 선택 시 제공량 박스 [데이터·통화·문자] */
.bxt2-plan-spec{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:8px;background:#e5e8eb;border:1px solid #e5e8eb;border-radius:10px;overflow:hidden;}
.bxt2-spec-cell{background:#fff;padding:9px 6px;text-align:center;}
.bxt2-spec-cell .k{font-size:11.5px;color:#8b95a1;margin-bottom:3px;}
.bxt2-spec-cell .v{font-size:14px;font-weight:700;color:#191f28;line-height:1.25;word-break:keep-all;}
.bxt2-spec-cell .sub{font-size:11px;color:#6b7684;margin-top:2px;}
/* 요금제별 필수 부가서비스 — 빨간 작은 글씨 */
.bxt2-req{margin-top:8px;font-size:12.5px;font-weight:600;color:#dc2626;line-height:1.4;}
.bxt2-2col{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.bxt2-opt{border:1px solid #e5e8eb;border-radius:10px;padding:12px;cursor:pointer;text-align:center;}
.bxt2-opt.on{border-color:#3182f6;background:#e8f3ff;}
.bxt2-opt .t{font-size:14px;font-weight:700;}
.bxt2-opt .s{font-size:12px;color:#6b7684;margin-top:4px;}
.bxt2-opt.on .s{color:#3182f6;}
/* (약정 24개월로) — 금액보다 한 톤 더 흐릿하게 */
.bxt2-opt .bxt2-opt-term{display:block;font-size:11px;color:#b0b8c1;font-weight:400;margin-top:2px;}
.bxt2-opt.on .bxt2-opt-term{color:#3182f6;}

/* 우측: 가격/신청 카드 */
.bxt2-right{position:sticky;top:84px;}
.bxt2-card{background:#fff;border:1px solid #e5e8eb;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.08);overflow:hidden;}
/* PC: 신청 카드가 화면(뷰포트)보다 길면 잘리지 않게 — 화면 높이에 맞춰 카드 안에서만 스크롤.
   (어떤 PC 비율/높이에서도 하단 [상담/주문 신청] 버튼까지 항상 닿게 함) */
@media (min-width:901px){
  .bxt2-card{max-height:calc(100vh - 108px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}
  .bxt2-card::-webkit-scrollbar{width:8px;}
  .bxt2-card::-webkit-scrollbar-thumb{background:#d4d8de;border-radius:8px;}
  .bxt2-card::-webkit-scrollbar-track{background:transparent;}
}
.bxt2-sec{padding:18px 20px;border-bottom:1px solid #f2f2f2;}
.bxt2-sec .hd{display:flex;justify-content:space-between;align-items:center;font-weight:700;}
.bxt2-sec .hd .badge{display:inline-flex;width:20px;height:20px;margin-right:8px;align-items:center;justify-content:center;border-radius:6px;background:#3182f6;color:#fff;font-size:12px;}
.bxt2-sec .hd .amt{font-size:18px;}
.bxt2-line{display:flex;justify-content:space-between;font-size:13px;color:#6b7684;margin-top:8px;}
.bxt2-line.minus span:last-child{color:#3182f6;}
.bxt2-line.strong{color:#191f28;font-weight:700;font-size:14px;}
.bxt2-total{padding:18px 20px;}
.bxt2-total .lab{font-size:14px;font-weight:700;}
.bxt2-total .big{text-align:right;font-size:30px;font-weight:800;color:#191f28;}
.bxt2-total .big small{font-size:15px;font-weight:700;margin-left:2px;}
.bxt2-cta{display:block;width:100%;height:54px;line-height:54px;text-align:center;border:0;border-radius:12px;background:#3182f6;color:#fff;font-size:17px;font-weight:800;cursor:pointer;}
.bxt2-subbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
.bxt2-subbtn{height:46px;border:1px solid #e5e8eb;border-radius:10px;background:#f8f9fa;font-weight:600;font-size:14px;cursor:pointer;}
.bxt2-pad{padding:18px 20px;}

/* 신청정보(2단계) */
.bxt2-back{background:none;border:0;color:#6b7684;font-size:14px;cursor:pointer;padding:0 0 12px;}
.bxt2-field{margin-bottom:14px;}
.bxt2-field > span{display:block;font-size:13px;color:#6b7684;margin-bottom:6px;}
.bxt2-field input{width:100%;height:48px;padding:0 14px;border:1px solid #e5e8eb;border-radius:10px;font-size:15px;}
.bxt2-copy{display:flex;width:100%;align-items:center;justify-content:center;gap:4px;margin-top:4px;border:0;border-radius:10px;padding:14px;font-weight:700;background:#3182f6;color:#fff;cursor:pointer;font-size:15px;}
.bxt2-btn{width:100%;height:50px;border:0;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;margin-top:8px;}
.bxt2-btn.sub{background:#f2f4f6;color:#333;}
.bxt2-btn.sub.ready{background:#FEE500;color:#191600;box-shadow:0 2px 8px rgba(254,229,0,.45);}
.bxt2-btn.main{background:#3182f6;color:#fff;}

/* 상담 방법 선택 팝업 */
.bxt2-pop{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;}
.bxt2-pop-dim{position:absolute;inset:0;background:rgba(0,0,0,.45);}
.bxt2-pop-box{position:relative;width:100%;max-width:360px;padding:24px 20px 20px;background:#fff;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.2);box-sizing:border-box;}
.bxt2-pop-x{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;background:transparent;font-size:26px;line-height:1;color:#666;cursor:pointer;}
.bxt2-pop-title{font-size:20px;font-weight:700;color:#191f28;text-align:center;}
.bxt2-pop-phone{margin-top:8px;font-size:14px;color:#6b7684;text-align:center;}
.bxt2-pop-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:54px;margin-top:10px;border:0;border-radius:12px;font-size:17px;font-weight:700;text-decoration:none;cursor:pointer;box-sizing:border-box;}
.bxt2-pop-btn.tel{margin-top:22px;background:#3182f6;color:#fff;}
.bxt2-pop-btn.kakao{background:#fee500;color:#191919;}
/* 팝업 버튼 아이콘 (전화·카카오 공통 · currentColor 로 글자색 상속) */
.bxt2-pop-ico{width:20px;height:20px;flex:0 0 auto;}

/* 간단 토스트 (화면 중앙 — 하단 시스템 토스트와 겹치지 않도록) */
.bxt2-toast{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.94);z-index:100001;max-width:80%;padding:16px 22px;border-radius:16px;background:rgba(25,31,40,.92);color:#fff;font-size:15px;font-weight:600;text-align:center;line-height:1.45;box-shadow:0 10px 30px rgba(0,0,0,.3);opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:none;}
.bxt2-toast.on{opacity:1;transform:translate(-50%,-50%) scale(1);}

/* 개인정보 동의 체크박스 — 몰 전역 input[type=checkbox]{display:none} 무력화 + 네이티브 복원 */
.bxt2-agree{display:flex;flex-direction:column;gap:9px;margin-top:6px;font-size:13px;color:#4b5563;line-height:1.5;}
.bxt2-agree label{display:flex;align-items:flex-start;gap:8px;margin:0;cursor:pointer;}
.bxt2-agree input[type=checkbox]{display:inline-block;-webkit-appearance:checkbox;appearance:checkbox;width:18px;height:18px;min-width:18px;margin:0;padding:0;flex:0 0 auto;accent-color:#3182f6;cursor:pointer;}
.bxt2-agree-view{background:none;border:0;color:#3182f6;text-decoration:underline;cursor:pointer;padding:0;font:inherit;}

/* 상담 단계 가로 슬라이드 (PC: 견적 ↔ 폼 캐러셀, .bxt2-card 가 overflow:hidden 으로 클리핑) */
.bxt2-track{display:flex;width:200%;transition:transform .32s cubic-bezier(.4,0,.2,1);}
.bxt2-track.step2{transform:translateX(-50%);}
.bxt2-track > .bxt2-panel{width:50%;flex:0 0 50%;min-width:0;}

@media (max-width:900px){
  .bxt2{grid-template-columns:1fr;gap:20px;}
  .bxt2-right{position:static;}
  /* 모바일: 슬라이드 해제 → 견적 아래 폼이 세로로 인라인(스크롤). 단계 버튼은 숨김 */
  .bxt2-track{display:block;width:100%;transform:none!important;transition:none;}
  .bxt2-track > .bxt2-panel{width:100%;}
  #cardStep2.bxt2-panel{border-top:1px solid #f2f2f2;}
  .bxt2-flow-pc-only{display:none!important;}
}

/* ===== 중(요금제표) — 완납 구매가표 ① + 부가서비스 ② (cp_render_plan_tables) ===== */
.bxt-pt{margin:18px 0 0;font-variant-numeric:tabular-nums;}
.bxt-pt-pill{max-width:540px;margin:0 auto 18px;text-align:center;border-radius:8px;padding:13px 24px;}
.bxt-pt-pill h3{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:#16161d;}
.bxt-pt-pill.common{background:#cde1ff;}
.bxt-pt-pill.select{background:#ffe1c2;}
.bxt-pt-pill.svc{background:#e2f0c2;}
.bxt-pt-tip{max-width:640px;margin:-6px auto 16px;text-align:center;font-size:12.5px;color:#8a8f9a;line-height:1.5;}
.bxt-pt-sub{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:14px 0 8px;font-size:15px;font-weight:700;color:#374151;}
.bxt-pt-sub-retail{display:none;}  /* 출고가 — 모바일에서만 노출(데스크탑은 표 컬럼으로 표시) */
.bxt-pt-gap{height:32px;}
.bxt-pt-wrap{border:1px solid #e8eaee;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(20,22,30,.04);margin-bottom:14px;}
.bxt-pt-tb{width:100%;border-collapse:collapse;font-size:14.5px;}
.bxt-pt-tb thead tr{background:#16161d;}
.bxt-pt-tb th{color:#c7cad2;font-weight:600;padding:13px 10px;white-space:nowrap;text-align:center;}  /* 헤더 전부 가운데 */
.bxt-pt-tb th.nm{color:#fff;font-weight:700;}
.bxt-pt-tb th.buy{color:#fff;font-weight:700;background:#2b6cff;}
.bxt-pt-tb td{padding:14px 10px;}
.bxt-pt-tb th.nm,.bxt-pt-tb td.nm{width:35%;}                                           /* 요금제 컬럼(기본요금 자리 흡수) */
.bxt-pt-tb td.nm{text-align:left;font-weight:700;color:#16161d;padding-left:18px;white-space:nowrap;}
.bxt-pt-tb td.retail{text-align:center;color:#9aa0ab;text-decoration:line-through;width:16%;}  /* 출고가 중앙 */
.bxt-pt-tb td.sub{text-align:right;color:#2b6cff;font-weight:600;width:15%;}              /* 공통/추가지원금 우측 (각 -1%) */
.bxt-pt-tb td.buy{text-align:right;color:#1d4fd8;font-weight:800;background:#eef3ff;width:19%;}  /* 구매가 우측 (넓힘) */
.bxt-pt-tb tbody tr:nth-child(even){background:#fafbfc;}
.bxt-pt-tb tbody tr+tr td{border-top:1px solid #eef0f3;}
.bxt-pt-note{margin-top:12px;font-size:13px;color:#8a8f9a;text-align:center;line-height:1.6;}
/* 부가서비스 매트릭스 */
.bxt-svc-tb{table-layout:fixed;}
.bxt-svc-tb th.nm{width:24%;border-right:1px solid #2c2c36;text-align:center;}
.bxt-svc-tb th.svc{text-align:center;padding:11px 8px;border-right:1px solid #2c2c36;}
.bxt-svc-tb th.svc .svc-hd{display:flex;align-items:baseline;justify-content:center;gap:6px;flex-wrap:wrap;}
.bxt-svc-tb th.svc .svc-hd .nm{color:#fff;font-weight:700;font-size:14px;}
.bxt-svc-tb th.svc .svc-hd .fee{color:#8fe3b8;font-weight:700;font-size:12.5px;}
.bxt-svc-tb th.svc .sub{margin-top:3px;color:#9aa0ab;font-weight:500;font-size:11px;white-space:normal;}
.bxt-svc-tb td.nm{border-right:1px solid #eef0f3;text-align:center;}
.bxt-svc-tb td.cell{text-align:center;padding:14px 6px;}
.bxt-badge{display:inline-block;min-width:44px;padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:700;}
.bxt-badge.req{background:#2fa36b;color:#fff;}
.bxt-badge.opt{background:#f1f3f6;color:#b0b4bc;}
/* 4단 영역 구분 (좌측 상세정보 섹션 — 우측 카드의 .bxt2-sec 와 충돌 방지용 별도 클래스) */
.bxt2-lsec{margin:0 0 28px;}
.bxt2-lsec:last-child{margin-bottom:0;}
@media (max-width:900px){
  /* 모바일: 표를 화면 폭에 맞춰 압축 — 폰트·여백 축소 + 요금제 줄바꿈 허용. 넘치면 가로 스크롤 폴백 */
  .bxt-pt-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .bxt-pt-tb{min-width:0;font-size:12px;}
  .bxt-pt-tb th{padding:10px 5px;}
  .bxt-pt-tb td{padding:12px 5px;}
  .bxt-pt-tb th.nm,.bxt-pt-tb td.nm{width:44%;min-width:0;padding-left:12px;}  /* 모바일 요금제(4컬럼) */
  .bxt-pt-tb td.nm{white-space:normal;word-break:keep-all;}
  .bxt-pt-tb th.buy,.bxt-pt-tb td.buy{padding-right:12px;width:21%;}  /* 모바일 구매가 +2% */
  .bxt-pt-tb td.buy{text-align:right;}  /* 구매가 값 우측(모바일 보강) */
  .bxt-pt-pill{padding:11px 16px;margin-bottom:14px;}
  .bxt-pt-pill h3{font-size:18px;}
  .bxt-pt-sub{font-size:13px;margin:12px 0 6px;}
  .bxt-pt-sub-retail{display:inline;font-weight:600;color:#8a8f9a;font-size:12.5px;white-space:nowrap;}  /* 모바일만 출고가 표기 */
  .bxt-pt-tb th.retail,.bxt-pt-tb td.retail{display:none;}  /* 모바일: 출고가 컬럼 숨김(소제목에 표기) */
  .bxt-pt-tip{font-size:12px;}
  /* 부가서비스 매트릭스도 동일 압축 */
  .bxt-svc-tb th.svc{padding:8px 3px;}
  .bxt-svc-tb th.svc .svc-hd{gap:3px;}
  .bxt-svc-tb th.svc .svc-hd .nm{font-size:12px;}
  .bxt-svc-tb th.svc .sub{font-size:10px;}
  .bxt-svc-tb td.cell{padding:11px 3px;}
  .bxt-badge{min-width:0;padding:4px 8px;font-size:11px;}
}
