/* f2 테마 분기 없는 원본 화면(10/31, f2/lib/legacy_page.php가 그 화면에서만 붙임) — 원본 마크업 그대로 모양만.
   재입고 알림 창(#sit_sms_new) · 현금영수증 창(#scash) = 새 창 공통 틀(win.css)과 같은 모양 / 개인 결제(PC .pesonal · #personal_pay, 모바일 #m_pv_sod_frm) = 주문서와 같은 카드 · 결제 수단 · 버튼 규칙 */

/* ---------- 새 창 2개 ---------- */
#sit_sms_new, #scash { display: flex; flex-direction: column; min-height: 100vh; background: var(--f2-white); font-size: var(--f2-fs-14); }
#sit_sms_new #win_title, #scash #win_title { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; min-height: 60px; margin: 0; padding: 0 20px; border-bottom: 1px solid var(--f2-line); background: var(--f2-white); font-size: var(--f2-fs-18); font-weight: 800; }
#sit_sms_new form, #scash .new_win_con { display: flex; flex: 1; flex-direction: column; }
#sit_sms_new .new_win_con, #sit_sms_new .form_01, #scash .new_win_con { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
#sit_sms_new .form_01 ul { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
#sit_sms_new .prd_name { padding: 16px 18px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); font-size: var(--f2-fs-15); font-weight: 700; }
#sit_sms_new li strong, #scash h2 { display: block; margin: 0 0 6px; font-size: var(--f2-fs-13); font-weight: 700; }
#sit_sms_new .frm_input, #scash .frm_input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); font-size: var(--f2-fs-15); }
#sit_sms_new .frm_input:focus, #scash .frm_input:focus { border-color: var(--f2-black); outline: none; }
#sit_sms_new textarea { width: 100%; height: 140px; padding: 12px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-sub-bg); color: var(--f2-text-sub); font-size: var(--f2-fs-12); line-height: 1.6; resize: none; }
#sit_sms_new .chk_box { padding: 0 20px; }
#sit_sms_new .chk_box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#sit_sms_new .chk_box label { display: inline-flex; align-items: center; gap: 8px; min-height: var(--f2-tap-min); font-size: var(--f2-fs-14); cursor: pointer; }
#sit_sms_new .chk_box label span { flex: none; width: 20px; height: 20px; border: 1.5px solid #CFCFCF; border-radius: var(--f2-r-4); background: var(--f2-white); }
#sit_sms_new .chk_box input:checked + label span { border-color: var(--f2-black); background: var(--f2-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C8F250' stroke-width='2.4'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 13px no-repeat; }
#sit_sms_new .chk_box input:focus-visible + label span { outline: 2px solid var(--f2-black); outline-offset: 2px; }
#sit_sms_new .win_btn { position: sticky; bottom: 0; display: flex; gap: 8px; margin-top: auto; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--f2-line); background: var(--f2-white); }
#sit_sms_new .win_btn button, #scash #scash_apply .btn_submit { flex: 1; height: 52px; border-radius: var(--f2-r-4); font-size: var(--f2-fs-15); font-weight: 800; cursor: pointer; }
#sit_sms_new .btn_submit, #scash #scash_apply .btn_submit { border: 0; background: var(--f2-black); color: var(--f2-white); }
#sit_sms_new .btn_close { border: 1.5px solid var(--f2-black); background: var(--f2-white); color: var(--f2-black); }
#scash .tbl_wrap table { width: 100%; border-collapse: collapse; }
#scash .tbl_wrap th, #scash .tbl_wrap td { padding: 10px 0; border-bottom: 1px solid var(--f2-line); text-align: left; font-size: var(--f2-fs-14); }
#scash .tbl_wrap th { width: 34%; color: var(--f2-text-sub); font-weight: 500; }
#scash form { display: flex; flex-direction: column; gap: 10px; }
#scash form p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
#scash form label { display: inline-flex; align-items: center; gap: 6px; min-height: var(--f2-tap-min); }
#scash #scash_apply { display: flex; margin-top: 8px; }
@media (max-width: 767px) { #sit_sms_new .frm_input, #scash .frm_input { font-size: var(--f2-fs-16); } }

/* ---------- 개인 결제 ---------- */
#forderform .pesonal, #forderform #personal_pay, #m_pv_sod_frm #m_sod_frm_orderer, #m_pv_sod_frm .f2-pp__pay { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); }
#forderform:has(.pesonal) { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 24px; width: var(--f2-w-content); max-width: calc(100% - 96px); margin: 0 auto; padding: 48px 0 96px; }
#forderform .pesonal h2, #forderform #personal_pay h2, #m_pv_sod_frm h2 { margin: 0; font-size: var(--f2-fs-18); }
#forderform .pesonal table, #m_pv_sod_frm .odf_tbl table { width: 100%; border-collapse: collapse; }
#forderform .pesonal th, #forderform .pesonal td, #m_pv_sod_frm .odf_tbl th, #m_pv_sod_frm .odf_tbl td { padding: 6px 4px; border: 0; background: none; text-align: left; font-size: var(--f2-fs-13); }
#forderform .pesonal th, #m_pv_sod_frm .odf_tbl th { padding-top: 12px; color: var(--f2-black); font-weight: 700; }
#forderform .frm_input, #m_pv_sod_frm .frm_input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); font-size: var(--f2-fs-15); }
#forderform .frm_input:focus, #m_pv_sod_frm .frm_input:focus { border-color: var(--f2-black); outline: none; }
.f2-pp__pay fieldset, fieldset.f2-pp__pay { margin: 0; min-width: 0; }
.f2-pp__pay fieldset { padding: 0; border: 0; }
.f2-pp__pay legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f2-pp__pay .pay_way { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.f2-pp__pay .pay_way li:empty, .f2-pp__pay .pay_way li:not(:has(input)) { display: none; }   /* 꺼진 결제 수단 자리(빈 li) */
.f2-pp__pay .pay_way input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.f2-pp__pay .pay_way label { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 8px; border: 2px solid var(--f2-line); border-radius: var(--f2-r-4); background: var(--f2-white); font-weight: 700; text-align: center; cursor: pointer; }
.f2-pp__pay .pay_way label span { display: none; }
.f2-pp__pay .pay_way input:checked + label { border-color: var(--f2-black); background: var(--f2-sub-bg); }
.f2-pp__pay .pay_way input:focus-visible + label { outline: 2px solid var(--f2-black); outline-offset: 2px; }
.f2-pp__pay #display_pay_button { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; }
.f2-pp__pay #display_pay_button .btn_submit, #m_pv_sod_frm #display_pay_button .btn_submit { width: 100%; height: 56px; border: 0; border-radius: var(--f2-r-4); background: var(--f2-black); color: var(--f2-white); font-size: var(--f2-fs-16); font-weight: 800; cursor: pointer; }
#forderform #display_pay_button .btn_submit[aria-disabled="true"], #m_pv_sod_frm #display_pay_button .btn_submit[aria-disabled="true"] { background: var(--f2-gray-dc); color: var(--f2-text-sub); cursor: pointer; }   /* 누르면 결제 수단으로 이동 — 진짜 비활성 아님(11/01) */
.f2-legacy-personalpay #display_pay_button .btn01, .f2-legacy-personalpay #display_pay_button .btn_cancel { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--f2-text-sub); font-size: var(--f2-fs-13); }
/* 결제 수단 안내 · 강조(주문서 checkout.css와 같은 값) */
.f2-pp__pay .f2-co__pay-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--f2-r-4); background: var(--f2-st-wait-bg); color: var(--f2-st-wait); font-size: var(--f2-fs-14); font-weight: 700; }
.f2-pp__pay .f2-co__pay-hint > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--f2-r-4); background: var(--f2-st-wait); color: var(--f2-white); font-size: 12px; font-weight: 800; }
.f2-pp__pay { transition: border-color .2s, box-shadow .2s; }
.f2-pp__pay.is-picked .f2-co__pay-hint { display: none; }
.f2-pp__pay.is-attn { border-color: var(--f2-st-delay) !important; box-shadow: 0 0 0 3px var(--f2-st-delay-bg); }
.f2-pp__pay.is-attn .f2-co__pay-hint { background: var(--f2-st-delay-bg); color: var(--f2-st-delay); }
.f2-pp__pay.is-attn .f2-co__pay-hint > span { background: var(--f2-st-delay); }
@media (max-width: 767px) {
  #forderform:has(.pesonal) { display: flex; flex-direction: column; gap: 12px; max-width: none; width: auto; margin: 0 16px; padding: 20px 0 48px; }
  #forderform .pesonal, #forderform #personal_pay, #m_pv_sod_frm #m_sod_frm_orderer, #m_pv_sod_frm .f2-pp__pay { padding: 18px 16px; border-radius: var(--f2-r-4); }
  #m_pv_sod_frm { display: flex; flex-direction: column; gap: 12px; margin: 16px; }
  .f2-legacy-personalpay #display_pay_button { display: flex; flex-direction: column; gap: 8px; margin: 16px 16px 0; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }   /* 하단 탭바에 버튼이 가리지 않게 */
  .f2-legacy-personalpay #display_pay_button .btn_cancel { display: flex; align-items: center; justify-content: center; min-height: var(--f2-tap-min); }
  #forderform .frm_input, #m_pv_sod_frm .frm_input { font-size: var(--f2-fs-16); }
}

