/* 선충전 데모 — 본인 인증 창 높이 줄이기(스크롤 없이 한 화면). 원본 스타일(prepaid_advance.html 의 .psd-*) 위에 덮는다. */
#psDocModal .psd-panel{ padding:16px 18px 14px; max-width:400px; }
#psDocModal .psd-head{ margin-bottom:4px; font-size:17px; }
#psDocModal .psd-lead{ font-size:13px; line-height:1.45; margin-bottom:8px; }
#psDocModal .psd-label{ font-size:12px; margin:8px 0 3px; }
#psDocModal .psd-input{ height:40px; font-size:14px; padding:0 10px; border-width:1.5px; }
#psDocModal .psd-chips{ gap:5px; }
#psDocModal .psd-chip{ height:34px; font-size:12.5px; border-radius:8px; }
#psDocModal .psd-two{ display:grid; grid-template-columns:1fr 1.25fr; gap:6px; }
/* 배달앱에서 읽은 사업자 정보 한 줄 */
#psDocModal .psd-biz{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; padding:8px 10px; border-radius:var(--radius-sm); background:var(--bg-secondary); font-size:13px; color:var(--text-secondary); line-height:1.4; }
#psDocModal .psd-biz b{ color:var(--text-primary); font-size:14px; }
/* 동의 칸 — 제목 한 줄씩만(설명은 [보기] 안에) */
#psDocModal .psd-consent{ margin-top:10px; }
#psDocModal .psd-consent .consent-box{ padding:0 10px; border-radius:var(--radius-md); }
#psDocModal .psd-consent .consent-all-agree{ padding:8px 0; gap:9px; }
#psDocModal .psd-consent .consent-card-top{ padding:6px 0; gap:9px; }
#psDocModal .psd-consent .consent-all-sub, #psDocModal .psd-consent .consent-card-desc{ display:none; }
#psDocModal .psd-consent .consent-all-title{ font-size:14px; }
#psDocModal .psd-consent .consent-card-text{ display:flex; align-items:center; gap:6px; }
#psDocModal .psd-consent .consent-card-title{ font-size:13px; margin:0; line-height:1.35; word-break:keep-all; }   /* 제목이 길면 두 줄(잘라 내지 않는다) */
#psDocModal .psd-consent .consent-req-badge{ flex:0 0 auto; }
#psDocModal .psd-consent .consent-all-chk, #psDocModal .psd-consent .consent-chk{ width:20px; height:20px; border-width:2px; border-radius:6px; }
#psDocModal .psd-consent .consent-exp-btn{ height:26px; padding:0 10px; font-size:12px; }
/* [보기]를 펼치면 칸 안에서 따로 스크롤하지 않고 창 전체가 길어진다 — 창의 위·아래 버튼 하나로 움직인다 */
#psDocModal .psd-consent .consent-card-body.open{ max-height:none !important; overflow:visible !important; }
#psDocModal .psd-foot{ bottom:-14px; margin:10px -18px -14px; padding:8px 18px 12px; }
#psDocModal .psd-btn{ height:46px; font-size:15px; }
#psDocModal .psd-cancel{ height:34px; margin-top:2px; font-size:13px; }
#psDocModal .psd-row{ padding:7px 0; font-size:14px; }
#psDocModal .psd-timer{ padding:8px 12px; }
#psDocModal .psd-spin{ margin:4px auto 8px; }
#psDocModal .psd-note{ margin-bottom:8px; padding:8px 10px; font-size:12.5px; }
#psDocModal .psd-dots{ margin:6px 0 10px; }
#psDocModal .psd-dots span{ height:32px; }
#psDocModal .psd-keys{ gap:6px; }
#psDocModal .psd-key{ height:46px; font-size:20px; }
#psDocModal .psd-hint{ margin:5px 0 4px; }
/* 법인 납세증명서 파일 고르기 */
#psDocModal .psd-drop{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; width:100%; min-height:84px; padding:10px; border:1.5px dashed var(--line); border-radius:var(--radius-md); background:var(--bg-secondary); color:var(--text-secondary); font-size:13px; cursor:pointer; }
#psDocModal .psd-drop i{ font-size:22px; color:var(--accent); }
#psDocModal .psd-drop b{ font-size:14px; color:var(--text-primary); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#psDocModal .psd-drop span{ font-size:12px; color:var(--text-tertiary); }
#psDocModal .psd-drop:focus-visible{ outline:0; border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }

