/* =================================================================
     [PART 1] 레이아웃 초기화 및 상단 연락처 가이드 알림창 구역
     ================================================================= */
.rx-mod-wrt { 
    max-width: 1000px !important; 
    margin: 0 auto !important; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif !important; 
    color: #334155 !important; 
}

.rx-minimal-notice { 
    background: #f1f5f9 !important; 
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #2563eb !important; 
    padding: 16px 20px !important; 
    border-radius: 8px !important; 
    margin-bottom: 25px !important; 
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
/* 알림창 내부 요소들은 부모(.rx-minimal-notice)가 flex로 강제 제어되므로 일반 속성의 !important를 제거했습니다 */
.rx-minimal-notice h2 { font-size: 14.5px; font-weight: 700; margin: 0 0 4px 0; color: #1e293b; letter-spacing: -0.3px; }
.rx-minimal-notice p { font-size: 13.5px; margin: 0; color: #475569; line-height: 1.6; }
.rx-minimal-notice .no-phone-alert { color: #991b1b; font-weight: 700; background: #fee2e2; padding: 2px 6px; border-radius: 4px; font-size: 13.5px; display: inline-block; }
.rx-minimal-notice .sub-info { font-size: 11px; color: #64748b; display: block; margin-top: 4px; border-top: 1px dashed #e2e8f0; padding-top: 6px; }
.rx-minimal-notice .phone-highlight { color: #1d4ed8; font-weight: 700; background: #e0f2fe; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; margin: 0 2px; display: inline-block; }
.rx-minimal-notice .btn-edit-profile { font-size: 12px; font-weight: 600; color: #475569; text-decoration: none; border: 1px solid #cbd5e1; background: #ffffff; padding: 2px 6px; border-radius: 4px; margin-left: 4px; display: inline-block; vertical-align: middle; transition: all 0.15s ease; }
.rx-minimal-notice .btn-edit-profile:hover { background: #f1f5f9; border-color: #94a3b8; color: #0f172a; }

.extraVarsList12 { background: transparent !important; border: none !important; padding: 0 !important; margin-bottom: 25px; box-sizing: border-box !important; }
.extraVarsList12 .jungo { table-layout: fixed !important; width: 100% !important; border-collapse: collapse !important; border: none !important; display: flex !important; flex-direction: column !important; }
.extraVarsList12 .jungo tr { border: none !important; border-bottom: 1px solid #f1f5f9 !important; display: flex !important; width: 100% !important; box-sizing: border-box !important; }
.extraVarsList12 .jungo tr td, .extraVarsList12 .jungo tr th { border: none !important; }
.extraVarsList12 .jungo tr:last-child { border-bottom: none !important; }

/* th(타이틀) 영역 가로폭 잠금 및 플렉스 교정 */
.extraVarsList12 .jungo th { 
    width: 130px !important; max-width: 130px !important; min-width: 130px !important;
    padding: 20px 10px 20px 0 !important; text-align: left !important; font-size: 13px !important; 
    font-weight: 600 !important; color: #475569 !important; letter-spacing: -0.4px !important; 
    vertical-align: middle !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; 
}
.extraVarsList12 .jungo th::after { content: none !important; display: none !important; }

/* 필수 배지 em 우측 밀착 */
.extraVarsList12 .jungo th em { 
    display: inline-block !important; font-style: normal; color: #ef4444; 
    font-weight: 700; font-size: 14px; vertical-align: middle; 
    margin: 0 0 0 4px; float: none; 
}

/* td(입력창) 영역 가로폭 고수 및 플렉스 교정 */
.extraVarsList12 .jungo td { 
    width: calc(100% - 130px) !important; max-width: calc(100% - 130px) !important;
    padding: 18px 0 !important; text-align: left !important; vertical-align: middle !important; 
    font-size: 13px !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important;
}

/* 입력창 공통 브랜딩 디자인 (색상, 포커스 이펙트 등 상세 디자인 속성의 !important 완화) */
.extraVarsList12 input[type="text"], .extraVarsList12 input.itx, .extraVarsList12 .jungo td input { 
    height: 40px !important; line-height: 38px !important; padding: 0 12px !important; 
    border: 1px solid #cbd5e1 !important; border-radius: 6px !important; font-size: 13px; 
    color: #334155; background: #fff; box-sizing: border-box !important; 
    outline: none; transition: all 0.15s ease-in-out; display: inline-block; vertical-align: middle; 
}
.extraVarsList12 input::placeholder { color: #94a3b8 !important; }
.extraVarsList12 select:focus, .extraVarsList12 input:focus { border-color: #4f46e5 !important; background-color: #f8fafc !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* 💡 [정렬 마킹 완결] v8과 v20 행을 최하단 순서로 강제 재배치합니다 */
.extraVarsList12 .jungo tr:has([name="v8"]), .extraVarsList12 .jungo tr:has([id="v8"]) { order: 998 !important; }
.extraVarsList12 .jungo tr:has([name="v20"]), .extraVarsList12 .jungo tr:has([id="v20"]) { order: 999 !important; }

/*  1차 / 2차 물품종류 셀렉터 모던 화살표 리빌딩 구역 ===== */
.extraVarsList12 select.mp-input,
.extraVarsList12 select.mp-dependent { 
    display: inline-block !important; visibility: visible !important;
    width: 240px !important; max-width: 240px !important; min-width: 240px !important;
    height: 40px !important; line-height: 38px !important;
    border: 1px solid #cbd5e1; border-radius: 6px; 
    font-size: 13px !important; box-sizing: border-box !important; vertical-align: middle !important;
    padding: 0 35px 0 12px !important; 
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23475569%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%2F%3E%3C%2Fsvg%3E") no-repeat right 14px center / 14px !important;
}
/* =================================================================
     [PART 2] 가격창 요격 및 항목별 사이즈 제어 구역
     ================================================================= */
.extraVarsList12 select.mp-dependent { margin-left: 6px !important; }
/* =======가격창 요격 및 가상요소 원(::after)=== */

/* 가상 요소 중복 주입 영구 파괴 */
.extraVarsList12 .jungo td::after, .extraVarsList12 .jungo tr td::after, .extraVarsList12 .jungo tr::after,
.extraVarsList12 td::after, .extraVarsList12 tr::after, .td-price-zone::after { content: none !important; display: none !important; }

/* 1️⃣ [텍스트 입력창 모드 전용 가격창] */
.extraVarsList12 .jungo td.td-price-zone { 
    display: inline-flex !important; align-items: center !important; gap: 8px !important; 
    padding: 12px 0 !important; position: relative !important; width: auto !important; white-space: nowrap !important; 
}
/* 가격창 내부 진짜 글자 '.unit-won' 제어 (폰트 스타일 속성 !important 제거) */
.extraVarsList12 .jungo td.td-price-zone .unit-won,
.extraVarsList12 .jungo input[id^="extra_vars1"] + .unit-won,
.extraVarsList12 .jungo input[name*="extra_vars1"] + .unit-won {
    display: inline-block !important; visibility: visible !important; font-size: 16.5px; 
    font-weight: 700; color: #ef4444; line-height: normal;
    margin: 0 0 0 6px !important; transform: translateY(4px) !important; 
}
.extraVarsList12 .jungo td.td-price-zone p { display: none !important; }

/* 2️⃣ [라디오/체크박스 선택 모드 전용 가격창] */
.extraVarsList12 .jungo td.is-price-radio-mode {
    display: inline-flex !important; flex-wrap: wrap !important; align-items: center !important;
    gap: 5px 4px !important; max-width: 550px !important; width: auto !important; white-space: normal !important; position: relative !important;
}
.extraVarsList12 .jungo td.is-price-radio-mode .unit-won { display: none !important; visibility: hidden !important; }
.extraVarsList12 .jungo td.is-price-radio-mode li { display: inline-flex !important; align-items: center !important; position: relative !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.extraVarsList12 .jungo td.is-price-radio-mode label { width: auto !important; max-width: none !important; min-width: none !important; display: inline-flex !important; position: relative !important; z-index: 5 !important; }

/* =========각 항목별 클래스 정밀 조준을 통한 절대 독립 사이즈 제어 구역======== */

/* 🔒 [제목창 & 가격창 독립 제어] */
.extraVarsList12 .jungo input[id="postTitle"], .extraVarsList12 .jungo input[name="title"] { width: 100% !important; max-width: 100% !important; min-width: 100% !important; }
.extraVarsList12 .jungo td.td-price-zone input { width: 300px !important; max-width: 300px !important; min-width: 300px !important; }

/* 🔒 [연락처 + 이메일 하이브리드 배열 절대 방어선] */
.extraVarsList12 .jungo td .inline-contact-group { display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important; max-width: 710px !important; box-sizing: border-box !important; }
.extraVarsList12 .jungo td .inline-contact-group .email-container-wrap { display: inline-flex !important; align-items: center !important; gap: 4px !important; }

/* 📞 연락처(90px) & ✉️ 이메일(260px) 입력창 폭 최적화 */
.extraVarsList12 .jungo td .inline-contact-group .td-phone-zone input { width: 90px !important; max-width: 90px !important; min-width: 90px !important; }
.extraVarsList12 .jungo td .inline-contact-group .td-email-zone input { width: 260px !important; max-width: 260px !important; min-width: 260px !important; }

/* 이메일 도메인 선택 셀렉터 폭 단독 슬림화 (세부 스타일 속성 !important 제거) */
.extraVarsList12 .jungo td .inline-contact-group select {
    width: 130px !important; max-width: 130px !important; min-width: 130px !important;
    height: 40px !important; line-height: 38px !important; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; padding: 0 12px; box-sizing: border-box;
}

/* 🔒 [년식(200px) & 운행km(180px) 입력창 독립 제어] */
.extraVarsList12 .jungo td.td-year-zone input { width: 200px !important; max-width: 200px !important; min-width: 200px !important; }
.extraVarsList12 .jungo td.td-km-zone input { width: 180px !important; max-width: 180px !important; min-width: 180px !important; }

/* 안내 배지 및 설명 텍스트 라인 유지 */
.extraVarsList12 .jungo td.td-price-zone, .extraVarsList12 .jungo td.td-email-zone, .extraVarsList12 .jungo td.td-year-zone, .extraVarsList12 .jungo td.td-km-zone { white-space: nowrap !important; }
.extraVarsList12 .jungo td p { white-space: normal !important; margin-top: 8px !important; }
/* =================================================================
     [PART 3] 라디오/체크박스 캡슐화 및 문서 상태창, 광고 구역
     ================================================================= */
/* 1️⃣ 라디오/체크박스 캡슐 배지화 구역 */
.extraVarsList12 .jungo td:has(ul), 
.extraVarsList12 .jungo td:has(.xu) { max-width: 870px !important; overflow: visible !important; }

.extraVarsList12 .jungo td ul, 
.extraVarsList12 .jungo td .xu { 
    list-style: none !important; padding: 0 !important; margin: 0 !important; 
    display: inline-flex !important; flex-wrap: wrap !important; gap: 5px 4px !important; 
    max-width: 550px !important; white-space: normal !important; 
}
.extraVarsList12 .jungo td li { list-style: none !important; display: inline-flex !important; align-items: center !important; }

/* 순정 체크박스/라디오 숨김 */
.extraVarsList12 .jungo td input[type="radio"], 
.extraVarsList12 .jungo td input[type="checkbox"] { 
    position: absolute !important; width: 1px !important; height: 1px !important; 
    padding: 0 !important; margin: -1px !important; overflow: hidden !important; 
    clip: rect(0,0,0,0) !important; border: 0 !important; opacity: 0 !important;
}

/* 대체 실선 라벨 배지 디자인 */
.extraVarsList12 .jungo td label { 
    font-size: 11px; font-weight: 500; color: #475569; background: #ffffff; 
    border: 1px solid #cbd5e1; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
    padding: 3px 8px 3px 6px; border-radius: 5px; cursor: pointer; 
    display: inline-flex !important; align-items: center !important; gap: 3px; 
    letter-spacing: -0.5px; transition: all 0.15s ease; 
}
.extraVarsList12 .jungo td li:hover label { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }

/* 활성화 점등 스타일 */
.extraVarsList12 .jungo td input:checked + label,
.extraVarsList12 .jungo td label.checked { 
    background: #e0e7ff !important; border-color: #4f46e5 !important; 
    color: #4f46e5 !important; font-weight: 600 !important; 
}

/* 판매지역(extra_vars2) 지도 핀 아이콘 주입 */
.extraVarsList12 .jungo tr:has([name*="extra_vars2"]) td label::before {
    content: "" !important; display: inline-block !important; width: 11px; height: 11px; vertical-align: middle;
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2364748b%27%20stroke-width%3D%272.5%27%3E%3Cpath%20d%3D%27M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
.extraVarsList12 .jungo tr:has([name*="extra_vars2"]) td input:checked + label::before,
.extraVarsList12 .jungo tr:has([name*="extra_vars2"]) td label.checked::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%234f46e5%27%20stroke-width%3D%272.5%27%3E%3Cpath%20d%3D%27M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E") !important;
}


/* 2️⃣ 문서 상태창 및 기타 셀렉터 디자인 정리 */
.extraVarsList12 select[name*="status"],
.extraVarsList12 select[id*="status"],
.extraVarsList12 .jungo tr:last-child td select {
    width: 160px !important; max-width: 160px !important; min-width: 160px !important;
    height: 40px !important; line-height: 38px !important; padding: 0 35px 0 12px !important;
    border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; color: #334155;
    box-sizing: border-box !important; vertical-align: middle; display: inline-block !important; margin: 0; outline: none;
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23475569%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%2F%3E%3C%2Fsvg%3E") no-repeat right 14px center / 14px !important;
}
.extraVarsList12 select[name*="status"]:focus,
.extraVarsList12 select[id*="status"]:focus { border-color: #4f46e5 !important; background-color: #f8fafc !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important; }


/* 3️⃣ 타이틀 래퍼, 달력(구입시기) 버튼 및 배너 하단 마무리 */
.extraVarsList12 .title-wrapper { width: 100% !important; display: flex !important; align-items: center !important; gap: 8px !important; }
.extraVarsList12 .title-wrapper .itx_wrp { flex: 1 !important; }
.extraVarsList12 .title-wrapper .itx_wrp label { display: none !important; }
.extraVarsList12 .load-btn-box { flex-shrink: 0 !important; }
.extraVarsList12 .load-btn-box button.bd_btn { height: 40px !important; padding: 0 16px !important; border: 1px solid #cbd5e1; background: #ffffff; color: #475569; border-radius: 6px; font-size: 13px; font-weight: 700; }

/* 구입시기 달력 매칭 구역 */
.extraVarsList12 .jungo td br { display: none !important; }
.extraVarsList12 .jungo td .input-append, 
.extraVarsList12 .jungo td div[id^="ext_"] { display: inline-flex !important; align-items: center !important; gap: 4px !important; width: auto !important; }
.extraVarsList12 .jungo td input[id^="date_"] { width: 180px !important; max-width: 180px !important; display: inline-block !important; }
.extraVarsList12 .jungo td input[type="button"] { 
    width: auto !important; height: 40px !important; padding: 0 14px !important; 
    border: 1px solid #cbd5e1; background: #ffffff; color: #64748b; border-radius: 6px; 
    font-size: 12.5px; font-weight: 600; white-space: nowrap; display: inline-block; 
}
.extraVarsList12 .jungo td input[type="button"]:hover { background: #fff5f5; border-color: #fca5a5; color: #ef4444; }

/* 최하단 캡션 및 광고 배너 */
.extraVarsList12 table.jungo caption { text-align: left !important; padding: 0 0 8px 4px !important; caption-side: top !important; }
.extraVarsList12 table.jungo caption strong em { color: #ef4444; font-style: normal; }
.extraVarsList12 .banner-row-container { text-align: center !important; padding: 20px 0 !important; }
.extraVarsList12 .banner-row-container img { max-width: 100% !important; height: auto !important; border-radius: 6px; }


/* ==========================================================================
   [추가 PART 1] 글쓰기 하단 버튼 그룹 및 체크박스/라디오 패널 구역
   ========================================================================== */
/* 버튼을 감싸는 전체 컨테이너 */
.write-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;               /* 버튼 사이의 간격 */
    margin-top: 30px;        /* 상단 본문과의 간격 */
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eef1f5; /* 상단 구분선 */
}

/* 모든 버튼의 공통 기본 스타일 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 8px;      /* 부드러운 라운딩 효과 */
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* 버튼 클릭 시 효과 */
.action-btn:active {
    transform: scale(0.98);
}

/* ◀ [왼쪽 배치] 돌아가기 버튼 디자인 및 위치 강제 */
.action-btn--cancel {
    order: 1;                  /* 가장 첫 번째(왼쪽)로 시각적 순서 변경 */
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #6b7280;
}
.action-btn--cancel:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* ▶ [오른쪽 배치 그룹] 임시저장 버튼 (차분한 톤다운 테마) */
.action-btn--temp {
    order: 2;                  /* 두 번째 순서 */
    margin-left: auto;         /* ★ 이 속성이 왼쪽 버튼과 오른쪽 버튼들을 양끝으로 갈라놓습니다 */
    background-color: #ffffff;
    border-color: #cbd5e1;     /* 연한 회색 테두리 */
    color: #475569;            /* 차분한 다크 그레이 */
}
.action-btn--temp:hover {
    background-color: #f8fafc; /* 아주 은은한 미색 배경 */
    border-color: #94a3b8;     /* 테두리 살짝 진하게 */
    color: #1e293b;            /* 글자색 살짝 진하게 */
}

/* ▶ 미리보기 버튼 */
.action-btn--secondary {
    order: 3;                  /* 세 번째 순서 */
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
.action-btn--secondary:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ▶ 등록 버튼 */
.action-btn--primary {
    order: 4;                  /* 네 번째(가장 오른쪽) 순서 */
    background-color: #2563eb;
    color: #ffffff;
}
.action-btn--primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 모바일 환경 대응 (화면이 아주 좁아질 때) */
@media (max-width: 480px) {
    .write-action-group { gap: 8px; }
    .action-btn--temp { margin-left: 0; } /* 양끝 분할 해제 */
    .action-btn {
        flex: 1 1 calc(50% - 8px); /* 2개씩 채워지도록 설정 */
        height: 44px; padding: 0 8px; font-size: 13px;
    }
}

/* 전체 옵션을 감싸는 부모 패널 박스 */
.opt_chk.clear {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
    padding: 18px 20px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    margin-top: 20px; margin-bottom: 20px; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.opt_chk.clear::after { display: none; } /* 기존 clear 무력화 */

/* 각 옵션 항목 세션 블록 */
.opt_chk .sk_section {
    display: inline-flex; align-items: center; gap: 12px;
    float: none !important; /* 라이믹스 순정 float 레이아웃 강제 파괴를 위해 유지 */
    margin: 0 !important;
}

/* 제목 색상 선택기 래퍼 */
.opt_chk .itx_wrp.color_wrp { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.opt_chk .itx_wrp.color_wrp label { font-size: 13px; color: #475569; font-weight: 500; }

/* 컬러 입력 텍스트 박스 */
.opt_chk .itx.color-indicator {
    width: 70px; height: 32px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 6px;
    background-color: #ffffff; font-size: 13px; text-align: center; outline: none; transition: border-color 0.2s;
}
.opt_chk .itx.color-indicator:focus { border-color: #2563eb; }

/* 커스텀 체크박스 & 라디오 디자인 */
.opt_chk input[type="checkbox"],
.opt_chk input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; border: 1px solid #cbd5e1; border-radius: 4px;
    background-color: #ffffff; margin: 0; display: inline-block; vertical-align: middle;
    cursor: pointer; position: relative; transition: background-color 0.2s, border-color 0.2s;
}
.opt_chk input[type="radio"] { border-radius: 50%; } /* 라디오는 정원형 */
.opt_chk input[type="checkbox"]:hover,
.opt_chk input[type="radio"]:hover { border-color: #94a3b8; }

/* 체크박스 선택 활성화 상태 및 내부 체크 기호(✓) 생성 */
.opt_chk input[type="checkbox"]:checked { background-color: #2563eb; border-color: #2563eb; }
.opt_chk input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 라디오 버튼 선택 활성화 상태 및 내부 중앙 점 생성 */
.opt_chk input[type="radio"]:checked { border-color: #2563eb; background-color: #ffffff; }
.opt_chk input[type="radio"]:checked::after {
    content: ''; position: absolute; width: 10px; height: 10px;
    background-color: #2563eb; border-radius: 50%; left: 3px; top: 3px;
}

/* 글자 레이블 디자인 */
.opt_chk label {
    font-size: 13.5px; color: #334155; font-weight: 500; cursor: pointer;
    margin: 0; display: inline-block; vertical-align: middle; user-select: none;
}
.opt_chk label b { font-weight: 600; }

/* ==========================================================================
   [추가 PART 2] 글쓰기 화면 모바일 반응형 및 스타일 빌딩 (768px/640px 최적화)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. 외부 컨테이너 여백 최적화 및 각 항목(행) 경계선 단 한 줄로 단일화 */
    .extraVarsList12 { width: 100% !important; padding: 12px 4px !important; box-sizing: border-box !important; }
    .extraVarsList12 table.jungo { width: 100% !important; table-layout: auto !important; display: block !important; }
    .extraVarsList12 table.jungo tbody { display: block !important; width: 100% !important; }
    
    /* 항목 간 경계선 통합 잠금 */
    .extraVarsList12 table.jungo tr {
        display: block !important; width: 100% !important; padding: 10px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important; 
    }
    .extraVarsList12 table.jungo tr:last-child { border-bottom: none !important; }
    
    /* 2. th와 td 사이의 중복 테두리 제거 및 모바일 세로 레이아웃 전환 */
    .extraVarsList12 table.jungo th { 
        display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important;
        font-size: 13.5px; font-weight: 700; color: #334155; padding: 2px 4px 6px 4px !important; 
        border-bottom: none !important; 
    }
    .extraVarsList12 table.jungo td { 
        display: block !important; width: 100% !important; max-width: 100% !important;
        padding: 0 4px !important; border-bottom: none !important; 
    }
    .extraVarsList12 #postTitle, 
    .extraVarsList12 input[type="text"]:not(#extra_vars1) { width: 100% !important; box-sizing: border-box !important; }

    /* 3. [물품종류] 대분류/소분류 수직 스택 정렬 */
    .extraVarsList12 .category-select-wrapper { 
        display: flex !important; flex-direction: column !important; 
        align-items: flex-start !important; gap: 8px !important; width: 100% !important; 
    }
    .extraVarsList12 select.mp-input, 
    .extraVarsList12 select.mp-dependent { width: 100% !important; max-width: 100% !important; min-width: 100% !important; margin-left: 0 !important; }

    /* 4. [연락처] 연락처와 이메일 그룹 수직 강제 드롭 분할 */
    .extraVarsList12 .inline-contact-group { 
        display: flex !important; flex-direction: column !important; 
        align-items: flex-start !important; gap: 12px !important; width: 100% !important; 
    }
    .extraVarsList12 .contact-splitter { display: none !important; visibility: hidden !important; }
    .extraVarsList12 .td-phone-zone, 
    .extraVarsList12 .td-email-zone { display: flex !important; width: 100% !important; max-width: 100% !important; }
    .extraVarsList12 .td-email-zone { align-items: center !important; gap: 6px !important; }
    
    .extraVarsList12 .td-phone-zone input, 
    .extraVarsList12 .td-phone-zone select, 
    .extraVarsList12 .td-email-zone .email-container-wrap, 
    .extraVarsList12 .td-email-zone input { flex: 1 !important; width: 100% !important; }

    /* 5. 필수항목(*) 안내문구 레이아웃 수장 및 쪼개짐 완벽 방어 */
    .extraVarsList12 table.jungo caption { 
        display: block !important; width: 100% !important; white-space: nowrap !important; 
        text-align: left !important; padding: 0 0 12px 4px !important; caption-side: top !important; 
    }
    .extraVarsList12 table.jungo caption strong em { color: #ef4444; font-style: normal; }

    /* 6. 옵션 체크 구역 모바일 최적화 수직 패널 전환 */
    .opt_chk.clear {
        display: flex !important; flex-direction: column !important; align-items: flex-start !important;
        gap: 14px !important; padding: 16px !important; width: 100% !important; box-sizing: border-box !important;
    }
    .opt_chk .sk_section {
        display: flex !important; flex-wrap: wrap !important; width: 100% !important; gap: 14px !important; float: none !important; 
    }
    .opt_chk input[type="checkbox"],
    .opt_chk input[type="radio"] { width: 18px !important; height: 18px !important; margin: 0 !important; vertical-align: middle !important; }
    .opt_chk label { font-size: 13.5px; color: #334155; margin-right: 4px; }

    /* 7. 태그 영역 모바일 콤팩트 스케일링 */
    .tag.itx_wrp { padding: 14px 16px !important; }
    .tag.itx_wrp .itx { height: 42px !important; line-height: 42px !important; font-size: 13.5px; }
}
