/* public_html/assets/common/online.css
   NX ONLINE — Ultimate v1 (Stable Refactor)
   - 목적: "기능은 그대로" + 중복/패치 덩어리 정리 + 유지보수성 상승
   - 컬러: core.css tokens 사용
     --color-primary / --color-secondary / --color-accent / --color-highlight
     --c-ink / --c-ink-2 / --c-white / --color-bg
   - 브레이크포인트: 주 기준 1040/640 (단, 컴포넌트 특성상 900/820/768/720/520/860 유지)
   - 주의: 도킹(aside fixed) 로직은 JS가 책임. CSS는 "기본 흐름"만 보장.
*/

/* =========================================================
   O0) THEME BRIDGE (core tokens → nx vars)
========================================================= */
:root {
  --nx-ink: var(--c-ink, #111111);
  --nx-ink-2: var(--c-ink-2, #333333);
  --nx-white: var(--c-white, #ffffff);
  --nx-bg: var(--color-bg, #eeefef);

  --nx-primary: var(--color-primary, #004d43);
  --nx-secondary: var(--color-secondary, #006269);
  --nx-accent: var(--color-accent, #008b92);
  --nx-highlight: var(--color-highlight, #dde57e);

  /* weak tones (fallback) */
  --nx-accent-weak: rgba(0, 139, 146, 0.14);
  --nx-focus-ring: rgba(0, 139, 146, 0.14);

  /* stepper sticky top (JS getOffset과 같이 쓰는 값) */
  --nx-stepper-top: 86px;

  /* native validation scroll safe area (JS에서 필요 시 덮어쓰기 가능) */
  --nx-sticky-offset: 0px;
}

/* color-mix 지원 브라우저에서만 더 정확한 weak 톤 생성 */
@supports (color: color-mix(in srgb, red, transparent)) {
  :root {
    --nx-accent-weak: color-mix(in srgb, var(--nx-accent) 14%, transparent);
    --nx-focus-ring: color-mix(in srgb, var(--nx-accent) 18%, transparent);
  }
}

/* =========================================================
   O1) BASE LAYOUT
========================================================= */
.nx-apply {
  padding: 40px 0;
}

.nx-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* hero */
.nx-hero {
  margin-bottom: 18px;
  z-index: 1;
}

.nx-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #6b7280;
  font-weight: 700;
}

.nx-title {
  margin: 8px 0 6px;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
}

.nx-desc {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

/* main layout: 기본 1컬럼 (요약패널 도킹은 JS에서 fixed로 처리) */
.nx-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* =========================================================
   O2) CARD + TYPOGRAPHY
========================================================= */
.nx-card {
  background: var(--nx-white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.nx-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-card-body {
  padding: 18px;
  max-width: 100%;
}

.nx-h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--nx-ink);
}

.nx-h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--nx-ink);
}

/* badges */
.nx-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nx-primary);
  color: #fff;
  font-weight: 800;
}

.nx-badge-soft {
  background: #f1f5f9;
  color: var(--nx-ink);
  border: 1px solid #e5e7eb;
  font-weight: 800;
}

/* required hints */
.nx-required-hint {
  color: #6b7280;
  font-size: 13px;
}
.nx-required-hint i {
  color: #ef4444;
  font-style: normal;
  font-weight: 900;
  margin-right: 6px;
}
.req {
  color: #ef4444;
  font-weight: 900;
  margin-right: 6px;
}

/* divider */
.nx-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 18px 0;
}

/* =========================================================
   O3) FORM CONTROLS
========================================================= */

/* 2-col grid: (기존 860 기준 유지) */
.nx-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .nx-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.nx-span2 {
  grid-column: 1 / -1;
}

.nx-field label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--nx-ink);
}

.nx-field input[type="text"],
.nx-field input[type="url"],
.nx-field input[type="password"],
.nx-field input[type="number"],
.nx-field input[type="email"],
.nx-field input[type="tel"],
.nx-field select,
.nx-field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  background: var(--nx-white);
  outline: none;
  color: var(--nx-ink);
  box-sizing: border-box;
  appearance: auto; /* reset 충돌 대비 */
}