/* ══════════ 한 화면(1084×762)에 스크롤 없이 — 신청 화면 본문 ══════════
   원본에 인라인으로 박힌 값(아래 여백 150px 등)을 덮어야 해서 !important 를 쓴다. 3단계 나누기는 demo-steps.js */
.demo-hide{ display:none !important; }
.main-container{ padding-top:12px !important; padding-bottom:96px !important; }
.submit-wrapper, .intro-btn-wrap, .gate-btn-wrap{ padding-top:14px !important; padding-bottom:12px !important; }
/* 단계 표시 5칸 — 좁은 화면에서는 지금 단계만 이름을 보인다 */
@media (max-width:700px){ #stepNav .step-nav-item:not(.active) > span:last-child{ display:none; } }
#stepNav{ max-width:none !important; gap:5px !important; }
#stepNav .step-nav-item{ gap:6px !important; white-space:nowrap; }
#stepNav .step-nav-divider{ width:14px !important; flex:0 0 14px; }

/* 안내(첫) 화면 */
#introScreen .intro-hero{ min-height:0 !important; margin:10px 0 12px !important; }   /* 높이는 내용대로(고정하면 제목이 잘린다) */
#introScreen .intro-hero__inner{ padding:16px 20px !important; }
#introScreen .intro-hero .hb-title{ font-size:25px !important; line-height:1.3 !important; }
#introScreen .intro-hero .hb-sub{ margin-top:6px !important; line-height:1.5 !important; }
#introScreen .account-section{ padding:14px 16px !important; margin-bottom:10px !important; }
#introScreen .intro-pts{ margin:10px 0 !important; }
#introScreen .wd-notice{ margin-bottom:10px !important; }

/* 동의 화면 — 항목 사이 여백만 줄인다(문구는 그대로) */
#consentScreen .main-container > div:first-child{ margin-bottom:6px !important; }
#consentScreen .consent-section-label{ margin:8px 0 6px !important; }
#consentScreen #consentGateLead{ margin-bottom:4px !important; }
#consentScreen .consent-all-agree{ padding:9px 2px !important; }
#consentScreen .consent-card-top{ padding:8px 2px !important; }

/* 1단계 — 가운데 조회 버튼은 아래 버튼과 같은 일이라 숨긴다 */
#step1 .amount-card{ padding:16px 18px !important; }
#step1 #amountQueryBtn{ display:none !important; }
#step1 #amountInitial{ padding:8px 0 0 !important; }
#step1 #amountInitial > div:first-child{ margin-bottom:8px !important; }
#step1 #periodBadgeWrap{ margin-bottom:4px !important; }
#step1 .amount-card > div:not([id]):not(.amount-label){ margin-top:10px !important; padding:9px 11px !important; font-size:13px !important; line-height:1.5 !important; }
#step1 .amount-card > div:not([id]):not(.amount-label) span{ font-size:13px !important; }
#step1 #platformStatusBar{ margin-top:10px !important; padding-top:10px !important; }
#step1 #platformStatusBar > div{ margin-top:8px !important; padding:10px 12px !important; }
#step1 #platformStatusBar > div button{ height:40px !important; margin-top:8px !important; }

/* 3단계 ① 본인 인증 — 요약 세 줄을 한 줄로 */
#step3 .main-container > div:first-child{ flex-direction:row !important; gap:6px !important; padding:8px !important; margin-bottom:10px !important; }
#step3 .main-container > div:first-child > div{ flex:1 1 0; min-width:0; flex-direction:column !important; align-items:flex-start !important; justify-content:center !important; gap:1px !important; margin:0 !important; padding:6px 10px !important; }
#step3 .main-container > div:first-child > div > span{ font-size:12.5px !important; white-space:nowrap; }
#step3 .main-container > div:first-child > div > span[id]{ font-size:17px !important; }
#step3 .account-section{ padding:14px 16px !important; margin-bottom:10px !important; }
/* 3단계 ② 출금 계좌 — 안내 두 칸과 계좌 줄을 낮게 */
#step3 .account-group > div:not([id]):not(.account-label), #step3 #withdrawDailyNotice{ margin:0 0 8px !important; padding:8px 10px !important; font-size:13px !important; line-height:1.45 !important; }
#step3 .account-group .account-label{ margin-bottom:8px !important; }
#step3 #withdrawAccountsContainer .withdraw-row{ padding:10px 12px !important; margin-bottom:8px !important; }
#step3 #withdrawAccountsContainer .w-num{ font-size:19px !important; margin:2px 0 !important; }
#step3 #withdrawAccountsContainer .wd-main{ gap:3px !important; }
#step3 #withdrawAccountsContainer .wd-row1{ min-height:24px !important; }
#step3 #withdrawAccountsContainer .verify-status{ margin-top:0 !important; }
#step3 .withdraw-add-btn{ height:40px !important; }
#step3 #withdrawHint{ margin-top:8px !important; padding:7px 10px !important; font-size:13px !important; }
/* 3단계 ③ 결제 카드 */
#step3 .ps-card-notes{ margin-top:8px !important; padding:10px 12px !important; }
#step3 .withdraw-add-btn{ height:38px !important; }
#step3 #withdrawHint{ margin-top:6px !important; padding:6px 10px !important; }

/* 신청 확인 창 — 여백을 줄이고, 넓은 화면에서는 두 칸(왼쪽 금액·계좌·카드 / 오른쪽 안내·순서·버튼) */
#finalConfirmModal > div{ padding:16px 18px !important; }
#finalConfirmModal > div > div:nth-child(1){ margin-bottom:10px !important; }
#finalConfirmModal > div > div:nth-child(2){ gap:6px !important; padding:11px 12px !important; margin-bottom:10px !important; }
#finalConfirmModal > div > div:nth-child(3){ line-height:1.45 !important; font-size:13px !important; padding:9px 11px !important; margin-bottom:10px !important; }
#finalConfirmModal > div > div:nth-child(4){ margin-bottom:12px !important; }
#finalConfirmModal > div > div:nth-child(4) > div:first-child{ margin-bottom:8px !important; font-size:14px !important; }
@media (min-width:900px){
  #finalConfirmModal > div{ max-width:840px !important; display:grid; grid-template-columns:1fr 1fr; column-gap:16px; align-items:start; }
  #finalConfirmModal > div > div:nth-child(1){ grid-column:1 / 3; }
  #finalConfirmModal > div > div:nth-child(2){ grid-column:1; grid-row:2 / 5; margin-bottom:0 !important; }
  #finalConfirmModal > div > div:nth-child(3){ grid-column:2; grid-row:2; }
  #finalConfirmModal > div > div:nth-child(4){ grid-column:2; grid-row:3; }
  #finalConfirmModal > div > div:nth-child(5){ grid-column:2; grid-row:4; }
}

/* 완료 화면 — 넓은 화면에서는 두 칸(왼쪽 안내·버튼 / 오른쪽 알림톡 예시) */
#step4 .complete-section{ padding:22px 22px !important; }
#step4 .complete-icon{ width:56px !important; height:56px !important; font-size:30px !important; margin-bottom:12px !important; }
#step4 .complete-title{ font-size:20px !important; margin-bottom:10px !important; }
#step4 .atk-preview{ margin-top:16px !important; }
#step4 .atk-msg{ padding:11px !important; font-size:12.5px !important; line-height:1.5 !important; }
#step4 .complete-section > button{ margin-top:16px !important; height:50px !important; }
@media (min-width:900px){
  #step4 .main-container{ max-width:820px !important; }
  #step4 .complete-section{ display:grid; grid-template-columns:1fr 330px; column-gap:26px; align-items:center; }
  #step4 .complete-section > *{ grid-column:1; }
  #step4 .complete-section > .atk-preview{ grid-column:2; grid-row:1 / span 4; margin-top:0 !important; }
}

/* 창(모달) 안 위·아래 이동 버튼 — demo-modal-scroll.js. 모양은 화면 본문의 .sa-btn 과 같다 */
.demo-msa{ position:fixed; width:42px; height:42px; border-radius:50%; background:var(--bg-primary); border:1px solid var(--line); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center; z-index:10060; color:var(--text-secondary); opacity:0; visibility:hidden; transition:opacity .2s; }
.demo-msa.is-on{ opacity:.94; visibility:visible; }
.demo-msa svg{ width:22px; height:22px; }

/* 인증 앱·발급기관 아이콘 */
#psDocModal .psd-ico{ display:inline-block; flex:0 0 auto; width:18px; height:18px; border-radius:5px; background:#fff center/contain no-repeat; vertical-align:-4px; }
#psDocModal .psd-ico--line{ background:none; font-size:18px; color:var(--text-tertiary); }
#psDocModal .psd-chip{ display:flex; align-items:center; justify-content:center; gap:4px; padding:0 4px; }
#psDocModal .psd-nm{ flex-direction:row !important; align-items:center; gap:7px; }
/* 휴대폰에 오는 인증 요청 예시 — 휴대폰 화면 모양(알림 + 앱 안의 버튼). 색은 휴대폰 화면을 흉내 낸 고정값 */
#psDocModal .psd-ex{ margin:0 0 8px; }
#psDocModal .psd-ex__lead{ display:flex; align-items:center; gap:5px; font-size:12.5px; color:var(--text-secondary); margin-bottom:6px; }
#psDocModal .psd-ex__lead i{ font-size:16px; color:var(--accent); }
#psDocModal .psd-ex__lead small{ margin-left:auto; padding:1px 7px; border-radius:999px; background:var(--bg-tertiary); font-size:11px; font-weight:700; color:var(--text-tertiary); }
#psDocModal .psd-ex__phone{ padding:9px; border-radius:14px; background:linear-gradient(160deg,#6B7A90,#3A4558); color:#191919; }
#psDocModal .psd-ex__phone.is-chat{ background:#B2C7DA; }                       /* 카카오톡 대화 배경 */
#psDocModal .psd-ex__noti{ display:flex; align-items:flex-start; gap:8px; padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.95); font-size:12.5px; line-height:1.4; }
#psDocModal .psd-ex__noti .psd-ico{ width:26px; height:26px; border-radius:7px; margin-top:1px; }
#psDocModal .psd-ex__noti > div{ flex:1; min-width:0; }
#psDocModal .psd-ex__noti span{ display:flex; font-size:11.5px; font-weight:700; color:#555; }
#psDocModal .psd-ex__noti em{ margin-left:auto; font-style:normal; font-weight:500; color:#888; }
#psDocModal .psd-ex__noti b{ display:block; font-size:13px; }
#psDocModal .psd-ex__noti p{ margin:0; color:#333; }
#psDocModal .psd-ex__phone.is-chat .psd-ex__noti{ max-width:86%; border-radius:4px 12px 12px 12px; background:#fff; }
#psDocModal .psd-ex__app{ display:flex; flex-direction:column; gap:6px; margin-top:7px; padding:9px 10px; border-radius:12px; background:#fff; }
#psDocModal .psd-ex__org{ display:flex; align-items:center; gap:6px; font-size:13px; font-weight:800; }
#psDocModal .psd-ex__btn{ display:block; height:32px; line-height:32px; border-radius:8px; text-align:center; font-size:13px; font-weight:800; }
#psDocModal .psd-ex__app small{ font-size:11.5px; color:#666; text-align:center; }

/* ══════════ 숫자 패드 — demo-keys.js ══════════
   dashboard/SunjungsanAll.html 의 '숫자패드(우측 플로팅 · PC 전용)' 규칙을 그대로 옮겼다(클래스 이름도 같다).
   이 화면은 토큰 이름이 달라 이름만 바꿨다(--fill → --bg-tertiary, --bg-card → --bg-primary, --text → --text-primary, --shadow-float → --shadow-lg).
   자리(left·top·width)는 demo-keys.js 가 칸 옆으로 잡는다 */
.numpadarea{ position:fixed; z-index:10045; width:230px; display:none; }
.numpadarea.on{ display:block; }
@media (max-width:899px){ .numpadarea{ display:none !important; } }
.numpadarea .numpad{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; background:var(--bg-tertiary); padding:10px; border-radius:16px; border:1px solid var(--line); box-shadow:var(--shadow-lg); }
.numpadbtn{ height:48px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:var(--bg-primary); border:1px solid var(--line);
  font-weight:700; font-size:17px; color:var(--text-primary); cursor:pointer; -webkit-user-select:none; user-select:none; transition:background .05s; }
.numpadbtn:active{ background:var(--accent-soft); color:var(--accent-deep); }
.numpadbtn-nobox{ height:48px; display:flex; align-items:center; justify-content:center; border-radius:10px; cursor:pointer; color:var(--text-secondary); background:var(--bg-primary); border:1px solid var(--line);
  font-size:15px; font-weight:700; -webkit-user-select:none; user-select:none; }
.numpadbtn-nobox:active{ background:var(--bg-tertiary); }
/* 주민번호 뒷자리 키패드 — 디자인키트 .numpad(design-kit/css/components.css 6. POS 전용) 값. 자리 섞기는 그대로 */
#psDocModal .psd-keys{ gap:9px; max-width:306px; margin:0 auto 6px; }
#psDocModal .psd-key{ height:59px; border-radius:var(--radius-md); background:var(--bg-primary); border:2px solid var(--line); font-size:22px; }
#psDocModal .psd-key:active{ background:var(--bg-secondary); }
#psDocModal .psd-key--fn{ background:var(--bg-tertiary); border-color:transparent; font-size:15px; }

/* ══════════ 문구 손질(2026-11-11 수정사항) — demo-steps.js ══════════ */
/* 첫 화면: 겹치는 소개를 한 문단으로 — 위 띠(기본 상태)·배너 둘째 줄·원래 설명·핵심 3가지를 숨긴다 */
#introScreen #wdNotice.is-calm, #introScreen #heroSubLine, #introScreen #introLeadLine,
#introScreen .intro-lead-sub:not(.demo-intro), #introScreen .intro-pts{ display:none !important; }
#introScreen .demo-intro{ margin-top:0 !important; font-size:16px !important; line-height:1.65 !important; color:var(--text-primary) !important; }
#introScreen .demo-intro b{ color:var(--accent-deep); }
#introScreen .intro-hero{ min-height:150px !important; display:flex; align-items:flex-end; }
/* 출금 계좌: 안내를 번호 두 줄로 */
#step3 #withdrawDailyNotice.demo-wd{ display:block !important; }
#step3 .demo-wd ol{ margin:0; padding-left:18px; }
#step3 .demo-wd li + li{ margin-top:4px; }
#introScreen .demo-intro, #step3 .demo-wd{ word-break:keep-all; }

/* 동의 화면 — 항목이 6개(매장비서 정보 제공 동의 추가)라 '필수' 표시를 제목과 같은 줄에 둔다 */
#consentScreen .consent-card-text{ display:grid; grid-template-columns:auto 1fr; column-gap:7px; row-gap:1px; align-items:center; }
#consentScreen .consent-card-title{ margin:0 !important; }
#consentScreen .consent-card-desc{ grid-column:1 / 3; margin-top:0 !important; line-height:1.4 !important; }
#consentScreen .consent-card-top{ padding:7px 2px !important; }

/* 처음으로(데모 첫 화면) — 신청 화면 모든 단계의 아래쪽에 떠 있는 버튼(demo-steps.js).
   넓은 화면: 아래 진행 버튼 오른쪽 빈 곳 / 좁은 화면: 진행 버튼 바로 위 오른쪽. 창(모달, z-index 1000 이상)보다는 아래 */
.demo-home{ position:fixed; right:14px; bottom:24px; z-index:60; display:-webkit-inline-flex; display:inline-flex; -webkit-align-items:center; align-items:center; gap:5px;
  height:40px; padding:0 14px; border-radius:999px; background:var(--bg-primary); border:1px solid var(--line); box-shadow:var(--shadow-md);
  color:var(--text-secondary); font-size:13px; font-weight:700; text-decoration:none; white-space:nowrap; }
.demo-home i{ font-size:16px; }
.demo-home:hover{ color:var(--text-primary); }
.demo-home:active{ background:var(--bg-secondary); }
@media (max-width:899px){ .demo-home{ right:10px; bottom:94px; height:36px; padding:0 12px; font-size:12px; } }
