/* =========================================
   1116 UX 3차 점검(고객 앱) — docs 「UX 3차 점검」 B1~B9. 화면별 표시는 각 PHP 의 「1116 UX 3차 Bn」 주석
========================================= */

/* 주문 상세 맨 위 내놓는 날·진행 단계(1116 UX 2차 B2 — 예전 sub/sub8_detail.php <style> 에서 그대로 옮김) */
#detail .od-hero {margin: 0 0 16px; padding: 20px; border-radius: 20px; background: var(--ss-navy-soft, #eef3f8); color: var(--ss-text, #1e293b); word-break: keep-all;}
#detail .od-hero.is-off {background: #f1f5f9;}
#detail .od-hero > small {display: block; font-size: 13px; color: var(--ss-text-2, #334155);}
#detail .od-hero > strong {display: block; margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1.35; color: var(--ss-navy, #1a3952);}
#detail .od-hero.is-off > strong {font-size: 17px; color: var(--ss-text-2, #334155);}
#detail .od-hero > p {margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ss-text-2, #334155);}
#detail .od-steps {display: flex; list-style: none; margin: 16px 0 0; padding: 0;}
#detail .od-steps li {position: relative; flex: 1 1 0; min-width: 0; padding-top: 34px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ss-muted, #64748b); text-align: center; word-break: keep-all;}
#detail .od-steps li span {position: absolute; top: 0; left: 50%; z-index: 1; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 2px solid var(--ss-line-ctl, #d9dde2); background: #fff; font-size: 12px; line-height: 22px; box-sizing: border-box;}
#detail .od-steps li + li::before {content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--ss-line-ctl, #d9dde2);}
#detail .od-steps li.is-done, #detail .od-steps li.is-now {color: var(--ss-navy, #1a3952);}
#detail .od-steps li.is-done span {border-color: var(--ss-navy, #1a3952); background: var(--ss-navy, #1a3952); color: #fff;}
#detail .od-steps li.is-now span {border-color: var(--ss-navy, #1a3952); color: var(--ss-navy, #1a3952);}
#detail .od-steps li.is-done + li::before {background: var(--ss-navy, #1a3952);}
#detail .od-hero .od-steps__note {margin: 12px 0 0; font-size: 13px; color: var(--ss-muted, #64748b);}
/* 내놓는 날 바꾸기 요청 중(B3) */
#detail .od-hero > p.od-hero__rs {margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412;}
#detail .od-hero > p.od-hero__rs b {font-weight: 700;}
/* 입금 안내 상자(B2 — lib/ssak/order/view.php ssak_order_pay_box_html) */
#detail .od-pay {margin: 12px 0 0; padding: 14px; border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.5;}
#detail .od-pay__bank {display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0;}
#detail .od-pay__bank dt {color: var(--ss-muted, #64748b);}
#detail .od-pay__bank dd {margin: 0; font-weight: 600; color: var(--ss-text, #1e293b); word-break: break-all;}
#detail .od-pay__btns {display: flex; gap: 8px; margin: 10px 0 0;}
#detail .od-pay__btns .ss-btn {flex: 1 1 0; min-height: 44px;}
#detail .od-pay p.od-pay__note {margin: 8px 0 0; font-size: 13px; color: var(--ss-text-2, #334155);}

/* 주문내역 입금 대기 금액(B5) */
#detail table td .ol-price {display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ss-navy, #1a3952);}

