/* 추천 묶음 모달 + 공유 관련 */
.share-set-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-set-modal.hidden {
  display: none;
}

.share-set-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.share-set-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 600px) {
  .share-set-modal {
    align-items: center;
  }
  .share-set-modal__panel {
    border-radius: 16px;
    max-height: 85vh;
  }
}

.share-set-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.share-set-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.share-set-modal__close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.share-set-modal__body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
}

.share-set-modal__label {
  display: block;
  font-size: 13px;
  color: #666;
  margin: 10px 0 6px;
}

.share-set-modal__count {
  font-weight: 700;
  color: #2563eb;
}

.share-set-modal__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-set-modal__subHint {
  margin: 8px 2px 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.share-set-modal__seg {
  margin: 0 0 4px;
}

.share-set-modal__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 14px;
}

.share-set-modal__cardTitle {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-set-modal__cardActions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.share-set-modal__cardEdit {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.share-set-modal__cardEdit:hover {
  background: #f9fafb;
}

.share-set-modal__cardX {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  color: #888;
}

.share-set-modal__btnAdd {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.share-set-modal__addPanel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.share-set-modal__search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.share-set-modal__pickList {
  max-height: 200px;
  overflow-y: auto;
}

.share-set-modal__pickRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
}

.share-set-modal__pickThumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 64px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.share-set-modal__pickThumb--empty {
  display: inline-block;
}

.share-set-modal__pickCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.share-set-modal__pickPrice {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}

.share-set-modal__pickLabel {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-set-modal__pickMeta {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-set-modal__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.share-set-modal__footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
}

.share-set-modal__btnGhost {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.share-set-modal__btnPrimary {
  flex: 2;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* 공유 링크 관리 — 마이페이지(10100) 위에 표시 · 카드 리스트 */
.share-links-modal {
  z-index: 10200;
}

.share-links-modal.share-links-modal--inline-host {
  /* 패널은 마이페이지 마운트로 이동 — 호스트는 숨김 유지 */
  pointer-events: none;
}

.share-links-modal__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.share-links-modal__back[hidden] {
  display: none !important;
}

.share-links-modal__back:hover,
.share-links-modal__back:focus-visible {
  background: #f1f5f9;
  color: #2563eb;
  outline: none;
}

.share-links-panel--inline .share-set-modal__close {
  display: none !important;
}

.share-links-panel--inline .share-links-modal__back {
  display: inline-flex !important;
}

.share-links-modal .share-set-modal__backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.share-links-modal .share-set-modal__header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
}

.share-links-modal__heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.share-links-modal .share-set-modal__title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.share-links-modal .share-set-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #64748b;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-links-modal .share-set-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 599px) {
  .share-links-modal.share-set-modal {
    align-items: stretch;
  }

  .share-links-modal .share-set-modal__panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .share-links-modal .share-set-modal__header {
    padding-top: max(14px, env(safe-area-inset-top));
    flex-shrink: 0;
  }

  .share-links-modal .share-set-modal__body {
    flex: 1;
    min-height: 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 600px) {
  .share-links-modal .share-set-modal__panel {
    max-width: min(480px, calc(100vw - 40px));
    width: calc(100% - 32px);
    max-height: min(86vh, 760px);
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  }
}

.share-links-modal__body {
  padding: 12px 16px 20px;
  min-height: 0;
  background: #f8fafc;
}

.share-links-modal__hint {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.share-links-modal__hint strong {
  color: #334155;
  font-weight: 600;
}

.share-links-modal__h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
  text-transform: none;
}

.slm-listTop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.slm-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1 1 180px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
}

.slm-listTools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 330px;
  min-width: 0;
  margin-left: auto;
}

.slm-search {
  position: relative;
  flex: 1 1 170px;
  min-width: 120px;
}

.slm-search__input,
.slm-sort__select {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
}

.slm-search__input {
  padding: 0 10px 0 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.slm-search__input::placeholder {
  color: #94a3b8;
}

.slm-sort {
  flex: 0 0 126px;
}

.slm-sort__select {
  padding: 0 28px 0 10px;
  cursor: pointer;
}

.slm-search__input:focus,
.slm-sort__select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.slm-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .slm-listTop {
    gap: 8px;
  }

  .slm-tabs,
  .slm-listTools {
    flex-basis: 100%;
  }

  .slm-listTools {
    margin-left: 0;
  }
}

.slm-tabs__btn {
  appearance: none;
  margin: 0 0 -1px;
  padding: 7px 14px 8px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
}

.slm-tabs__btn:hover {
  color: #334155;
  background: #e2e8f0;
}

.slm-tabs__btn.is-active {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
  border-bottom-color: #fff;
  box-shadow: 0 -1px 0 #fff;
}

.slm-tabs__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.slm-section {
  margin-bottom: 22px;
}

.slm-section.slm-tab-panel {
  margin-bottom: 4px;
}

.slm-section.slm-tab-panel[hidden] {
  display: none !important;
}

.slm-section:last-child {
  margin-bottom: 4px;
}

.slm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slm-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
}

.slm-filter-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
}

