/* ============================================================
   v4/css/telecom.css  (v2 — 2026-11-21 레이아웃 개편)
   통신사별 인터넷·TV·유심 페이지(internet.php) 전용 스타일.
   계산 값·계산식은 루트 계산기가 그대로 담당하고,
   이 파일은 (1) 상단 압축 (2) 왼쪽 옵션 칩 / 오른쪽 결과 패널
   2단 배치 (3) 모바일 하단 요약 바만 정의한다.
   ============================================================ */

/* ----- 계산기 블록이 v4 컨테이너 안에서 double-padding 되지 않게 ----- */
.tncalc .section {
  padding: 6px 0 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.tncalc .calculator-master-box,
.tncalc .final-box-container { max-width: 1200px; margin-left: auto; margin-right: auto; }
/* 페이지 머리·탭·소개·비교표도 같은 1200 폭에 맞춘다 */
main.v4-page .v4-inner > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tncalc .final-box-container { padding: 0; }

/* ----- 섹션 제목 (01~06) ----- */
.tn-sec,
.tn-sec-head { width: 100%; max-width: 1200px; margin: 0 auto; }
.tn-sec { padding: 8px 0 4px; }
.tn-sec-head { padding: 28px 0 14px; text-align: left; }
.tn-sec-head--in { padding-top: 6px; }
.tn-sec-head h2 {
  margin: 2px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sf-ink, #0f172a);
}
.tn-sec-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--sf-muted, #5b657a);
}
.tn-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sf-brand, #2563eb);
}
.tn-sec + .tn-sec-head { padding-top: 18px; }

/* ----- 통신사 소개 (압축) ----- */
.tn-intro { padding-top: 10px; }
.tn-intro .tn-sec-head { padding: 6px 0 5px; }
.tn-intro .tn-sec-head h2 { margin: 0; font-size: 15px; letter-spacing: -0.02em; }
.tn-intro .tn-num { font-size: 11px; }
.tn-intro__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: #5b6472;
  background: #fff;
  border: 1px solid var(--sf-line-soft, #eff0f2);
  border-radius: 10px;
  padding: 11px 14px;
  word-break: keep-all;
}

/* ----- 맨 위 대표 지원금 한 줄 ----- */
.tn-maxline {
  margin: 10px 0 0;
  padding: 9px 14px;
  border-radius: 8px;
  background: #f6f7f9;
  border: 1px solid #eff0f2;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.tn-maxline strong { font-weight: 800; color: #111; }
.tn-maxline .tn-alt { font-weight: 700; color: #5b6472; }
.tn-maxline[hidden] { display: none; }

/* ----- 통신사 탭 ----- */
.tn-carrier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.tn-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--sf-line, #e5e5e5);
  background: #fff;
  color: #555;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.tn-tab i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.tn-tab:hover { border-color: #111; color: #111; }
.tn-tab.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* ----- 02 선택 헤드 (한 줄로 압축) ----- */
#tnStep2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 0 8px;
}
#tnStep2 h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
#tnStep2 > p { display: none; }
#tnStep2 .tn-num {
  font-size: 11px;
  color: #8f9198;
  letter-spacing: 0.1em;
}

/* ----- 단계 표시 (1 구성 → 2 속도 → 3 요금제 → 4 결과) ----- */
.tn-steps {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.tn-steps li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #8f9198;
  font-size: 12.5px;
  font-weight: 700;
}
.tn-steps li b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d8dade;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.tn-steps li.is-done { background: #eceef1; color: #444; }
.tn-steps li.is-done b { background: #a9adb4; }
.tn-steps li.is-on { background: #111; color: #fff; }
.tn-steps li.is-on b { background: rgba(255, 255, 255, .35); }

/* ============================================================
   2단 배치 — 왼쪽: 옵션 칩 / 오른쪽: 결과 패널(sticky)
   (구조는 template.php 의 인라인 스크립트가 만든다)
   ============================================================ */

/* 루트 계산기의 큰 흰 카드(마스터 박스) 크롬 제거 — 칩·패널만 남긴다 */
.tncalc .calculator-master-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 26px !important;
  max-width: none !important;
}
.tncalc div.calculator-master-box div.option,
.tncalc div.calculator-master-box div.option-container:last-child div.option {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.tn-sec-head--side p { display: none !important; }
/* 2단(본문 1200 + 오른쪽 패널)은 레이아웃 재작업 후 다시 켠다. 지금은 한 열. */
/* 좁은 화면: 패널은 본문 아래로 (폭을 줄여 끼워 넣지 않는다) */
.tn-panel { max-width: 480px; margin: 14px 0 0; }
body.tn-applying .tn-panel { max-height: none; }

.tn-side-sticky {
  position: sticky;
  top: 112px;
  z-index: 30;
  max-height: calc(100vh - 128px);
  overflow: auto;
  overscroll-behavior: contain;
}
.tncalc #inlineApplyBox { max-width: 620px; margin-top: 16px !important; }

/* ----- 왼쪽: 옵션 행 = 라벨 한 줄 + 칩 한 줄 ----- */
.tncalc .option-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px !important;
}
.tncalc .option {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
.tncalc .option > label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 0 0 7px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: #111 !important;
  line-height: 1.35;
}
.tn-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #111;
  opacity: .9;
}
.tncalc .option > label input[type="checkbox"] {
  transform: scale(1.05);
  margin: 0 0 0 2px !important;
}
.tncalc .option > label #wifiLabel,
.tncalc .option > label span[id="wifiLabel"] {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #727780 !important;
}

/* 칩 */
.tncalc .card-group,
.tncalc .mobile-sim-group,
.tncalc .disc-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  grid-template-columns: none !important;
}
.tncalc .card,
.tncalc .disc-item {
  position: relative;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 8px !important;
  min-height: 44px !important;
  padding: 10px 17px !important;
  border: 1px solid #e3e5e9 !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  line-height: 1.3 !important;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.tncalc .card:hover,
.tncalc .disc-item:hover {
  border-color: #111 !important;
  background: #fafafa !important;
  transform: none !important;
  box-shadow: none !important;
}
.tncalc .card-title,
.tncalc .disc-title {
  display: inline-block;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 !important;
  white-space: nowrap;
}
.tncalc .disc-title br { display: none; }
.tncalc .card-price,
.tncalc .card-memo {
  display: inline-block;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #8f9198 !important;
  margin: 0 !important;
  white-space: nowrap;
}
.tncalc .card-price::before,
.tncalc .card-memo::before {
  content: "·";
  margin-right: 5px;
  color: #c9ccd1;
}
/* 유심 카드: 제목·요금 한 줄, 할인 내역은 그 아래 작게 */
.tncalc .mobile-sim-card .card-price {
  flex: 0 0 100%;
  font-size: 12px !important;
  color: #9aa0a8 !important;
  margin-top: 1px !important;
}
.tncalc .mobile-sim-card .card-price::before { content: none; }
.tncalc .card-memo + .card-price { margin-left: 0 !important; }
/* 선택 상태 */
.tncalc .card.selected,
.tncalc .disc-item.selected {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: none !important;
}
.tncalc .card.selected .card-title,
.tncalc .card.selected .card-price,
.tncalc .card.selected .card-memo,
.tncalc .disc-item.selected .disc-title {
  color: #fff !important;
}
.tncalc .card.selected .card-price::before,
.tncalc .card.selected .card-memo::before { color: rgba(255, 255, 255, .45); }
.tncalc .card.selected .net-discount-text { color: #fff !important; }

/* ----- 오른쪽: 결과 패널 ----- */
.tn-panel .final-box-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tn-sec-head--side {
  padding: 0 0 8px !important;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.tn-sec-head--side h2 { margin: 0 !important; font-size: 13px !important; font-weight: 800; color: #727780; letter-spacing: 0; }
.tn-sec-head--side .tn-num { font-size: 10.5px; color: #b3b7bd; }

.tn-panel .summary-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .05);
  padding: 16px 16px 14px;
  margin: 0 0 10px;
}
.tn-panel .summary-header-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.tn-panel .result-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.tn-panel .result-box {
  flex: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f2f4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left;
}
.tn-panel .result-box:last-child { border-bottom: 0 !important; }
.tn-panel .result-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #5b6472 !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tn-panel .result-value {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}
.tn-panel #result_support .result-value { color: #ea1917 !important; }
.tn-panel .result-box-appliance {
  cursor: default;
  border: 0 !important;
  background: transparent !important;
  padding: 9px 0 2px !important;
}
.tn-panel .result-box-appliance .result-label {
  font-weight: 800 !important;
  color: #111 !important;
  font-size: 13.5px !important;
}
.tn-panel .result-box-appliance .result-value {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #111 !important;
  white-space: normal;
}
.tn-panel .result-box-appliance .tn-ico { color: #111; }

/* 합계 줄 (표시용 합산 — 인터넷 + 휴대폰) */
.tn-side-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px -16px -14px;
  padding: 12px 16px 14px;
  border-top: 1px solid #e8eaee;
  border-radius: 0 0 14px 14px;
  background: #f7f8fa;
}
.tn-side-total span {
  font-size: 12px;
  font-weight: 700;
  color: #5b6472;
}
.tn-side-total strong {
  font-size: 23px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
}
.tn-side-total em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #9aa0a8;
}

/* 신청·상담 버튼 */
.tn-panel .action-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin: 0 0 12px;
}
.tn-panel .action-btn {
  flex: none;
  width: 100%;
  padding: 13px 10px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: none;
  letter-spacing: -0.02em;
}
.tn-panel .btn-apply {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
}
.tn-panel .btn-apply:hover { background: #000 !important; }
.tn-panel .btn-call {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #d8dade !important;
}
.tn-panel .btn-call:hover { border-color: #111 !important; }

/* ----- 오른쪽: 펼쳐지는 신청서 (버튼 바로 아래) ----- */
#inlineApplyBox {
  margin-top: 4px !important;
  padding: 14px !important;
  border: 1px solid #e8eaee !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .05) !important;
}
/* 2026-11-21: 04 상담 신청 제목이 펼칠 때 보이도록 숨김을 주석 처리(원래 규칙은 아래에 그대로 남김) */
/* #inlineApplyBox .tn-sec-head { display: none; } */
#inlineApplyBox > h3 {
  margin: 0 0 8px !important;
  padding: 0 0 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #111 !important;
  border-bottom: 1px solid #f1f2f4 !important;
}
#inlineApplyBox #inlineSelectedSummary {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
}
#inlineApplyBox > div[style*="background:#f0fdf4"] {
  margin: 0 0 12px !important;
  padding: 10px 11px !important;
  background: #f7f8fa !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
