/*
 * 팔차 공통 style entrypoint
 * 모든 정적 페이지가 같은 core/component 순서를 사용하도록 import를 한곳에서 관리함.
 */
@import url('../vendor/choices/11.2.3/choices.min.css');
@import url('./palcha_core.css?v=20260716-1');
@import url('./palcha_footer.css?v=20260630-4');
@import url('./palcha_profile_menu.css?v=20260630-4');
@import url('./palcha_auth_modal.css?v=20260630-4');

@import url('./palcha_role_workspaces.css?v=20260630-4');


/* Seller workspace detail and photo manager: 2026-07-02 */
.palcha_workspace_form {
  min-width: 0;
}

.palcha_workspace_form_section {
  padding: 28px 0;
  border-top: 1px solid #dfe4ea;
}

.palcha_workspace_form_section:first-of-type {
  border-top: 0;
}

.palcha_workspace_form_section > h3,
.palcha_workspace_form_section .palcha_section_head h3 {
  margin: 0 0 18px;
  color: #172033;
  font-size: 1.22rem;
  line-height: 1.4;
}

.palcha_workspace_form_section .palcha_grid + .palcha_grid,
.palcha_workspace_form_section .palcha_grid + .palcha_field,
.palcha_workspace_form_section .palcha_field + .palcha_field {
  margin-top: 16px;
}

.palcha_field_help {
  margin: 5px 0 0;
  color: #667085;
  font-size: .88rem;
  line-height: 1.5;
}

.palcha_check_row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #344054;
  font-size: .94rem;
  line-height: 1.5;
}

.palcha_check_row input,
.palcha_choice_group input,
.palcha_check_grid input,
.palcha_photo_damage input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--palcha_color_primary, #0085e4);
  flex: 0 0 auto;
}

.palcha_choice_group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.palcha_choice_group legend {
  margin-bottom: 9px;
  color: #344054;
  font-size: .9rem;
  font-weight: 700;
}

.palcha_choice_group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 7px 0;
  color: #475467;
  font-size: .9rem;
}

.palcha_workspace_details {
  margin: 18px 0;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.palcha_workspace_details summary {
  padding: 14px 16px;
  color: #26334d;
  font-weight: 700;
  cursor: pointer;
  background: #f7f9fc;
}

.palcha_check_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 16px;
  border-top: 1px solid #e4e7ec;
}

.palcha_check_grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: #475467;
  font-size: .9rem;
}

.palcha_condition_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.palcha_photo_count {
  color: var(--palcha_color_primary, #0085e4);
  font-size: .95rem;
  white-space: nowrap;
}

.palcha_photo_dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 142px;
  padding: 24px;
  border: 2px dashed #98a2b3;
  border-radius: 8px;
  color: #667085;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color .16s ease, background-color .16s ease;
}

.palcha_photo_dropzone:hover,
.palcha_photo_dropzone.is-dragover {
  border-color: var(--palcha_color_primary, #0085e4);
  background: #edf7ff;
}

.palcha_photo_dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.palcha_photo_dropzone_title {
  color: #172033;
  font-size: 1.05rem;
  font-weight: 800;
}

.palcha_photo_preview_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.palcha_photo_empty {
  grid-column: 1 / -1;
  padding: 22px;
  color: #667085;
  text-align: center;
  border-bottom: 1px solid #e4e7ec;
}

.palcha_photo_preview_card {
  min-width: 0;
  overflow: visible;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
}

.palcha_photo_preview_card.is-primary {
  border-color: var(--palcha_color_primary, #0085e4);
  box-shadow: 0 0 0 2px rgba(0, 133, 228, .12);
}

.palcha_photo_preview_image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #eef1f4;
}

.palcha_photo_preview_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.palcha_photo_preview_image > span,
.palcha_photo_preview_image > strong {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  font-size: .8rem;
  line-height: 1;
  background: rgba(23, 32, 51, .84);
}

.palcha_photo_preview_image > span { left: 10px; }
.palcha_photo_preview_image > strong { right: 10px; background: #0085e4; }

.palcha_photo_preview_fields {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.palcha_photo_preview_fields > label > span {
  display: block;
  margin-bottom: 6px;
  color: #475467;
  font-size: .82rem;
  font-weight: 700;
}

.palcha_photo_damage {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: .86rem;
}

.palcha_photo_preview_actions {
  display: grid;
  grid-template-columns: 1fr 38px 38px 1fr;
  gap: 7px;
  padding: 0 14px 14px;
}

.palcha_photo_preview_actions button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid #cdd5df;
  border-radius: 6px;
  color: #344054;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.palcha_photo_preview_actions button:hover {
  border-color: #0085e4;
  color: #006fbf;
}

.palcha_photo_preview_actions .is-delete {
  color: #b42318;
}

.palcha_photo_move {
  background: #fff url('/assets/img/btn-arrow.png') center / 15px auto no-repeat !important;
}

.palcha_photo_move.is-prev { transform: rotate(180deg); }

.palcha_photo_progress {
  margin-top: 16px;
  color: #475467;
  font-size: .88rem;
}

.palcha_photo_progress > div {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e4e7ec;
}

.palcha_photo_progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #0085e4;
  transition: width .18s ease;
}

@media (max-width: 920px) {
  .palcha_condition_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palcha_check_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .palcha_workspace_form_section { padding: 22px 0; }
  .palcha_condition_grid,
  .palcha_check_grid,
  .palcha_photo_preview_grid { grid-template-columns: minmax(0, 1fr); }
  .palcha_photo_dropzone { min-height: 118px; }
}


/* Seller catalog selector: 2026-07-02 */
.palcha_seller_catalog {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #a8d8f7;
  border-radius: 8px;
  background: #f7fbfe;
}

.palcha_seller_catalog_mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  background: #fff;
}