.slm-filter-empty[hidden] {
  display: none !important;
}

.slm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.slm-card__top {
  margin-bottom: 10px;
}

.slm-card__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.slm-card__titleRow--sub {
  margin-top: 8px;
  justify-content: flex-start;
}

.slm-card__id {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slm-card__id:hover {
  color: #2563eb;
}

.slm-card__title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slm-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  line-height: 1.3;
}

.slm-card__badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

.slm-card__meta,
.slm-card__until {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.slm-memo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  min-width: 0;
}

.slm-memo-row .slm-memo-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
}

.slm-memo-row .slm-seg {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  margin: 0;
}

.slm-card__until {
  margin: 0 0 10px;
  font-size: 11px;
  text-align: right;
}

.slm-memo-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font: inherit;
  font-size: 13px;
  color: #334155;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.slm-memo-input::placeholder {
  color: #94a3b8;
}

.slm-memo-input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.slm-memo-input.slm-memo-input--saved {
  border-color: #22c55e;
  background: #f0fdf4;
}

/* 공개 기한 — track segment */
.slm-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin: 0 0 12px;
  background: #f1f5f9;
  border-radius: 10px;
}

.slm-seg__btn,
.share-links-modal__chip {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 7px 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.slm-seg__btn:hover,
.share-links-modal__chip:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #334155;
}

.slm-seg__btn.is-active,
.slm-seg__btn.share-links-modal__chip--active,
.share-links-modal__chip.is-active,
.share-links-modal__chip--active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.slm-seg__btn:disabled,
.share-links-modal__chip:disabled {
  opacity: 0.55;
  cursor: wait;
}

