/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Status bar ── */
.sell-status-bar {
  background: #000000;
  color: #ccff00;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 0;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Page ── */
.sell-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px 80px;
  font-family: "DM Sans", sans-serif;
}

/* ── Topbar ── */
.sell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: 0;
  padding: 8px 14px;
  background: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back:hover {
  background: #000000;
  color: #ccff00;
  border-color: #000000;
}

/* ── Page header ── */
.sell-page-header {
  margin-bottom: 40px;
}

.sell-page-header h1 {
  margin: 0 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #000000;
  text-transform: uppercase;
}

.sell-page-header > p {
  margin: 0 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  line-height: 1.6;
}

.sell-header-accent {
  width: 60px;
  height: 2px;
  background: #ccff00;
}

/* ── Two-column layout ── */
.sell-layout {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 48px;
  align-items: start;
}

.sell-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sell-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

/* ── Section labels ── */
.sell-section-label {
  margin: 8px 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #999999;
  text-transform: uppercase;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 8px;
}

.sell-section-label:first-child {
  margin-top: 0;
}

/* ── Field wrapper ── */
.sell-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* ── Label text ── */
.sell-label {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000000;
  display: block;
}

/* ── All inputs, selects, textareas ── */
.sell-form input:not([type="hidden"]),
.sell-form select,
.sell-form textarea {
  width: 100%;
  border: 1.5px solid #000000;
  border-radius: 0;
  padding: 12px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sell-form input:not([type="hidden"]):focus,
.sell-form select:focus,
.sell-form textarea:focus {
  border-color: #ccff00;
  box-shadow: none;
}

.sell-form input::placeholder,
.sell-form textarea::placeholder {
  color: #999999;
  font-size: 13px;
  font-weight: 400;
}

.sell-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Choice control (dropdowns + native selects) ── */
.choice-field {
  position: relative;
}

.choice-control {
  width: 100%;
  border: 1.5px solid #000000 !important;
  border-radius: 0 !important;
  padding: 12px 40px 12px 14px !important;
  font-family: "DM Sans", sans-serif;
  font-size: 13px !important;
  font-weight: 400;
  color: #000000;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-sizing: border-box;
}

.choice-control:focus {
  border-color: #ccff00 !important;
}

/* Native select arrow */
.choice-field.choice-select::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  transform: rotate(45deg);
  pointer-events: none;
}

.choice-field.choice-select:focus-within::after {
  border-color: #ccff00;
}

/* ── Custom dropdown (brand, material) ── */
.custom-dropdown .dropdown-control {
  position: relative;
}

.custom-dropdown .choice-control {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.sell-form button.choice-control {
  width: 100%;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px !important;
  font-weight: 400;
  color: #000000;
  border: 1.5px solid #000000 !important;
  border-radius: 0 !important;
  background: #ffffff;
}

.dropdown-search {
  padding-right: 40px !important;
}

.custom-dropdown .dropdown-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.15s;
}

.custom-dropdown.is-open .dropdown-arrow {
  transform: translateY(-50%) rotate(225deg);
}

.custom-dropdown:focus-within .choice-control,
.custom-dropdown.is-open .choice-control {
  border-color: #ccff00 !important;
}

.dropdown-trigger {
  text-align: left;
  cursor: pointer;
  text-transform: none;
}

.dropdown-trigger.is-placeholder {
  color: #999999;
}

.sell-form button.choice-control.dropdown-trigger.is-placeholder {
  color: #999999 !important;
}

.sell-form input.choice-control::placeholder {
  color: #999999;
  font-weight: 400;
  opacity: 1;
}

/* ── Dropdown panel ── */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #000000;
  border-radius: 0;
}

.dropdown-panel::-webkit-scrollbar { width: 4px; }
.dropdown-panel::-webkit-scrollbar-track { background: transparent; }
.dropdown-panel::-webkit-scrollbar-thumb { background: #000000; }

.dropdown-empty,
.dropdown-option,
.dropdown-group-header {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
  font-family: "DM Sans", sans-serif;
}

.dropdown-option,
.dropdown-empty {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  display: block;
}

.dropdown-option { cursor: pointer; }

.dropdown-option:hover,
.dropdown-option:focus-visible {
  outline: none;
  background: #ccff00;
  color: #000000;
}

.dropdown-option.is-indented { padding-left: 22px; }

.dropdown-group-header {
  padding: 8px 14px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
  cursor: default;
}

/* ── Hidden other-field wrappers ── */
#sellBrandOtherWrap[hidden],
#sellMaterialOtherWrap[hidden] {
  display: none !important;
}

/* ── Payout simulator ── */
.payout-simulator {
  background: #f5f5f5;
  border-left: 3px solid #ccff00;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payout-simulator-label {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #666666;
}

.payout-row--fee { color: #999999; }

.payout-divider {
  height: 1px;
  background: #dddddd;
  margin: 2px 0;
}

.payout-row--total {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.payout-row--total span:last-child {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.payout-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: #999999;
  font-family: "DM Sans", sans-serif;
}

/* ── Image uploader ── */
.image-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uploader-title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000000;
}

.uploader-note {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  color: #999999;
  line-height: 1.6;
}

.uploader-dropzone {
  border: 2px dashed #000000;
  border-radius: 0;
  background: #fafafa;
  min-height: 120px;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  cursor: pointer;
  transition: border-color 0.15s;
}

.uploader-dropzone:hover {
  border-color: #ccff00;
}

.uploader-dropzone.is-dragover {
  border-color: #ccff00;
  background: rgba(204, 255, 0, 0.06);
}

#sellImagesInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.uploader-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1.5px solid #000000;
  border-radius: 0;
  display: block;
}

/* ── Submit button ── */
.sell-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #000000;
  border-radius: 0;
  padding: 16px 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.sell-btn:hover {
  background: #ccff00;
  color: #000000;
  border-color: #ccff00;
}

/* ── Trust note ── */
.sell-trust-note {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  color: #999999;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ── Status ── */
.sell-status {
  min-height: 1.2em;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #000000;
  text-align: center;
}

.sell-status.is-error {
  color: #ff2d6b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sell-page {
    padding: 20px 20px 60px;
  }

  .sell-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sell-right {
    position: static;
  }

  .sell-page-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .sell-dims-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Dimension fields ── */
.sell-section-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #999;
  text-transform: uppercase;
  margin: 4px 0 2px;
}
.sell-dims-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sell-dims-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.sell-field--dim input {
  text-align: center;
}
.sell-label-optional {
  font-weight: 400;
  color: #bbb;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.sell-stripe-notice {
  border: 1px solid #000;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #f9f9f9;
}
.sell-stripe-notice-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sell-stripe-notice-body {
  font-size: 12px;
  line-height: 1.75;
  color: #555;
}
