/* BASIC css start */
/* ============================================================
   join_terms.css  (v3 · 폭 제한 + 팝업 기본 숨김 수정)
   ▸ 일반 회원가입 / 회원정보변경 (#join)
   ▸ 회원가입 약관동의 (#terms)
   ▸ 개인정보 동의 내역 (탭 내부)
   ▸ 아이디 중복체크 (#idCheck)
   ▸ BtoB 사업자정보 (조건부 섹션)
   [v3 변경점]
   1) #join/#terms .page-body : max-width 100% → 720px (와이드 문제 해결)
   2) .pop-layer-agree : 기본 display:none (로드 시 전체화면 덮임 방지)
============================================================ */

/* ══════════════════════════════════════
   공통 — 탭 (회원정보변경 전용)
══════════════════════════════════════ */
#join .member-tab-wrap { margin-bottom: 32px; }
#join .member-tab-wrap ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  border-bottom: 2px solid var(--border, #e2e8f0);
}
#join .member-tab-wrap ul li {
  flex: 1; float: none; width: auto;
  padding: 0; margin: 0; border: none;
}
#join .member-tab-wrap ul li a {
  display: block;
  padding: 15px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
#join .member-tab-wrap ul li.on a,
#join .member-tab-wrap ul li a:hover {
  color: var(--navy, #0C025B);
  border-bottom-color: var(--navy, #0C025B);
}

/* ══════════════════════════════════════
   #join 래퍼
══════════════════════════════════════ */
#join .page-body {
  max-width: 720px;              /* [v3] 100% → 720px */
  margin: 0 auto;
  padding: 28px 0 80px;
  font-family: var(--font, 'Pretendard', 'Noto Sans KR', sans-serif);
  color: var(--text, #1a1a2e);
  box-sizing: border-box;
}

/* ── 폼 섹션 카드 ── */
#join .form-wrap {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s;
}
#join .form-wrap:hover { border-color: #cbd5e1; }

#join .form-wrap h3.form-title {
  margin: 0;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1a1a2e);
  background: var(--bg-soft, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  cursor: pointer;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
#join .form-wrap h3.form-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  margin-right: 10px;
  background: var(--navy, #0C025B);
  border-radius: 2px;
  vertical-align: middle;
}
#join .form-wrap h3.form-title strong {
  display: inline-flex;
  align-items: center;
  background-image: none;
  flex: 1;
}
#join .form-wrap h3.form-title::after {
  content: '▲';
  font-size: 10px;
  color: var(--text-muted, #94a3b8);
  transition: transform .2s;
  margin-left: auto;
}
#join .form-wrap h3.form-title.off::after { transform: rotate(180deg); }
#join .form-wrap .inner { padding: 24px 28px 28px; }

/* ── 폼 리스트 — 필수정보만 2열, 나머지는 1열 ── */
#join .form-wrap ul.form-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
#join .form-wrap.required-wrap ul.form-list {
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}
#join .form-wrap ul.form-list li {
  margin-top: 0;
  font-size: 15px;
  min-width: 0;
}
/* 필수정보 내 주소·SMS 인증은 전체 너비 */
#join .form-wrap.required-wrap ul.form-list li:has(.mb-10),
#join .form-wrap.required-wrap ul.form-list li:has(.btn-sms-auth) {
  grid-column: 1 / -1;
}

/* ── 생년월일 — select 3개 + 년/월/일 텍스트 가로 배치 ── */
#join .form-wrap ul.form-list li:has(.MS_birthday) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#join .form-wrap ul.form-list li:has(.MS_birthday) > label:first-child {
  flex-basis: 100%;
  margin-bottom: 2px;
}
#join .form-wrap ul.form-list li:has(.MS_birthday) > p.error-msg {
  flex-basis: 100%;
}
#join .form-wrap ul.form-list li .MS_birthday {
  flex: 1 1 0;
  min-width: 90px;
  max-width: 160px;
  width: auto !important;
  padding-right: 32px;
}
/* label */
#join .form-wrap ul.form-list li > label:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1a1a2e);
  letter-spacing: -.2px;
}
#join .form-wrap ul.form-list li > label:first-child span {
  color: #ef4444;
  font-size: 13px;
  line-height: 1;
  margin-left: 2px;
}