.slm-toggle {
  flex-shrink: 0;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.slm-toggle.is-on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.slm-toggle:hover {
  border-color: #cbd5e1;
}

.slm-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.slm-act {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.slm-act:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.slm-act--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.slm-act--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.slm-act--primary.is-copied {
  background: #0f172a;
  border-color: #0f172a;
}

.slm-act--danger {
  border-color: transparent;
  background: transparent;
  color: #ef4444;
  margin-left: auto;
  padding-left: 8px;
  padding-right: 8px;
}

.slm-act--danger:hover {
  background: #fef2f2;
  border-color: transparent;
  color: #dc2626;
}

.share-links-modal__loading,
.share-links-modal__err {
  margin: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.share-links-modal__err {
  color: #dc2626;
}

/* 단독 페이지(share-links.html)도 동일 카드 스타일 사용 */
.share-links-page .slm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 목록장부 체크·공유 */
.listing-table .col-share {
  width: 36px;
  text-align: center;
}

.listing-toolbar__share {
  padding: 0 11px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.listing-toolbar__share:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* 고객용 링크 미리보기 — 모바일 전체화면 / PC 세로형 팝업 */
html.share-preview-modal-open,
html.share-preview-modal-open body {
  overflow: hidden !important;
}

.share-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10300;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
}

.share-preview-modal.hidden {
  display: none;
}

.share-preview-modal__backdrop {
  display: none;
}

.share-preview-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
  border-radius: 0;
  box-shadow: none;
}

/* PC: 고객 페이지 폭에 맞는 세로 팝업 (전체화면 가로 스트레치 방지) */
@media (min-width: 700px) {
  .share-preview-modal {
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .share-preview-modal__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .share-preview-modal__panel {
    width: 100%;
    max-width: 420px;
    height: min(88vh, 860px);
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: #f5f6f8;
  }

  .share-preview-modal__footer {
    padding-bottom: 14px;
  }
}

.share-preview-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

.share-preview-modal__headerMain {
  min-width: 0;
  flex: 1;
}

.share-preview-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.share-preview-modal__close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
  color: #6b7280;
}

.share-preview-modal__body {
  display: none;
}

.share-preview-modal__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.share-preview-modal__stack {
  display: none;
}

.share-preview-modal__previewHead {
  display: none;
}

.share-preview-modal__editDetails {
  display: none;
}

.share-preview-modal__editForm {
  --pp-bg: #fff;
  --pp-muted: #6b7280;
  --pp-accent: #2563eb;
  --pp-border: #e5e7eb;
  --pp-card: #fff;
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.share-preview-modal__gallerySection {
  margin-bottom: 10px;
}

.share-preview-modal__viewBlock {
  margin-top: 4px;
}

.share-preview-modal__viewRow {
  align-items: center;
}

.share-preview-modal__viewRow > span:first-child {
  color: #6b7280;
  flex: 0 0 auto;
}

.share-preview-modal__viewVal {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  padding: 0 1px 1px;
  margin: 0;
  min-width: 3ch;
  max-width: 100%;
  width: auto;
  text-align: right;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.share-preview-modal__viewVal--lg {
  font-size: 18px;
}

.share-preview-modal__viewVal--memo {
  font-weight: 500;
  width: 100%;
  text-align: right;
}

.share-preview-modal__viewVal:hover {
  border-bottom-color: #cbd5e1;
}

.share-preview-modal__viewVal:focus {
  outline: none;
  border-bottom-color: #2563eb;
}

.share-preview-modal__viewVal::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}

.share-preview-modal__viewPriceBar {
  margin: 0 0 8px;
  padding: 10px 12px;
}

.share-preview-modal__viewRow--memo {
  align-items: flex-start;
}

.share-preview-modal__edit {
  flex-shrink: 0;
}

.share-preview-modal__editForm .pp-section {
  margin-left: 0;
  margin-right: 0;
}

.share-preview-modal__editForm .pp-section:first-child {
  margin-top: 0;
}

.share-preview-modal__galleryLabel {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.share-preview-modal__ppGallery {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 420px) {
  .share-preview-modal__ppGallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.share-preview-modal__note--gallery {
  margin: 10px 0 0;
}

.share-preview-modal__priceBarMainLabel {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-muted);
  margin: 0 0 6px;
}

.share-preview-modal__editForm .pp-priceMain {
  display: flex;
  justify-content: center;
}

.share-preview-modal__priceMainInput {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--pp-accent);
  text-align: center;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.share-preview-modal__priceMainInput::placeholder {
  color: #93c5fd;
}

.share-preview-modal__note--priceBar {
  margin: 10px 0 0;
  text-align: center;
}

.share-preview-modal__priceBarHint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--pp-muted);
  line-height: 1.45;
}

.share-preview-modal__condSection h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.share-preview-modal__ppRowEdit {
  align-items: center;
}

.share-preview-modal__ppRowEdit > span {
  flex-shrink: 0;
  color: var(--pp-muted);
  font-size: 14px;
}

.share-preview-modal__ppInput {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  font-size: 14px;
  text-align: right;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}

.share-preview-modal__ppInput--num {
  max-width: 160px;
}

.share-preview-modal__ppTextarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.45;
}

.share-preview-modal__ppRowMemo {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding-top: 10px;
}

.share-preview-modal__ppRowMemo > span {
  color: var(--pp-muted);
  font-size: 14px;
}

.share-preview-modal__note--cond {
  margin: 8px 0 0;
}

.share-preview-modal__editForm > .share-preview-modal__checkRow {
  margin-top: 14px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.share-preview-modal__note--exactLoc {
  text-align: center;
  margin-top: 6px;
}

.share-preview-modal__previewHead {
  display: none;
}

.share-preview-modal__previewCard {
  display: none;
}

.share-preview-modal__previewCardTitle {
  display: none;
}

.share-preview-modal__previewCardHint {
  display: none;
}

.share-preview-modal__secBlock {
  display: none;
}

.share-preview-modal__secBlock > .share-preview-modal__label {
  margin-bottom: 10px;
}

.share-preview-modal__secRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  cursor: pointer;
  color: #111827;
}

.share-preview-modal__secRow input {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.share-preview-modal__secRow--parent {
  font-weight: 700;
  margin-bottom: 6px;
}

.share-preview-modal__secCond {
  margin: 0 0 12px;
  padding-left: 4px;
  border-left: 3px solid #e5e7eb;
}

.share-preview-modal__secSub {
  padding: 8px 0 4px 12px;
}

.share-preview-modal__secSubRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.share-preview-modal__secSubRow input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.share-preview-modal__secBlock > .share-preview-modal__note {
  margin-top: 10px;
  margin-bottom: 0;
}

.share-preview-modal__iframeShell {
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f5f6f8;
}

.share-preview-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f5f6f8;
}

.share-preview-modal__cardLabel {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.share-preview-modal__mock {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
}

.share-preview-modal__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.share-preview-modal__img--empty {
  min-height: 120px;
}

.share-preview-modal__mockPrice {
  padding: 10px 12px 4px;
  font-size: 18px;
  font-weight: 800;
  color: #2563eb;
}

.share-preview-modal__mockAddr {
  padding: 0 12px 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

.share-preview-modal__mockMemo {
  padding: 8px 12px 12px;
  font-size: 13px;
  color: #111;
  border-top: 1px solid #eee;
  background: #fff;
  min-height: 44px;
}

.share-preview-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.share-preview-modal__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 88px;
  box-sizing: border-box;
  font-family: inherit;
}

.share-preview-modal__checkRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  cursor: pointer;
}

.share-preview-modal__checkRow input {
  margin-top: 3px;
}

.share-preview-modal__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.share-preview-modal__status {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.share-preview-modal__status--ok {
  color: #059669;
}

.share-preview-modal__status--err {
  color: #dc2626;
}

.share-preview-modal__footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}

.share-preview-modal__btnGhost {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.share-preview-modal__btnPrimary {
  flex: 2;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.share-preview-modal__btnPrimary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.share-preview-modal__priceBlock {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.share-preview-modal__photoBlock {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.share-preview-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 420px) {
  .share-preview-modal__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.share-preview-modal__thumb {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.share-preview-modal__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.share-preview-modal__thumb.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.share-preview-modal__thumbBadge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.share-preview-modal__inputNum {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.share-preview-modal__priceGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

@media (max-width: 400px) {
  .share-preview-modal__priceGrid {
    grid-template-columns: 1fr;
  }
}

.share-preview-modal__miniLabel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.share-preview-modal__miniLabel .share-preview-modal__inputNum {
  max-width: none;
  font-weight: 400;
}

/* 공유 화면(고객용 미리보기·공유 링크 관리·추천 묶음): OS 다크모드에서도 배경 딤 + 흰 카드 유지 */
.share-preview-modal,
.share-set-modal {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  .share-preview-modal__backdrop,
  .share-set-modal__backdrop {
    background: rgba(0, 0, 0, 0.45);
  }

  .share-preview-modal__panel,
  .share-set-modal__panel {
    background-color: #fff;
    color: #111827;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  }

  .share-preview-modal__panel {
    background-color: #f5f6f8;
  }

  .share-preview-modal__header,
  .share-set-modal__header {
    border-bottom-color: #eee;
  }

  .share-preview-modal__title,
  .share-set-modal__title {
    color: #111827;
  }

  .share-preview-modal__close,
  .share-set-modal__close {
    color: #374151;
  }
}
