/* =========================================
   고객 화면 점검(2026-11-04) — 터치 영역 44px·글자 대비·탭바 현재 위치·작은 화면
   눈에 보이는 크기는 그대로 두고 누르는 자리만 넓히는 것은 ::after(투명) 로 한다
========================================= */
/* 한글은 낱말(띄어쓰기) 단위로 줄을 바꾼다 — 기본값은 「센텀중/앙로」「드리/면」처럼 글자 사이에서 끊었다. 긴 영문·숫자만 칸 끝에서 */
body { word-break: keep-all; overflow-wrap: break-word; }

/* 신청 내용 확인 — 고정 머리말(60px) 아래에서 시작(제목·진행 점이 머리말 뒤에 가려졌다) */
#complete.modern_order_wrap { padding-top: 84px; }

/* 머리말 아이콘(메뉴·알림·뒤로) — 그림은 24px, 누르는 자리는 44px */
#header h2 img.hamburger, #header h2 img.alarm { box-sizing: content-box; padding: 10px; margin: -10px; cursor: pointer; }
#header h2 a.alarm_link { display: inline-block; vertical-align: middle; padding: 10px; margin: -10px; line-height: 0; } /* 종 링크 — 누르는 자리 44px 는 링크가 갖는다 */
#header h2 a.alarm_link img.alarm { padding: 0; margin: 0; }
.header-2 h2::after { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 44px; transform: translateY(-50%); }

/* 작은 칩 버튼·글자 링크 — 누르는 자리만 44px 로 */
#bo_v_top .btn, .bo_vc_act li a, #mypage .profile .edit-link, #join .btn_zipcode, #join ul li.otp_later_row button,
#join div.terms a, #complete .terms_agree .agree_txt, .footer-area a, .bo_vc_secret label { position: relative; }
#bo_v_top .btn::after, .bo_vc_act li a::after, #mypage .profile .edit-link::after, #join .btn_zipcode::after, #join ul li.otp_later_row button::after,
#join div.terms a::after, #complete .terms_agree .agree_txt::after, .footer-area a::after, .bo_vc_secret label::after {
    content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%);
}
/* 신청 확인 — 동의 문구(label) 안의 [이용약관 확인] 링크는 라벨의 넓힌 자리(::after) 위에 올린다.
   그 아래 깔려 링크를 눌러도 체크만 바뀌고 약관이 안 열렸다(1107 실기기 QA 2차 #2). 링크 둘레도 44px 로 누르기 쉽게 */
#complete .terms_agree .agree_txt a { position: relative; z-index: 1; display: inline-block; }
#complete .terms_agree .agree_txt a::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
.bo_vc_act { gap: 10px; }
.bo_vc_act li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 13px; box-sizing: border-box; } /* 수정·삭제·신고 — 보이는 칸도 44px */