#inlineApplyBox label {
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
#inlineApplyBox input[type="text"],
#inlineApplyBox input[type="tel"],
#inlineApplyBox textarea {
  font-size: 14px !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
}
#inlineApplyBox textarea { height: 60px !important; }
#inlineApplyBox button[type="submit"] {
  background: #111 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

/* ----- 왼쪽 열 안으로 옮겨진 가전 사은품 영역 ----- */
.tncalc .appliance-section {
  margin-top: 4px !important;
  padding: 16px !important;
  background: #f7f8fa !important;
  border-radius: 14px !important;
}
.tncalc .appliance-section h3 { font-size: 15px !important; margin-bottom: 10px !important; }
.tncalc .appliance-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }

/* ----- 지원금 비교표 섹션 ----- */
.tn-compare { padding-bottom: 40px; }
.tn-compare .sf-filter-row { align-items: center; }

/* ----- 계산기 로드 실패 ----- */
.tn-error {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #f3d3d3;
  background: #fff7f7;
  border-radius: 14px;
  color: #8a1c1c;
  font-size: 14.5px;
  line-height: 1.7;
}
.tn-error strong { display: block; margin-bottom: 6px; font-size: 16px; }


/* ----- 지원금 비교표: 이 페이지 통신사 강조 · 유심 없는 곳은 유심 열 숨김 ----- */
#policyDynamicRenderArea td.carrier-cell {
  font-weight: 800 !important;
  color: #111 !important;
  background: #f7f8fa;
  position: sticky;
  left: 0;
  z-index: 2;
}
#policyDynamicRenderArea tr.carrier-group-end > td { border-bottom: 1px solid #dfe3ea !important; }
.tn-hide-usim { display: none !important; }
.tn-tbl-carrier { display: none; }

/* ----- 모바일: 가로 매트릭스 → 세로 카드 ----- */
@media (max-width: 720px) {
  #policyDynamicRenderArea .speed-block-wrap { padding: 14px 12px !important; border-radius: 12px !important; }
  #policyDynamicRenderArea .speed-block-badge { font-size: 12px !important; padding: 5px 12px !important; }
  #policyDynamicRenderArea table,
  #policyDynamicRenderArea tbody,
  #policyDynamicRenderArea tr,
  #policyDynamicRenderArea td { display: block; width: 100%; }
  #policyDynamicRenderArea thead { display: none; }
  #policyDynamicRenderArea tbody tr {
    border: 1px solid #e8eaee;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    margin: 0 0 10px;
    box-shadow: none;
  }
  #policyDynamicRenderArea tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0 !important;
    border: 0 !important;
    text-align: right !important;
    font-size: 13px !important;
    line-height: 1.45;
  }
  #policyDynamicRenderArea tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    color: #8f9198;
    text-align: left;
  }
  #policyDynamicRenderArea tbody td:empty { display: none; }
  #policyDynamicRenderArea td.carrier-cell { display: none !important; }
  #policyDynamicRenderArea .tn-tbl-carrier {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #ea1917;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
  }
  #policyDynamicRenderArea .usim-plan-select { margin-left: auto; }
}

/* ----- 모바일 하단 고정 요약 바 ----- */
.tn-mobar { display: none; }



/* 섹션 헤드·01 소개는 좌측 옵션 열과 같은 기준선에 맞춘다 (가운데로 들여쓰이지 않게) */
.v4-page .tn-sec,
.v4-page .tn-sec-head { max-width: none; }

/* ----- 대표 지원금 한 줄 아래 조건 안내 ----- */
.tn-maxnote {
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.6;
  color: #727780;
  word-break: keep-all;
}