/* ── 인풋 ── */
#join .form-wrap ul.form-list li .normal-input {
  display: inline-block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font, 'Pretendard', sans-serif);
  color: var(--text, #1a1a2e);
  background: var(--bg, #fff);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
#join .form-wrap ul.form-list li .normal-input:hover {
  border-color: #cbd5e1;
}
#join .form-wrap ul.form-list li .normal-input:focus {
  border-color: var(--navy, #0C025B);
  box-shadow: 0 0 0 3px rgba(12,2,91,.08);
}
#join .form-wrap ul.form-list li .normal-input::placeholder { color: #cbd5e1; }
#join .form-wrap ul.form-list li .normal-input.error { border-color: #ef4444; }
#join .form-wrap ul.form-list li .normal-input[readonly],
#join .form-wrap ul.form-list li .normal-input:disabled {
  background: #f1f5f9; color: var(--text-muted, #94a3b8); cursor: not-allowed;
}

/* ── 너비 제약 해제 — 짧은 필드도 가득 채움 (생년월일 제외) ── */
#join .form-wrap ul.form-list li .w116,
#join .form-wrap ul.form-list li .w170,
#join .form-wrap ul.form-list li .w240 { width: 100%; max-width: none; }
#join .form-wrap ul.form-list li .w160:not(.MS_birthday) { width: 100%; max-width: none; }

/* ── 우편번호 input은 폭 제한 ── */
#join .form-wrap ul.form-list li .check input#hpost,
#join .form-wrap ul.form-list li .check input[name="hpost"],
#join .form-wrap ul.form-list li .check input[name*="zip"] {
  flex: 0 0 220px;
}

