/* Seller marketplace: customer submission and owner review. */
.seller-account-panel,
.seller-owner-card,
.seller-owner-summary {
  border: 1px solid #e4dfd4;
  border-radius: 16px;
  background: #fffefa;
}
.seller-account-panel { padding: clamp(18px, 3vw, 30px); }
.seller-intro { max-width: 850px; margin-bottom: 24px; }
.seller-intro .eyebrow { color: #9a572f; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.seller-intro h2 { margin: 0 0 8px; color: #183b30; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.seller-intro > p:not(.eyebrow) { color: #526057; line-height: 1.65; }
.seller-private-note {
  margin-top: 15px; padding: 15px 17px; border: 1px solid #d5e2d6;
  border-radius: 12px; color: #264738; background: #f2f7f0; line-height: 1.55;
}
.seller-private-note strong { display: block; margin-bottom: 3px; }
.seller-form { display: grid; gap: 16px; }
.seller-form-section {
  padding: clamp(16px, 2.4vw, 22px); border: 1px solid #e8e4dc;
  border-radius: 14px; background: #fff;
}
.seller-form-section h3 { margin: 0 0 8px; color: #24372d; font-size: 1.1rem; }
.seller-form-section > p { color: #5b655e; line-height: 1.55; }
.seller-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seller-field { display: grid; gap: 7px; min-width: 0; color: #39473d; font-weight: 700; }
.seller-field > span { font-size: .92rem; }
.seller-field input,
.seller-field select,
.seller-field textarea,
.seller-reject-form textarea {
  width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #d9d9d0;
  border-radius: 9px; color: #1d2c23; background: #fff; font: inherit; font-weight: 400;
}
.seller-field input[type=file] { min-height: 50px; padding: 8px; }
.seller-field textarea, .seller-reject-form textarea { min-height: 104px; resize: vertical; }
.seller-field input:focus, .seller-field select:focus, .seller-field textarea:focus,
.seller-reject-form textarea:focus, .seller-paste-zone:focus {
  outline: 3px solid rgba(181, 109, 58, .2); border-color: #b56d3a;
}
.seller-field-full { grid-column: 1 / -1; }
.seller-paste-zone {
  display: grid; gap: 8px; margin-top: 16px; padding: 18px;
  border: 1px dashed #b6c2b5; border-radius: 12px; color: #39483e;
  background: #f7f8f4; cursor: text;
}
.seller-paste-zone > span { color: #617067; font-size: .9rem; line-height: 1.5; }
.seller-paste-category { max-width: 440px; margin: 4px 0; }
.seller-upload-help { margin: 12px 0 0; color: #68736a; font-size: .88rem; line-height: 1.5; }
.seller-consent { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; color: #35443a; line-height: 1.55; }
.seller-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: #315c47; }
.seller-submit { min-height: 48px; padding-inline: 22px; font-weight: 800; }
.seller-submit:disabled { cursor: progress; opacity: .7; }
.seller-history { margin-top: 30px; }
.seller-history > h3 { color: #24372d; }
.seller-listing-list { display: grid; gap: 12px; }
.seller-listing-card { padding: 16px; border: 1px solid #e8e4dc; border-radius: 12px; background: #fff; }
.seller-listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.seller-listing-top h3 { margin: 8px 0 4px; color: #24372d; }
.seller-listing-top p, .seller-listing-meta { margin: 4px 0; color: #68736a; }
.seller-listing-top > strong { color: #1d392d; white-space: nowrap; }
.seller-status, .seller-owner-status {
  display: inline-flex; padding: 5px 9px; border-radius: 99px;
  color: #73521e; background: #fff2d9; font-size: .8rem; font-weight: 800;
}
.seller-status-approved, .seller-owner-status-approved { color: #24553b; background: #e6f3e8; }
.seller-status-rejected, .seller-owner-status-rejected { color: #853f32; background: #fae9e5; }
.seller-owner-note { padding: 11px 13px; border-radius: 9px; color: #60491e; background: #fff7e8; line-height: 1.5; }
.seller-owner-summary {
  display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 15px 18px;
  color: #536057;
}
.seller-owner-summary > strong { color: #193c30; font-size: 1.5rem; }
.seller-owner-price-rule { margin-left: auto; color: #506757; font-size: .9rem; }
.seller-owner-list { display: grid; gap: 16px; }
.seller-owner-card { padding: clamp(16px, 2.5vw, 24px); }
.seller-owner-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.seller-owner-card > header h2 { margin: 8px 0 3px; color: #20372b; font-size: 1.3rem; }
.seller-owner-card > header p, .seller-owner-card > header small { color: #677269; }
.seller-owner-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.seller-owner-facts > div { display: grid; align-content: start; gap: 5px; padding: 13px; border-radius: 10px; background: #f6f6f1; overflow-wrap: anywhere; }
.seller-owner-facts span, .seller-owner-facts small { color: #6b756d; font-size: .85rem; }
.seller-owner-facts strong { color: #26392f; }
.seller-owner-facts a, .seller-owner-docs a { color: #315c47; text-decoration: underline; }
.seller-owner-defects, .seller-owner-description { color: #4d5b51; line-height: 1.6; }
.seller-owner-card section { margin-top: 19px; }
.seller-owner-card section h3 { margin: 0 0 10px; color: #314237; font-size: 1rem; }
.seller-owner-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 180px)); gap: 10px; }
.seller-owner-photos a { display: block; overflow: hidden; border-radius: 10px; background: #f0f0ea; }
.seller-owner-photos img { display: block; width: 100%; height: 145px; object-fit: cover; }
.seller-owner-docs { padding: 13px 15px; border: 1px solid #e7e1d4; border-radius: 10px; background: #faf8f2; }
.seller-owner-docs ul { margin: 8px 0; padding-left: 20px; }
.seller-owner-docs li { margin: 5px 0; overflow-wrap: anywhere; }
.seller-owner-docs small, .seller-empty-file { color: #6b756d; }
.seller-owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #e7e4dc; }
.seller-owner-actions .button { min-height: 44px; }
.seller-reject-form { display: grid; gap: 11px; margin-top: 14px; }
.seller-reject-form label { color: #36443a; font-weight: 700; }
.seller-reject-form .button { justify-self: start; }
@media (max-width: 720px) {
  .seller-form-grid { grid-template-columns: 1fr; }
  .seller-field-full { grid-column: auto; }
  .seller-owner-facts { grid-template-columns: 1fr; }
  .seller-owner-card > header { flex-direction: column; }
  .seller-owner-summary { flex-wrap: wrap; }
  .seller-owner-price-rule { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .seller-listing-top { flex-direction: column; }
  .seller-owner-actions { display: grid; }
  .seller-owner-actions .button { width: 100%; }
}


/* Clear customer choices on the homepage. */
.home-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 18px; }
.home-choice { min-height: 78px; display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid #d8dfd6; border-radius: 14px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.home-choice:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(23, 43, 34, .13); }
.home-choice-buy { background: #fffefa; color: #183b30; }
.home-choice-sell { background: #183b30; border-color: #183b30; color: #fffefa; }
.home-choice-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f3e5d2; color: #a64c2d; font-size: 1.35rem; font-weight: 800; }
.home-choice-sell .home-choice-icon { background: #f3e5d2; color: #183b30; }
.home-choice-copy { min-width: 0; display: grid; gap: 3px; }
.home-choice-copy small, .seller-dashboard-copy small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; opacity: .78; }
.home-choice-copy strong { font-size: 1.25rem; line-height: 1.1; }
.home-choice-copy > span { font-size: .78rem; line-height: 1.35; opacity: .82; }
.home-choice-arrow { margin-left: auto; font-size: 1.3rem; }
.home-choice-secondary { display: inline-block; margin: 3px 0 5px; color: #6e5543; font-size: .78rem; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.seller-dashboard-entry { display: flex; align-items: center; gap: 17px; margin: 0 0 22px; padding: 20px 22px; border: 1px solid #b8cdbf; border-radius: 15px; background: linear-gradient(105deg, #eaf1e9, #fffefa 72%); color: #183b30; cursor: pointer; }
.seller-dashboard-entry:hover { border-color: #819b89; box-shadow: 0 8px 22px rgba(24, 59, 48, .09); }
.seller-dashboard-mark { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #183b30; color: #fffefa; font-size: 1.5rem; }
.seller-dashboard-copy { flex: 1; min-width: 0; }
.seller-dashboard-copy h2 { margin: 3px 0 4px; font-size: 1.12rem; }
.seller-dashboard-copy p { margin: 0; color: #526057; font-size: .88rem; line-height: 1.45; }
.seller-dashboard-copy p strong { color: #a64c2d; }
.seller-dashboard-arrow { color: #a64c2d; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.nav-item b#nav-seller-listings { color: #fff; background: #c15a35; }
@media (max-width: 640px) {
  .home-choice-grid { grid-template-columns: 1fr; gap: 9px; }
  .home-choice { min-height: 82px; padding: 12px; }
  .seller-dashboard-entry { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .seller-dashboard-copy { flex-basis: calc(100% - 65px); }
  .seller-dashboard-arrow { margin-left: 63px; }
}

.seller-kind-panel[hidden],
[data-seller-vehicle-files][hidden] { display: none !important; }
.seller-kind-panel { transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .seller-kind-panel { transition: none; }
}


/* Compact index for archived customer sale proposals. */
.seller-archive-list { display: grid; gap: 8px; }
.seller-archive-row {
  display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(140px, .9fr) minmax(125px, .8fr) minmax(105px, .65fr) auto;
  align-items: center; gap: 14px; width: 100%; padding: 12px 15px;
  border: 1px solid #e4dfd4; border-radius: 12px; color: #26392f; background: #fffefa;
  text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.seller-archive-row:hover { border-color: #a9b9aa; background: #f8f8f2; transform: translateY(-1px); }
.seller-archive-row:focus-visible { outline: 3px solid #bf673f; outline-offset: 2px; }
.seller-archive-row > span { min-width: 0; display: grid; gap: 3px; }
.seller-archive-row small { color: #6b756d; font-size: .76rem; }
.seller-archive-item strong, .seller-archive-client strong, .seller-archive-price strong { overflow-wrap: anywhere; }
.seller-archive-item > span { color: #68736a; font-size: .88rem; }
.seller-archive-price .seller-owner-status { justify-self: start; }
.seller-archive-open { color: #315c47; font-size: .86rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 820px) {
  .seller-archive-row { grid-template-columns: minmax(0, 1.2fr) minmax(125px, .8fr) minmax(120px, .8fr) auto; }
  .seller-archive-item { grid-column: 1; grid-row: 1 / span 2; }
  .seller-archive-client { grid-column: 2; grid-row: 1; }
  .seller-archive-price { grid-column: 3; grid-row: 1 / span 2; }
  .seller-archive-status { grid-column: 2; grid-row: 2; }
  .seller-archive-open { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  .seller-archive-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px; }
  .seller-archive-item { grid-column: 1; grid-row: 1; }
  .seller-archive-client { grid-column: 1; grid-row: 2; }
  .seller-archive-price { grid-column: 2; grid-row: 1 / span 2; align-content: center; text-align: right; }
  .seller-archive-status { grid-column: 1; grid-row: 3; }
  .seller-archive-open { grid-column: 2; grid-row: 3; justify-self: end; }
}


/* Base the archive row layout on the owner panel width, not the viewport. */
.seller-archive-list { container-type: inline-size; }
@container (max-width: 760px) {
  .seller-archive-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "item status" "client price" "open open";
    align-items: center;
  }
  .seller-archive-item { grid-area: item; }
  .seller-archive-client { grid-area: client; }
  .seller-archive-price { grid-area: price; text-align: right; }
  .seller-archive-status { grid-area: status; justify-self: end; }
  .seller-archive-open { grid-area: open; justify-self: end; }
}
@container (max-width: 420px) {
  .seller-archive-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "item" "status" "client" "price" "open";
  }
  .seller-archive-price { text-align: left; }
  .seller-archive-status { justify-self: start; }
  .seller-archive-open { justify-self: start; }
}