.nx-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* focus: fallback + color-mix */
.nx-field input:focus,
.nx-field textarea:focus,
.nx-field select:focus {
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 4px var(--nx-focus-ring);
}
@supports (color: color-mix(in srgb, red, white)) {
  .nx-field input:focus,
  .nx-field textarea:focus,
  .nx-field select:focus {
    border-color: color-mix(in srgb, var(--nx-accent) 45%, #e5e7eb);
  }
}

.nx-help {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.nx-note {
  padding: 12px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #374151;
  line-height: 1.55;
  font-size: 13px;
}

.nx-muted {
  color: #6b7280;
}

/* split inputs */
.nx-split {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nx-split input {
  text-align: center;
}

/* email */
.nx-email {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nx-email input {
  min-width: 0;
}
.nx-email select {
  width: 180px;
}

/* address */
.nx-address {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nx-address .nx-zip {
  width: 120px;
  text-align: center;
}
.nx-address .nx-addr-btn {
  white-space: nowrap;
}

.nx-address2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 860px) {
  .nx-address2 {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* =========================================================
   O4) BUTTONS + ACTIONS
========================================================= */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  background: var(--nx-white);
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-btn:hover {
  background: #f8fafc;
}

.nx-btn-primary {
  background: var(--nx-primary);
  color: #fff;
  border-color: var(--nx-primary);
}
.nx-btn-primary:hover {
  background: color-mix(in srgb, var(--nx-primary) 92%, #000);
}

.nx-btn-ghost {
  background: var(--nx-white);
}

.nx-btn-sm {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.nx-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================================================
   O5) LISTS / EMPTY / ACCESSIBILITY
========================================================= */
.nx-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.7;
}
.nx-list li {
  margin: 6px 0;
}

.nx-empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #6b7280;
  background: #f8fafc;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================
   O6) TERMS (기본) + TERMS CARD (One Card)
========================================================= */
.nx-terms-list {
  display: grid;
  gap: 12px;
}

.nx-terms-doc {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.nx-terms-summary {
  cursor: pointer;
  font-weight: 900;
  padding: 12px 14px;
  list-style: none;
  color: var(--nx-ink);
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.nx-terms-doc[open] .nx-terms-summary {
  background: #f1f5f9;
}

.nx-terms-box {
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  color: #374151;
  line-height: 1.6;
  font-size: 13px;
}

.nx-mt {
  margin-top: 12px;
}

/* (legacy) terms layout */
.nx-terms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* upload/terms 공용 체크 라인: 기본은 align-center */
.nx-check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #374151;
  font-size: 13px;
}
.nx-check input {
  width: 16px;
  height: 16px;
}

/* ===== One Card polish ===== */
.nx-terms-card .nx-card-body {
  padding: 18px 20px;
}

/* 상단 안내 bullets */
.nx-terms-card .nx-bullets {
  margin: 0;
  padding-left: 18px;
}
.nx-terms-card .nx-bullets li {
  margin: 6px 0;
  line-height: 1.6;
}

/* 구분선 */
.nx-terms-card .nx-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 14px 0 16px;
  border: 0;
}

/* 카드 안의 terms-doc은 내용만 */
.nx-terms-card .nx-terms-doc {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.nx-terms-card .nx-terms-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.nx-terms-card .nx-terms-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

/* 약관 본문 박스 */
.nx-terms-card .nx-terms-box {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
}

.nx-terms-card .nx-terms-scroll {
  max-height: 180px;
  overflow: auto;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
}

/* terms 카드 안에서는 체크가 "문장" 기준으로 정렬 */
.nx-terms-card .nx-check {
  align-items: flex-start;
  margin-top: 12px;
}
.nx-terms-card .nx-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.nx-terms-card .nx-check span {
  line-height: 1.5;
}
.nx-terms-card .nx-help {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}
.nx-terms-card .nx-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================================================
   O7) ATTACH LIST (문서/파일 첨부 리스트)
========================================================= */
.nx-attach-list {
  display: grid;
  gap: 14px;
}

.nx-attach-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.nx-attach-label {
  font-weight: 900;
  font-size: 13px;
  color: var(--nx-ink);
  padding-top: 10px;
}

.nx-attach-body input[type="file"] {
  width: 100%;
}

@media (max-width: 720px) {
  .nx-attach-row {
    grid-template-columns: 1fr;
  }
  .nx-attach-label {
    padding-top: 0;
  }
}

/* =========================================================
   O8) SUBMIT STACK
========================================================= */
.nx-submit-stack {
  display: grid;
  gap: 14px;
}

/* =========================================================
   O9) MOBILE BLOCK (주의: <=900에서 데스크탑 폼 숨김)
========================================================= */
.nx-mobile-block {
  display: none;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .nx-mobile-block {
    display: block;
  }
  .nx-layout {
    display: none !important;
  }
  .nx-stepper-sticky {
    display: none !important;
  }
  .nx-desktop-only {
    display: none !important;
  }
}

/* =========================================================
   O10) UPLOAD (preview)
========================================================= */
.nx-upload {
  display: grid;
  gap: 10px;
}

.nx-preview {
  position: relative;
  width: 260px;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-white);
}
.nx-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.delete-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--nx-ink);
  border-radius: 999px;
  opacity: 0.85;
}
.delete-image:before {
  content: "×";
  color: #fff;
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nx-preview-grid .picture_item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* upload grid (thumbnail style) */
.nx-upload-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.nx-upload-item {
  position: relative;
  width: 110px;
}
.nx-upload-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
}
.nx-upload-del {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 24px;
}
.nx-upload-name {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.8;
}
.nx-upload-preview {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nx-picture-item img {
  display: block;
}
.nx-upload-item.is-fail {
  opacity: 0.6;
}

/* "파일 첨부 안함" 체크 */
.nx-noattach {
  margin-left: 12px;
  white-space: nowrap;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   O11) OPTIONS (booth/facility cards)
========================================================= */
.nx-options {
  display: grid;
  gap: 10px;
}

.nx-option {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--nx-white);
}

.nx-option-title {
  font-weight: 900;
  color: var(--nx-ink);
}

.nx-option-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nx-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nx-secondary);
  color: #fff;
  font-weight: 900;
}

