/* BidAndSold UX v9: inline market pulse, condensed related links and live filters */

/* Move availability/price intelligence into the page description band. */
.v9-collection-heading{grid-template-columns:minmax(300px,.38fr) minmax(0,.62fr)!important;align-items:center!important;gap:14px!important}
.v9-hero-summary{display:grid;gap:5px;min-width:0}
.v9-hero-summary>p{margin:0!important;font-size:.71rem!important;line-height:1.2!important;color:#d0d5dd!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v9-inline-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid rgba(255,255,255,.14);border-radius:7px;overflow:hidden;background:rgba(255,255,255,.055)}
.v9-inline-stat{padding:5px 7px;border-right:1px solid rgba(255,255,255,.1);min-width:0}
.v9-inline-stat:last-child{border-right:0}
.v9-inline-stat span,.v9-inline-stat small{display:block;color:#b9c2d0;font-size:.48rem;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v9-inline-stat span{text-transform:uppercase;font-weight:850;letter-spacing:.035em}
.v9-inline-stat strong{display:block;color:#fff;font-size:.72rem;line-height:1.15;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Replace multiple rows of similar model/variant links with one horizontal rail. */
.v9-related{border-bottom:1px solid #e4e7ec;background:#fafafa}
.v9-related-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;min-height:34px}
.v9-related-inner>strong{font-size:.63rem;white-space:nowrap}
.v9-related-scroll{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;padding:3px 0}
.v9-related-scroll::-webkit-scrollbar{display:none}
.v9-related-scroll a{flex:0 0 auto;border:1px solid #e4e7ec;border-radius:999px;background:#fff;padding:3px 7px;font-size:.58rem;text-decoration:none;color:#344054}
.v9-related-scroll a.is-detail{background:#fffaf0;border-color:#ead9b6;color:#8c5b0e}
.v9-related-scroll a:hover{border-color:#d7a94e}
.v9-related-more{border:0;background:transparent;color:#8c5b0e;font-size:.6rem;font-weight:850;white-space:nowrap}

/* Listings start immediately; remove the redundant extra eyebrow row. */
.v9-listings-section{padding-top:5px!important}
.v9-listing-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 4px}
.v9-listing-heading h2{font-size:.98rem!important;margin:0;font-weight:850;letter-spacing:-.025em}
.v9-listing-heading span{font-size:.58rem;color:#067647;font-weight:800}

/* Every collector filter stays on one row on wide screens. On smaller screens it scrolls horizontally instead of increasing page height. */
.v9-auto-filter{border:1px solid #e4e7ec;border-radius:8px;background:#f9fafb;margin-bottom:4px;padding:5px 6px;overflow:hidden}
.v9-filter-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(105px,1fr);gap:4px;align-items:end;overflow-x:auto;scrollbar-width:thin;padding-bottom:1px}
.v9-filter-field{display:grid;gap:1px;min-width:105px}
.v9-filter-field>span{font-size:.47rem;text-transform:uppercase;letter-spacing:.035em;color:#667085;font-weight:850}
.v9-filter-field input,.v9-filter-field select{height:26px;min-width:0;border:1px solid #d0d5dd;border-radius:6px;background:#fff;padding:0 5px;font-size:.59rem;color:#344054}
.v9-filter-clear{height:26px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;padding:0 7px;font-size:.57rem;font-weight:800;white-space:nowrap}
.v9-results-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e4e7ec;border-radius:8px;padding:4px 6px;margin-bottom:5px;background:#fff}
.v9-results-tools>strong{font-size:.62rem}
.v9-results-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.v9-results-actions .save-search-button{margin-left:0!important}

/* Filter refresh happens in place; preserve scroll position and communicate activity without layout jump. */
.v9-listing-refresh{position:relative;min-height:80px;transition:opacity .12s ease}
.v9-listing-refresh.is-loading{opacity:.48}
.v9-listing-refresh.is-loading:after{content:"Refreshing…";position:sticky;top:82px;left:50%;display:block;width:max-content;margin:-26px auto 4px;padding:4px 8px;border-radius:999px;background:#111827;color:#fff;font-size:.56rem;z-index:20}
.v9-refresh-error{position:absolute;z-index:30;top:4px;left:50%;transform:translateX(-50%);background:#b42318;color:#fff;border-radius:7px;padding:5px 9px;font-size:.62rem}

/* Source information stays subtle; the primary action button identifies the marketplace. */
.listing-source{color:#8c5b0e!important;font-weight:800}

/* Further reduce default listing-card height without hiding titles. */
.v9-listings-section .listing-image{aspect-ratio:1.32/1!important}
.v9-listings-section .listing-body{padding:5px!important}
.v9-listings-section .listing-body h3{font-size:.63rem!important;line-height:1.15!important;margin-bottom:2px!important;min-height:2.3em!important;max-height:3.45em!important}
.v9-listings-section .listing-price{font-size:.69rem!important;margin:1px 0!important}
.v9-listings-section .listing-meta{font-size:.5rem!important;line-height:1.08!important}
.v9-listings-section .listing-quality-badges{margin:1px 0!important;max-height:16px!important}
.v9-listings-section .listing-compare{height:21px!important;min-height:21px!important;margin:2px 0!important;font-size:.52rem!important}
.v9-listings-section .reminder-button{font-size:.5rem!important}
.v9-listings-section .market-button,.v9-listings-section .amazon-button{height:25px!important;min-height:25px!important;font-size:.56rem!important}

/* Catawiki settings section inside the existing management form. */
.settings-subsection{grid-column:1/-1;border:1px solid #e4e7ec;border-radius:10px;padding:12px;margin:6px 0 2px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.settings-subsection legend{float:none;width:auto;padding:0 5px;font-size:.85rem;font-weight:850}
.settings-subsection>p,.settings-subsection>div{grid-column:1/-1}
.settings-subsection label{display:grid;gap:4px}
.settings-subsection label>span{font-size:.72rem;font-weight:800}
.settings-subsection input{height:34px;border:1px solid #d0d5dd;border-radius:7px;padding:0 8px}
.settings-subsection small{font-size:.62rem;color:#667085}

@media(max-width:1200px){
  .v9-collection-heading{grid-template-columns:1fr!important;gap:4px!important}
  .v9-hero-summary>p{white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
  .v9-inline-stats{grid-template-columns:repeat(4,minmax(130px,1fr));overflow-x:auto}
}
@media(max-width:700px){
  .v9-inline-stats{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .v9-inline-stat:nth-child(2){border-right:0}.v9-inline-stat:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.1)}
  .v9-related-inner{grid-template-columns:auto minmax(0,1fr)}.v9-related-more{display:none}
  .v9-results-tools{align-items:flex-start;flex-direction:column}.v9-results-actions{width:100%}
  .settings-subsection{grid-template-columns:1fr}
}