/* 홈 「지금 할 일」 카드(B1 — sub/index.php, lib/ssak/order/view.php ssak_order_home_todo) */
.home-todo {margin: 16px 20px 0;}
.home-todo__card {display: block; padding: 16px 18px; border-radius: 16px; background: var(--ss-navy-soft, #eef3f8); color: var(--ss-text, #1e293b); text-decoration: none; word-break: keep-all; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);}
.home-todo.is-due .home-todo__card {background: #fff7ed;}
.home-todo__card small {display: block; font-size: 13px; color: var(--ss-text-2, #334155);}
.home-todo__card strong {display: block; margin-top: 4px; font-size: 20px; font-weight: 800; line-height: 1.35; color: var(--ss-navy, #1a3952);}
.home-todo.is-due .home-todo__card strong {color: #9a3412;}
.home-todo__card span {display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ss-text-2, #334155);}
.home-todo__card em {display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--ss-navy, #1a3952);}
.home-todo__more {display: inline-block; margin-top: 8px; padding: 6px 0; font-size: 13.5px; font-weight: 600; color: var(--ss-navy, #1a3952); text-decoration: none;}

/* div·h1·h2·li onclick 을 링크·버튼으로(B7) — 모양은 그대로 */
a.card-item, a.special-banner {color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;}
#header h1 a.hd-logo {display: flex; align-items: center; justify-content: center; max-width: 100%;}
#header h2 button.hd-back {display: flex; align-items: center; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none;}
#header h2 button.hd-back img {width: 100%;}
/* 누르는 자리 44px — 예전에는 h2::after 였는데 h2 가 이제 누르는 것이 아니라 버튼으로 옮긴다(h2 가 기준 위치) */
.header-2 h2::after {content: none;}
.header-2 h2 button.hd-back::after {content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 44px; transform: translateY(-50%);}
:focus-visible {outline: 2px solid var(--ss-navy, #1a3952); outline-offset: 2px;}
/* 환경설정 줄 — 글자 링크가 줄 전체를 덮는다(sub/sub14_setting.php) */
#setting .wrap li .set-go {color: inherit; text-decoration: none;}
#setting .wrap li .set-go::after {content: ""; position: absolute; inset: 0;}
/* 알림내역 — 「주문 보기」 링크가 카드 전체를 덮는다(sub/sub18_notice.php) */
.notice-item.ssak-link {position: relative;}
.notice-item.ssak-link .notice-go {position: static;}
.notice-item.ssak-link .notice-go::after {inset: 0; top: 0; height: auto; transform: none;}
/* 아래 「내놓는 날 바꾸기」 칩 — 360px 에서 「…11월 18일(수」로 카드 밖에서 잘렸다(B3 점검 중 발견) */
#detail .ssak-rs-state .ss-chip {white-space: normal; text-align: left;}

/* 1117 UX 4차 — 신청 이후(sub/sub8_detail.php·sub8_list.php·sub11_mypage.php) */
#detail .od-hero > p.od-late {margin-top: 12px;}
#detail .od-hero .od-after {margin: 14px 0 0;}
#detail .od-hero .od-after .ss-btn {text-decoration: none;}
#detail .od-cancel-rs {margin: 4px 0 8px; padding: 12px; border-radius: 12px; background: var(--ss-navy-soft, #eef3f8);}
#detail .od-cancel-rs p {margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ss-text-2, #334155); word-break: keep-all; text-align: center;}
#detail .od-rs-cur {margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; font-size: 14px; color: var(--ss-text-2, #334155); text-align: center;}
#detail .od-rs-cur b {color: var(--ss-navy, #1a3952);}
#detail .wrap ul li span .od-bill__note {display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ss-muted, #64748b); word-break: keep-all;}
/* 관리자가 조정한 금액 · 상담톡(1117 UX 6차) — 글 안 링크라 탭 높이 대신 위아래 여백만 */
#detail .wrap ul li span .od-bill__note--adj .ss-link {display: inline; min-height: 0; padding: 4px 2px; font-size: inherit; font-weight: 700;}
#detail .od-ask.od-faq {margin-top: 4px;}
#detail .wrap ul.infomaition li:last-child p {width: auto; flex-shrink: 0; white-space: nowrap;}   /* 「입금할 금액」이 360px 에서 두 줄로 */
#detail .wrap ul li span .od-bill__note--top {margin-top: 0; font-size: 14px;}
#detail table td .ol-price.is-paid {font-weight: 600; color: var(--ss-text-2, #334155);}
.od-toast {position: fixed; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 10000; max-width: 420px; margin: 0 auto; padding: 14px 16px; border-radius: 12px; background: rgba(30, 41, 59, 0.94); color: #fff; font-size: 14.5px; line-height: 1.45; text-align: center; word-break: keep-all; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;}
.od-toast.is-on {opacity: 1; transform: none;}
#mypage .my-leave {display: flex; justify-content: center; gap: 20px;}

/* 1117 UX 5차 — 신청 이후·계정(sub8_detail·sub8_list·index 할 일 카드·sub18_notice·sub12_code) */
#detail .od-pay p.od-pay__note .ss-link {display: inline; min-height: 0; padding: 4px 2px; font-size: inherit; font-weight: 700;}
#detail .od-ask {margin: 16px 0 0; text-align: center;}
.home-todo__due {display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 14px; font-weight: 700; text-decoration: none; word-break: keep-all;}
#detail table tr.ol-sep td {padding: 18px 0 6px; font-size: 13px; font-weight: 700; color: var(--ss-muted, #64748b); text-align: left; border-bottom: 0;}
.notice-now {display: block; width: fit-content; margin: 6px 0 0; min-height: 24px; font-size: 12px;}
#code .cv-msg {margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: #b42318; word-break: keep-all;}
/* 수거 전 신청 상세 「사진 추가」(sub/sub8_detail.php, js/ssak_order_photo_add.js) */
#detail .od-photo-add {position: relative; margin-top: 12px;}
#detail .od-photo-add__input {position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; overflow: hidden;}
#detail .od-photo-add__input:focus-visible + .od-photo-add__note, #detail .od-photo-add label:focus-within {outline: 2px solid #1a3952; outline-offset: 2px;}
#detail .od-photo-add label.ss-btn {cursor: pointer;}
#detail .od-photo-add label[aria-disabled="true"] {opacity: .6; pointer-events: none;}
#detail .od-photo-add__note {margin: 8px 0 0; font-size: 13px; color: var(--ss-muted, #64748b);}