.nx-chip-soft {
  background: #f1f5f9;
  color: var(--nx-ink);
  border: 1px solid #e5e7eb;
  font-weight: 900;
}

.nx-option-qty input {
  width: 110px;
  text-align: center;
}

/* =========================================================
   O12) SUMMARY (left/right summary blocks)
========================================================= */
.nx-summary {
  display: grid;
  gap: 10px;
}
.nx-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #374151;
}
.nx-summary b {
  color: var(--nx-ink);
}
.nx-summary-total {
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 16px;
}

.nx-mini {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.nx-mini-title {
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--nx-ink);
}
.nx-mini-item {
  color: #374151;
  line-height: 1.6;
  font-size: 13px;
  max-width: 100%;
}

/* money/price: line-break 금지 */
.nx-summary b,
.nx-summary em,
.nx-opt-price,
.nx-line-sum-pill,
.nx-line-sum-pill b,
[data-line-sum] {
  white-space: nowrap;
  word-break: keep-all;
}

/* =========================================================
   O13) ASIDE (요약패널)
========================================================= */
/* 기본은 문서 흐름. 도킹/fixed/left/width는 JS에서 결정 */
.nx-aside,
.nx-aside-card {
  position: static;
}

.nx-aside .nx-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   O14) STEPPER (single source of truth)
========================================================= */
.nx-stepper-sticky {
  position: sticky;
  top: var(--nx-stepper-top);
  z-index: 90;
  padding: 10px 0 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

/* stuck state: .is-stuck */
.nx-stepper-sticky.is-stuck {
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

#nx-stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#nx-stepper a[data-target] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  white-space: nowrap;
  word-break: keep-all;
  text-decoration: none;

  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    border-color 0.14s ease;
}
#nx-stepper a[data-target]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

#nx-stepper .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.08);
  color: var(--nx-ink);
}

#nx-stepper .label {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: var(--nx-ink);
}

#nx-stepper li.is-active a[data-target] {
  background: var(--nx-accent-weak);
  border-color: color-mix(in srgb, var(--nx-accent) 35%, rgba(15, 23, 42, 0.1));
  box-shadow: 0 18px 40px rgba(0, 139, 146, 0.16);
}
#nx-stepper li.is-active .num {
  background: var(--nx-accent);
  color: #fff;
}

@keyframes nxStepPop {
  from {
    transform: translateY(0) scale(0.985);
  }
  to {
    transform: translateY(-1px) scale(1);
  }
}
#nx-stepper li.is-active a[data-target] {
  animation: nxStepPop 0.16s ease-out;
}

.nx-section.nx-current .nx-card:first-of-type {
  border-color: color-mix(in srgb, var(--nx-accent) 30%, #e5e7eb);
  box-shadow: 0 18px 46px rgba(0, 139, 146, 0.14);
}
.nx-section.nx-current .nx-card:first-of-type .nx-card-head {
  background: linear-gradient(90deg, var(--nx-accent-weak), transparent);
}

/* stepper small: keep */
@media (max-width: 520px) {
  #nx-stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  #nx-stepper::-webkit-scrollbar {
    height: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nx-stepper a[data-target] {
    transition: none;
  }
  #nx-stepper li.is-active a[data-target] {
    animation: none;
  }
}

