:root {
  --bg: #ffffff;
  --bg-alt: #f1f5fb;
  --text: #1b2433;
  --muted: #64708a;
  --primary: #1d4ed8;
  --primary-dark: #0f2a6b;
  --accent: #0ea5a4;
  --primary-text: #ffffff;
  --border: #dbe3f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--primary-dark); }
.nav { display: flex; gap: 24px; }
.nav a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; }

/* Hero */
.hero { padding: 96px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #0f2a6b, #1d4ed8); }
.eyebrow { font-size: clamp(1.8rem, 5.5vw, 2.8rem); font-weight: 900; color: #fde047; letter-spacing: -.02em; margin-bottom: 14px; }
.hero-asof { margin: -4px 0 18px; font-size: 1.1rem; font-weight: 600; opacity: .95; }
.hero-asof strong { color: #7dd3fc; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.3; margin-bottom: 28px; }
.hero h1 span { color: #7dd3fc; }
.lead { max-width: 560px; margin: 0 auto 32px; opacity: .9; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 10px; background: #fff; color: var(--primary-dark); font-weight: 700; border: 0; }
.btn:hover { opacity: .92; }
.btn-block { display: block; text-align: center; margin-top: 16px; background: var(--primary); color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 1.7rem; margin-bottom: 24px; color: var(--primary-dark); }
.sub { color: var(--muted); margin: -12px 0 20px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input[type=number] { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .devices button {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
.seg button:hover, .devices button:hover { border-color: var(--primary); }
.seg button.on, .devices button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg small { display: block; font-size: .75rem; opacity: .8; }
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.devices button { text-align: left; }
.devices .brand { display: block; font-size: .72rem; opacity: .7; }
.devices .price { display: block; font-size: .8rem; opacity: .85; }

.result { position: sticky; top: 80px; background: var(--primary-dark); color: #fff; border-radius: 16px; padding: 24px; }
.result-label { font-size: .88rem; opacity: .75; }
.result-total { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin: 6px 0 16px; }
.result-total small { font-size: 1rem; font-weight: 500; opacity: .8; }
.breakdown div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .95rem; }
.breakdown .minus { color: #7dd3fc; }
.upfront { margin-top: 12px; padding: 10px 12px; background: rgba(255,255,255,.1); border-radius: 8px; font-size: .9rem; }
.notice { margin-top: 24px; font-size: .85rem; color: var(--muted); }

/* Compare table */
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; min-width: 560px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child, .cmp th:nth-child(2), .cmp td:nth-child(2) { text-align: left; }
.cmp thead th { background: var(--primary-dark); color: #fff; font-weight: 600; }
.cmp td:last-child { font-weight: 800; color: var(--primary); }
.cmp tr.best td { background: #eaf2ff; }
.cmp tr.best td:first-child::after { content: " 최저"; font-size: .72rem; color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }

/* Contact */
.contact { text-align: center; }
.contact p { color: var(--muted); margin-bottom: 20px; }
.phone { display: inline-block; font-size: 1.8rem; font-weight: 800; color: var(--primary); padding: 14px 32px; border: 2px solid var(--primary); border-radius: 14px; }
.phone:hover { background: var(--primary); color: #fff; }

.site-footer { padding: 28px 0; text-align: center; color: var(--muted); border-top: 1px solid var(--border); font-size: .9rem; }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .result { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--border); }
  .hero { padding: 64px 0; }
}

.seg button small { display: block; }
.extras { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.extras summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); }
.extras ul { margin: 8px 0 0 20px; }
.upfront strong { display: block; font-size: 1.05rem; }
.upfront small { display: block; margin-top: 2px; font-size: .78rem; opacity: .8; }

.field select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.hint { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.after { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.12); }
.after-label { font-size: .85rem; opacity: .85; }
.after-total { font-size: 1.7rem; font-weight: 800; }
.after-total small { font-size: .9rem; font-weight: 500; opacity: .8; }
.after-note { font-size: .78rem; opacity: .8; }
.result-label + .upfront { margin: 10px 0 0; }
.total-label { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; opacity: .85; }
.total-label + .result-total { margin: 2px 0 0; }
.prow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; }
.prow b { font-weight: 600; }
.prow.last { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.25); font-size: 1.05rem; }
.prow.last b { font-weight: 800; }
.upfront small { display: block; margin-top: 6px; font-size: .78rem; opacity: .8; }

.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.check.on { border-color: var(--primary); background: #f3f7ff; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.check small { display: block; font-size: .78rem; color: var(--muted); }

.lab-sub { font-weight: 400; font-size: .8rem; color: var(--muted); }
.lab-sub2 { margin: 14px 0 6px; font-weight: 600; font-size: .9rem; }
.devices button img { display: block; width: 100%; height: 72px; object-fit: contain; margin-bottom: 4px; background: #f3f5f9; border-radius: 6px; }
.devices button.on img { background: #fff; }
.colors button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; }
.colors button i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.plan-desc { margin-top: 8px; padding: 8px 12px; background: var(--bg-alt); border-radius: 8px; font-size: .85rem; color: var(--primary-dark); }
.rimg { display: block; width: 100%; max-height: 130px; object-fit: contain; margin-bottom: 10px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 6px; }
.total-label { line-height: 1.4; }

/* ===== 모바일 하단 요약바 (데스크톱에서는 숨김) ===== */
.mbar { display: none; }

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .section h2 { font-size: 1.4rem; margin-bottom: 16px; }
  .hero h1 { font-size: 1.7rem; }
  .lead { font-size: .95rem; }

  /* 터치하기 좋은 크기, iOS 자동 확대 방지(16px) */
  .seg button, .devices button, .check { min-height: 44px; }
  .field select, .field input[type=number] { font-size: 16px; min-height: 46px; }
  .seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #age { grid-template-columns: repeat(3, 1fr); }
  #age button { padding: 10px 4px; font-size: .9rem; }
  #combo, #support, #open { grid-template-columns: 1fr 1fr; }
  .seg button { padding: 10px 8px; font-size: .92rem; }
  .colors { display: flex; flex-wrap: wrap; }
  .colors button { padding: 8px 12px; }
  .devices { grid-template-columns: repeat(2, 1fr); }
  .devices button img { height: 84px; }

  .result { padding: 18px; scroll-margin-top: 72px; }
  .result-total { font-size: 2.2rem; }
  .rimg { max-height: 150px; }

  .cmp { min-width: 480px; font-size: .88rem; }
  .cmp th, .cmp td { padding: 10px; }
  .phone { font-size: 1.4rem; padding: 12px 22px; }

  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: block;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--primary-dark); color: #fff; text-align: center;
    box-shadow: 0 -4px 16px rgba(15, 42, 107, .25);
    transition: transform .2s;
  }
  .mbar.off { transform: translateY(110%); } /* 결과 카드가 보이면 안내 바는 숨김 */
  .mbar-guide { display: block; font-size: .9rem; line-height: 1.45; color: #fff; }
  .mbar-guide b { color: #fde047; }
  body { padding-bottom: 70px; }
}

@media (max-width: 380px) {
  .devices button { padding: 8px; font-size: .88rem; }
  .result-total { font-size: 2rem; }
}

.brandtabs { margin-bottom: 10px; }
.brandtabs button { flex: 1; padding: 12px 16px; font-weight: 700; }

/* 부가서비스 별도 청구 포인트 */
.breakdown .extra-row { margin-top: 6px; padding: 10px 10px; border: 1px dashed rgba(255, 209, 102, .55); border-radius: 10px; background: rgba(255, 209, 102, .08); align-items: center; }
.breakdown .extra-row dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breakdown .extra-row .badge { padding: 2px 8px; border-radius: 999px; background: #ffd166; color: #3a2a00; font-size: .72rem; font-weight: 800; }
.breakdown .extra-row.has { border-style: solid; border-color: #ffd166; background: rgba(255, 209, 102, .16); }
.breakdown .extra-row.has dd { color: #ffd166; font-weight: 800; font-size: 1.05rem; }

/* 파손보험 설명 */
.ins-desc { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid #e7a700; border-radius: 10px; background: #fffaf0; font-size: .88rem; }
.ins-desc strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
.ins-name { font-weight: 700; }
.ins-price { margin: 2px 0 6px; color: #8a5a00; font-weight: 800; font-size: 1rem; }
.ins-price small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.ins-note { margin-bottom: 6px; color: #b3261e; font-size: .82rem; }
.ins-desc ul { margin: 0 0 6px 18px; }
.ins-desc li { margin: 2px 0; }
.ins-foot { color: var(--muted); font-size: .76rem; }

.inquiry-note { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #fff1f0; border: 1px solid #f3b8b3; color: #b3261e; font-size: .85rem; font-weight: 600; }

.after-warn { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 99, 88, .22); border: 1px solid rgba(255, 140, 130, .7); color: #ffd9d6; font-size: .8rem; font-weight: 700; }

/* 파손보험 상세: 월청구금액·한도액·자기부담금만 표시 */
.ins-desc dl { margin: 6px 0 0; }
.ins-desc dl > div { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.ins-desc dt { flex: 0 0 82px; color: var(--muted); font-weight: 600; }
.ins-desc dd { flex: 1; margin: 0; }
.ins-desc dd.ins-price { margin: 0; }

/* SKT 결합할인 상세 */
.fambox:empty { display: none; }
.fambox { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
.fambox .seg { margin-bottom: 10px; }
.fam-title { margin: 6px 0; font-weight: 700; font-size: .88rem; color: var(--primary-dark); }
.fam-sum { margin: 4px 0; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: .88rem; }
.fam-sum b { color: var(--primary); }
.fam-note { margin-top: 8px; font-size: .78rem; color: var(--muted); }
.fambox .check { margin-bottom: 10px; }

/* 인터넷 할인은 휴대폰 청구와 별도 표기 */
.fam-sum.net { margin-top: 6px; background: #eef9f5; border-color: #b9e3d4; }
.breakdown .net-row { margin-top: 6px; padding: 8px 10px; border: 1px dashed rgba(125, 211, 252, .7); border-radius: 10px; background: rgba(125, 211, 252, .08); }
.breakdown .net-row dt small { opacity: .75; font-size: .72rem; }
.breakdown .net-row dd { color: #7dd3fc; font-weight: 700; }

/* 팝업 */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.modal[hidden] { display: none; }
.modal-box { width: min(420px, 100%); padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); line-height: 1.6; }
.modal-box b { color: var(--primary-dark); }
.modal-actions { display: flex; gap: 8px; margin-top: 18px; }
.modal-actions .btn { flex: 1; padding: 12px; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
.modal-actions .btn-primary { background: var(--primary); color: #fff; }
.modal-actions .btn-ghost { background: var(--bg-alt); color: var(--text); }

/* 우리가족무선할인 구간표 */
.fam-table { display: grid; gap: 4px; margin: 8px 0; }
.fam-table > div { display: flex; justify-content: space-between; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: .85rem; }
.fam-table > div.on { border-color: var(--primary); background: #eef3ff; font-weight: 700; }
.fam-table b { color: var(--primary); }

/* 6개월 이후 요금제 변경 포인트 */
.point-field { padding: 14px; border: 2px solid #14b8a6; border-radius: 14px; background: #f0fdfa; }
.point-field > label { color: #0f766e; }
.point-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #14b8a6; color: #fff; font-size: .72rem; font-weight: 800; vertical-align: middle; }
.point-field select { border-color: #14b8a6; }
.point-field .plan-desc { background: #ccfbf1; color: #0f766e; }

.after { border: 2px solid #5eead4; background: rgba(94, 234, 212, .12); box-shadow: 0 0 0 4px rgba(94, 234, 212, .12); }
.after-badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #5eead4; color: #064e3b; font-size: .72rem; font-weight: 800; }
.after-label { font-weight: 700; opacity: 1; }
.after-total { color: #5eead4; }

/* 기기값 포인트 */
.upfront { border: 2px solid #c4b5fd; background: rgba(196, 181, 253, .14); box-shadow: 0 0 0 4px rgba(196, 181, 253, .1); }
.dev-badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #c4b5fd; color: #2e1065; font-size: .72rem; font-weight: 800; }
.prow.last { border-top-color: rgba(196, 181, 253, .6); }
.prow.last span { color: #ddd6fe; font-weight: 700; }
.prow.last b { color: #c4b5fd; font-size: 1.25rem; }

/* hidden 속성은 항상 우선 (display를 지정한 요소도 숨겨지도록) */
[hidden] { display: none !important; }

/* 사전승낙서 (무선 · 유선 나란히) */
.license { text-align: center; }
.license .sub { margin: -12px 0 24px; }
.license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.license-card { padding: 28px 20px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(15, 42, 107, .08); }
.license-badge { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; }
.license-badge.wired { background: var(--accent); }
.license-card h3 { margin-bottom: 4px; color: var(--primary-dark); font-size: 1.15rem; }
.license-card p { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.license-btn { display: block; padding: 13px 12px; border-radius: 10px; background: var(--primary-dark); color: #fff; font-weight: 700; font-size: .95rem; }
.license-btn:hover { background: var(--primary); }
@media (max-width: 560px) { .license-grid { grid-template-columns: 1fr; } }

/* 상담 요청 팝업 */
.consult-box { width: min(520px, 100%); }
.consult-box h3 { margin-bottom: 8px; color: var(--primary-dark); }
.consult-status { min-height: 1.4em; margin-bottom: 10px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.consult-status.ok { color: #0f766e; }
.consult-status.fail { color: #b3261e; }
#consultText { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: .88rem; line-height: 1.6; background: #f8fafc; resize: vertical; }
.consult-actions { margin-top: 12px; }
.consult-actions .btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.btn-kakao { background: #fee500; color: #191919; }
.consult-close { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }

/* 복지할인 */
.breakdown .welfare-row { margin-top: 6px; padding: 8px 10px; border: 1px dashed rgba(251, 191, 36, .6); border-radius: 10px; background: rgba(251, 191, 36, .08); }
.breakdown .welfare-row dt small { opacity: .75; font-size: .72rem; }
.breakdown .welfare-row dd { color: #fbbf24; font-weight: 700; }

/* 통신사 선택: 로고 버튼 */
#carrier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#carrier button { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px; border: 2px solid var(--border); background: #fff; }
#carrier button:hover { border-color: var(--primary); }
#carrier button.on { background: #eef3ff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); color: var(--text); }
.carrier-logo { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.carrier-kt { height: 38px; }
.carrier-lgu { height: 26px; }
#carrier button:not(.on) .carrier-logo { opacity: .75; }
@media (max-width: 720px) {
  #carrier { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  #carrier button { min-height: 58px; padding: 8px; }
  .carrier-logo { height: 24px; }
  .carrier-kt { height: 32px; }
  .carrier-lgu { height: 21px; }
}


/* "이 조건으로 상담받기" 강조 */
#rCall {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 18px 16px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #ffec3d, #fee500); color: #191919;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; cursor: pointer;
  box-shadow: 0 6px 0 #d6bd00, 0 10px 24px rgba(254, 229, 0, .35);
  animation: callPulse 2.2s ease-in-out infinite;
  transition: transform .12s, box-shadow .12s;
}
#rCall::before { content: "💬"; font-size: 1.3rem; }
#rCall::after { content: "→"; font-size: 1.3rem; transition: transform .15s; }
#rCall:hover { transform: translateY(2px); box-shadow: 0 4px 0 #d6bd00, 0 8px 20px rgba(254, 229, 0, .4); opacity: 1; }
#rCall:hover::after { transform: translateX(4px); }
#rCall:active { transform: translateY(6px); box-shadow: 0 0 0 #d6bd00, 0 4px 12px rgba(254, 229, 0, .3); }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 6px 0 #d6bd00, 0 10px 24px rgba(254, 229, 0, .35); }
  50% { box-shadow: 0 6px 0 #d6bd00, 0 10px 34px rgba(254, 229, 0, .7); }
}
@media (prefers-reduced-motion: reduce) { #rCall { animation: none; } }

.alloc { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.alloc input { width: 140px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.alloc button { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-size: .85rem; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* 3 개통 유형 · 4 지원금 방식: 같은 줄에서 버튼 박스 크기를 동일하게 */
.field-row .field { display: flex; flex-direction: column; }
.field-row .seg { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.field-row .seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.calc-guide { margin: -4px 0 18px; padding: 10px 14px; border-radius: 10px; background: #fff7d6; border: 1px solid #f3d36b; color: #7a5b00; font-weight: 700; font-size: .95rem; text-align: center; }

.app { text-align: center; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin: 20px auto 0; }
.app-btn { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-radius: 14px; color: #fff; text-decoration: none; background: #111827; box-shadow: 0 4px 14px rgba(15, 42, 107, .18); }
.app-btn:hover { transform: translateY(-2px); }
.app-btn.android { background: #0f8a5f; }
.app-btn.ios { background: #1f2937; }
.app-os { font-size: .8rem; opacity: .85; }
.app-btn b { font-size: 1.05rem; }
@media (max-width: 520px) { .app-grid { grid-template-columns: 1fr; } }

.hero-guide { display: table;  padding: 10px 18px; border-radius: 999px; background: rgba(253, 224, 71, .18); border: 1px solid rgba(253, 224, 71, .6); color: #fde047; font-weight: 700; }

.guide { text-align: center; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; text-align: left; }
.guide-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.guide-card h3 small { font-weight: 500; opacity: .7; }
.guide-links { display: flex; flex-direction: column; gap: 8px; }
.guide-link { display: block; padding: 11px 14px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; text-align: center; background: #374151; }
.guide-link:hover { filter: brightness(1.1); }
.guide-link.skt { background: #e4002b; }
.guide-link.kt { background: #1a1a1a; }
.guide-link.lgu { background: #d6006e; }
@media (max-width: 720px) { .guide-grid { grid-template-columns: 1fr; } }


/* ===== 신뢰 배지 · 오늘의 특가 ===== */
.trust-badge { display: table; margin: 16px auto 0; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: .9rem; }
.trust-badge small { font-weight: 500; opacity: .8; }
.specials .sub strong { color: var(--primary); }
.special-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.special-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; text-align: center; box-shadow: 0 3px 12px rgba(15, 42, 107, .08); }
.special-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.special-card img { width: 100%; max-width: 120px; height: 110px; object-fit: contain; }
.special-tag { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; }
.special-name { font-size: 1rem; color: var(--primary-dark); }
.special-meta { font-size: .78rem; color: var(--muted); }
.special-price { margin-top: 4px; font-size: 1.12rem; font-weight: 900; color: var(--primary); }
.special-go { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--primary-dark); opacity: .8; }
.small-note { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .special-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 계산기 진행 표시 / 작은 안내 ===== */
.step-no { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--primary); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.calc-progress { position: fixed; top: 64px; left: 0; right: 0; z-index: 9; padding: 6px 16px 8px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.calc-progress[hidden] { display: none; }
.cp-text { font-size: .82rem; font-weight: 700; color: var(--primary-dark); }
.cp-text b { color: var(--primary); }
.cp-text span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.cp-track { height: 4px; margin-top: 4px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.cp-track i { display: block; height: 100%; background: var(--primary); transition: width .25s; }
.fine-print { margin-top: 8px; font-size: .72rem; line-height: 1.55; color: var(--muted); }
.calc .field { scroll-margin-top: 130px; }

/* ===== 매장 소개 · 후기 · FAQ ===== */
.about { text-align: center; }
.about-lead { font-size: 1.35rem; color: var(--primary-dark); line-height: 1.5; margin-bottom: 12px; }
.about-text { max-width: 640px; margin: 0 auto 22px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-grid figure { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #e5ebf5; } /* 사진이 정사각형이라 잘리지 않게 정사각형 칸 */
.photo-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-empty { display: flex; align-items: center; justify-content: center; border: 2px dashed #b9c6de; color: var(--muted); font-size: .9rem; }
.photo-empty small { display: block; font-size: .72rem; opacity: .8; margin-top: 4px; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.reviews { text-align: center; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.review-card { padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 12px rgba(15, 42, 107, .06); }
.review-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.review-text { font-size: .93rem; margin-bottom: 12px; }
.review-by b { display: block; font-size: .9rem; color: var(--primary-dark); }
.review-by small { color: var(--muted); }
.more-btn { display: inline-block; margin-top: 20px; padding: 12px 26px; border-radius: 10px; background: #03c75a; color: #fff; font-weight: 800; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
.faq-list { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 15px 44px 15px 16px; font-weight: 700; color: var(--primary-dark); cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 16px; color: var(--text); font-size: .93rem; }
.faq-item p a { color: var(--primary); text-decoration: underline; }

/* ===== 오시는 길 · 상담 버튼 · 푸터 ===== */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.loc-info dl { display: grid; gap: 12px; }
.loc-info dt { font-weight: 800; color: var(--primary-dark); }
.loc-info dd { color: var(--text); }
.loc-info dd a { color: var(--primary); font-weight: 700; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.loc-btn { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; text-align: center; white-space: nowrap; border-radius: 10px; border: 2px solid #03c75a; color: #03a24a; font-weight: 800; background: #fff; }
.loc-btn.primary { background: #03c75a; color: #fff; }
.map-box { min-height: 260px; border-radius: 16px; overflow: hidden; background: #e8f5ee; border: 1px solid #bfe3cf; }
.map-box iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.map-box a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 260px; padding: 20px; text-align: center; color: #0b6b3a; }
.map-box a b { font-size: 1.15rem; }
.map-box a small { opacity: .75; }
@media (max-width: 720px) { .loc-grid { grid-template-columns: 1fr; } .loc-btn { flex-basis: 100%; } .map-box, .map-box a, .map-box iframe { min-height: 220px; } }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.contact-btn { padding: 13px 24px; border-radius: 12px; font-weight: 800; }
.contact-btn.kakao { background: #fee500; color: #191919; }
.contact-btn.naver { background: #03c75a; color: #fff; }
.site-footer { text-align: center; line-height: 1.7; }
.site-footer p { font-size: .85rem; }
.site-footer a { color: inherit; text-decoration: underline; }
.footer-badge { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--primary-dark); font-weight: 700; font-size: .85rem; text-decoration: none !important; }
.footer-name { font-size: 1rem !important; margin-bottom: 4px; }
.site-footer .copy { margin-top: 10px; opacity: .8; }

/* ===== 요금제 목록(추천 4개 + 더보기) ===== */
.sr-only { position: absolute !important; left: 0 !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap; border: 0 !important; opacity: 0; pointer-events: none; } /* 화면 밖으로 삐져나가 가로 스크롤이 생기지 않게 */
html, body { overflow-x: clip; }
.plan-list { display: grid; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); text-align: left; font-size: .95rem; }
.plan-opt.on { border-color: var(--primary); background: #f3f7ff; font-weight: 700; }
.plan-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b6c3dc; background: #fff; }
.plan-opt.on .plan-radio { border-color: var(--primary); background: radial-gradient(var(--primary) 0 45%, #fff 50%); }
.plan-more { width: 100%; min-height: 44px; border: 1px dashed var(--primary); border-radius: 10px; background: #fff; color: var(--primary); font-weight: 700; }

/* ===== 결과 3단계 표시 ===== */
.total-sub { margin-top: 6px; font-size: .85rem; opacity: .85; }
.stage2 { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.stage-badge { background: #fde68a; color: #5b4300; }
.stage2 .after-total { font-size: 1.6rem; font-weight: 800; }
.stage2 .after-total small { font-size: .9rem; font-weight: 500; }
.result-note { margin-top: 10px; font-size: .8rem; opacity: .8; text-align: center; }

/* ===== 추천 조건·요금제·부가서비스 안내 탭 ===== */
.cond-box { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.cond-box h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 10px; }
.cond-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.cond-tabs button { flex: 1; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text); font-weight: 700; }
.cond-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cond-panel { font-size: .88rem; line-height: 1.65; color: var(--text); }
.cond-panel p { margin-bottom: 8px; }
.cond-panel ul { margin: 4px 0 0 18px; }
.cond-panel li { margin-bottom: 4px; }

/* ===== 기타 ===== */
.review-src { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #e8f7ee; color: #0b6b3a; font-size: .72rem; font-weight: 700; }
.loc-grid.no-map { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.map-box img { width: 100%; display: block; }
.nav { gap: 16px; font-size: .92rem; }

/* 모바일 본문 글씨 최소 13px */
@media (max-width: 720px) {
  .seg small, .devices .brand, .upfront small, .after-note, .check small, .mbar-label, .mbar-total u, .ins-price small, .ins-foot, .fam-note,
  .breakdown .net-row dt small, .breakdown .welfare-row dt small, .special-meta, .special-go, .small-note, .result-note, .total-sub,
  .review-by small, .review-src, .step-no, .breakdown .extra-row .badge, .special-tag, .after-badge, .dev-badge, .license-badge, .point-badge,
  .cp-text, .notice, .cond-panel, .lab-sub, .lab-sub2, .plan-desc, .hint { font-size: .8125rem; }
  .cond-panel { line-height: 1.6; }
}

/* ===== 부가서비스 상세보기 ===== */
.ex-detail { display: inline-block; margin-top: 6px; padding: 5px 12px; border: 1px solid var(--primary); border-radius: 999px; background: #fff; color: var(--primary); font-size: .8rem; font-weight: 700; }
.ex-pop-title { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.ex-pop-name { display: block; font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.ex-pop { margin: 0; text-align: left; }
.ex-pop > div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.ex-pop dt { flex: 0 0 84px; color: var(--muted); font-weight: 600; }
.ex-pop dd { flex: 1; margin: 0; }
.ex-pop-foot { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; }

/* ===== 5번 개통 요금제 드롭박스 (파란색) ===== */
#openPlan { appearance: none; -webkit-appearance: none; background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; color: #fff; font-weight: 700; border-color: var(--primary); padding-right: 42px; }
#openPlan option { background: var(--primary); color: #fff; }

/* 부가서비스 유지 중 실제 청구액 라벨 강조 */
.total-label { display: inline-block; opacity: 1; border: 0; margin: 14px 0 6px; padding: 6px 14px; border-radius: 999px; background: #fde047; color: #3a2a00; font-size: 1rem; font-weight: 900; box-shadow: 0 2px 8px rgba(253, 224, 71, .35); }
.total-label:empty { display: none; }

/* 기기 선택 브랜드 탭: 통신사 선택 버튼과 같은 디자인 (로고만) */
#brand { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
#brand button { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px; border: 2px solid var(--border); background: #fff; }
#brand button:hover { border-color: var(--primary); }
#brand button.on { background: #eef3ff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); color: var(--text); }
.brand-logo { display: block; width: auto; max-width: 100%; object-fit: contain; }
.brand-logo.brand-galaxy { height: 20px; }
.brand-logo.brand-iphone { height: 30px; }
#brand button:not(.on) .brand-logo { opacity: .75; }
@media (max-width: 720px) { #brand { gap: 8px; } #brand button { min-height: 58px; padding: 8px; } .brand-logo.brand-galaxy { height: 17px; } .brand-logo.brand-iphone { height: 26px; } }

/* ===== 월 청구액 3단계 (1 유지 중 → 2 해지 후 → 3 6개월 이후) ===== */
.stg-wrap { margin-top: 16px; display: grid; gap: 10px; }
.stg { --c: #fde047; position: relative; padding: 12px 14px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-left: 6px solid var(--c); }
.stg.s2 { --c: #5eead4; }
.stg.s3 { --c: #7dd3fc; }
.stg.s1 { background: rgba(253, 224, 71, .12); border-color: rgba(253, 224, 71, .45); border-left-color: var(--c); }
.stg:not(:last-child)::after { content: '▼'; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); z-index: 1; font-size: .7rem; line-height: 1; color: rgba(255, 255, 255, .55); }
.stg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stg-no { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #12234a; font-size: .85rem; font-weight: 900; }
.stg-title { color: var(--c); font-size: 1rem; font-weight: 900; line-height: 1.3; }
.stg-when { font-size: .85rem; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.stg .result-total { margin: 2px 0 4px; font-size: 2.6rem; }
.stg-amount { font-size: 1.8rem; font-weight: 800; line-height: 1.25; }
.stg-amount small { font-size: .9rem; font-weight: 500; opacity: .8; }
.stg-detail { font-size: .8rem; line-height: 1.5; opacity: .85; }
.stg.s1 .stg-detail { opacity: .9; }
@media (max-width: 720px) { .stg .result-total { font-size: 2.2rem; } .stg-amount { font-size: 1.6rem; } .stg-detail, .stg-when { font-size: .8125rem; } }

/* ===== PDF 저장 버튼 ===== */
.btn-pdf { width: 100%; margin-top: 14px; background: #fff; color: var(--primary-dark); border: 2px solid #fff; font-weight: 800; }
.btn-pdf + .btn-block { margin-top: 10px; }
.btn-pdf:disabled { opacity: .7; cursor: wait; }

/* ===== 월 요금 청구 안내서(A4) — 화면 밖에서 PDF용으로만 그려집니다 ===== */
.rc-holder { position: fixed; left: -10000px; top: 0; width: 794px; z-index: -1; }
#receiptSheet { width: 794px; min-height: 1123px; box-sizing: border-box; padding: 24px 36px 18px; background: #fff; color: #111827; font-size: 12px; line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
#receiptSheet * { box-sizing: border-box; }
#receiptSheet .rc-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 10px; border-bottom: 3px solid #0f2a6b; }
#receiptSheet .rc-shop { font-size: 22px; font-weight: 900; color: #0f2a6b; }
#receiptSheet .rc-alias { font-size: 11px; color: #64708a; margin-top: 1px; }
#receiptSheet .rc-doc { text-align: right; }
#receiptSheet .rc-title { font-size: 20px; font-weight: 900; }
#receiptSheet .rc-sub { font-size: 11px; color: #64708a; }
#receiptSheet .rc-meta { display: flex; justify-content: space-between; margin: 6px 0 2px; font-size: 11px; color: #475569; border-bottom: 1px dashed #b6c0d4; padding-bottom: 6px; }
#receiptSheet h3 { margin: 10px 0 4px; font-size: 13px; color: #0f2a6b; padding-left: 8px; border-left: 4px solid #1d4ed8; }
#receiptSheet .rc-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
#receiptSheet table { width: 100%; border-collapse: collapse; }
#receiptSheet .rc-kv th { width: 82px; text-align: left; font-weight: 700; color: #475569; background: #f1f5fb; padding: 3px 6px; border: 1px solid #dbe3f0; font-size: 11px; }
#receiptSheet .rc-kv td { padding: 3px 6px; border: 1px solid #dbe3f0; font-size: 11px; }
#receiptSheet .rc-list td { padding: 3px 6px; border-bottom: 1px dashed #cbd5e6; font-size: 11.5px; }
#receiptSheet .rc-list td.r { text-align: right; font-weight: 700; white-space: nowrap; }
#receiptSheet .rc-list tr.rc-strong td { border-top: 2px solid #0f2a6b; border-bottom: 0; font-weight: 900; font-size: 13px; padding-top: 5px; } /* 합계 선은 현금 완납금액 위에 */
#receiptSheet .rc-note { margin-top: 3px; font-size: 10.5px; color: #64708a; }
#receiptSheet .rc-warn { margin-top: 5px; padding: 5px 9px; border-radius: 6px; background: #fff1f0; color: #b42318; font-size: 11px; }
#receiptSheet .bills { display: grid; gap: 6px; }
#receiptSheet .bill { border: 1px solid #c9d3e8; border-radius: 8px; overflow: hidden; }
#receiptSheet .b-head { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #3b3fd8; color: #fff; }
#receiptSheet .bill.s1 .b-head { background: #1d3fd0; }
#receiptSheet .bill.s2 .b-head { background: #0f8f86; }
#receiptSheet .bill.s3 .b-head { background: #2a7bd1; }
#receiptSheet .b-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #0f2a6b; display: flex; align-items: center; justify-content: center; font-weight: 900; }
#receiptSheet .b-ttl { flex: 1; min-width: 0; }
#receiptSheet .b-ttl b { display: block; font-size: 13px; }
#receiptSheet .b-ttl small { font-size: 10.5px; opacity: .85; }
#receiptSheet .b-total { flex: none; font-size: 19px; font-weight: 900; white-space: nowrap; }
#receiptSheet .b-body { padding: 0 12px 4px; }
#receiptSheet .b-body > div { display: flex; justify-content: space-between; align-items: baseline; }
#receiptSheet .b-sec { margin-top: 4px; padding: 3px 8px; background: #f1f5fb; font-size: 12.5px; font-weight: 800; border-radius: 4px; }
#receiptSheet .b-main { padding: 3px 8px 0 14px; font-size: 12px; font-weight: 800; }
#receiptSheet .b-sub { padding: 0 8px 0 14px; font-size: 11px; color: #5b6579; }
#receiptSheet .neg { color: #d12b1f; }
#receiptSheet .b-main em { font-style: normal; font-weight: 500; font-size: 10.5px; color: #64708a; margin-left: 4px; }
#receiptSheet .rc-foot { margin-top: 12px; padding-top: 8px; border-top: 2px dashed #94a3b8; font-size: 10.5px; color: #475569; }
#receiptSheet .rc-store { margin-top: 6px; font-size: 10px; color: #64708a; line-height: 1.5; }


/* ===== 부가서비스 카드: 보험 드롭박스 + '계속 유지' 체크 + 상세보기(오른쪽) ===== */
.check.ex-card { display: block; cursor: default; }
.ex-card .check-main { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ex-card .check-main input { margin-top: 4px; accent-color: var(--primary); }
.ex-card .check-main small, .ex-ins small { display: block; font-size: .78rem; color: var(--muted); }
.ex-ins-title { display: block; margin-bottom: 6px; font-size: .95rem; }
.ex-ins-sel { margin-bottom: 4px; }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.keep-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--primary-dark); cursor: pointer; }
.keep-opt input { width: 18px; height: 18px; accent-color: var(--primary); }
.keep-opt input:disabled + span { opacity: .45; }
.ex-row .ex-detail { margin-top: 0; }
.field select.dd-blue, .dd-blue { width: 100%; appearance: none; -webkit-appearance: none; background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; color: #fff; font-weight: 700; border: 1px solid var(--primary); border-radius: 10px; padding: 12px 38px 12px 12px; font: inherit; font-weight: 700; min-height: 46px; }
.dd-blue option { background: var(--primary); color: #fff; }

.field select.dd-blue { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.field select.dd-blue option { background: var(--primary); color: #fff; }

/* ===== 모바일 PDF 저장 팝업 ===== */
.pdf-actions { display: grid; gap: 8px; margin: 10px 0; }
.pdf-btn { display: block; width: 100%; text-align: center; padding: 13px 10px; border-radius: 10px; font-weight: 800; border: 2px solid var(--primary); }
.pdf-btn.btn-primary { background: var(--primary); color: #fff; }
.pdf-share { background: #fff; color: var(--primary); }
.pdf-warn { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #fff7d6; border: 1px solid #f3d36b; color: #7a5b00; font-size: .85rem; text-align: left; }
.pdf-hint { margin: 6px 0; font-size: .85rem; color: var(--muted); text-align: left; }
.pdf-preview { display: block; width: 100%; max-height: 46vh; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.modal-box { max-height: 92vh; overflow-y: auto; }

.ex-row .ex-detail { margin-left: auto; }

/* 보험 드롭박스는 흰색 */
.field select.dd-blue.ex-ins-sel { background-color: #fff; color: var(--text); border: 1px solid #b6c3dc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field select.dd-blue.ex-ins-sel option { background: #fff; color: var(--text); }

/* ===== 상담받기: 견적서 이미지 전송 팝업 ===== */
.consult-img { display: block; width: 100%; max-height: 46vh; object-fit: contain; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.consult-sub { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.consult-sub a, .consult-sub button { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--primary-dark); font-size: .85rem; font-weight: 700; text-decoration: none; }
.consult-note { margin-top: 10px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) { .consult-note { font-size: .8125rem; } .consult-sub a, .consult-sub button { font-size: .8125rem; } }

#receiptSheet .rc-list tr.rc-pre td { border-bottom: 0; } /* 합계 선 바로 위 줄의 점선 제거 */

#receiptSheet .rc-int { margin-top: 4px; padding: 4px 8px; background: #fff7e0; border-radius: 4px; font-size: 11.5px; font-weight: 800; color: #8a4b00; }

#receiptSheet .b-right { display: inline-flex; align-items: baseline; gap: 8px; }
#receiptSheet .faint { font-style: normal; font-weight: 500; font-size: 10.5px; color: #aab2c3; white-space: nowrap; }

/* ===== 접속 안내 팝업 (작은 크기) ===== */
.intro-modal { z-index: 60; }
.intro-box { width: min(300px, 100%); padding: 18px 16px 14px; text-align: center; line-height: 1.55; }
.intro-title { font-size: 1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.intro-text { font-size: .9rem; }
.intro-sub { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.intro-actions { display: flex; gap: 8px; margin-top: 14px; }
.intro-btn { flex: 1; padding: 9px 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: .8125rem; font-weight: 700; }
.intro-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }

#receiptSheet .rc-dates { margin-top: 4px; font-size: 11px; line-height: 1.5; color: #334155; }
#receiptSheet .rc-dates > div { padding: 3px 8px; margin-top: 2px; background: #eef3ff; border-radius: 4px; font-weight: 700; }

#receiptSheet .b-body > .b-note { display: block; margin: 6px 0 4px; padding: 4px 8px; background: #eef3ff; border-radius: 4px; font-size: 11px; font-weight: 700; color: #334155; }

#receiptSheet .b-ttl small { display: block; line-height: 1.5; }
#receiptSheet .b-tag { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 999px; background: #fde047; color: #3a2a00; font-size: 10.5px; font-weight: 900; }
#receiptSheet .b-ttl small > .b-tag:first-child { margin-left: 0; }

/* 앱 안 브라우저(카카오톡 등) 저장 안내 */
.consult-warn { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: #fff7d6; border: 1px solid #f3d36b; color: #7a5b00; font-size: .85rem; line-height: 1.5; text-align: left; }
.consult-warn .btn-ext, .pdf-ext { display: block; margin-top: 8px; padding: 11px 10px; border-radius: 10px; background: #111827; color: #fff; font-weight: 800; text-align: center; text-decoration: none; border: 0; }
@media (max-width: 720px) { .consult-warn { font-size: .8125rem; } }

/* '한눈에 쉽게 보기' 버튼: '이 조건으로 상담받기'와 같은 크기 */
#rPdf { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 18px 16px; border: 0; border-radius: 14px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; background: #fff; color: var(--primary-dark); box-shadow: 0 6px 0 #b8c4de; }
#rPdf:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8c4de; }
#rPdf, #rCall { min-height: 70px; box-sizing: border-box; }