/* ── select ── */
#join .form-wrap ul.form-list li .MS_select {
  width: 100%; height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font, 'Pretendard', sans-serif);
  color: var(--text, #1a1a2e);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") no-repeat right 14px center;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
#join .form-wrap ul.form-list li .MS_select:focus {
  border-color: var(--navy, #0C025B);
  box-shadow: 0 0 0 3px rgba(12,2,91,.08);
  outline: none;
}
#join .form-wrap ul.form-list li .MS_select::-ms-expand { display: none; }

/* ── 인풋 + 버튼 조합 ── */
#join .form-wrap ul.form-list li .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
#join .form-wrap ul.form-list li .check input { flex: 1; min-width: 0; }
#join .form-wrap ul.form-list li .check .btn-check { flex-shrink: 0; }
#join .form-wrap ul.form-list li .check .btn-check a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub, #64748b);
  text-decoration: none;
  background: var(--bg-soft, #f8fafc);
  white-space: nowrap;
  transition: all .15s;
}
#join .form-wrap ul.form-list li .check .btn-check a:hover {
  border-color: var(--navy, #0C025B);
  color: var(--navy, #0C025B);
  background: #fff;
}

/* ── 에러 메시지 — 비어있을 때 공간 차지 X ── */
#join .form-wrap ul.form-list li p.error-msg {
  margin: 0; font-size: 13px; color: #ef4444;
  line-height: 1.5;
}
#join .form-wrap ul.form-list li p.error-msg:not(:empty) { margin-top: 6px; }
#join .form-wrap ul.form-list li p.msg {
  margin: 6px 0 0; font-size: 12px; color: var(--text-muted, #94a3b8);
}
#join .form-wrap ul.form-list .MK_ok_confirm { color: var(--navy, #0C025B); }
#join .form-wrap ul.form-list li .mb-10 { margin-bottom: 10px; }

/* ── radio / checkbox ── */
#join .form-wrap ul.form-list li .MS_radio,
#join .form-wrap ul.form-list li .MS_checkbox {
  width: 16px; height: 16px;
  accent-color: var(--navy, #0C025B);
  cursor: pointer;
  vertical-align: middle;
  margin-right: 4px;
}

/* ── SNS 연동 ── */
#join .form-wrap ul.form-list.sns-wrap { margin-top: 0; }
#join .form-wrap ul.form-list.sns-wrap li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--bg, #fff);
  font-size: 14px;
  transition: border-color .15s;
}
#join .form-wrap ul.form-list.sns-wrap li:hover { border-color: #cbd5e1; }
#join .form-wrap ul.form-list.sns-wrap li span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 140px;
  color: var(--text, #1a1a2e);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}
#join .form-wrap ul.form-list.sns-wrap li span img { width: 22px; height: 22px; }
#join .form-wrap ul.form-list.sns-wrap li strong {
  margin-left: 0; font-size: 13px;
  color: var(--text-sub, #64748b); font-weight: 500;
  flex: 1; min-width: 0; padding-right: 32px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#join .form-wrap ul.form-list.sns-wrap li a.sns-link {
  font-size: 13px; font-weight: 600;
  color: var(--navy, #0C025B);
  text-decoration: underline;
}
#join .form-wrap ul.form-list.sns-wrap li .cut {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 4px;
  line-height: 0;
}

/* ── 본인인증 ── */
.auth-confirm {
  padding: 4px 0;
}
.auth-confirm .auth-info {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #f1f5f9;
  border-left: 3px solid var(--navy, #0C025B);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub, #64748b);
}
.auth-confirm .auth-info strong {
  display: block;
  color: var(--text, #1a1a2e);
  font-size: 15px;
  margin-bottom: 4px;
}
.auth-confirm .btnArea {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.auth-confirm .btnArea a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 120px; height: 120px;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--text, #1a1a2e);
  text-decoration: none; gap: 10px;
  background: #fff;
  transition: all .15s;
}
.auth-confirm .btnArea a span img {
  width: 36px; height: 36px; object-fit: contain;
}
.auth-confirm .btnArea a p { margin: 0; }
.auth-confirm .btnArea a:hover,
.auth-confirm .btnArea a.on {
  border-color: var(--navy, #0C025B);
  color: var(--navy, #0C025B);
  background: #f8f9fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12,2,91,.08);
}

/* ── 만 14세 ── */
#join .user_age_wrap {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-soft, #f8fafc);
  border-radius: 10px;
}
#join .user_age_wrap .label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--text, #1a1a2e); cursor: pointer;
}
#join .user_age_wrap .label input {
  width: 18px; height: 18px;
  accent-color: var(--navy, #0C025B);
  cursor: pointer;
}

/* ── 제출/동의 버튼 ── */
#join .btn-join,
#join .btn-agree { margin-top: 32px; }
#join .btn-join a,
#join .btn-agree a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px;
  background: var(--navy, #0C025B);
  color: #fff; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  letter-spacing: -.2px;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(12,2,91,.15);
}
#join .btn-join a:hover,
#join .btn-agree a:hover {
  background: #0a0149;
  box-shadow: 0 4px 16px rgba(12,2,91,.25);
}
#join .btn-join a:active,
#join .btn-agree a:active { transform: translateY(1px); }

/* ── 레이어 팝업 ── */
.pop-layer-agree {
  display: none;                 /* [v3] 기본 숨김 — 열 때만 표시 */
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.5); z-index: 9999;
}
.pop-layer-agree .layer-wrap {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 90%; max-width: 560px; max-height: 80vh;
  padding: 0 28px 24px;
  background: var(--bg, #fff);
  border-radius: 14px; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pop-layer-agree .layer-wrap h3 {
  padding: 22px 0 16px; font-size: 17px; font-weight: 700;
  color: var(--text, #1a1a2e);
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.pop-layer-agree .layer-wrap p {
  padding: 16px 0; font-size: 14px; line-height: 1.7;
  color: var(--text-sub, #64748b);
}
.pop-layer-agree .layer-wrap .agree-chk { padding: 16px 0 4px; }
.pop-layer-agree .layer-wrap .agree-chk label {
  font-size: 14px; font-weight: 500;
  color: var(--text, #1a1a2e);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.pop-layer-agree .layer-wrap .agree-chk input {
  width: 16px; height: 16px;
  accent-color: var(--navy, #0C025B);
}

/* ══════════════════════════════════════
   #terms — 약관동의 / 개인정보 동의 내역
══════════════════════════════════════ */
#terms { padding-bottom: 60px; }
#terms .page-body {
  max-width: 720px;              /* [v3] 100% → 720px */
  margin: 0 auto;
  padding: 0 0 80px;
  font-family: var(--font, 'Pretendard', 'Noto Sans KR', sans-serif);
  color: var(--text, #1a1a2e);
  box-sizing: border-box;
}
#terms fieldset { border: none; padding: 0; margin: 0; }
#terms fieldset legend { display: none; }

/* ── 페이지 타이틀 ── */
#terms .cateTit_v2.join {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text, #1a1a2e);
  margin-bottom: 32px;
}
#terms .cateTit_v2.join .title {
  font-size: 24px; font-weight: 800;
  color: var(--text, #1a1a2e); font-style: normal;
  letter-spacing: -.5px;
}

/* ── 섹션 제목 ── */
#terms .new-privercy-contract h3,
#terms h4.tit {
  font-size: 15px; font-weight: 700;
  color: var(--text, #1a1a2e);
  letter-spacing: -.3px;
  margin: 32px 0 12px;
  position: relative;
  padding: 12px 18px;
  background: #eef0f4;
  border-left: 3px solid var(--navy, #0C025B);
  border-radius: 0 8px 8px 0;
}
#terms .new-privercy-contract h3:first-child { margin-top: 0; }
#terms .new-privercy-contract h3 strong { color: var(--navy, #0C025B); }
#terms .new-privercy-contract h3.w-normal {
  font-weight: 400; color: var(--text-sub, #64748b); font-size: 14px;
}
#terms .new-privercy-contract h3 .check { position: absolute; top: 0; right: 0; }

/* ── textarea ── */
#terms .new-privercy-contract,
.new-privercy-contract {
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
}
#terms .privercy-contract,
.privercy-contract {
  width: 100% !important; max-width: 100% !important;
  margin-bottom: 10px; box-sizing: border-box;
}
#terms .privercy-contract textarea,
.privercy-contract textarea {
  width: 100% !important; max-width: 100% !important;
  height: 200px !important;
  padding: 16px 18px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: var(--font, 'Pretendard', sans-serif);
  color: var(--text-sub, #64748b);
  line-height: 1.8; resize: vertical; box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

/* ── 약관 탭 ── */
.privercy-contract-tap { height: auto; margin-bottom: 0; }
.privercy-contract-tap ul {
  display: flex; list-style: none; padding: 0; margin: 0;
  border-bottom: 2px solid var(--border, #e2e8f0);
  flex-wrap: wrap;
}
.privercy-contract-tap ul li a {
  display: block; padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s; white-space: nowrap;
}
.privercy-contract-tap ul li.sel a,
.privercy-contract-tap ul li a:hover {
  color: var(--navy, #0C025B);
  border-bottom-color: var(--navy, #0C025B);
}

/* ── 동의 체크 ── */
#terms .privercy-agree {
  margin: 12px 0 28px;
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 16px 20px;
  background: #eef0f4;
  border-radius: 10px;
  border: 1px solid #c8d0dc;
}
#terms .privercy-agree label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text, #1a1a2e); cursor: pointer;
}
#terms .privercy-agree label strong { color: var(--navy, #0C025B); }
#terms .privercy-agree input[type="checkbox"],
#terms .privercy-agree input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--navy, #0C025B);
  cursor: pointer; flex-shrink: 0;
}
#terms .privercy-chk { margin-top: 8px; text-align: right; }
#terms .privercy-chk label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--text, #1a1a2e); cursor: pointer;
}
#terms .privercy-chk input {
  width: 15px; height: 15px; accent-color: var(--navy, #0C025B);
}

/* ── 전체동의 (#chkwrap) ── */
#chkwrap {
  border: 1px solid #c8d0dc;
  border-radius: 14px; background: #fff;
  overflow: hidden; margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
#chkwrap .all-chk {
  height: auto; padding: 18px 24px;
  font-size: 15px; font-weight: 700;
  color: #1a1a2e;
  background: #eef0f4;
  border-bottom: 1px solid #c8d0dc;
  display: flex; align-items: center; gap: 12px; line-height: 1.4;
  cursor: pointer;
  transition: background .15s;
}
#chkwrap .all-chk:hover { background: #e2e6ec; }
#chkwrap .all-chk .input-cbox {
  width: 20px; height: 20px;
  accent-color: var(--navy, #0C025B);
  cursor: pointer; flex-shrink: 0;
}
#chkwrap .cont { padding: 20px 24px; }
#chkwrap .cont ul {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 0; list-style: none;
}
#chkwrap .cont ul::after { display: none; }
#chkwrap .cont ul li {
  float: none; width: 100%;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: #2d3748;
  line-height: 1.5;
  padding: 12px 16px;
  background: #f8f9fb;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  transition: border-color .15s;
}
#chkwrap .cont ul li:hover { border-color: #b8c2d1; }
#chkwrap .cont ul li input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--navy, #0C025B);
  cursor: pointer; flex-shrink: 0;
}
#chkwrap .cont ul li a {
  display: inline-flex; align-items: center; justify-content: center;
  height: auto; padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  color: #4a5568;
  border: 1px solid #c8d0dc;
  border-radius: 4px; background: #fff;
  text-decoration: none; transition: all .15s;
  line-height: 1.5 !important; margin-left: auto; flex-shrink: 0;
}
#chkwrap .cont ul li a:hover {
  border-color: var(--navy, #0C025B); color: var(--navy, #0C025B);
}
#chkwrap .cont strong { color: #1a1a2e; font-weight: 700; }
#chkwrap .cont label { font-weight: 600; cursor: pointer; }
#chkwrap .cont .marketing {
  padding: 16px 0 0;
  border-top: 1px dashed #c8d0dc;
  margin-top: 16px;
}
#chkwrap .cont .marketing .mk-wrap {
  height: auto; line-height: 1.5;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #f8f9fb; border: 1px solid #dde1e8; border-radius: 8px;
}
#chkwrap .cont .marketing .mk-wrap input {
  width: 16px; height: 16px; accent-color: var(--navy, #0C025B);
}

/* ── 전체동의 버튼 ── */
#chkwrap .all-chk .btn-all-agree {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 22px;
  background: var(--navy, #0C025B);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font, 'Pretendard', sans-serif);
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
}
#chkwrap .all-chk .btn-all-agree:hover { background: #0a0149; }
#chkwrap .all-chk .btn-all-agree:active { transform: scale(.97); }
#chkwrap .all-chk .btn-all-agree.is-agreed { background: #4a5568; }
#chkwrap .all-chk .btn-all-agree.is-agreed:hover { background: #2d3748; }

/* ── 약관 테이블 ── */
#terms .tbl {
  width: 100%; border-collapse: collapse;
  border-top: 2px solid var(--text, #1a1a2e);
  margin-bottom: 12px;
}
#terms .tbl caption { display: none; }
#terms .tbl th {
  padding: 12px 14px; font-size: 13px; font-weight: 700;
  color: var(--text-sub, #64748b);
  background: var(--bg-soft, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: center;
}
#terms .tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: 14px; color: var(--text, #1a1a2e); background: #fff;
}

/* ── 개인정보 테이블 ── */
#terms .contract-tbl {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(12,2,91,.04);
}
#terms .contract-tbl th,
#terms .contract-tbl td {
  border-bottom: 1px solid var(--border, #e2e8f0);
  border-right: 1px solid var(--border, #e2e8f0);
  padding: 14px 16px; font-size: 14px; text-align: center;
}
#terms .contract-tbl th:last-child,
#terms .contract-tbl td:last-child { border-right: none; }
#terms .contract-tbl tr:last-child th,
#terms .contract-tbl tr:last-child td { border-bottom: none; }
#terms .contract-tbl th {
  background: #e8ebf0;
  font-weight: 700; color: #2d3748;
}
.pop-layer-agree .layer-wrap .contract-tbl th,
.pop-layer-agree .layer-wrap .contract-tbl td {
  border: 1px solid var(--border, #e2e8f0);
  padding: 10px 12px; font-size: 13px; text-align: center;
}
.pop-layer-agree .layer-wrap .contract-tbl th {
  background: var(--bg-soft, #f8fafc);
  font-weight: 700; color: var(--text-sub, #64748b);
}

/* ── 동의/거부 버튼 ── */
.btn-agree { margin-top: 32px; }
.btn-agree a,
#terms .page-body .btn-agree a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px;
  background: var(--navy, #0C025B); border-radius: 10px;
  color: #fff; font-size: 16px; font-weight: 700;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(12,2,91,.15);
}
.btn-agree a:hover {
  background: #0a0149;
  box-shadow: 0 4px 16px rgba(12,2,91,.25);
}

#terms .btn-foot {
  margin-top: 28px; text-align: center;
  display: flex; justify-content: center; gap: 10px;
}
#terms .btn-foot a {
  display: inline-flex; align-items: center; justify-content: center;
}
#terms .btn-foot a img { display: none; }
#terms .btn-foot a:first-child::after {
  content: '동의합니다';
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 36px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  background: var(--navy, #0C025B); color: #fff;
  border: 1.5px solid var(--navy, #0C025B);
  transition: all .15s;
}
#terms .btn-foot a:last-child::after {
  content: '거부합니다';
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 36px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  background: #fff; color: var(--text-sub, #64748b);
  border: 1.5px solid var(--border, #e2e8f0);
  transition: all .15s;
}
#terms .btn-foot a:first-child:hover::after { background: #0a0149; border-color: #0a0149; }
#terms .btn-foot a:last-child:hover::after {
  border-color: var(--navy, #0C025B); color: var(--navy, #0C025B);
}

/* ── form-wrap (#terms 내부) ── */
#terms .form-wrap {
  width: 100%; margin-top: 20px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px; overflow: hidden; box-sizing: border-box;
}
#terms .form-wrap h3.form-title {
  margin: 0; padding: 18px 24px;
  font-size: 15px; font-weight: 700;
  color: var(--text, #1a1a2e);
  background: var(--bg-soft, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  cursor: pointer;
}
#terms .form-wrap h3.form-title strong {
  display: block; background-image: none;
}
#terms .form-wrap fieldset { padding: 20px 24px; }

.btm-msg {
  padding-top: 20px; font-size: 13px;
  color: var(--text-muted, #94a3b8); line-height: 1.8;
}

/* ══════════════════════════════════════
   #idCheck — 아이디 중복체크 팝업
══════════════════════════════════════ */
#idCheck {
  padding: 40px 28px;
  text-align: center;
  font-family: var(--font, 'Pretendard', sans-serif);
}
#idCheck .msg {
  font-size: 15px; font-weight: 600;
  color: var(--text, #1a1a2e);
  margin-bottom: 24px; line-height: 1.6;
}
#idCheck .btns { margin-top: 4px; }
#idCheck .btns a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 36px;
  background: var(--navy, #0C025B);
  color: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
#idCheck .btns a:hover { background: #0a0149; }
#idCheck .btns img { display: none; }

/* ══════════════════════════════════════
   반응형
══════════════════════════════════════ */
@media (max-width: 767px) {
  #join .page-body { padding: 20px 16px 60px; }
  #join .form-wrap { margin-top: 14px; }
  #join .form-wrap h3.form-title { padding: 16px 18px; font-size: 15px; }
  #join .form-wrap .inner { padding: 18px 18px 20px; }
  #join .form-wrap ul.form-list,
  #join .form-wrap.required-wrap ul.form-list { grid-template-columns: 1fr; gap: 14px; }
  #join .form-wrap ul.form-list li .MS_birthday { max-width: none; padding-right: 28px; }
  #join .form-wrap ul.form-list li .check input#hpost,
  #join .form-wrap ul.form-list li .check input[name="hpost"],
  #join .form-wrap ul.form-list li .check input[name*="zip"] { flex: 0 0 130px; }
  #join .form-wrap ul.form-list li .normal-input,
  #join .form-wrap ul.form-list li .MS_select { height: 46px; }
  #join .form-wrap ul.form-list li .check .btn-check a { height: 46px; padding: 0 16px; font-size: 13px; }
  #join .member-tab-wrap ul li a { font-size: 13px; padding: 12px 0; }
  #join .btn-join a, #join .btn-agree a { height: 52px; font-size: 15px; }
  .auth-confirm .btnArea a { width: calc((100% - 14px) / 2); height: 110px; }
  .auth-confirm .btnArea a span img { width: 32px; height: 32px; }
  #terms .page-body { max-width: 100%; padding-left: 16px; padding-right: 16px; }
  #terms .cateTit_v2.join .title { font-size: 20px; }
  #chkwrap .cont ul li { min-width: 100%; }
  #chkwrap .all-chk { padding: 14px 16px; font-size: 14px; }
  #chkwrap .cont { padding: 16px; }
  .privercy-contract-tap ul { flex-wrap: wrap; }
  .privercy-contract-tap ul li a { padding: 9px 12px; font-size: 12px; }
  #terms .btn-foot a:first-child::after,
  #terms .btn-foot a:last-child::after { height: 46px; padding: 0 24px; font-size: 14px; }
}
@media (max-width: 480px) {
  #join .page-body { padding: 16px 12px 40px; }
  #join .form-wrap .inner { padding: 14px 14px 16px; }
  .auth-confirm .btnArea { gap: 10px; }
  .auth-confirm .btnArea a { width: calc((100% - 10px) / 2); height: 100px; }
}

/* ============================================================
   [약관 미니멀] — 전문 스크롤·체크박스 그대로, 스타일만
============================================================ */
body { background:#ffffff !important; }
#terms .page-body { max-width:640px !important; padding:8px 0 48px !important; }
#terms .cateTit_v2.join { border-bottom:1px solid #e9eaf0 !important; padding-bottom:12px !important; margin-bottom:22px !important; }
#terms .cateTit_v2.join .title { font-size:20px !important; font-weight:750 !important; color:#17181f !important; }
#terms .new-privercy-contract h4.tit,
#terms .new-privercy-contract h3,
#terms h4.tit { background:transparent !important; border:none !important; border-left:none !important; border-bottom:1px solid #ededf1 !important; border-radius:0 !important; padding:0 0 7px 0 !important; margin:24px 0 11px 0 !important; font-size:12.5px !important; font-weight:700 !important; color:#20212a !important; }
#terms .new-privercy-contract > h4.tit:first-child { margin-top:0 !important; }
#terms .privercy-contract textarea { height:150px !important; border:1px solid #e5e5ec !important; border-radius:8px !important; font-size:12px !important; line-height:1.7 !important; padding:12px 14px !important; box-shadow:none !important; background:#fafafb !important; color:#54566a !important; }
#terms .contract-tbl { border:1px solid #ececf1 !important; border-radius:8px !important; box-shadow:none !important; margin-bottom:10px !important; }
#terms .contract-tbl th, #terms .contract-tbl td { padding:9px 12px !important; font-size:12px !important; border-color:#f0f0f4 !important; }
#terms .contract-tbl th { background:#f7f7fa !important; color:#6b6d7e !important; font-weight:600 !important; }
#terms .privacy-noti { font-size:11.5px !important; color:#9a9ca8 !important; margin:5px 0 8px !important; }
#terms .privercy-agree, #terms .privercy-chk { background:transparent !important; border:none !important; padding:6px 0 !important; margin:6px 0 0 !important; }
#terms .privercy-agree label, #terms .privercy-chk label { font-size:12.5px !important; color:#20212a !important; }
#terms .btn-agree { margin-top:22px !important; }
#terms .btn-agree a, #terms .page-body .btn-agree a { height:50px !important; border-radius:9px !important; box-shadow:none !important; font-size:15px !important; background:#0C025B !important; }

/* BASIC css end */