.palcha_seller_catalog_mode label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.palcha_seller_catalog_mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.palcha_seller_catalog_mode span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 6px;
  color: #475467;
  font-size: .9rem;
  font-weight: 700;
}

.palcha_seller_catalog_mode input:checked + span {
  color: #fff;
  background: #0085e4;
}

.palcha_seller_catalog_hierarchy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.palcha_seller_catalog_hierarchy[hidden] {
  display: none !important;
}

.palcha_seller_catalog_hierarchy.is-commercial-detail {
  grid-template-columns: minmax(0, 1fr);
  max-width: calc((100% - 28px) / 3);
}

.palcha_seller_catalog .choices.is-open {
  z-index: 30;
}

.palcha_seller_catalog.is-manual .palcha_seller_catalog_hierarchy {
  display: none;
}

.palcha_seller_catalog.is-manual + [data-palcha-seller-manual-fields] input {
  background: #fff;
}

@media (max-width: 920px) {
  .palcha_seller_catalog_hierarchy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palcha_seller_catalog_hierarchy.is-commercial-detail { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .palcha_seller_catalog { padding: 14px; }
  .palcha_seller_catalog_mode { width: 100%; }
  .palcha_seller_catalog_hierarchy,
  .palcha_seller_catalog_hierarchy.is-commercial-detail { grid-template-columns: minmax(0, 1fr); }
}

/* 판매등록 단계형 draft UI */
.palcha_seller_draft_toolbar { margin:0 0 22px; }
.palcha_seller_auction_entry { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.palcha_seller_auction_entry .palcha_button { min-height:44px; font-size:1rem; }
@media (max-width:720px) { .palcha_seller_auction_entry { width:100%; justify-content:stretch; } .palcha_seller_auction_entry .palcha_button { flex:1; } }
.palcha_seller_stepper { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; padding:0; margin:0; list-style:none; }
.palcha_seller_stepper button { width:100%; min-height:42px; padding:8px 6px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#495057; font-size:.82rem; font-weight:700; }
.palcha_seller_stepper button[aria-current="step"] { border-color:#0085e4; background:#eaf5fd; color:#006dbb; box-shadow:inset 0 0 0 1px #0085e4; }
.palcha_seller_save_status { min-height:22px; margin:9px 0 0; color:#6c757d; font-size:.85rem; text-align:right; }
.palcha_seller_save_status[data-status="error"] { color:#b42318; }
.palcha_seller_save_status[data-status="saved"] { color:#137333; }
.palcha_seller_step_actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.palcha_seller_review_summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:18px 0 0; border-top:1px solid #dfe5ec; border-left:1px solid #dfe5ec; }
.palcha_seller_review_summary div { padding:14px; border-right:1px solid #dfe5ec; border-bottom:1px solid #dfe5ec; }
.palcha_seller_review_summary dt { color:#6c757d; font-size:.84rem; }
.palcha_seller_review_summary dd { margin:5px 0 0; font-weight:700; }
@media (max-width:900px) { .palcha_seller_stepper { display:flex; overflow-x:auto; padding-bottom:6px; } .palcha_seller_stepper li { flex:0 0 120px; } }
@media (max-width:600px) { .palcha_seller_review_summary { grid-template-columns:1fr; } .palcha_seller_step_actions .palcha_button { flex:1; } }

/* 판매방식별 조건부 등록 입력 */
.palcha_seller_intent_fields { margin:0 0 18px; padding:18px; border:1px solid #cfe4f5; border-left:4px solid #0085e4; border-radius:6px; background:#f8fbfe; }
.palcha_seller_intent_fields[hidden] { display:none !important; }
.palcha_seller_intent_fields > .palcha_field:last-child,
.palcha_seller_intent_fields > .palcha_grid:last-child { margin-bottom:0; }
@media (max-width:600px) { .palcha_seller_intent_fields { padding:14px; } }