/* ---------- 내용(약관 · 개인정보처리방침 · 회사소개) — 원본 #ctt 마크업, 목차는 legacy_page.php가 만듦 ---------- */
#ctt { display: grid; background: var(--f2-white); grid-template-columns: minmax(0, 1fr); gap: 24px; width: 1040px; max-width: calc(100% - 32px); margin: 0 auto; padding: 48px 0 96px; }
#ctt.has-toc { grid-template-columns: 240px minmax(0, 1fr); }
#ctt > header { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: var(--f2-line-strong) solid var(--f2-black); }
#ctt > header h1 { position: static; margin: 0; overflow: visible; font-size: 32px; line-height: 1.3; letter-spacing: -1px; }   /* 원본 내용 스킨 style.css가 제목을 숨김(font-size 0) */
.f2-doc__toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.f2-doc__toc summary { display: flex; align-items: center; min-height: var(--f2-tap-min); font-size: var(--f2-fs-13); font-weight: 800; cursor: pointer; list-style: none; }
.f2-doc__toc summary::-webkit-details-marker { display: none; }
.f2-doc__toc ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.f2-doc__toc a { display: flex; align-items: center; min-height: var(--f2-tap-min); padding: 4px 0; color: var(--f2-text-sub); font-size: var(--f2-fs-13); line-height: 1.4; text-decoration: none; }
#ctt_con { min-width: 0; color: #333; font-size: var(--f2-fs-14); line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
#ctt_con, #ctt_con * { font-family: var(--f2-font) !important; }
#ctt_con p { margin: 0 0 4px; }
#ctt_con .f2-doc__h { margin-top: 28px; color: var(--f2-black); font-size: var(--f2-fs-16); font-weight: 800; scroll-margin-top: 96px; }
#ctt_con .f2-doc__h:first-child { margin-top: 0; }
#ctt_con table { width: 100%; border-collapse: collapse; margin: 8px 0; }
#ctt_con th, #ctt_con td { padding: 8px; border: 1px solid var(--f2-line); font-size: var(--f2-fs-13); }
#ctt_con img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
  #ctt, #ctt.has-toc { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: none; width: auto; margin: 0 16px; padding: 20px 0 48px; }
  #ctt > header h1 { font-size: 24px; }
  .f2-doc__toc { position: static; max-height: none; padding: 0 16px; border: 1px solid var(--f2-line); border-radius: var(--f2-r-4); }
  .f2-doc__toc a { min-height: var(--f2-tap-min); }
  #ctt_con .f2-doc__h { scroll-margin-top: 72px; }
}
