/* Purchasing wizard — shared layout for deals_purchasing_new_brand.html */
.pw-shell {
  display: flex;
  flex-direction: column;
  max-width: 56rem;
  margin: 0 auto;
}
/* Step title + progress always above the form card (overrides develop-mode floats). */
.pw-shell__intro {
  order: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
.pw-shell > header.pw-hero,
.pw-shell > ol.pw-stepper,
.pw-shell__intro > .pw-hero,
.pw-shell__intro > .pw-stepper {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
.pw-shell > header.pw-hero,
.pw-shell > ol.pw-stepper {
  order: 0;
  flex: 0 0 auto;
}
.pw-shell > .pw-context,
.pw-shell > section.pw-card {
  order: 1;
}
.pw-hero {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 48%, #f8f3ea 100%);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 3px rgba(26, 24, 22, .06);
  margin-bottom: 1.25rem;
}
.pw-hero__eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; margin: 0; }
.pw-hero__title { margin: .35rem 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #1a1e24; line-height: 1.2; }
.pw-hero__lead { margin: .55rem 0 0; font-size: .9375rem; line-height: 1.55; color: #475569; max-width: 40rem; }

.pw-stepper {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: pw-step;
}
.pw-stepper__item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
  padding: 0 .25rem;
  list-style: none;
}
.pw-stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.1rem);
  right: calc(-50% + 1.1rem);
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.pw-stepper__item.is-done:not(:last-child)::after { background: #8c6b3d; }
.pw-stepper__item.is-pending:not(:last-child)::after { background: #fbbf24; }
.pw-stepper__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.pw-stepper__link:hover .pw-stepper__label { color: #8c6b3d; }
.pw-stepper__link:hover .pw-stepper__dot { border-color: #8c6b3d; }
.pw-stepper__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  color: #64748b;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.pw-stepper__item.is-active .pw-stepper__dot {
  border-color: #8c6b3d;
  background: #8c6b3d;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, .15);
}
.pw-stepper__item.is-done .pw-stepper__dot {
  border-color: #8c6b3d;
  background: #f8f3ea;
  color: #8c6b3d;
}
.pw-stepper__label {
  display: block;
  margin-top: .45rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}
.pw-stepper__item.is-active .pw-stepper__label { color: #8c6b3d; }
.pw-stepper__item.is-done .pw-stepper__label { color: #334155; }
.pw-stepper__item.is-pending .pw-stepper__dot {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}
.pw-stepper__item.is-pending .pw-stepper__label { color: #b45309; }
.pw-condition-pending {
  margin: 0 0 1rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}
.pw-condition-pending a {
  color: #b45309;
  font-weight: 800;
  text-decoration: underline;
}
.pw-condition-pending a:hover { color: #92400e; }
.pw-auction-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: .75rem;
  margin: .85rem 0 1.25rem;
}
.pw-auction-photo-slot {
  position: relative;
  cursor: pointer;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pw-auction-photo-slot:focus-visible {
  outline: 2px solid #8c6b3d;
  outline-offset: 2px;
}
.pw-auction-photo-slot.is-dragover {
  border-color: #8c6b3d !important;
  background: #f8f3ea !important;
  box-shadow: inset 0 0 0 2px rgba(4, 120, 87, .35);
}
.pw-auction-photo-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  margin-bottom: 0 !important;
  border-radius: .4rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.pw-auction-photo-slot.has-photo .pw-auction-photo-preview {
  border-style: solid;
  background: #fff;
}
.pw-auction-photo-preview img {
  width: 100% !important;
  height: 5.5rem !important;
  object-fit: cover;
  border-radius: .35rem;
  border: 0 !important;
}
.pw-auction-photo-drop-hint {
  display: block;
  padding: .5rem;
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
}
.pw-auction-photos .pw-auction-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.pw-auction-photos .vcr-rating-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.pw-auction-photos .vcr-rating-photo-upload { position: relative; }
@media (max-width: 640px) {
  .pw-stepper__hint { display: none; }
  .pw-stepper__label { font-size: .62rem; }
}

.pw-layout { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .pw-layout--split { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
}

.pw-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 24, 22, .05);
  overflow: hidden;
}
.pw-card__body { padding: 1.35rem 1.5rem; }
.pw-section { margin-top: 1.35rem; }
.pw-section:first-child { margin-top: 0; }
.pw-section__head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.pw-section__num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: .45rem;
  background: #f8f3ea;
  color: #8c6b3d;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-section__title { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #334155; }
.pw-section__desc { margin: .2rem 0 0; font-size: .8125rem; line-height: 1.45; color: #64748b; }

.pw-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: .4rem;
}
.pw-field input,
.pw-field select,
.pw-field textarea {
  width: 100%;
  border-radius: .6rem;
  border: 1px solid #cbd5e1;
  padding: .6rem .75rem;
  font-size: .9375rem;
  color: #1a1e24;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.pw-field input:focus,
.pw-field select:focus,
.pw-field textarea:focus {
  outline: none;
  border-color: #8c6b3d;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .12);
}
/* Keep deal fields white — Safari/Chrome autofill yellow looks like a highlight bug. */
.pw-field input:-webkit-autofill,
.pw-field input:-webkit-autofill:hover,
.pw-field input:-webkit-autofill:focus,
.pw-field textarea:-webkit-autofill,
.pw-field select:-webkit-autofill {
  -webkit-text-fill-color: #1a1e24;
  caret-color: #1a1e24;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 99999s ease-out 0s;
}
.pw-field-hint { margin: .35rem 0 0; font-size: .78rem; line-height: 1.4; color: #64748b; }
.pw-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pw-inline-row { display: flex; gap: .5rem; align-items: stretch; }
.pw-inline-row input,
.pw-inline-row select { flex: 1 1 auto; min-width: 0; }
.pw-inline-row .pw-field-other { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.pw-inop-btn {
  flex-shrink: 0;
  border-radius: .6rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  padding: .6rem .85rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pw-inop-btn.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}
.pw-inop-callout {
  margin-top: .65rem;
  padding: .65rem .85rem;
  border-radius: .65rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: .8125rem;
  line-height: 1.5;
  color: #92400e;
}
.pw-inop-callout[hidden] { display: none !important; }
.pw-type-hint {
  margin: -.25rem 0 .75rem;
  padding: .55rem .75rem;
  border-radius: .55rem;
  background: #f8f3ea;
  border: 1px solid #f3e6d0;
  font-size: .8125rem;
  color: #6e5430;
}
.pw-type-hint[hidden] { display: none !important; }
.pw-field-other { margin-top: .4rem; }
.pw-field-other[hidden] { display: none !important; }

.pw-seller-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.pw-paperwork-mode {
  flex: 1 1 18rem;
  max-width: 28rem;
}
.pw-paperwork-mode .pw-seller-type__choice {
  padding: .65rem .75rem;
  font-size: .8125rem;
  text-align: center;
}
.pw-seller-type__choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background: #fff;
  padding: .85rem 1rem;
  font-size: .9375rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.pw-seller-type__choice input { position: absolute; opacity: 0; pointer-events: none; }
.pw-seller-type__choice.is-selected,
.pw-seller-type__choice:has(input:checked) {
  border-color: #8c6b3d;
  background: #f8f3ea;
  color: #6e5430;
}
.pw-seller-business-only[hidden] { display: none !important; }

.pw-choose-existing {
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.pw-choose-existing[hidden] {
  display: none !important;
}

.pw-choose-existing__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}

.pw-choose-existing__summary::-webkit-details-marker {
  display: none;
}

.pw-choose-existing__summary-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pw-choose-existing__summary-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1e24;
}

.pw-choose-existing__summary-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.pw-choose-existing__chevron {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  position: relative;
}

.pw-choose-existing__chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s ease;
}

.pw-choose-existing[open] .pw-choose-existing__summary {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pw-choose-existing[open] .pw-choose-existing__chevron::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.pw-choose-existing__panel {
  padding: 0.85rem 1rem 1rem;
}

.pw-customer-picker {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.pw-customer-picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}
.pw-customer-picker__title {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.pw-customer-picker__hint {
  margin: .3rem 0 0;
  max-width: 36rem;
  font-size: .78rem;
  line-height: 1.45;
  color: #64748b;
}
.pw-customer-picker__count {
  margin: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f8f3ea;
  color: #6e5430;
  border: 1px solid #e7d3b0;
  padding: .35rem .7rem;
  font-size: .72rem;
  font-weight: 800;
}
.pw-customer-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.pw-customer-picker__tool {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.pw-customer-picker__tool:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.pw-customer-search {
  position: relative;
  margin-bottom: 0;
}
.pw-customer-search__icon {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: inline-flex;
}
.pw-customer-search__input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .95rem;
  background: #fff;
  padding: .9rem 4.5rem .9rem 2.75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: #1a1e24;
  box-shadow: 0 1px 2px rgba(26, 24, 22, .04);
  transition: border-color .15s, box-shadow .15s;
}
.pw-customer-search__input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.pw-customer-search__input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}
.pw-customer-search__clear {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.pw-customer-search__clear[hidden] { display: none !important; }
.pw-customer-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pw-customer-selected-chips[hidden] { display: none !important; }
.pw-customer-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: #f8f3ea;
  border: 1px solid #e7d3b0;
  color: #6e5430;
  padding: .28rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}
.pw-customer-chip--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #f8f3ea;
}
.pw-customer-list {
  display: grid;
  gap: .65rem;
  max-height: min(22rem, 55vh);
  overflow: auto;
  padding: .15rem;
  margin: -.15rem;
}
.pw-customer-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: .95rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.pw-customer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pw-customer-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(26, 24, 22, .06);
  transform: translateY(-1px);
}
.pw-customer-card.is-selected,
.pw-customer-card:has(input:checked) {
  border-color: #8c6b3d;
  background: linear-gradient(180deg, #f8f3ea 0%, #f8f3ea 100%);
  box-shadow: 0 0 0 1px #8c6b3d inset, 0 10px 24px rgba(4, 120, 87, .12);
}
.pw-customer-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  background: #0f766e;
  color: #f8f3ea;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.pw-customer-card.is-selected .pw-customer-card__avatar,
.pw-customer-card:has(input:checked) .pw-customer-card__avatar {
  background: #8c6b3d;
}
.pw-customer-card__body {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.pw-customer-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1e24;
  line-height: 1.25;
}
.pw-customer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pw-customer-card__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
}
.pw-customer-card.is-selected .pw-customer-card__chip,
.pw-customer-card:has(input:checked) .pw-customer-card__chip {
  background: #f6f0e6;
  color: #6e5430;
}
.pw-customer-card__check {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: .45rem;
  border: 1.5px solid #cbd5e1;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  background: #fff;
}
.pw-customer-card.is-selected .pw-customer-card__check,
.pw-customer-card:has(input:checked) .pw-customer-card__check {
  border-color: #8c6b3d;
  background: #8c6b3d;
  color: #fff;
}
.pw-customer-card[hidden] { display: none !important; }
.pw-customer-empty {
  margin: .35rem 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: #64748b;
}
.pw-customer-empty[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pw-title-signed {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.pw-title-signed input {
  width: auto;
  margin-top: .15rem;
  flex-shrink: 0;
}

.pw-aside {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1.15rem 1.2rem;
}
.pw-aside__title { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.pw-aside__list { margin: .85rem 0 0; padding: 0; list-style: none; }
.pw-aside__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .65rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: #475569;
}
.pw-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #cbd5e1;
}
.pw-aside__list li.is-current { font-weight: 700; color: #1a1e24; }
.pw-aside__list li.is-current::before { background: #8c6b3d; }
.pw-aside__list li.is-done::before { background: #e7d3b0; }

.pw-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border-radius: .75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: .8125rem;
  color: #475569;
}
.pw-context strong { color: #1a1e24; }
.pw-context__pill {
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #f8f3ea;
  color: #8c6b3d;
}

.pw-callout {
  border-radius: .75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: .85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: .875rem;
  line-height: 1.55;
  color: #475569;
}
.pw-callout--tip { border-color: #f3e6d0; background: #f8f3ea; color: #6e5430; }
.pw-callout strong { color: #1a1e24; }

.pw-form-alert {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-radius: .75rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}
.pw-form-alert[hidden] { display: none !important; }
.pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: .5rem;
  border-top: 1px solid #f1f5f9;
}
.pw-shell .pw-actions {
  margin-bottom: 4.5rem;
}
.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .65rem 1.35rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pw-btn--primary { background: #8c6b3d; color: #fff; box-shadow: 0 1px 2px rgba(4, 120, 87, .2); }
.pw-btn--primary:hover { background: #6e5430; color: #fff; }
.pw-btn--primary:disabled,
.pw-btn--primary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pw-btn--ghost { background: #fff; color: #334155; border-color: #cbd5e1; }
.pw-btn--ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.pw-btn--ghost:disabled,
.pw-btn--ghost[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: #f8fafc; }
.pw-actions__end {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.pw-doc-btn--as-is {
  border-color: #1a1e24;
  background: #1a1e24;
  color: #fff;
}
.pw-doc-btn--as-is:hover { background: #1e293b; border-color: #1e293b; color: #fff; }
.pw-doc-btn--as-is:disabled,
.pw-doc-btn--as-is[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  background: #334155;
  border-color: #334155;
}

/* Paperwork step — doc previews */
.pw-doc-card { border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; overflow: hidden; }
.pw-doc-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.pw-doc-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pw-doc-frame { width: 100%; height: min(52vh, 520px); border: 0; background: #fff; }
.pw-doc-image { display: block; max-height: min(52vh, 520px); width: 100%; object-fit: contain; background: #fff; padding: 1rem; }
.pw-doc-signed { border-radius: 999px; background: #f8f3ea; color: #8c6b3d; padding: .2rem .55rem; font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pw-doc-btn { border-radius: 999px; padding: .45rem .95rem; font-size: .75rem; font-weight: 800; border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer; }
.pw-doc-btn:hover { border-color: #8c6b3d; color: #8c6b3d; background: #f8f3ea; }
.pw-doc-btn--primary { border-color: #8c6b3d; background: #8c6b3d; color: #fff; }
.pw-doc-btn--primary:hover { background: #6e5430; border-color: #6e5430; color: #fff; }
.pw-esign-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,23,42,.45); }
.pw-esign-modal.is-open { display: flex; }
.pw-esign-modal__panel { width: min(100%, 28rem); border-radius: 1rem; background: #fff; padding: 1.25rem; box-shadow: 0 20px 50px rgba(15,23,42,.25); }
.pw-esign-choice { display: block; width: 100%; text-align: left; border: 2px solid #e2e8f0; border-radius: .85rem; padding: .85rem 1rem; margin-top: .65rem; background: #fff; cursor: pointer; }
.pw-esign-choice:hover { border-color: #8c6b3d; background: #f8f3ea; }

/* Buyer / seller ID capture — take photo or insert file */
.pw-id-file-input {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}
.pw-field[data-pw-id-upload] {
  position: relative;
}
.pw-id-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
  margin-top: .35rem;
}
.pw-id-upload-or {
  font-size: .75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: lowercase;
}
.pw-id-take-photo,
.pw-id-choose-file {
  min-height: 2.5rem;
}

/* Purchase Price — add costs desk (mirrors inventory all-in strip) */
.pw-cost-desk {
  margin-top: 1.35rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid #f6f0e6;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.95)),
    #fff;
  box-shadow: 0 10px 28px rgba(26, 24, 22, 0.04);
}
.pw-cost-desk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.95rem;
}
.pw-cost-desk__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c6b3d;
}
.pw-cost-desk__title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1e24;
}
.pw-cost-desk__hint {
  margin: 0.3rem 0 0;
  max-width: 28rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
}
.pw-cost-desk__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #8c6b3d;
  background: #8c6b3d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.pw-cost-desk__cta:hover { background: #6e5430; border-color: #6e5430; }
.pw-cost-desk__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.pw-cost-desk__metric {
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.pw-cost-desk__metric--total {
  border-color: #e7d3b0;
  background: #f8f3ea;
}
.pw-cost-desk__metric-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.pw-cost-desk__metric-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1a1e24;
  letter-spacing: -0.02em;
}
.pw-cost-desk__metric-value--amber { color: #b45309; }
.pw-cost-desk__metric--total .pw-cost-desk__metric-value { color: #6e5430; }
.pw-cost-desk__metric-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}
.pw-cost-desk__lines {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.pw-cost-desk__lines li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8rem;
}
.pw-cost-desk__line-label { font-weight: 700; color: #334155; }
.pw-cost-desk__line-meta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #8c6b3d;
}
.pw-cost-desk__empty {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .pw-cost-desk__metrics { grid-template-columns: 1fr; }
}