/* 하단 정보 — 회색 #888 은 밝은 바탕에서 대비 3.3:1 이라 #666(5.3:1) 으로 */
.footer-area { color: #666666; }
.footer-area .divider { color: #b0b0b0; }
.footer-area .footer-links a { display: inline-block; padding: 4px 0; }

/* 하단 탭바 — 글자 13px·진하게, 지금 화면의 탭 표시(aria-current). 360px 폭에서 네 칸(「신청하기」 네 글자)이 한 줄에 들어간다 */
footer.ssak-tabbar li { font-size: 13px; color: #555555; padding: 0; }
footer.ssak-tabbar li a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; text-decoration: none; border-radius: 30px; -webkit-tap-highlight-color: transparent; }
footer.ssak-tabbar li img { opacity: 0.55; }
footer.ssak-tabbar li.active { background: #eef3f8; color: #1a3952; font-weight: 700; }
footer.ssak-tabbar li.active img { opacity: 1; filter: none; }

/* 주문내역 — 「상세보기」 44px, 신청일을 진행상황 아래에(같은 상태가 여러 건이면 구별이 안 됐다) */
#detail table td a:not(.ss-btn) { line-height: 44px; border-radius: 22px; }
#detail table td .ol-date { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #6b7280; }

/* 주문 상세 — 입금 계좌 복사 */

/* 마이페이지 머리 — 이름을 왼쪽에, 「정보변경」「로그아웃」을 오른쪽에 나란히 */
#mypage .profile { gap: 8px; max-width: 500px; margin-left: auto; margin-right: auto; } /* 아래 정보 칸(500px)과 같은 폭 — 태블릿에서 머리만 넓었다 */
#mypage .profile h2 { order: -1; flex: 1 1 auto; }
#mypage .profile .edit-link { padding: 9px 12px; }
#mypage .profile h3 { flex-shrink: 0; }
#mypage .profile h3 .edit-link { color: #666666; }

/* 가입 — 「검색」「인증번호 받기」 높이 36px, 약관 동의 줄은 줄 전체(44px)가 글자 label */
#join .btn_zipcode { min-height: 36px; }
/* 휴대폰 번호 칸 — 「인증번호 받기」·「재발송 29초」 버튼 옆에서 13자리가 앞부터 잘려 보이던 것(360px 에서 칸 88px, 번호 104px) */
@media (max-width: 400px) {
    #join ul li.address label[for="mb_hp"] { width: auto; margin-right: 12px; }
    #join ul li.address #otp_send { padding: 7px 10px; }
}
@media (max-width: 340px) {
    #join ul li.address label[for="mb_hp"] { margin-right: 8px; }
    #join ul li.address #mb_hp { font-size: 13px; }
    #join ul li.address #otp_send { padding: 7px 8px; }
}
#join div.terms div { min-height: 44px; margin-bottom: 0; }
#join div.terms label { align-self: stretch; display: flex; align-items: center; }

/* 자동등록방지 — 그림·입력·새로고침을 한 줄로, 음성 듣기는 아래 */
fieldset#captcha.m_captcha { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
fieldset#captcha.m_captcha #captcha_img { order: 1; height: 48px; width: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
fieldset#captcha.m_captcha #captcha_key { order: 2; flex: 1 1 90px; max-width: 140px; height: 48px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 18px; letter-spacing: 2px; text-align: center; box-sizing: border-box; }
fieldset#captcha.m_captcha #captcha_reload { order: 3; width: 48px; height: 48px; border-radius: 10px; }
fieldset#captcha.m_captcha #captcha_info { order: 4; flex-basis: 100%; font-size: 13px; color: #555555; }
fieldset#captcha.m_captcha #captcha_audio { order: 5; flex-basis: 100%; height: 40px; }

/* 이용 방법 카드 — 「STEP / 1」 두 줄 방지 */
.howto-card .step-badge { white-space: nowrap; }

/* 사용후기·공지 목록 — 날짜·댓글 수 */
#board-list .gall_li_tit .board-title-box { display: flex; flex-direction: column; min-width: 0; flex: 1; padding-right: 10px; }
#board-list .board-title-box .board-subject { flex: none; padding-right: 0; }
#board-list .board-meta { margin-top: 4px; font-size: 13px; color: #6b7280; font-weight: 400; }
#board-list .board-meta .board-cmt { margin-left: 8px; }

/* 댓글 — 비밀 댓글 체크에 글자 */
.bo_vc_secret { display: inline-flex; align-items: center; gap: 6px; }
.bo_vc_secret label .ssak-secret-txt { font-size: 13px; color: #555555; margin-left: 4px; }
.bo_vc_secret label::after { left: -28px; } /* 체크 칸까지 함께 */

/* 안내 화면 아래 「수거 신청하기」(이용안내·이용지역·이용가격) */
.ssak-cta { padding: 8px 20px 32px; box-sizing: border-box; text-align: center; }
.ssak-cta a { display: block; max-width: 480px; margin: 0 auto; height: 54px; line-height: 54px; border-radius: 27px; background: #1a3952; color: #ffffff !important; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 15px rgba(26, 57, 82, 0.2); }
.ssak-cta p { margin-top: 10px; font-size: 13px; color: #555555; }

/* 알림내역 — 주문이 있는 알림은 눌러서 주문 상세로 */
.notice-item.ssak-link { cursor: pointer; }
.notice-item .notice-go { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #1a3952; position: relative; }
.notice-item .notice-go::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); } /* 글자 높이(15px)만 눌리던 것 */

/* 추천코드 「코드복사」 — input 이라 ::after 가 없어 투명 테두리로 누르는 자리를 넓힌다(보이는 버튼 크기·자리는 그대로) */
#code .codeArea h4 input[type="button"] { top: calc(1.6667vw - 14px); right: -14px; width: calc(13.8889vw + 28px); height: calc(5.5556vw + 28px); border: 14px solid transparent; background-clip: padding-box; }
#code .codeArea h4 input[type="button"]:active { background-clip: padding-box; }

/* 작은 화면(≤340px) — 첫 화면 큰 글자가 한 낱말만 다음 줄로 넘어가던 것 */
@media (max-width: 340px) {
    #main-banner .banner_txt .main_action { font-size: 22px; }
    #main-banner .banner_txt h2 { font-size: 34px; }
}

/* 주문 상태 칩 — 상태마다 색 갈래(ssak_order_status_tone): 접수 주황 · 수거 예정 올리브 · 입금 대기 호박(고객이 할 일 — 테두리) · 입금 확인 갈색 · 취소 회색.
   글자는 연한 바탕 위에서 6:1 이상(WCAG AA 4.5:1). 기사 화면은 drive.css 의 .dv-state--<갈래>, 관리자는 adm/css/admin_extend_ux.css */
#detail .wrap ul li span.ss-chip { width: auto; color: var(--ss-chip-fg, #333333); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; } /* 상세 「결제상태」 — 오른쪽 칸 span 규칙(70%·15px)을 덮는다 */

/* 작은 글자 — 꼭 읽을 글 14px, 보조 글 13px(관리자 화면은 따로) */
#join ul li #found, #join div.terms a, .bo_vc_hdinfo, #bo_vc_w #char_cnt, #mypage .profile .edit-link, #mypage .profile input[type="button"], #mypage #msg_certify,
#board-list .paging .pg_page.pg_start, #board-list .paging .pg_page.pg_end, #board-list .paging .pg_page.pg_prev, #board-list .paging .pg_page.pg_next,
#bo_v_top ul.bo_v_left li a, .event-txt .tag { font-size: 13px; }
#join ul li.address .btn_zipcode { font-size: 14px; }

/* 완료 주문의 신청 사진은 하단에서 필요할 때 펼친다. */
#detail .request-photos { margin-top: 24px; border: 1px solid #dce2e8; border-radius: 12px; }
#detail .request-photos > summary { padding: 14px 16px; min-height: 48px; box-sizing: border-box; cursor: pointer; color: #1a3952; font-size: 15px; font-weight: 600; }
#detail .request-photos > summary:focus-visible { outline: 2px solid #1a3952; outline-offset: 2px; border-radius: 12px; }
#detail .request-photos .photo-div { margin: 0; padding: 0 16px 16px; }

/* 홈 혜택 카드(가입·추천 포인트, 회원은 사용 가능 포인트) — sub/index.php */
.benefit-section { width: 100%; padding: 0 20px 8px; box-sizing: border-box; background: #ffffff; margin-top: -16px; }
.benefit-section .section-title { margin-bottom: 14px; }
.benefit-section .section-title h2 { font-size: 18px; font-weight: 700; color: var(--text_dark); margin: 0 0 10px; letter-spacing: -0.5px; }
.benefit-section .section-title p { font-size: 13px; color: #666666; margin: 0; letter-spacing: -0.5px; }
.benefit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.benefit-card { position: relative; display: block; min-height: 132px; padding: 16px 14px 40px; border-radius: 18px; box-sizing: border-box; text-decoration: none; letter-spacing: -0.5px; transition: transform 0.15s ease; }
.benefit-card:active { transform: scale(0.97); }
.benefit-card.is-point { background: #e8f0f6; color: var(--point_color); }
.benefit-card.is-friend { background: #fff1e6; color: #a34700; }
.benefit-card small { display: block; font-size: 12px; font-weight: 700; opacity: 0.85; }
.benefit-card strong { display: block; font-size: 24px; font-weight: 800; margin: 6px 0 4px; word-break: keep-all; }
.benefit-card em { display: block; font-style: normal; font-size: 12px; line-height: 1.45; }
.benefit-card .go, .benefit-row .go { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; background: #ffffff; border-radius: 12px; padding: 4px 10px; }
.benefit-row { position: relative; display: block; margin-top: 10px; padding: 14px 70px 14px 14px; border-radius: 14px; background: #f3f4f6; color: var(--text_dark); font-size: 13px; line-height: 1.45; text-decoration: none; letter-spacing: -0.5px; }
.benefit-row b { color: var(--point_color); }
.benefit-row .go { top: 50%; bottom: auto; transform: translateY(-50%); color: var(--point_color); }
.benefit-note { margin: 8px 2px 0; font-size: 12px; color: #888888; letter-spacing: -0.5px; }

/* 비회원 첫 실행 혜택 안내(바텀시트) */
.benefit-sheet[hidden] { display: none; }
.benefit-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999; }
.benefit-sheet-dim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.45); }
.benefit-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: #ffffff; border-radius: 24px 24px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; text-align: center; letter-spacing: -0.5px; }
.benefit-sheet-box .bar { width: 40px; height: 4px; border-radius: 2px; background: #d1d5db; margin: 0 auto 18px; }
.benefit-sheet-box h3 { font-size: 21px; font-weight: 800; color: var(--text_dark); margin: 0; }
.benefit-sheet-box h3 span { color: #ff7a1a; }
.benefit-sheet-box ul { list-style: none; text-align: left; background: #f3f4f6; border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-size: 14px; line-height: 1.9; color: var(--text_dark); }
.benefit-sheet-box ul li::before { content: "\2714\00a0"; color: var(--point_color); }
.benefit-sheet-box ul b { color: var(--point_color); }
.benefit-sheet-box .cta { display: block; background: var(--point_color); color: #ffffff; font-size: 16px; font-weight: 700; border-radius: 14px; padding: 15px; text-decoration: none; }
.benefit-sheet-box .links { margin: 12px 0 0; font-size: 13px; color: #888888; }
.benefit-sheet-box .links button { min-height: 44px; padding: 0 6px; border: 0; background: none; color: #666666; font-size: 13px; cursor: pointer; }

/* =========================================
   1109 고객 화면 UX 점검 — 디자인 다듬기
========================================= */
/* MY — 정보 카드 끝줄(휴대전화)의 밑줄이 「탈퇴 줄 앞 줄」 규칙(위 nth-last-child(2))에 지워졌다. 탈퇴 줄은 카드 밖으로 옮겼다 */
#mypage .wrap li:nth-last-child(2) { border-bottom: 1px solid #f1f3f5 !important; }
#mypage .wrap li:last-child { border-bottom: none !important; }
#mypage .wrap.my-menu { margin-top: 16px; padding: 4px 20px; }
#mypage .my-menu li { padding: 0; min-height: 0; }
#mypage .my-menu li a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; color: inherit; text-decoration: none; }
#mypage .my-menu li a:active { background: #f8fafc; }
#mypage .my-menu li h2 { font-weight: 500; color: #1e293b; white-space: normal; word-break: keep-all; }
#mypage .my-menu-arrow { flex: none; margin-left: 12px; font-size: 22px; line-height: 1; color: #94a3b8; }
#mypage .my-leave { margin: 20px 0 0; text-align: center; }

/* 주문내역 — 줄 전체를 누를 수 있게(sub8_list.php), 「보기」는 옅은 버튼 */
#detail table tr.ol-row { cursor: pointer; }
#detail table tr.ol-row:active td { background: #f8fafc; }

/* 친구 추천(sub12_code.php) — 업체 시절 vw 글자·파란 버튼을 다른 화면과 같은 카드로 */
#code.code_v2 { padding: 84px 20px 120px; background: #f4f6f8; min-height: 100vh; }
#code.code_v2 p { position: static; width: auto; margin: 0; }
#code.code_v2 .cv-hero { padding: 28px 22px; border-radius: 20px; background: #1a3952; color: #ffffff; text-align: left; }
#code.code_v2 .cv-hero-t { font-size: 15px; font-weight: 500; opacity: .85; }
#code.code_v2 .cv-hero-p { margin-top: 4px; font-size: 24px; font-weight: 800; line-height: 1.3; word-break: keep-all; }
#code.code_v2 .cv-hero-p b { color: #ffd166; }
#code.code_v2 .cv-hero-s { margin-top: 10px; font-size: 14px; line-height: 1.55; opacity: .85; word-break: keep-all; }
#code.code_v2 .cv-card { margin-top: 14px; padding: var(--ss-pad-card); border: 1px solid var(--ss-line); border-radius: var(--ss-radius-card); background: var(--ss-card); box-shadow: var(--ss-shadow-card); }
#code.code_v2 .cv-code { display: block; flex: 1 1 0; min-width: 0; padding: 0 14px; line-height: 48px; border-radius: 12px; background: #f1f5f9; font-size: 20px; font-weight: 800; color: #1a3952; letter-spacing: .5px; overflow-wrap: anywhere; }
#code.code_v2 .cv-done { font-size: 15px; font-weight: 600; color: #2b8a3e; text-align: center; }

#code.code_v2 .pop-layer { width: calc(100vw - 48px); max-width: 360px; border-radius: 18px; overflow: hidden; }
#code.code_v2 .code-send { padding: 0; }
#code.code_v2 .ctxt { padding: 22px 18px 8px; }
#code.code_v2 .cv-pop-t { font-size: 17px; font-weight: 800; color: #1e293b; }
#code.code_v2 .cv-pop-s { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #64748b; word-break: keep-all; }
#code.code_v2 .code-send li img { width: 32px; height: 30px; }

/* =========================================
   1109 UX 점검 3차 — 남은 화면 다듬기
========================================= */
/* 신청 확인 단계 — 동그라미 두 개 대신 번호·이름 */
#complete .ing.ing-steps { gap: 8px; align-items: center; padding: 4px 0 20px; }
#complete .ing.ing-steps li { display: flex; align-items: center; gap: 6px; width: auto; height: auto; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; color: #94a3b8; }
#complete .ing.ing-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 700; }
#complete .ing.ing-steps li.done span { background: #cbd5e1; color: #ffffff; }
#complete .ing.ing-steps li.active { color: #1a3952; }
#complete .ing.ing-steps li.active span { background: #1a3952; color: #ffffff; }
#complete .ing.ing-steps li + li::before { content: ""; width: 18px; height: 2px; margin-right: 2px; background: #cbd5e1; }

/* 로그인 — 밑줄만 있는 칸이라 누를 자리가 안 보였다. 가입 화면과 같은 회색 둥근 상자로 */
#login ul { gap: 10px; margin-bottom: 24px; }
#login ul li { height: 54px; padding: 0 16px; border: 0; border-radius: 14px; background: #f4f6f8; transition: box-shadow .2s; }
#login ul li:focus-within { border: 0; box-shadow: inset 0 0 0 2px #1a3952; background: #ffffff; }
#login ul li label { width: 72px; font-size: 14px; }
#login .ss-btn--block { margin-bottom: 24px; }

/* 환경설정 — 흰 바탕에 줄만 있던 목록을 MY 와 같은 카드로 */
#setting { background: #f4f6f8; }
#setting .wrap > ul { margin-bottom: var(--ss-gap); padding: 0 var(--ss-pad-card); border: 1px solid var(--ss-line); border-radius: var(--ss-radius-card); background: var(--ss-card); box-shadow: var(--ss-shadow-card); }
#setting .wrap > ul > li { min-height: 54px; display: flex; align-items: center; }
#setting .wrap > ul > li:last-child { border-bottom: 0; }
#setting .wrap > ul > li h3 { top: 50%; transform: translateY(-50%); }
#setting .wrap ul.version-list { border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }

/* =========================================
   1109 사장님 결정 반영·실기기 고객 앱 항목
========================================= */
/* 비밀번호 「보기」(가입·정보수정 — js/ssak_ui.js data-ssak-pw-eye) */
.pw_eye { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; background: none; color: #94a3b8; cursor: pointer; }
.pw_eye.on { color: #1a3952; }
#mypage .form-item .input-area .pw_eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
#mypage .form-item .input-area input#mb_password_new { padding-right: 44px; }
/* 아래로 스크롤하는 동안 하단 탭이 비킨다(js/ssak_ui.js body.ssak-tab-away) — 떠 있는 탭이 카드 가운데를 가렸다(1109 실기기 QA) */
footer.ssak-tabbar { transition: transform .25s ease, opacity .25s ease; }
body.ssak-tab-away footer.ssak-tabbar { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
/* MY 주소가 없을 때 안내(sub11_mypage.php) */
#mypage .wrap li h3 a.my-addr-empty { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: #1a3952; text-decoration: underline; text-align: right; }

