/* 핵심 컴포넌트 — 프로토타입 클래스를 토큰 기반으로 승격(docs/09 §7).
   화면별 세부/View Cell 컴포넌트화는 M2에서 확장. 인라인 style 금지. */
* { box-sizing: border-box; }
/* [hidden] 보장 — .btn 등 display 지정 클래스가 UA의 [hidden]{display:none}을 덮어쓰는 문제 방지 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--c-page-bg);
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* 모바일 앱 컨테이너 — 배경=테넌트 bgColor(카드는 흰색으로 떠보임), flex 컬럼으로 푸터 하단고정 */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--c-page-bg); display: flex; flex-direction: column; }
/* 푸터를 항상 하단에 플로팅(콘텐츠 짧아도 하단 빈공간 없이) */
.app > .footer { margin-top: auto; }
/* 편집·결제 화면은 흰 배경(기획서 body-white) — 카드 위주 작업 화면 */
.app.app-white { background: #fff; }

/* 헤더 */
.header {
  background: var(--c-header-bg);
  color: var(--c-header-text);
  padding: var(--s-lg) var(--s-xl);
  display: flex; align-items: center; gap: var(--s-md);
}
.header .logo { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.header .title { font-size: 17px; font-weight: 600; }
.header .right { margin-left: auto; font-size: var(--fs-body); background: #fff; color: var(--c-dark); padding: 6px 14px; border-radius: var(--r-pill); }
.header .back { color: inherit; text-decoration: none; font-size: 22px; line-height: 1; }
.header .logo-img { height: 24px; width: auto; }
.header-nav { margin-left: auto; display: flex; gap: var(--s-sm); }
/* 로그인/마이페이지 = 흰 pill 버튼(기획서 .right) */
.header-nav a { background: #fff; color: var(--c-dark); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; padding: 6px 14px; border-radius: var(--r-pill); }

/* 4칸 지점코드(OTP) */
.otp-row { display: flex; gap: var(--s-md); justify-content: center; margin: var(--s-xl) 0; }
.otp-box { width: 52px; height: 60px; border: 2px solid var(--c-border); border-radius: var(--r-lg); font-size: 26px; font-weight: 700; text-align: center; outline: none; }
.otp-box:focus { border-color: var(--c-primary); }

/* 푸터 링크 + 회사정보 */
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: center; margin-bottom: var(--s-sm); }
.footer-links a { color: var(--c-muted); text-decoration: none; font-size: 11px; }
.footer-company { margin: var(--s-sm) 0 4px; color: var(--c-muted); }
.footer-company a { color: var(--c-muted); text-decoration: none; }
.footer-copy { margin: 0; color: var(--c-muted); opacity: .75; }

/* 가까운 지점찾기 링크(기획서 s1 — 흰 밑줄 링크) */
.text-link { display: inline-block; color: var(--c-text); font-size: 13px; text-decoration: underline; padding: var(--s-sm); }

/* QR 스캔 카드(기획서 s1 — 컴팩트 텍스트 카드, 탭하면 스캔). div[role=button] 이라 카드 폭 그대로. */
.qr-card { cursor: pointer; padding: var(--s-lg); }
.qr-card:active { background: #fafafa; }
.qr-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }

/* QR 스캐너 오버레이(카메라) — [hidden] 으로 표시 제어 */
.qr-overlay { position: fixed; inset: 0; z-index: 400; background: #000; }
.qr-overlay video { width: 100%; height: 100%; object-fit: cover; }
.qr-frame { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 230px; height: 230px; border: 3px solid #fff; border-radius: var(--r-2xl); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.qr-status { position: absolute; left: 0; right: 0; bottom: 72px; text-align: center; color: #fff; font-size: 14px; padding: 0 var(--s-lg); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.qr-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; border-radius: var(--r-round); background: rgba(0, 0, 0, .5); color: #fff; font-size: 18px; cursor: pointer; }

/* ── 기획 프로토타입 화면 컴포넌트(충실도 보강) ── */
/* 프로모션 배너 */
.banner { margin: var(--s-lg); border-radius: var(--r-xl); overflow: hidden; background: var(--grad-coral); padding: var(--s-xl); color: #fff; text-align: center; }
.banner.blue { background: var(--grad-purple); }
.banner strong { font-size: 17px; }
/* 광고배너(app_banner 이미지) — 기획서 영역 안에 이미지 fit, 그라디언트/패딩 제거 + 라운드 */
.banner-ad { padding: 0; background: transparent; display: block; line-height: 0; }
.banner-ad img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); }

/* 환영 카드(조리원 가치우선) */
.welcome-card { background: var(--grad-warm); border-radius: var(--r-2xl); margin: var(--s-lg); padding: 28px; text-align: center; }
.welcome-card .icon { font-size: 36px; }
.highlight-text { color: var(--c-primary); font-weight: 700; font-size: 22px; display: block; margin: var(--s-sm) 0; }

/* 결제 수단(키오스크/모바일 섹션 분리) */
/* 문서출력(PDF) */
.doc-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.doc-thumb { flex: 0 0 auto; border: 1px solid var(--c-border); border-radius: 4px; height: 96px; width: auto; background: #fff; }
.doc-thumb-more { flex: 0 0 auto; display: flex; align-items: center; padding: 0 10px; color: var(--c-muted); font-size: var(--fs-sm); }
.doc-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.doc-opt:last-of-type { border-bottom: none; }
.doc-seg { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.doc-seg button { background: #fff; border: none; padding: 7px 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); cursor: pointer; }
.doc-seg button.active { background: var(--c-primary); color: #fff; }
.doc-range-input { width: 100%; margin-top: 8px; padding: var(--s-md); border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--fs-body); }
/* 결제 주문요약 + 적립금 */
.co-title { font-size: var(--fs-md); font-weight: 700; margin: 0 0 10px; }
.co-line { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: var(--fs-body); }
.co-qty { color: var(--c-muted); font-size: var(--fs-sm); margin-left: 4px; }
.co-line-amt { font-weight: 600; }
.co-divider { height: 1px; background: var(--c-border); margin: 8px 0; }
.co-line-total { font-weight: 700; font-size: var(--fs-md); }
.co-bal { font-weight: 700; color: var(--c-primary); }
.co-minus { color: var(--c-action-pink); font-weight: 700; }
.co-point-row { display: flex; gap: 8px; margin-top: 8px; }
.co-point-row input { flex: 1; padding: var(--s-md); border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--fs-body); }
.co-point-row .btn { width: auto; padding: 0 18px; }
.co-final { display: flex; justify-content: space-between; align-items: center; }
.co-final strong { font-size: var(--fs-lg); color: var(--c-primary); }
.payment-section { margin: var(--s-lg); }
.payment-section h3 { font-size: var(--fs-body); margin: 0 0 var(--s-md); color: var(--c-dark); }
.payment-btn { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); margin-bottom: 10px; border: 2px solid #eee; background: #fff; width: 100%; cursor: pointer; text-align: left; }
.payment-btn .icon { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--c-light); }
.payment-btn .label { font-size: var(--fs-body); font-weight: 600; }
.payment-btn .desc { font-size: var(--fs-xs); color: var(--c-muted); }
.payment-btn .tag { margin-left: auto; font-size: 10px; padding: 4px 10px; border-radius: var(--r-lg); background: var(--c-light); color: #777; }

/* 상품 GO 알약 버튼 */
.product-card .go { padding: 10px 26px; border-radius: 24px; font-weight: 700; color: #fff; background: var(--c-warm-accent); border: none; white-space: nowrap; text-decoration: none; }
.product-card .go.free { background: var(--c-success); }
.product-card .go.disabled { background: var(--c-border); color: #fff; pointer-events: none; }

/* 지점 상태바 */
.status-bar { display: flex; align-items: center; justify-content: center; gap: var(--s-md); padding: var(--s-md) var(--s-xl); font-size: var(--fs-sm); color: #555; }
.status-bar .dot { width: 10px; height: 10px; border-radius: var(--r-round); background: var(--c-success); display: inline-block; }

/* OTP 입력 완료 피드백 */
.otp-box.filled { border-color: var(--c-dark); background: #f9f9f9; }

/* 유틸 (인라인 style 정리용) */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }

/* 카드 */
.card { background: #fff; border-radius: var(--r-2xl); margin: var(--s-lg); padding: var(--s-2xl); box-shadow: var(--sh-elev); }
.product-card { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); background: #fff; border-radius: var(--r-xl); margin: var(--s-md) var(--s-lg); padding: var(--s-xl); box-shadow: var(--sh-card); text-decoration: none; color: var(--c-text); }
.product-card:active { background: #fafafa; }
.product-card strong { font-size: 16px; }
.product-card .muted { margin-top: 2px; }
.product-card.highlight { border: 2px solid var(--c-primary); background: #fff8f0; }
.product-card-price { font-weight: 700; color: var(--c-primary); white-space: nowrap; }

/* 단계 인디케이터 */
.step-indicator { display: flex; justify-content: center; gap: var(--s-sm); padding: var(--s-lg); }
.step-dot { width: 10px; height: 10px; border-radius: var(--r-round); background: var(--c-border); transition: width .2s; }
.step-dot.active { background: var(--c-primary); width: 28px; border-radius: 5px; }
.step-dot.done { background: var(--c-success); }

/* 버튼 */
.btn { display: block; width: 100%; padding: var(--s-lg); border: none; border-radius: var(--r-lg); font-size: var(--fs-btn); font-weight: 700; text-align: center; cursor: pointer; text-decoration: none; }
.btn-orange  { background: var(--c-primary); color: #fff; }
.btn-green   { background: var(--c-success); color: #fff; }
.btn-pink    { background: var(--c-action-pink); color: #fff; }
.btn-dark    { background: var(--c-dark); color: #fff; }
.btn-outline { background: #fff; border: 2px solid var(--c-primary); color: var(--c-primary); }
.btn-kakao   { background: var(--c-kakao); color: #191600; }
.btn-naver   { background: var(--c-naver); color: #fff; }

/* 배지/상태 */
.free-badge { display: inline-block; background: var(--c-success); color: #fff; font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-pill); }
.station-result { text-align: center; padding: var(--s-md); margin: var(--s-sm) var(--s-lg); border-radius: var(--r-md); font-size: 15px; font-weight: 600; }
.station-result.found { background: #e8f5e9; color: #2e7d32; }

/* 폼 */
.form-group { margin: var(--s-lg); }
.form-group label { display: block; font-size: 12px; color: #777; margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: var(--s-md); border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--fs-body); outline: none; }
.form-group .hint { font-size: var(--fs-xs); color: var(--c-hint); margin-top: 4px; }

/* 사진 업로드/옵션 (M5) */
.photo-upload { display: block; border: 3px dashed var(--c-border); border-radius: var(--r-2xl); padding: 36px 20px; text-align: center; margin: var(--s-lg); cursor: pointer; color: var(--c-muted); }
.photo-upload div:nth-child(2) { color: var(--c-text); font-weight: 600; margin-top: 4px; }
.options-toggle { margin: var(--s-md) var(--s-lg); padding: var(--s-md); background: var(--c-light); border-radius: var(--r-md); text-align: center; font-size: 12px; color: #777; cursor: pointer; }

/* 사진 편집 — 편집 버튼은 사진 위에 오버레이(개선7) */
.crop-wrap { position: relative; }
.edit-overlay { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 5; }
.edit-pill { padding: 6px 12px; border: none; border-radius: var(--r-pill); background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }

/* 수량 스텝퍼(개선7 — 프로토 s3/분할편집) */
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: var(--s-md) var(--s-lg); padding: 12px 16px; background: var(--c-light); border-radius: var(--r-md); }
.qty-row .qty-label { font-size: 13px; font-weight: 600; }
.qty-stepper { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.qty-stepper button { width: 32px; height: 32px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.qty-stepper button:disabled { opacity: .4; cursor: default; }

/* 마이페이지 */
.mypage-user { padding: var(--s-xl); }
.mypage-name { font-size: 18px; font-weight: 700; }
.mypage-id { margin-top: 2px; }
.mypage-cash { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-md); padding: 8px 16px; background: var(--c-light); border-radius: var(--r-pill); font-size: var(--fs-sm); }
.mypage-cash strong { color: var(--c-primary); font-size: 16px; }
.mypage-menu { margin: var(--s-lg); background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mypage-item { display: flex; align-items: center; gap: var(--s-md); padding: 16px var(--s-lg); text-decoration: none; color: var(--c-text); border-bottom: 1px solid var(--c-light); }
.mypage-item:last-child { border-bottom: none; }
.mypage-item:active { background: #fafafa; }
.mypage-item .mi-ico { font-size: 18px; width: 24px; text-align: center; }
.mypage-item .mi-label { flex: 1; font-size: var(--fs-body); }
.mypage-item .mi-chev { color: var(--c-muted); font-size: 20px; }
.mypage-withdraw { color: var(--c-muted); font-size: var(--fs-sm); text-decoration: underline; }

/* 셀픽컷/콜라주 — 템플릿 썸네일 + 편집 스테이지 */
/* 셀픽컷 템플릿 선택 — 실제 그리드 미리보기 카드 */
/* minmax(0,1fr): 넓은 미리보기(img26 등)가 컬럼을 밀어 가로 넘침나는 것 방지 */
.collage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: var(--s-lg); }
.collage-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 14px 12px; text-decoration: none; color: var(--c-text); box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 2px solid transparent; }
.collage-card:active { border-color: var(--c-primary); background: #fafafa; }
.collage-preview-slot { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; height: 92px; }
.collage-preview { position: relative; height: 100%; max-height: 92px; max-width: 100%; background: #eef1f4; border-radius: 6px; overflow: hidden; }
.collage-preview-cell { position: absolute; background: linear-gradient(135deg, #cfe8ff, #ffd9ec); border-radius: 2px; }
.collage-card-label { font-weight: 600; font-size: var(--fs-md); }
.collage-card-meta { font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }
/* 셀픽컷 WYSIWYG 편집기 — 인라인 팬/줌 + 프레임색 */
.cz-stage { padding: var(--s-lg); }
.cz-canvas { position: relative; width: 100%; max-width: 400px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cz-cell { position: absolute; overflow: hidden; background: #eceff1; cursor: pointer; touch-action: none; }
.cz-cell.filled { cursor: grab; }
.cz-cell.filled:active { cursor: grabbing; }
.cz-img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; width: auto; height: auto; pointer-events: none; user-select: none; display: block; }
.cz-plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #b0b6ba; }
.cz-change { position: absolute; top: 3px; right: 3px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.cz-controls { display: flex; flex-direction: column; gap: 4px; }
.cz-label { font-size: var(--fs-sm); font-weight: 600; margin: 0; color: var(--c-dark); }
.cz-bgtab { display: flex; gap: 8px; margin-bottom: 12px; }
.cz-tab { flex: 1; padding: 9px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; font-weight: 600; font-size: var(--fs-sm); color: var(--c-text); cursor: pointer; }
.cz-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.cz-designs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.cz-design { aspect-ratio: 1218 / 1814; background-size: 100% 100%; background-position: center; border: 1px solid var(--c-border); border-radius: 4px; cursor: pointer; padding: 0; }
.cz-design.selected { border: 2px solid var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.cz-colors { display: flex; gap: 12px; margin: 6px 0 14px; }
.cz-color { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; padding: 0; }
.cz-color.selected { border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-primary); }
.cz-pricerow { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cz-total { margin-left: auto; font-weight: 700; font-size: var(--fs-md); color: var(--c-primary); }
.collage-stage { position: relative; width: 100%; max-width: 320px; aspect-ratio: 3 / 2; margin: var(--s-lg) auto; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.collage-cell { position: absolute; border: 2px dashed var(--c-border); border-radius: 4px; background: #fafafa center/cover no-repeat; cursor: pointer; padding: 0; overflow: hidden; }
.collage-cell.filled { border-style: solid; border-color: var(--c-primary); }
.collage-plus { font-size: 22px; color: var(--c-muted); }

/* 분할 편집 스테이지(A|B) — 좌우(2x6) / 상하(8x5) */
/* 분할 셀 — 썸네일/플레이스홀더를 실제 인화 셀 비율(--cell-aspect)로 표시(WYSIWYG). */
.split-stage { margin: var(--s-lg) auto; display: flex; gap: 10px; justify-content: center; align-items: center; }
.split-stage-lr { flex-direction: row; }                              /* 2x6: 세로 스트립 2개 좌우 */
.split-stage-tb { flex-direction: column; }                           /* 8x5: 가로 2개 상하 */
.split-cell { position: relative; aspect-ratio: var(--cell-aspect, 1); border: 2px dashed var(--c-border); border-radius: 4px; background: #fafafa center/cover no-repeat; cursor: pointer; overflow: hidden; }
.split-stage-lr .split-cell { height: 320px; width: auto; }           /* 세로 스트립 — 높이 기준 */
.split-stage-tb .split-cell { width: 100%; max-width: 300px; }        /* 가로 — 너비 기준 */

/* 증명사진 얼굴 가이드(크롭박스 위 타원) */
.id-face-guide { position: absolute; left: 22%; top: 14%; width: 56%; height: 64%; border: 2px dashed rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* 사이즈 선택(기획서 s2b — 일반 한 줄 + 대형 2×2, 비율 미리보기) */
.size-intro { color: #fff; font-size: 16px; font-weight: 600; padding: var(--s-lg) var(--s-lg) var(--s-md); }
.size-section { padding: 0 var(--s-lg) var(--s-md); }
.size-grouplabel { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); margin: 0 0 8px; }
.size-new { background: var(--c-action-pink); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 8px; margin-left: 6px; }
.size-row { display: flex; gap: 10px; }
.size-row .size-card { flex: 1; }
.size-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size-card { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; border-radius: 14px; padding: 16px 8px; text-decoration: none; color: var(--c-text); box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 2px solid transparent; }
.size-card.is-split { border-color: var(--c-action-pink); }
.size-card:active { background: #fafafa; }
.size-ratio { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: 6px; }
.size-ratio .size-box { display: block; background: linear-gradient(135deg, #ffe0b2, #ffccbc); border-radius: 4px; }
/* 실물 비율(가로:세로) 근사 */
.size-ratio-img46 .size-box { width: 56px; height: 84px; }
.size-ratio-img68 .size-box { width: 63px; height: 84px; }
.size-ratio-img26 .size-box { width: 28px; height: 84px; }
.size-ratio-img85 .size-box { width: 84px; height: 52px; }
.size-ratio-img86 .size-box { width: 76px; height: 57px; }
.size-ratio-img88 .size-box { width: 72px; height: 72px; }
.size-ratio-img810 .size-box { width: 60px; height: 75px; }
.size-ratio-card .size-box { width: 53px; height: 84px; }  /* 세로 카드 643:1013 */
/* 포토카드 프레임 선택(구 setCard) */
.card-frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card-frame { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; cursor: pointer; }
.card-frame.selected { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.card-frame-box { width: 40px; height: 63px; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #cfe8ff, #ffd9ec); display: flex; align-items: center; justify-content: center; }
.card-frame-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-frame-none { font-size: 11px; color: var(--c-muted); font-weight: 700; }
.card-frame-label { font-size: 11px; color: var(--c-text); }
/* 카드 편집기: 셀/크롭 위 프레임 오버레이(사진 + 프레임) */
.card-cell .cell-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
#card-frame-ov { z-index: 5; }
.size-label { font-size: 16px; font-weight: 700; }
.size-mm { font-size: 10px; color: #999; }
.size-set { font-size: 10px; color: var(--c-action-pink); font-weight: 600; }
.size-price { font-size: 14px; font-weight: 700; color: var(--c-primary); margin-top: 2px; }
.size-notice { background: #fff8f0; }
.size-notice-t { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
/* 약관/개인정보/환불 본문(구 go.selpic 원본 이관) */
.legal-content { font-size: 13px; line-height: 1.8; color: var(--c-text); word-break: keep-all; }
.legal-content h4 { font-size: 16px; font-weight: 700; margin: 4px 0 14px; }
.legal-content p { margin: 0 0 10px; }
.legal-content strong { font-weight: 700; }
.size-notice-list { margin: 0; padding-left: 18px; color: var(--c-muted); font-size: 13px; line-height: 1.7; }
.size-notice-list li { margin-bottom: 4px; }
/* 편집기: 사이즈 먼저 선택 → 고정 표시(개선8) */
.opt-size-fixed { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.opt-size-change { margin-left: auto; font-size: var(--fs-sm); color: var(--c-primary); }

/* 플래시 메시지 */
.flash { margin: var(--s-md) var(--s-lg); padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); font-size: var(--fs-sm); }
.flash-err { background: #fdecea; color: #c0392b; }
.flash-ok { background: #e8f5e9; color: #2e7d32; }

/* 적립 내역 행 */
.point-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-light); }
.point-row:last-child { border-bottom: none; }
.point-amt { font-weight: 700; color: var(--c-primary); white-space: nowrap; }

/* 공지 아코디언 */
.notice-list { margin: var(--s-lg); background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.notice-item { border-bottom: 1px solid var(--c-light); }
.notice-item:last-child { border-bottom: none; }
.notice-head { display: flex; justify-content: space-between; gap: var(--s-md); align-items: center; padding: 16px var(--s-lg); cursor: pointer; list-style: none; }
.notice-head::-webkit-details-marker { display: none; }
.notice-title { font-weight: 600; }
.notice-date { white-space: nowrap; }
.notice-body { padding: 0 var(--s-lg) var(--s-lg); font-size: var(--fs-sm); line-height: 1.7; }
.notice-img { width: 100%; height: auto; border-radius: var(--r-md); margin-bottom: var(--s-md); }

/* 유틸 */
.muted { color: var(--c-muted); font-size: var(--fs-sm); }
.section { margin: var(--s-lg); }
.footer { padding: var(--s-xl) var(--s-lg); text-align: center; font-size: 10px; color: var(--c-muted); line-height: 1.8; background: #f9f9f9; }

/* PWA 설치 배너/모달 — display 는 pwa.js 가 제어(클래스에 display 지정 금지: [hidden] 동작 유지) */
.pwa-banner { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; align-items: center; gap: var(--s-md); background: var(--c-dark); color: #fff; padding: var(--s-md) var(--s-lg); z-index: 300; box-shadow: 0 -2px 12px rgba(0,0,0,.2); }
.pwa-banner-txt { flex: 1; font-size: var(--fs-sm); }
.pwa-banner-btn { background: var(--c-primary); color: #fff; border: none; border-radius: var(--r-md); padding: 8px 16px; font-weight: 700; cursor: pointer; }
.pwa-banner-x { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer; }
.pwa-ios { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; }
.pwa-ios-card { position: absolute; left: var(--s-lg); right: var(--s-lg); bottom: var(--s-lg); max-width: 448px; margin: 0 auto; background: #fff; border-radius: var(--r-2xl); padding: var(--s-2xl); text-align: center; }
.pwa-ios-x { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; }

/* 회원가입 약관 동의(구 step1 이관) — 어드민 설정 기반 항목 */
.agree-all { display: block; font-size: var(--fs-md); padding: 4px 0; cursor: pointer; }
.agree-item { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.agree-item:last-child { border-bottom: none; }
.agree-item > label { display: block; cursor: pointer; line-height: 1.5; }
.agree-req { color: var(--c-primary); font-size: var(--fs-sm); font-weight: 700; }
.agree-opt { color: var(--c-muted); font-size: var(--fs-sm); }
.agree-detail { margin: 6px 0 0 24px; }
.agree-detail > summary { color: var(--c-muted); font-size: var(--fs-sm); cursor: pointer; }
.agree-text { max-height: 160px; overflow-y: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 8px 10px; margin-top: 6px; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-muted); }