/* =========================================================
   O15) BOOTH/FACILITY OPTIONS (nx-opt list)
========================================================= */
.nx-card-group {
  margin-top: 16px;
}

.nx-opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nx-opt {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.nx-opt-left {
  min-width: 220px;
}
.nx-opt-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nx-opt-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nx-tag {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.nx-tag-soft {
  background: rgba(0, 0, 0, 0.05);
}
.nx-tag-warn {
  background: rgba(221, 229, 126, 0.55);
}

.nx-opt-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* qty pack */
.nx-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 8px 10px;
}
.nx-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.nx-qty-input {
  width: 74px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
  font-weight: 900;
}

.nx-unit {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.nx-opt-price {
  background: var(--color-primary, #004d43);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}
.nx-opt-price.is-consult {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* line sum / summary lines */
.nx-option-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.nx-line-sum {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-primary, #111827);
}
.nx-line-sum-label {
  font-weight: 700;
  color: #6b7280;
  margin-right: 6px;
}

.nx-line-sum-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f5f7;
  font-size: 13px;
  white-space: nowrap;
}

/* selected lines: final(2-line) */
.nx-sum-lines {
  display: grid;
  gap: 0; /* final: 줄 사이 여백 제거 */
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: clamp(140px, 22vh, 260px);
  padding-right: 6px;
}

.nx-sum-line {
  width: 100%;
  max-width: 100%;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nx-sum-line:last-child {
  border-bottom: 0;
}

.nx-sum-line > span,
.nx-sum-name {
  font-size: 13px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-sum-line > b,
.nx-sum-price {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  position: relative;
  padding-left: 14px;
  align-self: flex-end;
}

.nx-sum-line > b::before,
.nx-sum-price::before {
  content: "ㄴ";
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.nx-sum-price.is-consult {
  opacity: 0.8;
  font-weight: 800;
}

/* per-area heights (final) */
#sum_booth_lines.nx-sum-lines {
  max-height: 96px;
}
#sum_facility_lines.nx-sum-lines {
  max-height: 150px;
}

/* responsive tweaks */
@media (max-width: 820px) {
  .nx-opt-right {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  #sum_booth_lines.nx-sum-lines {
    max-height: 84px;
  }
  #sum_facility_lines.nx-sum-lines {
    max-height: 130px;
  }
}

@media (max-width: 640px) {
  .nx-opt {
    flex-direction: column;
  }
  .nx-opt-left {
    min-width: 0;
  }
  .nx-opt-right {
    justify-content: space-between;
  }
  .nx-qty {
    width: 100%;
    justify-content: center;
  }
}

/* badges in head */
.nx-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.nx-opt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nx-opt-head .nx-opt-title {
  flex: 1 1 auto;
  min-width: 0;
}
.nx-opt-price--unit {
  padding: 6px 10px;
  font-size: 13px;
}

/* =========================================================
   O16) UPLOAD / LINE (misc)
========================================================= */
.nx-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.nx-line-title {
  font-weight: 600;
}
.nx-line-meta {
  display: flex;
  gap: 10px;
  color: #555;
  font-weight: 800; /* v3 patch final */
}

/* =========================================================
   O17) PC DOCKING SAFE (final: 카드 자체 스크롤은 금지)
========================================================= */
@media (min-width: 1024px) {
  .nx-aside .nx-card {
    max-height: none;
    overflow: visible;
  }
}

/* =========================================================
   O18) ADDRESS / UPLOAD ROWS (legacy blocks)
========================================================= */
.nx-address-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nx-address-top #zipCode {
  width: 140px;
  flex: 0 0 auto;
}
.nx-address-top .nx-btn {
  white-space: nowrap;
}
.nx-address-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.nx-upload-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nx-upload-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid #eef2f5;
  border-radius: 14px;
  background: #fff;
}
.nx-upload-label label {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.nx-upload-control input[type="file"] {
  width: 100%;
}
@media (max-width: 900px) {
  .nx-upload-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   O19) NATIVE VALIDATION (scroll safe)
========================================================= */
html {
  scroll-padding-top: calc(var(--nx-sticky-offset) + 90px);
}
input,
select,
textarea,
[contenteditable="true"] {
  scroll-margin-top: calc(var(--nx-sticky-offset) + 90px);
}