/* ----- 우측 레일: 상담 도우미(sf-helper)는 이 페이지에서 쓰지 않는다 (v8) ----- */
@media (min-width: 1024px) {
  .sf-helper { z-index: 700; }
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1199px) {
  .tn-panel { margin-top: 10px; }
  .tn-panel .action-buttons-wrapper { flex-direction: row; }

  .tn-mobar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--tn-helperh, 64px);
    z-index: 700;
    padding: 7px 10px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .07);
    backdrop-filter: blur(8px);
  }
  .tn-mobar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .tn-mobar__col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .tn-mobar__col em {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    color: #8f9198;
    letter-spacing: -0.01em;
  }
  .tn-mobar__col strong {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .tn-mobar__col--gift strong { color: #ea1917; }
  .tn-mobar__cta {
    margin-left: auto;
    padding: 9px 14px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }
  body { padding-bottom: calc(64px + var(--tn-helperh, 66px)); }
  body.tn-applying { padding-bottom: var(--tn-helperh, 66px); }
  body.tn-applying .tn-mobar { display: none; }
}

@media (max-width: 720px) {
  .tn-sec-head { padding: 22px 0 12px; }
  .tn-sec-head h2 { font-size: 19px; }
  .tn-maxline { font-size: 12.5px; padding: 8px 12px; }
  .tn-tab { padding: 6px 11px; font-size: 12px; }
  .tn-intro__text { padding: 10px 12px; font-size: 12.5px; }
  #tnStep2 h2 { font-size: 16px; }
  #tnStep2 .tn-steps { margin-left: 0; width: 100%; }
  .tn-steps li { font-size: 10.5px; }
  .tncalc .card-title { font-size: 12.5px !important; }
  .tncalc .card-price { font-size: 11.5px !important; }
  .tncalc .card { padding: 7px 11px !important; }
  .tn-panel .action-btn { padding: 12px 10px; font-size: 14px; }
  .tn-side-total strong { font-size: 19px; }
}

/* 신청 폼 안의 전화 상담 보조 문구 */
.tn-form-call {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #727780;
  word-break: keep-all;
}
.tn-form-call a { color: #111; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* ----- 패널 맨 위: 선택하신 상품 요약 ----- */
.tn-pick { border: 1px solid #e8eaee; border-radius: 14px; background: #f7f8fa; padding: 12px 14px; margin: 0 0 10px; }
.tn-pick__t { display: block; font-size: 13.5px; font-weight: 800; color: #111; letter-spacing: -0.01em; margin-bottom: 5px; }
.tn-pick__b { font-size: 14px; line-height: 1.7; color: #444; word-break: keep-all; }
/* 신청서 안의 같은 블록은 위 요약과 중복되므로 숨긴다 (전송 값은 동일하게 유지) */
#inlineApplyBox > div[style*="background:#f0fdf4"] { display: none !important; }

/* ============================================================
   2단 고정 패널 (데스크톱 넓은 화면)
   ------------------------------------------------------------
   · 본문은 1200px 그대로, 패널(344px)은 그 바깥 오른쪽 빈칸으로 나간다.
     캔버스 = 1200 + 24 + 344 = 1568
   · 노드는 옮기지 않는다. .final-box-container 안에서
     .tn-panel(① 선택 요약 ② 결과 요약 ③ 버튼)과
     .tn-left(④ 가전 ⑤ 신청서)를 grid-column 으로 나눠 놓기만 한다.
   · 패널은 화면 오른쪽에 고정(fixed)해서 페이지 끝까지 따라온다.
     (sticky 는 부모 높이 안에서만 따라오므로 계산기 높이가 짧은 이 페이지에서는
      가전·신청서 구간에서 사라진다 → fixed 로 페이지 전체를 따라오게 한다)
   · 창 폭 1760px 미만에서는 2단을 켜지 않는다(본문 1200 + 패널 344 + 여백 +
     우측 도우미 레일이 겹치기 때문). 그 아래는 한 열 + 하단 요약 바.
   ============================================================ */
@media (min-width: 1760px) {
  /* 캔버스 */
  main.v4-page .v4-inner { max-width: 1616px; padding: 0 24px; }
  main.v4-page .v4-inner > * { margin-left: 0; margin-right: auto; }
  main.v4-page .tn-sec,
  main.v4-page .tn-sec-head { margin-left: 0; margin-right: auto; }
  /* 푸터도 같은 1200 기둥에 맞춘다 — 고정 패널이 푸터 글자를 덮지 않게 */
  .v4-foot .v4-inner { max-width: 1616px; padding: 0 24px; }
  .v4-foot .v4-inner > * { max-width: 1200px; margin-right: auto; margin-left: 0; }

  /* 본문: 1200 그대로 */
  .tncalc.v4-inner > .section {
    width: 1568px; max-width: none; display: block;
  }
  .tncalc .calculator-master-box {
    width: 1200px !important; max-width: 1200px !important; margin-left: 0 !important;
  }
  .tncalc .option-container {
    width: 1200px !important; max-width: 1200px !important; margin-left: 0 !important;
  }
  .tncalc .option { width: 1200px !important; max-width: 1200px !important; }

  .tncalc .final-box-container {
    width: 1568px; max-width: 1568px;
    display: grid;
    grid-template-columns: 1200px 344px;
    column-gap: 24px;
    align-items: start;
    margin: 0; padding: 0;
  }
  .tncalc .tn-left { grid-column: 1; grid-row: 1; width: 1200px; min-width: 0; }
  .tncalc .tn-left .tn-sec-head { margin-left: 0; margin-right: auto; }

  /* 오른쪽 패널: 화면 기준 고정, 본문 1200 바깥(가운데 + 440px)에 선다 */
  .tncalc .tn-panel {
    grid-column: 2; grid-row: 1;
    position: fixed;
    top: 112px;
    left: calc(50% + 440px);
    width: 344px; max-width: 344px;
    margin: 0; padding: 0;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    scrollbar-width: thin;
  }
  .tncalc #inlineApplyBox { max-width: 620px; }
}

/* ============================================================================
   v5 디자인 수정본 — 2026-11-21
   ----------------------------------------------------------------------------
   · 위쪽(v2) 규칙은 한 줄도 지우지 않았습니다. 여기서 덮어쓰기만 합니다.
   · 이 주석부터 파일 끝까지를 통째로 지우면 v2 화면 그대로 돌아갑니다.
   · 값·계산·id·onclick 은 건드리지 않습니다. 색·모양·배치만 바꿉니다.
   ----------------------------------------------------------------------------
   1) 상품 선택 캡슐 칩 → 카드형 그리드 (한 줄을 꽉 채운다)
   2) 선택 = 검정 채움 + 우상단 흰 체크 배지
   3) 오른쪽 요약 패널 = 흰 카드 톤, 화면 오른쪽 벽 고정, 푸터가 그 위로 올라옴
   4) 본문 1200 가운데 + 패널 우측 (1200px 이상에서 2단)
   5) 지원금 비교표·가전 영역도 같은 14px 흰 카드 톤, 파랑·초록 제거
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. 공통 톤 — 색은 검정(#111)과 회색 두 가지로 모은다
   --------------------------------------------------------------------------- */
:root {
  --tn-ink: #111;
  --tn-line: #e9ebee;
  --tn-line-soft: #eef0f3;
  --tn-muted: #727780;
  --tn-sub: #9aa0a8;
  --tn-radius: 14px;
  --tn-rail: 96px;          /* 오른쪽 벽에서 띄우는 거리(상담 도우미 폭만큼 비워 둔다) */
}

/* 섹션 번호의 파랑 → 회색 */
.tn-num { color: var(--tn-sub) !important; }
.tn-sec-head h2 { color: var(--tn-ink) !important; }
.tn-sec-head p { color: #5b6472 !important; }


/* ---------------------------------------------------------------------------
   2. 상품 선택 = 카드형 그리드
   · 캡슐(999px) 폐지. 카드가 한 줄을 꽉 채우고, 항목 수(3~4)에 따라 칸이 늘어난다.
   · 좁은 화면에서는 2열로 접힌다.
   --------------------------------------------------------------------------- */
.tncalc .card-group,
.tncalc .mobile-sim-group,
.tncalc .disc-group {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  flex-wrap: nowrap !important;
}

.tncalc .card,
.tncalc .disc-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 76px !important;
  height: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #e3e5e9 !important;
  border-radius: var(--tn-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  cursor: pointer;
  transition: border-color .14s ease, transform .14s ease, background .14s ease;
}
.tncalc .card:hover,
.tncalc .disc-item:hover {
  border-color: var(--tn-ink) !important;
  background: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

/* 카드 안 글자 */
.tncalc .card-title,
.tncalc .disc-title {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--tn-ink) !important;
  white-space: normal !important;
  word-break: keep-all;
}
/* 두 줄 라벨(B TV POP / 184개 채널)의 줄바꿈을 되살린다 */
.tncalc .disc-title br { display: inline !important; }

.tncalc .card-price,
.tncalc .card-memo {
  display: block !important;
  margin: 0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--tn-muted) !important;
  white-space: normal !important;
  word-break: keep-all;
}
.tncalc .card-price::before,
.tncalc .card-memo::before { content: none !important; }

/* 요금이 그 카드의 주 정보이면 크게 (금액만 있는 줄) */
.tncalc .card-memo {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--tn-ink) !important;
  letter-spacing: -.02em;
}
.tncalc .card:not(:has(.card-memo)) .card-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--tn-ink) !important;
  letter-spacing: -.02em;
}

/* 선택 상태 — 검정 채움 유지 + 우상단 흰 체크 배지 */
.tncalc .card.selected,
.tncalc .disc-item.selected {
  background: var(--tn-ink) !important;
  border-color: var(--tn-ink) !important;
  box-shadow: none !important;
}
.tncalc .card.selected:hover,
.tncalc .disc-item.selected:hover {
  background: #000 !important;
  border-color: #000 !important;
}
.tncalc .card.selected .card-title,
.tncalc .card.selected .card-memo,
.tncalc .card.selected .card-price,
.tncalc .disc-item.selected .disc-title { color: #fff !important; }
/* 유심 카드의 '할인 내역' 줄만 살짝 흐리게 */
.tncalc .card.selected:has(.card-memo) .card-price { color: rgba(255, 255, 255, .72) !important; }
.tncalc .card.selected .card-price::before,
.tncalc .card.selected .card-memo::before { color: rgba(255, 255, 255, .45) !important; }
.tncalc .card.selected .net-discount-text { color: #fff !important; }

.tncalc .card.selected::after,
.tncalc .disc-item.selected::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--tn-ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}
/* 배지가 제목 첫 줄을 가리지 않게 */
.tncalc .card.selected .card-title,
.tncalc .disc-item.selected .disc-title { padding-right: 18px; }


/* ---------------------------------------------------------------------------
   3. 오른쪽 요약 패널 — 회색 바탕 폐지, 흰 카드로
   --------------------------------------------------------------------------- */
.tn-pick {
  background: #fff !important;
  border: 1px solid var(--tn-line-soft) !important;
  border-radius: var(--tn-radius) !important;
  padding: 13px 15px !important;
  margin: 0 0 10px !important;
}
.tn-pick__t {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--tn-ink) !important;
  margin-bottom: 6px !important;
}
.tn-pick__b {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #444 !important;
}
.tn-panel .summary-card {
  border: 1px solid var(--tn-line-soft) !important;
  border-radius: var(--tn-radius) !important;
  box-shadow: none !important;
}
.tn-panel .summary-header-title { font-size: 14.5px !important; color: var(--tn-ink) !important; }

/* 가전 사은품 줄 = 상태 표시 전용 (누를 수 없음) */
.tn-panel #result_appliance { pointer-events: none !important; cursor: default !important; }
.tn-panel .result-box-appliance {
  border-top: 1px dashed var(--tn-line-soft) !important;
  padding-top: 11px !important;
}
.tn-panel .result-box-appliance .result-label { color: #444 !important; font-weight: 700 !important; }
.tn-panel .result-box-appliance .result-value {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--tn-muted) !important;
}

/* ---------------------------------------------------------------------------
   4. 04 가전 사은품 선택 — 제목 줄에 실제 버튼을 둔다
   --------------------------------------------------------------------------- */
.tn-sec-head--row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-bottom: 8px !important;
}
.tn-sec-head--row h2 { margin: 0 !important; }
.tn-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d8dade;
  border-radius: 10px;
  background: #fff;
  color: var(--tn-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.tn-head-btn:hover { border-color: var(--tn-ink); background: #fafbfc; }
.tn-head-btn svg { width: 15px; height: 15px; }
.tn-sec-sub {
  margin: 0 0 12px !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #5b6472 !important;
}

/* 가전 영역도 흰 카드로 */
.tncalc .appliance-section {
  margin: 0 !important;
  padding: 18px !important;
  background: #fff !important;
  border: 1px solid var(--tn-line) !important;
  border-radius: var(--tn-radius) !important;
}
.tncalc .appliance-section h3 { margin: 0 0 10px !important; font-size: 15px !important; color: var(--tn-ink) !important; }
.tncalc .appliance-grid { gap: 10px !important; }
/* 가전 영역의 파랑 안내박스·파랑 가격·파랑 선택 테두리 → 무채색 */
.tncalc .appliance-notice {
  color: #5b6472 !important;
  background: #f7f8fa !important;
  border: 1px solid var(--tn-line-soft) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
}
.tncalc .app-item-card {
  border: 1px solid var(--tn-line) !important;
  border-radius: var(--tn-radius) !important;
}
.tncalc .app-item-card:hover { border-color: var(--tn-ink) !important; box-shadow: none !important; }
.tncalc .app-item-card.picked { border: 1px solid var(--tn-ink) !important; background: #fafbfc !important; }
.tncalc .app-item-pay { color: var(--tn-ink) !important; font-weight: 800 !important; }
.tncalc .app-item-model { color: var(--tn-muted) !important; }
.tncalc .appliance-more-btn {
  border: 1px solid #d8dade !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  color: var(--tn-ink) !important;
}
.tncalc .appliance-more-btn:hover { border-color: var(--tn-ink) !important; }
.tncalc .appliance-loading { color: var(--tn-muted) !important; }

/* ---------------------------------------------------------------------------
   5. 지원금 비교표 — 위 카드와 같은 톤, 파랑·초록(필터) 제거
   --------------------------------------------------------------------------- */
.tn-maxline {
  margin: 12px 0 0 !important;
  padding: 12px 16px !important;
  background: #fff !important;
  border: 1px solid var(--tn-line) !important;
  border-radius: var(--tn-radius) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
.tn-maxline strong { font-size: 15px !important; color: var(--tn-ink) !important; }
.tn-intro__text { border-radius: var(--tn-radius) !important; border-color: var(--tn-line) !important; }

.tn-compare .policy-table-responsive {
  border: 1px solid var(--tn-line) !important;
  border-radius: var(--tn-radius) !important;
  box-shadow: none !important;
}
.tn-compare .speed-block-wrap { border-radius: var(--tn-radius) !important; }
.tn-compare .speed-block-badge {
  background: var(--tn-ink) !important;
  border-radius: 10px 10px 0 0 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
.tn-compare .clean-policy-table th {
  background: #f7f8fa !important;
  color: #444 !important;
  border-bottom: 1px solid var(--tn-line) !important;
}
.tn-compare .clean-policy-table td { border-bottom: 1px solid #f1f2f4 !important; }

/* 비교표 안의 초록[가입신청]·파랑[상담문의]·하늘색 유심 선택 → 검정/회색 */
#policyDynamicRenderArea td button[onclick*="openPolicyInlineApply"] {
  background: var(--tn-ink) !important;
  border: 1px solid var(--tn-ink) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}
#policyDynamicRenderArea td a[href^="tel:"] {
  background: #fff !important;
  color: var(--tn-ink) !important;
  border: 1px solid #d8dade !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}
#policyDynamicRenderArea .usim-plan-select {
  border: 1px solid #e3e5e9 !important;
  background: #fff !important;
  color: var(--tn-ink) !important;
}
#policyDynamicRenderArea td span[style*="#0284c7"] { color: var(--tn-ink) !important; }

/* 속도·통신사 필터: 주황 그라데이션 → 검정 */
.tn-compare .filter-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e3e5e9 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #555 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.tn-compare .filter-btn:hover {
  border-color: var(--tn-ink) !important;
  background: #fff !important;
  color: var(--tn-ink) !important;
}
.tn-compare .filter-btn.active {
  background: var(--tn-ink) !important;
  border-color: var(--tn-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ---------------------------------------------------------------------------
   6. 신청서(#inlineApplyBox) — 오른쪽 패널 안으로 들어온 상태
   --------------------------------------------------------------------------- */
.tn-panel #inlineApplyBox {
  max-width: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--tn-line-soft) !important;
  border-radius: var(--tn-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.tn-panel #inlineApplyBox > h3 {
  color: var(--tn-ink) !important;
  border-bottom: 1px solid var(--tn-line-soft) !important;
}
.tn-panel #inlineApplyBox .tn-form-call { font-size: 11px !important; }
.tn-panel #inlineApplyBox button[type="submit"] { background: var(--tn-ink) !important; color: #fff !important; }


/* ---------------------------------------------------------------------------
   7. 배치 — 본문 1200 + 오른쪽 벽에 붙는 요약 패널
   · 1200px 미만: 지금처럼 한 열(패널은 본문 아래) + 하단 요약 바
   · 1200~1439px: 패널 300px
   · 1440px 이상: 패널 344px
   · 2140px 이상: 본문이 화면 정중앙, 패널은 오른쪽 벽
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  /* 패널 폭 + 오른쪽 벽 여백 + 숨통만큼 오른쪽을 비우고, 남는 폭에서 본문을 가운데 둔다 */
  main.v4-page .v4-inner {
    max-width: none;
    padding-left: 24px;
    padding-right: 420px;
  }
  main.v4-page .v4-inner > * { margin-left: auto !important; margin-right: auto !important; }
  main.v4-page .tn-sec,
  main.v4-page .tn-sec-head { margin-left: auto !important; margin-right: auto !important; }

  .tncalc.v4-inner > .section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
  .tncalc .calculator-master-box,
  .tncalc .option-container,
  .tncalc .option {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .tncalc .final-box-container {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .tncalc .tn-left { width: 100% !important; }
  .tncalc #inlineApplyBox { max-width: none !important; }

  /* 패널: 화면 오른쪽 벽에 고정, 위아래로 넘치면 패널 안에서 스크롤 */
  .tncalc .tn-panel {
    position: fixed !important;
    top: 96px;
    right: var(--tn-rail);
    left: auto !important;
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: calc(100vh - 116px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    scrollbar-width: thin;
  }
  /* 신청서를 펼쳐도 패널은 화면 밖으로 나가지 않고 안에서 스크롤한다 */
  body.tn-applying .tncalc .tn-panel { max-height: calc(100vh - 116px) !important; }

  /* 푸터가 고정 패널을 덮는다 (패널이 푸터 글자를 가리지 않게) */
  .v4-foot { position: relative; z-index: 60; }
}

@media (min-width: 1440px) {
  main.v4-page .v4-inner {
    max-width: 1920px;
    padding-left: 24px;
    padding-right: 464px;
  }
  .tncalc .tn-panel {
    top: 104px;
    width: 344px !important;
    max-width: 344px !important;
    max-height: calc(100vh - 124px) !important;
  }
  body.tn-applying .tncalc .tn-panel { max-height: calc(100vh - 124px) !important; }
}

/* 아주 넓은 화면: 본문 1200을 화면 정중앙에 두고 패널만 오른쪽 벽에 남긴다 */
@media (min-width: 2140px) {
  main.v4-page .v4-inner {
    max-width: 1400px;
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* ---------------------------------------------------------------------------
   8. 좁은 화면 보정 (카드가 답답하지 않게)
   --------------------------------------------------------------------------- */
@media (max-width: 719px) {
  .tncalc .card-group,
  .tncalc .mobile-sim-group,
  .tncalc .disc-group {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 8px !important;
  }
  .tncalc .card,
  .tncalc .disc-item {
    min-height: 66px !important;
    padding: 12px 13px !important;
  }
  .tncalc .card-title,
  .tncalc .disc-title { font-size: 14px !important; }
  .tncalc .card-memo { font-size: 15.5px !important; }
  .tncalc .card:not(:has(.card-memo)) .card-price { font-size: 15.5px !important; }
  .tn-head-btn { height: 32px; padding: 0 12px; font-size: 12px; }
}

/* ============================================================================
   v6 — 로고 · 헤더 메뉴 · 페이지 타이포 개편 (2026-11-21)
   ----------------------------------------------------------------------------
   · 위쪽 v2·v5 규칙은 한 줄도 지우지 않았습니다. 여기서 덮어쓰기만 합니다.
   · 이 주석부터 파일 끝까지를 통째로 지우면 v5 화면 그대로 돌아갑니다.
   · id·onclick·계산 로직은 건드리지 않습니다. 글자·색·모양·배치만 바꿉니다.
   · 글자 크기는 12 / 13.5 / 15 / 18 / 24 / 34px 여섯 단계만 씁니다.
     무게는 400 / 600 / 700 / 800, 회색은 #111(제목) / #444(본문) / #8a8f98(보조).
     강조색은 현금 사은품 금액의 빨강(#ea1917) 하나만 남깁니다.
   · new-main.css 는 사이트 공통이라 손대지 않고, 이 페이지에서만 덮어씁니다.
   ----------------------------------------------------------------------------
   1) 로고 = 파도 심볼 이미지(assets/temo-logo.png) + '태모커머스' 글자
   2) 헤더 유틸 줄 = 회색 메뉴 + '상담 신청' 검정 버튼 + '파트너 센터' 맨 뒤
   3) GNB 4개 = 가전 렌탈·구매 / 인터넷·TV·유심 / 쇼핑몰 분양 / 제휴 문의
   4) 페이지 제목 34px + KT 레드 포인트, 지원금 배너 숫자 24px
   5) 통신사 탭 = 카드형 6등분, 풀네임 15px
   6) 페이지 전체 글자 크기 6단계 정리
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. 로고 · 헤더 유틸 줄
   --------------------------------------------------------------------------- */
.v4-head__util-in { height: 40px !important; }
.v4-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #111 !important;
}
.v4-logo__img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.v4-logo__mark {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
  color: #111 !important;
}
/* 서브카피('인터넷·TV·렌탈·가전 비교센터')는 사용자 확정으로 삭제 */
.v4-logo__sub { display: none !important; }

.v4-util { gap: 20px !important; }
.v4-util a {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #444 !important;
  letter-spacing: -0.02em;
}
.v4-util a:hover { color: #111 !important; }
/* 유틸 줄의 유일한 CTA — '상담 신청'만 검정 버튼 */
.v4-util a.is-strong {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111 !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.v4-util a.is-strong:hover { background: #000 !important; color: #fff !important; }

/* ---------------------------------------------------------------------------
   2. GNB — 4개 메뉴
   --------------------------------------------------------------------------- */
.v4-gnb__link {
  min-width: 152px !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}
.v4-panel__title {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #111 !important;
}
.v4-panel__title span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #8a8f98 !important;
}
.v4-panel__all {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #444 !important;
}
.v4-panel__all:hover { color: #111 !important; }

/* 타일은 4열로 — 8칸(4×2)·4칸(4×1) 모두 빈칸 없이 떨어진다 */
.v4-panel .v4-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.v4-tile > a { padding: 14px 14px 16px !important; }
.v4-tile__name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111 !important;
  line-height: 1.4;
}
.v4-tile__desc {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #8a8f98 !important;
  line-height: 1.45;
}
.v4-tile__ico { color: #444; }

/* ---------------------------------------------------------------------------
   3. 쇼핑몰 분양 패널 — 3종 비교 + 무료 부업 파트너
   --------------------------------------------------------------------------- */
.v4-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.v4-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
  border: 1px solid #e9ebee;
  border-radius: 14px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: border-color .14s ease;
}
.v4-tier:hover { border-color: #111; }
.v4-tier__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.v4-tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.v4-tier__price em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #8a8f98;
}
.v4-tier__price strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111;
}
.v4-tier__desc {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #444;
  word-break: keep-all;
}
.v4-tier--free { background: #f7f8fa; }
.v4-tier--free .v4-tier__price strong { font-size: 24px; }
.v4-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.v4-panel__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eef0f3;
  text-align: right;
}
.v4-panel__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}

/* ---------------------------------------------------------------------------
   4. 모바일 드로어 (같은 4개 구조 + 파트너 센터)
   --------------------------------------------------------------------------- */
.v4-drawer__head strong { font-size: 18px !important; font-weight: 800 !important; }
.v4-drawer__group > strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #8a8f98 !important;
  letter-spacing: 0.06em !important;
}
.v4-drawer__group a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111 !important;
}
.v4-drawer__cta a,
.v4-drawer__cta button { font-size: 15px !important; font-weight: 700 !important; }

/* mobile header logo: 글자 '태모커머스' + 심볼 이미지 (util 줄이 숨는 폭) */
@media (max-width: 1080px) {
  .v4-head__gnb-in::before {
    content: "태모커머스";
    display: inline-flex !important;
    align-items: center;
    min-height: 34px;
    padding-left: 44px;
    background: url(../assets/temo-logo.png) left center / 34px 34px no-repeat;  /* CSS는 css/ 기준 → /v4/assets/ */
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.05em !important;
    color: #111 !important;
  }
}

/* ---------------------------------------------------------------------------
   5. 브레드크럼 · 페이지 제목
   --------------------------------------------------------------------------- */
.v4-crumb {
  font-size: 12px !important;
  color: #8a8f98 !important;
}
.v4-crumb a { color: #444 !important; }
.v4-crumb span { color: #c9ccd1 !important; }

.v4-page-head {
  align-items: flex-end !important;
  padding-bottom: 18px !important;
}
.v4-page-head h1 {
  position: relative;
  padding-left: 18px;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.04em !important;
  color: #111 !important;
}
/* KT 브랜드 컬러 포인트 — 왼쪽 얇은 바 하나 (절제) */
.v4-page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 5px;
  height: 0.78em;
  border-radius: 3px;
  background: #e60012;
}
.v4-page-head p {
  margin-top: 10px !important;
  max-width: 760px !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #444 !important;
}
.v4-page-head__act .sf-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* ---------------------------------------------------------------------------
   6. 대표 지원금 배너 · 조건 안내 · 통신사 탭
   --------------------------------------------------------------------------- */
.tn-maxline {
  margin: 14px 0 0 !important;
  padding: 13px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: #444 !important;
  border: 1px solid #e9ebee !important;
  border-radius: 14px !important;
  background: #f7f8fa !important;
}
.tn-maxline strong {
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #111 !important;
  vertical-align: -0.06em;
  margin: 0 2px;
}
.tn-maxline .tn-alt {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #8a8f98 !important;
}
.tn-maxnote {
  margin: 8px 0 0 !important;
  padding: 0 2px !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #444 !important;
}

/* 통신사 탭 — 카드형 한 줄 6등분 */
.tn-carrier-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}
.tn-tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px !important;
  padding: 0 8px !important;
  border: 1px solid #e3e5e9 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #444 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: none;
}
.tn-tab i {
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 auto;
  border-radius: 50%;
}
.tn-tab:hover {
  border-color: #111 !important;
  color: #111 !important;
  background: #fff !important;
}
.tn-tab.is-active {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* 01 상품 안내 */
.tn-intro .tn-sec-head h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111 !important;
}
.tn-intro__text {
  margin: 0 !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #444 !important;
  background: #fff !important;
  border: 1px solid #e9ebee !important;
  border-radius: 14px !important;
}

/* ---------------------------------------------------------------------------
   7. 섹션 제목 · 계산기 · 패널 · 비교표 — 6단계 매핑
   --------------------------------------------------------------------------- */
.tn-sec-head h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #111 !important;
}
.tn-sec-head p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #444 !important;
}
.tn-num {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  letter-spacing: 0.1em !important;
}
#tnStep2 h2 { font-size: 20px !important; font-weight: 700 !important; color: #111 !important; }
#tnStep2 .tn-num { font-size: 12px !important; }
.tn-steps li,
.tn-steps li b { font-size: 12px !important; }
.tncalc .option > label { font-size: 13.5px !important; color: #444 !important; }
.tncalc .option > label #wifiLabel,
.tncalc .option > label span[id="wifiLabel"] { font-size: 12px !important; }

/* 옵션 카드 */
.tncalc .card-title,
.tncalc .disc-title { font-size: 15px !important; font-weight: 700 !important; }
.tncalc .card-price { font-size: 13.5px !important; font-weight: 600 !important; color: #8a8f98 !important; }
.tncalc .card-memo { font-size: 18px !important; font-weight: 800 !important; color: #111 !important; }
.tncalc .card:not(:has(.card-memo)) .card-price {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111 !important;
}
.tncalc .mobile-sim-card .card-price { font-size: 13.5px !important; }

/* 오른쪽 요약 패널 */
.tn-pick__t { font-size: 13.5px !important; font-weight: 700 !important; color: #111 !important; }
.tn-pick__b { font-size: 15px !important; line-height: 1.7 !important; color: #444 !important; }
.tn-panel .summary-header-title { font-size: 15px !important; font-weight: 700 !important; color: #111 !important; }
.tn-panel .result-label { font-size: 13.5px !important; color: #444 !important; }
.tn-panel .result-value { font-size: 18px; font-weight: 800 !important; }
.tn-panel .result-box-appliance .result-label { font-size: 13.5px !important; color: #444 !important; }
.tn-panel .result-box-appliance .result-value { font-size: 13.5px !important; font-weight: 600 !important; color: #444 !important; }
.tn-side-total span { font-size: 13.5px !important; color: #444 !important; }
.tn-side-total strong { font-size: 24px; font-weight: 800 !important; letter-spacing: -0.02em; }
.tn-side-total em { font-size: 12px !important; color: #8a8f98 !important; }
.tn-panel .action-btn { font-size: 15px !important; font-weight: 700 !important; }
.tn-sec-head--side h2 { font-size: 20px !important; font-weight: 700 !important; color: #111 !important; }
.tn-sec-head--side .tn-num { font-size: 12px !important; }

/* 가전 사은품 */
.tncalc .appliance-section h3 { font-size: 15px !important; font-weight: 700 !important; color: #111 !important; }
.tncalc .appliance-notice { font-size: 13.5px !important; }
.tncalc .app-item-model { font-size: 12px !important; }
.tncalc .app-item-pay { font-size: 15px !important; font-weight: 800 !important; }
.tn-head-btn { font-size: 13.5px !important; font-weight: 700 !important; }
.tn-sec-sub { font-size: 13.5px !important; color: #444 !important; }

/* 신청서 */
#inlineApplyBox > h3 { font-size: 15px !important; font-weight: 700 !important; }
#inlineApplyBox label { font-size: 13.5px !important; color: #444 !important; }
#inlineApplyBox input[type="text"],
#inlineApplyBox input[type="tel"],
#inlineApplyBox textarea { font-size: 15px !important; }
#inlineApplyBox #inlineSelectedSummary { font-size: 12px !important; }
#inlineApplyBox .tn-form-call,
.tn-panel #inlineApplyBox .tn-form-call { font-size: 12px !important; line-height: 1.55 !important; }
#inlineApplyBox button[type="submit"] { font-size: 15px !important; font-weight: 700 !important; }
#inlineApplyBox select { font-size: 15px !important; }

/* 지원금 비교표 */
.tn-compare .speed-block-badge { font-size: 13.5px !important; }
.tn-compare .filter-btn { font-size: 13.5px !important; font-weight: 600 !important; }
#policyDynamicRenderArea .speed-block-badge { font-size: 13.5px !important; }
#policyDynamicRenderArea tbody td { font-size: 13.5px !important; }
#policyDynamicRenderArea tbody td::before { font-size: 12px !important; }
#policyDynamicRenderArea .tn-tbl-carrier { font-size: 12px !important; }
#policyDynamicRenderArea td button,
#policyDynamicRenderArea td a { font-size: 13.5px !important; }
.sf-note,
.tn-caption { font-size: 12px !important; line-height: 1.7 !important; color: #8a8f98 !important; }
.sf-note strong { color: #444 !important; }
.sf-filter-label { font-size: 13.5px !important; color: #444 !important; }

/* 오류 · 모바일 요약 바 */
.tn-error { font-size: 15px !important; color: #444 !important; }
.tn-error strong { font-size: 18px !important; color: #111 !important; }
.tn-mobar__col em { font-size: 12px !important; color: #8a8f98 !important; }
.tn-mobar__col strong { font-size: 18px !important; font-weight: 800 !important; }
.tn-mobar__cta { font-size: 13.5px !important; font-weight: 700 !important; }

/* ---------------------------------------------------------------------------
   8. 푸터 · 우측 상담 도우미
   --------------------------------------------------------------------------- */
.v4-foot__links a,
.v4-foot__pending { font-size: 13.5px !important; color: #444 !important; }
.v4-foot__pending em { font-size: 12px !important; color: #8a8f98 !important; }
.v4-foot__brand strong { font-size: 18px !important; font-weight: 800 !important; }
.v4-foot__brand p { font-size: 13.5px !important; line-height: 1.7 !important; color: #444 !important; }
.v4-foot__info { font-size: 13.5px !important; line-height: 1.75 !important; color: #444 !important; }
.v4-foot__info strong,
.v4-foot__info a { font-size: 13.5px !important; color: #111 !important; }
.v4-foot__copy { font-size: 12px !important; color: #8a8f98 !important; }
.v4-foot__notice { font-size: 12px !important; line-height: 1.7 !important; color: #8a8f98 !important; }

.sf-helper-label { font-size: 12px !important; letter-spacing: -0.02em; }
.sf-helper-item { width: 64px; }

/* ---------------------------------------------------------------------------
   9. 좁은 화면 보정 (6단계 유지 · 탭 3개씩 두 줄)
   --------------------------------------------------------------------------- */
@media (max-width: 1439px) {
  .tn-carrier-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1240px) {
  .v4-panel .v4-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .v4-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-gnb__link { font-size: 15px !important; min-width: 0 !important; padding: 0 14px !important; }
}
@media (max-width: 768px) {
  .v4-page-head h1 { font-size: 24px !important; padding-left: 14px; }
  .v4-page-head h1::before { width: 4px; }
  .v4-page-head p { font-size: 15px !important; }
  .v4-page-head__act .sf-btn { height: 40px; font-size: 13.5px !important; }
  .tn-sec-head h2 { font-size: 18px !important; }
  .tn-sec-head p { font-size: 13.5px !important; }
  .tn-maxline { padding: 12px 14px !important; font-size: 12px !important; }
  .tn-maxline strong { font-size: 24px !important; }
  .tn-maxline .tn-alt { font-size: 12px !important; }
  .tn-maxnote { font-size: 12px !important; }
  .tn-tab { height: 44px !important; font-size: 13.5px !important; gap: 6px; }
  .tn-carrier-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .tn-intro__text { padding: 12px 14px !important; font-size: 13.5px !important; }
  .v4-panel .v4-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .v4-tiers { grid-template-columns: 1fr; }
  .v4-tier__price strong { font-size: 24px; }
  .v4-foot__links a, .v4-foot__pending { font-size: 12px !important; }
  .v4-foot__info, .v4-foot__brand p { font-size: 12px !important; }
}

/* ---------------------------------------------------------------------------
   10. 계산기 생성 HTML(인라인 스타일) 보정 — 6단계·3색 안으로
   · 루트 계산기(kt.php 등)가 인라인 style로 내보내는 글자 크기·색을 이 페이지에서만 덮습니다.
   · 값·계산에는 손대지 않습니다(표시만).
   --------------------------------------------------------------------------- */
.v4-search-btn { font-size: 13.5px !important; color: #444 !important; }
.v4-phone { font-size: 18px !important; }
.v4-crumb span { color: #8a8f98 !important; }

/* 03 결과 요약 값 — 패널 폭(300/344px)에 맞춰 18px, 인라인 24px도 같은 단계로 */
.tn-panel .result-value { font-size: 18px !important; font-weight: 800 !important; }

/* 비교표 위 '현재 최대 혜택 TOP 3' 카드 (인라인 스타일) */
.top-benefit-title { font-size: 18px !important; font-weight: 700 !important; color: #111 !important; }
.top-benefit-cards-grid { color: #111 !important; }
.benefit-rank-card { color: #111 !important; }
.top-benefit-cards-grid .rank-carrier { font-size: 18px !important; color: #111 !important; }
.top-benefit-cards-grid .rank-product-sub { font-size: 13.5px !important; font-weight: 600 !important; color: #8a8f98 !important; }
.top-benefit-cards-grid .rank-amount { font-size: 24px !important; font-weight: 800 !important; color: #ea1917 !important; letter-spacing: -0.02em !important; }
.top-benefit-cards-grid div[style*="font-size: 13px"] { font-size: 13.5px !important; color: #444 !important; }

/* 비교표 머리글·셀·필터 */
.tn-compare .clean-policy-table th { font-size: 13.5px !important; color: #444 !important; }
#policyDynamicRenderArea td { color: #444 !important; }
#policyDynamicRenderArea tbody td { font-size: 13.5px !important; color: #444 !important; }
.tn-compare .filter-btn { color: #444 !important; }

/* 기타 회색 잔재 */
.tncalc .option > label span[id="wifiLabel"] { color: #8a8f98 !important; }
.tncalc .appliance-notice { color: #444 !important; }
.tn-sec-sub { color: #444 !important; }
.sf-helper-label { color: #444 !important; }

/* ============================================================================
   v7 — 2026-11-21
   우측 패널 2단 재배치 · 모바일 비교표 잘림 수정 · 스마트추천/비교함 숨김
   ----------------------------------------------------------------------------
   · 위쪽 v2·v5·v6 규칙은 한 줄도 지우지 않는다. 여기서 덮어쓰기만 한다.
   · 값·계산·id·onclick·전송 로직은 건드리지 않는다. 배치와 표시만 바꾼다.
   ----------------------------------------------------------------------------
   1) 1720px 이상 — 본문 1200은 지금 폭·자리 그대로 두고,
      그 오른쪽 경계에서 16px 옆에 신청 패널(344)이 sticky로 따라온다.
      (화면 중앙이 아니라 본문 1200의 오른쪽 경계가 기준)
   2) 1719px 이하 — 패널 자리가 350px도 안 나오므로 한 열.
      패널은 본문 아래로 내려와 그대로 보인다 (가로 잘림·가로 스크롤 없음).
   3) 03 결과 요약 — '선택하신 상품 요약'을 따로 띄우지 않고 카드 하나로 합쳤다.
      카드 안 순서: 우리 집 가입 혜택 → 구성 항목 줄 → 월 총 요금 → 현금 사은품
   4) 스마트 추천 검색 모달 · 비교함 — 이 페이지에서는 열지 않는다(비노출).
      두 기능을 여는 버튼도 함께 숨긴다. 신청서·상담 흐름은 그대로 쓴다.
   5) 모바일 비교표 — 카드로 바뀌든 표로 남든 폭을 넘지 않는다.
      카드 변환이 안 된 경우에도 좌우로 밀어 금액을 볼 수 있게 안전장치를 둔다.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. (v12) 헤더 공용 검색을 이 페이지에서도 그대로 쓴다 — 숨김 규칙 삭제
   --------------------------------------------------------------------------- */

/* v8 — 오른쪽에 붙어 있던 '빠른 상담 · 전화 · 카톡' 세로 도우미를 통째로 없앤다.
   상담 진입은 오른쪽 패널의 신청서·하단 버튼이 그대로 맡는다. */
#sfHelper { display: none !important; visibility: hidden !important; }

/* ---------------------------------------------------------------------------
   2. 1719px 이하 — 한 열. 본문 아래로 내려오는 패널
   --------------------------------------------------------------------------- */
@media (max-width: 1823px) {
  main.v4-page .v4-inner {
    max-width: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  main.v4-page .v4-inner > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
  main.v4-page .tn-sec,
  main.v4-page .tn-sec-head { margin-left: auto !important; margin-right: auto !important; }

  /* 본문 1200 (화면이 좁으면 화면 폭 그대로 — 줄여서 끼워 넣지 않는다) */
  .tncalc.v4-inner > .section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
  .tncalc .calculator-master-box,
  .tncalc .option-container,
  .tncalc .option {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .tncalc .final-box-container {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .tncalc .tn-left { width: 100% !important; }
  .tncalc #inlineApplyBox { max-width: none !important; }

  /* 패널: 화면에 고정하지 않는다. 본문 바로 아래에 놓고 그대로 보여 준다. */
  .tncalc .tn-panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto;
  }
  body.tn-applying .tncalc .tn-panel { max-height: none !important; }

  /* 버튼 두 개를 한 줄에 반씩 — 예전에는 100% 폭 두 개가 가로로 붙어
     문서 폭을 2배로 늘렸다(모바일 가로 스크롤의 원인). */
  .tn-panel .action-buttons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
  }
  .tn-panel .action-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 6px !important;
  }
}

/* ---------------------------------------------------------------------------
   3. 1824px 이상 — 본문 1200은 화면 정중앙 그대로, 패널만 오른쪽 빈칸에
   ---------------------------------------------------------------------------
   · v7 은 본문을 왼쪽 칸에 넣느라 격자를 만들었고, 그래서 1200 기둥이
     화면 중앙에서 왼쪽으로 밀렸다. v8 은 격자를 버리고 본문을 정중앙에 둔다.
   · 패널은 화면에서 빼내(fixed) 본문 1200의 오른쪽 경계 + 16px 자리에 세운다.
     오른쪽 끝은 벽에서 16px. 폭은 남는 칸에 맞춰 280~344 사이로 줄어든다.
     (1824px 미만이면 패널이 본문을 덮게 되므로 아래 한 열로 내려간다)
   · 값·계산·id·전송 로직은 손대지 않는다. 배치와 표시만 바꾼다.
   --------------------------------------------------------------------------- */
@media (min-width: 1824px) {
  main.v4-page .v4-inner.tncalc {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  /* v11 — 정렬 복구.
     빵·h1·01·06이 든 .v4-inner 에는 v5 시절 오른쪽 여백 464px 가 남아 있어
     계산기(02·04·05)보다 왼쪽으로 220px 밀려 있었다. 좌우 24px 로 맞춘다. */
  main.v4-page .v4-inner:not(.tncalc) {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .tncalc.v4-inner > .section {
    width: 1200px !important;
    max-width: 1200px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .tncalc .calculator-master-box,
  .tncalc .final-box-container { display: block !important; }

  .tncalc .tn-left { min-width: 0; }
  .tncalc .tn-left .tn-sec-head { margin-left: 0; margin-right: auto; }

  /* 오른쪽 빈칸: 본문 1200 오른쪽 경계 + 16px, 오른쪽 끝은 벽에서 16px */
  .tncalc .tn-panel {
    position: fixed !important;
    top: 104px;
    left: auto !important;
    right: 16px !important;
    width: clamp(280px, calc(50vw - 640px), 344px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: calc(100vh - 124px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    /* v11 — 넘칠 때만 얇은 스크롤바가 보이게 (v9 의 '막대 숨김'을 되돌린다).
       막대가 없으면 약관까지 펼쳤을 때 더 있다는 걸 알 수 없다. */
    scrollbar-width: thin !important;
    scrollbar-color: #c9ccd2 transparent !important;
    -ms-overflow-style: auto !important;
  }
  .tncalc .tn-panel::-webkit-scrollbar { width: 6px !important; height: 6px !important; display: block !important; }
  .tncalc .tn-panel::-webkit-scrollbar-thumb { background: #c9ccd2; border-radius: 3px; }
  .tncalc .tn-panel::-webkit-scrollbar-track { background: transparent; }

  /* v11 — 신청서를 펼쳐도 패널을 위로 올리지 않는다.
     v9 는 top 을 16px 로 올렸는데, 사이트 헤더가 101px(sticky, z 900)라
     패널 위 85px 가 헤더에 영구히 가려져 03 결과 요약 제목이 사라졌다.
     헤더 바로 아래(101 + 8)에 두고, 넘치는 만큼만 패널 안에서 스크롤한다. */
  body.tn-applying .tncalc .tn-panel {
    top: 109px !important;
    max-height: calc(100vh - 125px) !important;
  }

  /* 푸터·아래 섹션도 같은 1200 기둥에 맞춘다 */
  .v4-foot .v4-inner { max-width: none; padding-left: 24px; padding-right: 24px; }
  .v4-foot .v4-inner > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
}

/* ---------------------------------------------------------------------------
   4. 03 결과 요약 카드 하나로 통합
   ---------------------------------------------------------------------------
   구성 항목 줄(인터넷 / TV / 휴대폰 기본 요금 / 집 전화 / 가전)
   → 월 총 요금 → 현금 사은품 순서. PC·모바일 모두 같은 카드 하나다.
   (v6 의 별도 '선택하신 상품 요약' 블록은 없애고 이 카드로 합쳤다)
   --------------------------------------------------------------------------- */
.summary-card .summary-header-title { margin-bottom: 6px !important; }

.tn-pick-list { display: block; margin: 0; }
.tn-pick-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}
.tn-pick-row__l {
  flex: 0 0 auto;
  /* v10 — 우리 집 가입 혜택 밑 항목 이름이 흐리고 작아 보이던 것.
     같은 카드의 '현금 사은품' 라벨과 같은 글씨(13.5px / 700 / #444)로 맞춤다. */
  color: #444;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tn-pick-row__v {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  color: #444;
  font-weight: 600;
  word-break: keep-all;
}
.tn-pick-row__v b { color: #111; font-weight: 800; }

/* 월 총 요금 — 항목 줄과 현금 사은품 사이 */
.summary-card .tn-side-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 0 !important;
  padding: 10px 0 8px !important;
  border: 0 !important;
  border-top: 1px solid #e8eaee !important;
  border-bottom: 1px solid #e8eaee !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.summary-card .tn-side-total span {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111 !important;
}
.summary-card .tn-side-total em { display: none !important; }
.summary-card .tn-side-total strong {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: -0.02em;
}

/* 인터넷 요금·휴대폰 기본요금 결과 줄은 위 항목 줄과 같은 내용이라 감춘다.
   (값은 지금처럼 이 노드에서 읽어 합계를 만든다 — 감춰도 글자는 남아 있다) */
.summary-card #result_internet,
.summary-card #result_mobile { display: none !important; }
.summary-card .result-wrapper { margin-top: 2px; }

/* v10 — 가전 사은품 줄: 월 총 요금 아래 · 현금 사은품 바로 위.
   가전을 고르지 않으면(해제하면) 이 줄 자체가 사라진다. */
.summary-card .tn-appl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 0 7px !important;
  font-size: 13px;
  line-height: 1.45;
}
.summary-card .tn-appl[hidden] { display: none !important; }
.summary-card .tn-appl__l {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #444;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.summary-card .tn-appl__l svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #5b6069;
}
.summary-card .tn-appl__v {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  color: #111;
  font-weight: 700;
  word-break: keep-all;
}

/* ---------------------------------------------------------------------------
   5. 모바일 비교표 — 카드든 표든 폭을 넘지 않게 + 가로 스크롤 안전장치
   ---------------------------------------------------------------------------
   · main.css 의 모바일 규칙이 .clean-policy-table 에 min-width: 580px 를 걸어서
     카드로 바뀌어도 표 폭은 580px로 남았다 → 금액이 화면 오른쪽 밖으로 나갔다.
     여기서 min-width 를 0으로 풀어 카드가 화면 폭 안에 들어오게 한다.
   · 카드 변환이 실패해 표로 남아도, 감싸는 .policy-table-responsive 가
     좌우로 밀 수 있어 금액이 잘린 채 사라지지 않는다.
   --------------------------------------------------------------------------- */
#policyDynamicRenderArea .policy-table-responsive {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}
#policyDynamicRenderArea .speed-block-wrap {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  #policyDynamicRenderArea .speed-block-wrap {
    padding: 12px 10px !important;
    margin-bottom: 18px !important;
  }
  #policyDynamicRenderArea table.clean-policy-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
  #policyDynamicRenderArea table,
  #policyDynamicRenderArea tbody,
  #policyDynamicRenderArea thead,
  #policyDynamicRenderArea tr,
  #policyDynamicRenderArea td,
  #policyDynamicRenderArea th {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #policyDynamicRenderArea tbody td {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* 카드 안에서 금액은 오른쪽, 라벨은 왼쪽 — 한 줄에 들어오게 */
  #policyDynamicRenderArea tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }
  /* 마지막 칸(총사은품 + 신청 버튼)은 flex 로 두면 글씨가 쪼개진다 → 블록으로 되돌린다 */
  #policyDynamicRenderArea tbody tr td:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    border-top: 1px dashed #cbd5e1 !important;
    border-bottom: 0 !important;
    margin-top: 6px !important;
    padding-top: 12px !important;
  }
  #policyDynamicRenderArea tbody tr td:last-child::before {
    display: block;
    margin: 0 0 6px;
    text-align: center;
  }
  #policyDynamicRenderArea tbody tr td:last-child > * {
    margin-left: auto;
    margin-right: auto;
  }
  #policyDynamicRenderArea tbody td::before {
    flex: 0 1 auto;
    min-width: 0;
  }
  #policyDynamicRenderArea tbody td > * { min-width: 0; }
}


/* ===========================================================================
   v12 — 1600·1440 에서도 신청서를 펼치면 03 결과 요약이 헤더에 가리던 것
   ---------------------------------------------------------------------------
   사이트 기본 JS 가 신청서를 열 때 applyBox.scrollIntoView({block:'nearest'})
   를 부르면서 패널 윗변이 화면 37px 까지 올라오고, sticky 헤더(높이 101px,
   z-index 900)가 그 위를 덮어 03 제목이 사라졌다. (1824px 이상은 v11 의
   top:109 가 잡아 주지만, 그 아래 폭은 패널이 흐름 배치라 그대로 남아 있었다.)
   scroll-margin-top 은 브라우저의 scrollIntoView 가 '보이는 영역'을 계산할 때
   같이 빼 주는 값이라, 헤더 높이 + 8px 만큼 여유를 두면 헤더 아래에서 멈춘다.
   =========================================================================== */
#inlineApplyBox,
#applyBox,
.tncalc .tn-left {
  scroll-margin-top: 109px !important;
}

.tn-sec-head:not(.tn-sec-head--row) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.tn-sec-head:not(.tn-sec-head--row) h2 { margin: 0 !important; }
.tn-sec-head > p { flex: 1 1 100%; margin-top: 4px !important; }

/* ===========================================================================
   v13 — 05 사은품 선택: 현금 / 가전 전환 버튼 (2026-11-22 ③)
   ---------------------------------------------------------------------------
   · 가전 카드 목록 아래에 라디오형 버튼 2개를 나란히 둔다. 기본값은 현금.
   · 버튼 안쪽 동작은 기존 selectBenefitMode() 를 그대로 쓰고, 여기서는 모양만 준다.
   · 조건(인터넷 500메가 + TV 이상) 미충족이면 가전 버튼은 회색이지만 눌린다.
     (누르면 바로 아래 한 줄로 이유를 알린다 — 팝업 없음)
   · 모바일 390px 에서도 2열 유지(가로 스크롤 없음), 터치 타깃 48px.
   =========================================================================== */
.tn-benefit-toggle {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin: 14px 0 0 !important;
}
.tn-benefit-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #d8dade;
  border-radius: 12px;
  background: #fff;
  color: var(--tn-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.tn-benefit-btn .tn-ico {
  width: 17px;
  height: 17px;
  color: currentColor !important;
}
.tn-benefit-btn:hover { border-color: var(--tn-ink); }
.tn-benefit-btn[aria-checked="true"],
.tn-benefit-btn.is-on {
  border-color: var(--tn-ink);
  background: var(--tn-ink);
  color: #fff;
}
.tn-benefit-btn[aria-checked="true"]:hover,
.tn-benefit-btn.is-on:hover { background: #000; }
.tn-benefit-btn.is-locked {
  color: var(--tn-muted);
  background: #f7f8fa;
  border-color: var(--tn-line);
}
.tn-benefit-btn.is-locked:hover { border-color: #c8ccd2; }
.tn-benefit-notice {
  margin: 8px 0 0 !important;
  padding: 9px 12px !important;
  background: #f7f8fa;
  border: 1px solid var(--tn-line-soft);
  border-radius: 10px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  color: #5b6472 !important;
  text-align: left;
}
.tn-benefit-notice[hidden] { display: none !important; }

@media (max-width: 719px) {
  .tn-benefit-toggle { gap: 6px; margin-top: 12px !important; }
  .tn-benefit-btn {
    min-height: 48px;
    padding: 0 6px;
    gap: 5px;
    font-size: 13px;
  }
  .tn-benefit-btn .tn-ico { width: 15px; height: 15px; }
  .tn-benefit-notice { font-size: 12.5px !important; padding: 8px 10px !important; }
}

/* ==========================================================================
   2026-11-24 · 랜딩 06번 '지원금 비교표' 섹션 전용 조정  (#tnCompareSection 스코프)
   1) TOP3 '자세히 보기' 버튼 hover/focus 글씨 흰색
   2) 순위를 메인과 같은 메달(🥇🥈🥉)로 복원 — 랜딩의 이모지 정리 스크립트가 1·2·3으로 바꿈
   3) 카드 구조·1등 테두리·금액 크기 / 표 헤더·금액 강조 / 섹션 제목 크기
   기존 규칙은 삭제하지 않고 뒤에서 덮어쓴다.
   ========================================================================== */

/* 1) TOP3 카드 버튼 hover · focus : 파란 바탕 + 흰 글씨 */
.top-benefit-cards-grid .benefit-rank-card div[onmouseover]:hover,
.top-benefit-cards-grid .benefit-rank-card div[onmouseover]:focus { color: #fff !important; }
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card div[onmouseover]:hover,
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card div[onmouseover]:focus {
  color: #fff !important; background-color: #2563eb !important; border-color: #2563eb !important;
}

/* 2) 순위 = 메달 (화면의 1·2·3 텍스트는 숨기고 CSS로 메달을 그린다) */
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card > div:first-child > div:first-child {
  font-size: 0 !important; line-height: 1.3 !important;
}
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card:nth-child(1) > div:first-child > div:first-child::before { content: '🥇'; font-size: 24px; }
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card:nth-child(2) > div:first-child > div:first-child::before { content: '🥈'; font-size: 24px; }
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card:nth-child(3) > div:first-child > div:first-child::before { content: '🥉'; font-size: 24px; }

/* 3) 카드 구조: 메달 → 통신사명 → 상품 설명 → 가는 구분선 → 금액 → 버튼 (전부 중앙 정렬, 3개 높이 동일) */
#tnCompareSection .top-benefit-cards-grid { align-items: stretch !important; }
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card {
  display: flex !important; flex-direction: column !important; justify-content: space-between !important;
  text-align: center !important; background-color: #fff !important;
}
#tnCompareSection .top-benefit-cards-grid .rank-carrier { text-align: center !important; color: #0f172a !important; }
#tnCompareSection .top-benefit-cards-grid .rank-product-sub {
  text-align: center !important; font-size: 13px !important; font-weight: 600 !important; color: #64748b !important;
}
#tnCompareSection .top-benefit-cards-grid .rank-amount {
  text-align: center !important; font-size: 26px !important; font-weight: 800 !important; color: #ea1917 !important;
  border-top: 1px dashed #e5e7eb !important; padding-top: 14px !important;
  margin-top: 4px !important; margin-bottom: 16px !important;
}
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card div[onmouseover] {
  background: #f8fafc !important; border: 1.5px solid #e2e8f0 !important; border-radius: 10px !important;
  color: #334155 !important; font-size: 13px !important; font-weight: 800 !important;
  padding: 10px 0 !important; text-align: center !important;
}

/* 4) 1등만 2px 파란 테두리, 2·3등은 옅은 테두리 유지 */
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card.rank-1 { border: 2px solid #2563eb !important; }
#tnCompareSection .top-benefit-cards-grid .benefit-rank-card:not(.rank-1) { border: 1px solid #e2e8f0 !important; }

/* 5) 표: 헤더 14.5px, 지원금·총 사은품 금액은 진한 남색 강조 (초록 사용 안 함) */
#tnCompareSection #policyDynamicRenderArea th { font-size: 14.5px !important; color: #334155 !important; }
#tnCompareSection #policyDynamicRenderArea td.sup-highlight,
#tnCompareSection #policyDynamicRenderArea td.sup-highlight strong,
#tnCompareSection #policyDynamicRenderArea .total-benefit-cell { color: #0b1220 !important; font-weight: 800 !important; }
#tnCompareSection #policyDynamicRenderArea td.usim-highlight { color: #0b1220 !important; font-weight: 800 !important; }

/* 6) 06번 섹션 제목 크기 (문구는 소스에서 '통신사별 인터넷 가입 지원금 비교표'로 변경) */
#tnCompareSection .tn-sec-head h2 { font-size: 22px !important; }
#tnCompareSection .tn-sec-head .tn-num { font-size: 13px !important; }

/* 7) 모바일: 1열 배치, 금액만 축소 */
@media (max-width: 768px) {
  #tnCompareSection .top-benefit-cards-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  #tnCompareSection .top-benefit-cards-grid .benefit-rank-card { padding: 18px 14px !important; }
  #tnCompareSection .top-benefit-cards-grid .rank-amount { font-size: 24px !important; }
  #tnCompareSection .tn-sec-head h2 { font-size: 22px !important; }
}
