.cwc-avm-thumb-carousel{display:flex;align-items:center;gap:8px;min-width:0}.cwc-avm-gallery-thumbs{flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}.cwc-avm-gallery-thumbs::-webkit-scrollbar{display:none}.cwc-avm-thumb{flex:0 0 92px;width:92px;height:72px;scroll-snap-align:start}.cwc-avm-thumb img{width:100%;height:100%;object-fit:cover}.cwc-avm-scroll{flex:0 0 36px;width:36px;height:72px;border:1px solid #d6dfea;background:#fff;border-radius:10px;cursor:pointer;font-size:30px}.cwc-avm-gallery-slide[data-full]{cursor:zoom-in}.cwc-avm-download{margin-top:12px;padding:8px 14px;border-radius:10px;cursor:pointer;border:1px solid #d6dfea;background:#fff}.cwc-market-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.cwc-avm-lightbox{display:none;position:fixed;inset:0;z-index:999999;background:rgba(5,9,14,.97);align-items:center;justify-content:center}.cwc-avm-lightbox.open{display:flex}.cwc-avm-lightbox img{max-width:calc(100vw - 110px);max-height:calc(100vh - 80px);width:auto;height:auto;object-fit:contain}.cwc-avm-lightbox button{position:absolute;z-index:1;color:white;background:#2229;border:1px solid #fff5;border-radius:50%;width:46px;height:46px;font-size:30px;cursor:pointer}.cwc-avm-lightbox .close{right:18px;top:18px}.cwc-avm-lightbox .prev{left:12px}.cwc-avm-lightbox .next{right:12px}.cwc-avm-lightbox .counter{position:absolute;bottom:15px;color:#fff}.cwc-market-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.cwc-market-tabs a{display:inline-block;padding:9px 14px;background:#e9eef5;border-radius:9px;text-decoration:none}.cwc-market-tabs .active{background:#14283d;color:white}.cwc-market-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.cwc-market-fields label{display:flex;flex-direction:column;gap:5px}.cwc-market-fields input,.cwc-market-fields select,.cwc-market-fields textarea{width:100%;padding:9px}.cwc-market-fields input[type=checkbox]{width:auto}.cwc-market-fields .wide{grid-column:1/-1}.cwc-market table{width:100%;border-collapse:collapse;background:#fff}.cwc-market th,.cwc-market td{padding:10px;text-align:left;border-bottom:1px solid #ddd;vertical-align:middle}.cwc-market td img{width:70px;height:52px;object-fit:cover;vertical-align:middle;margin-right:8px}.cwc-market td small{display:block}.cwc-market-table{overflow:auto}.cwc-market-gallery-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none}.cwc-market-gallery-list li{border:1px solid #ccc;border-radius:8px;padding:8px;cursor:grab}.cwc-market-gallery-list li img{width:90px;height:70px;object-fit:cover}.cwc-market pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.cwc-market-fields{grid-template-columns:1fr}.cwc-avm-lightbox img{max-width:calc(100vw - 35px)}.cwc-avm-lightbox button{width:35px;height:35px}.cwc-avm-thumb{flex-basis:76px;width:76px;height:58px}.cwc-avm-scroll{height:58px;width:30px;flex-basis:30px}}

/* Vehicle detail gallery: keep the complete photograph inside the frame. */
.cwc-avm-shell.detail-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin-inline: auto;
}
.cwc-avm-shell.detail-page .cwc-avm-detail-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.cwc-avm-shell.detail-page .cwc-avm-detail-hero > *,
.cwc-avm-shell.detail-page .cwc-avm-gallery,
.cwc-avm-shell.detail-page .cwc-avm-gallery-main,
.cwc-avm-shell.detail-page .cwc-avm-thumb-carousel {
  min-width: 0;
  max-width: 100%;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f2f5f8;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-slide {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-thumbs {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
@media (max-width: 1080px) {
  .cwc-avm-shell.detail-page .cwc-avm-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .cwc-avm-shell.detail-page {
    padding-inline: 14px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-gallery,
  .cwc-avm-shell.detail-page .cwc-avm-summary-card,
  .cwc-avm-shell.detail-page .cwc-avm-specs-card {
    padding: 16px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-thumb-carousel {
    gap: 6px;
  }
}

/* Vehicle details: compact grouped specifications and on-demand request forms. */
.cwc-avm-shell.detail-page .cwc-avm-summary-card {
  position: static;
  min-width: 0;
}
.cwc-avm-shell.detail-page .cwc-avm-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}
.cwc-avm-shell.detail-page .cwc-avm-specs-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}
.cwc-avm-shell.detail-page .cwc-avm-specs-card > h2 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -.035em;
  color: #172b40;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 38px);
}
.cwc-avm-shell.detail-page .cwc-avm-spec-group {
  min-width: 0;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-group + .cwc-avm-spec-group {
  border-left: 1px solid #e1e9f0;
  padding-left: clamp(20px, 2.8vw, 38px);
}
.cwc-avm-shell.detail-page .cwc-avm-spec-group h3 {
  margin: 0 0 12px;
  color: #476b91;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-group dl {
  margin: 0;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  line-height: 1.35;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-line:last-child {
  border-bottom: 0;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-line dt {
  flex: 1 1 48%;
  min-width: 0;
  margin: 0;
  color: #65758a;
  font-size: .88rem;
}
.cwc-avm-shell.detail-page .cwc-avm-spec-line dd {
  flex: 1 1 52%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #192d43;
  font-size: .91rem;
  font-weight: 700;
  text-align: right;
}
.cwc-avm-shell.detail-page .cwc-avm-action-row .cwc-avm-btn.is-active {
  background: #e8f1fa;
  border-color: #6b91b7;
  color: #173b60;
}
.cwc-avm-shell.detail-page .cwc-avm-action-row .cwc-avm-btn.primary.is-active {
  background: #12253a;
  color: #fff;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel[hidden] {
  display: none !important;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel {
  margin-top: 18px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  background: #f5f9fd;
  scroll-margin-top: 24px;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel-head h2 {
  margin: 0;
  color: #172b40;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}
.cwc-avm-shell.detail-page .cwc-avm-action-close {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cddce9;
  border-radius: 50%;
  background: #fff;
  color: #233c56;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form label {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  color: #40556a;
  font-size: .88rem;
  font-weight: 650;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form label:has(textarea),
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form > p {
  grid-column: 1 / -1;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form input,
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form select,
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form textarea {
  min-width: 0;
  background: #fff;
  border-color: #ccd9e5;
}
.cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form > button {
  justify-self: start;
}
.cwc-avm-shell.detail-page .cwc-avm-action-close:focus-visible,
.cwc-avm-shell.detail-page .cwc-avm-action-row .cwc-avm-btn:focus-visible {
  outline: 3px solid #79aee0;
  outline-offset: 3px;
}
@media (max-width: 1080px) {
  .cwc-avm-shell.detail-page .cwc-avm-spec-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cwc-avm-shell.detail-page .cwc-avm-spec-group:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #e1e9f0;
    padding: 20px 0 0;
  }
}
@media (max-width: 680px) {
  .cwc-avm-shell.detail-page .cwc-avm-specs-card {
    padding: 20px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-specs-card > h2 {
    margin-bottom: 18px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-spec-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-spec-group + .cwc-avm-spec-group,
  .cwc-avm-shell.detail-page .cwc-avm-spec-group:nth-child(3) {
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid #dbe5ef;
    padding: 18px 0 0;
  }
  .cwc-avm-shell.detail-page .cwc-avm-spec-line {
    padding: 9px 0;
  }
  .cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form label:has(textarea),
  .cwc-avm-shell.detail-page .cwc-avm-action-panel .cwc-avm-mini-form > p {
    grid-column: auto;
  }
}

/* Staff vehicle editor: visible upload state, including server-side processing. */
.cwc-market-vehicle-editor .cwc-market-upload-status[hidden] {
  display: none;
}
.cwc-market-vehicle-editor .cwc-market-upload-status {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #b9cfe2;
  border-radius: 12px;
  background: #f1f7fc;
  color: #203a55;
}
.cwc-market-vehicle-editor .cwc-market-upload-status.is-error {
  border-color: #ce9f9f;
  background: #fff4f3;
  color: #763b38;
}
.cwc-market-vehicle-editor .cwc-market-upload-status-text {
  font-weight: 700;
  line-height: 1.4;
}
.cwc-market-vehicle-editor .cwc-market-upload-progress {
  display: block;
  width: 100%;
  height: 14px;
  margin: 10px 0;
  accent-color: #5e7fa8;
}
.cwc-market-vehicle-editor .cwc-market-upload-detail {
  font-size: .88rem;
  line-height: 1.45;
}
.cwc-market-vehicle-editor button:disabled {
  opacity: .58;
  cursor: wait;
}

/* Refined filmstrip on the public vehicle page, at every viewport width. */
.cwc-avm-shell.detail-page .cwc-avm-gallery,
.cwc-avm-shell.detail-page .cwc-avm-summary-card,
.cwc-avm-shell.detail-page .cwc-avm-specs-card {
  border-radius: 12px;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-main {
  border-radius: 8px;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  color: #244764;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-nav.is-prev { left: 10px; }
.cwc-avm-shell.detail-page .cwc-avm-gallery-nav.is-next { right: 10px; }
.cwc-avm-shell.detail-page .cwc-avm-gallery-nav:hover {
  background: #fff;
  border-color: #6d91b6;
}
.cwc-avm-shell.detail-page .cwc-avm-thumb-carousel {
  display: block;
  min-width: 0;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-thumbs {
  gap: 8px;
  padding: 10px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: #b8c9d9 transparent;
}
.cwc-avm-shell.detail-page .cwc-avm-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  border: 2px solid #dce5ee;
  border-radius: 5px;
  background: #f2f5f8;
  opacity: 1;
  box-shadow: none;
}
.cwc-avm-shell.detail-page .cwc-avm-thumb.active {
  border-color: #5e7fa8;
  box-shadow: 0 0 0 1px #5e7fa8;
}
.cwc-avm-shell.detail-page .cwc-avm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.cwc-avm-shell.detail-page .cwc-avm-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  margin-top: 10px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #315f8b;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: none;
}
.cwc-avm-shell.detail-page .cwc-avm-download:hover {
  color: #183d61;
  text-decoration: underline;
}
.cwc-avm-shell.detail-page .cwc-avm-download span {
  font-size: 1.25em;
  line-height: 1;
}
.cwc-avm-shell.detail-page .cwc-avm-action-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.cwc-avm-shell.detail-page .cwc-avm-btn {
  border-radius: 7px;
}
.cwc-avm-shell.detail-page .cwc-avm-action-row .cwc-avm-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  text-align: center;
}
.cwc-avm-shell.detail-page .cwc-avm-action-row .cwc-avm-btn.primary {
  grid-column: 1 / -1;
}
.cwc-avm-shell.detail-page .cwc-avm-action-close {
  border-radius: 7px;
}
.cwc-avm-shell.detail-page .cwc-avm-gallery-nav:focus-visible,
.cwc-avm-shell.detail-page .cwc-avm-thumb:focus-visible,
.cwc-avm-shell.detail-page .cwc-avm-download:focus-visible {
  outline: 3px solid #79aee0;
  outline-offset: 2px;
}
@media (min-width: 960px) and (max-width: 1080px) {
  .cwc-avm-shell.detail-page .cwc-avm-detail-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .cwc-avm-shell.detail-page .cwc-avm-gallery-nav {
    width: 32px;
    height: 42px;
    font-size: 25px;
  }
  .cwc-avm-shell.detail-page .cwc-avm-gallery-nav.is-prev { left: 6px; }
  .cwc-avm-shell.detail-page .cwc-avm-gallery-nav.is-next { right: 6px; }
  .cwc-avm-shell.detail-page .cwc-avm-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 54px;
  }
}

/* Shared make/model quick-add controls in both authorised vehicle editors. */
.cwc-catalog-ui .cwc-catalog-field { min-width: 0; }
.cwc-catalog-ui .cwc-catalog-quick { margin-top: 5px; }
.cwc-catalog-ui .cwc-catalog-toggle {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: #315f8b;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.cwc-catalog-ui .cwc-catalog-panel[hidden] { display: none; }
.cwc-catalog-ui .cwc-catalog-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid #d4e2ef;
  border-radius: 8px;
  background: #f4f8fc;
}
.cwc-catalog-ui .cwc-catalog-panel input {
  flex: 1 1 130px;
  min-width: 0;
  width: auto;
  padding: 9px;
}
.cwc-catalog-ui .cwc-catalog-save {
  flex: none;
  padding: 9px 12px;
  border: 1px solid #5e7fa8;
  border-radius: 6px;
  background: #5e7fa8;
  color: #fff;
  cursor: pointer;
}
.cwc-catalog-ui .cwc-catalog-status {
  flex: 1 1 100%;
  color: #36516c;
  font-size: .84rem;
}
.cwc-market-catalog-list {
  columns: 2 280px;
  column-gap: 16px;
  margin-top: 14px;
}
.cwc-market-catalog-list details {
  break-inside: avoid;
  margin-bottom: 8px;
  padding: 10px 13px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #fff;
}
.cwc-market-catalog-list summary { cursor: pointer; font-weight: 700; }
.cwc-market-catalog-list summary small { color: #64778a; font-weight: 400; }
.cwc-market-catalog-list p { overflow-wrap: anywhere; line-height: 1.6; }
