/* Usato.it external eBay offers. Scoped: no upstream theme overrides. */
.usato-ebay-offers,
.usato-ebay-offers *,
.usato-ebay-main { box-sizing: border-box; }
.usato-ebay-catalog { background: #fafbf9; }
.usato-ebay-catalog main.usato-ebay-main {
  display: block; width: 100%; max-width: 1240px;
  margin: 0 auto; padding: 34px 28px 64px; color: #171c19;
}
.usato-ebay-breadcrumb {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; line-height: 1.5; color: #69726c;
}
.usato-ebay-breadcrumb a { color: #69726c; text-decoration: none; }
.usato-ebay-breadcrumb a:hover { color: var(--usato-primary, #0b6b57); }
.usato-ebay-detail .usato-ebay-breadcrumb { display: block; }
.usato-ebay-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.usato-ebay-crumbs li { display: flex; align-items: baseline; gap: 8px; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
.usato-ebay-crumbs li + li::before { content: '/'; color: #69726c; flex-shrink: 0; }
.usato-ebay-crumbs [aria-current="page"] { color: #27372c; overflow-wrap: anywhere; }
.usato-ebay-intro { padding: 34px 0 32px; border-bottom: 1px solid #e3e8e2; }
.usato-ebay-eyebrow {
  display: block; margin: 0 0 12px;
  color: var(--usato-primary, #0b6b57); font-size: 14px; font-weight: 600;
}
.usato-ebay-intro h1 {
  margin: 0 0 15px; padding: 0; max-width: 900px;
  font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15;
  font-weight: 750; letter-spacing: -1.1px; color: #171c19;
}
.usato-ebay-intro > p {
  max-width: 610px; margin: 0; font-size: 16px;
  line-height: 1.65; color: #69726c;
}
.usato-ebay-intro-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 22px; font-size: 13px; line-height: 1.5; color: #526259;
}
.usato-ebay-intro-note svg { color: var(--usato-primary, #0b6b57); flex-shrink: 0; }
.usato-ebay-intro-note-text { flex: 1; min-width: 0; }
.usato-ebay-offers {
  width: calc(100% - 40px); max-width: 1184px;
  margin: 38px auto; padding: 0; color: #171c19;
}
.usato-ebay-main .usato-ebay-offers { width: 100%; margin: 28px 0 0; }
.usato-ebay-section-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.usato-ebay-section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
img.usato-ebay-logo { display: block; flex-shrink: 0; width: 64px; height: 64px; max-width: none; margin: -18px 0; object-fit: contain; border: 0; }
.usato-ebay-source img.usato-ebay-logo { width: 54px; height: 54px; margin: -17px 0; }
.usato-ebay-offers--listing { width: 100%; max-width: none; margin: 20px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.usato-ebay-offers--listing .usato-ebay-offer { border-color: #3667d6; border-radius: 12px; box-shadow: none; }
.usato-ebay-offers--listing .usato-ebay-offer-content { padding: 12px 14px; }
.usato-ebay-offers--listing .usato-ebay-offer-meta { margin-bottom: 8px; }
.usato-ebay-offers--listing .usato-ebay-offer h3 { font-size: 15px; min-height: 41px; margin-bottom: 12px; -webkit-line-clamp: 2; }
.usato-ebay-offers--listing .usato-ebay-offer-price { font-size: 20px; letter-spacing: -.3px; }
.usato-ebay-offers--listing .usato-ebay-footnote { font-size: 11px; margin-top: 14px; }
.usato-ebay-offers--listing.usato-ebay-offers--list .usato-ebay-cards { grid-template-columns: minmax(0,1fr); }
.usato-ebay-offers--list a.usato-ebay-card-link { display: grid; grid-template-columns: 200px minmax(0,1fr); }
.usato-ebay-offers--list .usato-ebay-media { height: 100%; min-height: 190px; aspect-ratio: auto; }
.usato-ebay-offers--list .usato-ebay-media img { height: 190px; }
.usato-ebay-section-top h2 {
  margin: 0; padding: 0; font-size: 24px; line-height: 1.3;
  font-weight: 700; letter-spacing: -.4px; color: #171c19;
}
.usato-ebay-all {
  flex-shrink: 0; color: var(--usato-primary, #0b6b57);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.usato-ebay-all:hover { text-decoration: underline; }
.usato-ebay-disclosure {
  margin: 10px 0 23px; max-width: 940px;
  color: #69726c; font-size: 13px; line-height: 1.6;
}
.usato-ebay-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.usato-ebay-offers--catalog .usato-ebay-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.usato-ebay-offer {
  min-width: 0; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid #e1e6df; border-radius: 15px; background: #fff;
  box-shadow: 0 2px 3px rgb(25 48 33 / 2%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.usato-ebay-offer:hover { border-color: #b6cbc0; box-shadow: 0 7px 24px rgb(25 48 33 / 7%); }
a.usato-ebay-card-link {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0; color: inherit; text-decoration: none; background: transparent;
}
a.usato-ebay-card-link:hover { color: inherit; text-decoration: none; }
a.usato-ebay-card-link:focus-visible { outline: 3px solid var(--usato-primary, #0b6b57); outline-offset: -3px; }
.usato-ebay-media {
  display: flex; justify-content: center; align-items: center;
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: #f3f5f0; border-bottom: 1px solid #eef1ec;
}
.usato-ebay-media img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center; margin: 0; border: 0;
}
.usato-ebay-offer-content {
  display: flex; flex-direction: column; flex: 1;
  min-width: 0; padding: 17px 19px 19px;
}
.usato-ebay-offer-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.usato-ebay-offer-tag { font-size: 12px; line-height: 1.5; color: #6b756c; }
.usato-ebay-source { display: inline-flex; align-items: center; gap: 3px; color: #6b756c; font-size: 12px; line-height: 1.5; }
.usato-ebay-source svg { width: 14px; height: 14px; }
.usato-ebay-offer h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; overflow-wrap: anywhere; word-break: normal;
  min-height: 69px; margin: 0 0 18px; padding: 0;
  font-size: 17px; line-height: 1.35; font-weight: 650; color: #171c19;
}
.usato-ebay-offer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.usato-ebay-offer p.usato-ebay-offer-location { margin: -6px 0 14px; color: #69726c; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.usato-ebay-offer-price { color: #171c19; font-size: 26px; font-weight: 750; line-height: 1.2; letter-spacing: -.6px; white-space: nowrap; }
.usato-ebay-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 11px; border: 1px solid #d4e2d9; border-radius: 8px;
  color: var(--usato-primary, #0b6b57); font-size: 12px; font-weight: 650;
  line-height: 1.3; white-space: nowrap; transition: background .18s ease, color .18s ease;
}
.usato-ebay-card-link:hover .usato-ebay-cta,
.usato-ebay-card-link:focus-visible .usato-ebay-cta {
  color: #fff; background: var(--usato-primary, #0b6b57); border-color: var(--usato-primary, #0b6b57);
}
.usato-ebay-footnote { margin: 20px 0 0; color: #7a837c; font-size: 12px; line-height: 1.6; }
.usato-ebay-empty { padding: 35px 0; color: #69726c; }
.usato-ebay-empty h2 { color: #171c19; font-size: 22px; }
.usato-ebay-detail-heading { padding: 28px 0 24px; }
.usato-ebay-detail-heading h1 { margin: 0 0 12px; padding: 0; font-size: clamp(27px,3vw,38px); font-weight: 750; line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; }
.usato-ebay-detail-heading > p { margin: 0; color: #69726c; line-height: 1.5; }
.usato-ebay-detail-source { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #69726c; }
.usato-ebay-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 30px; align-items: start; }
.usato-ebay-detail-gallery { grid-column: 1; grid-row: 1; min-width: 0; }
.usato-ebay-detail-content { grid-column: 1; grid-row: 2; min-width: 0; }
.usato-ebay-detail-content > .usato-ebay-detail-panel:first-child { margin-top: 0; }
.usato-ebay-detail-hero { display: flex; align-items: center; justify-content: center; border: 1px solid #e1e6df; border-radius: 15px; overflow: hidden; background: #f3f5f0; }
.usato-ebay-detail-hero img { display: block; width: 100%; height: 520px; object-fit: contain; }
.usato-ebay-gallery { margin-top: 14px; border: 1px solid #e1e6df; border-radius: 12px; padding: 16px; }
.usato-ebay-gallery summary { cursor: pointer; color: var(--usato-primary,#0b6b57); font-weight: 600; }
.usato-ebay-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.usato-ebay-gallery-grid img { display: block; width: 100%; height: 280px; object-fit: contain; border-radius: 8px; background: #f3f5f0; }
.usato-ebay-detail-panel { display: block; margin: 32px 0 0; padding: 0; width: 100%; float: none; }
.usato-ebay-detail-panel h2 { margin: 0 0 16px; padding: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.3px; }
.usato-ebay-detail-panel p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: #526259; overflow-wrap: anywhere; }
.usato-ebay-detail-panel p.usato-ebay-description { white-space: pre-line; color: #27372c; }
.usato-ebay-attributes { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.usato-ebay-attributes > div { padding: 13px 0; border-bottom: 1px solid #e3e8e2; min-width: 0; }
.usato-ebay-attributes dt { font-size: 13px; color: #69726c; margin: 0 0 5px; font-weight: 400; }
.usato-ebay-attributes dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.usato-ebay-detail p.usato-ebay-detail-caption { font-size: 12px; line-height: 1.6; color: #69726c; margin: 14px 0 0; }
aside.usato-ebay-purchase { display: block; width: auto; float: none; position: sticky; top: 100px; margin: 0; padding: 0; grid-column: 2; grid-row: 1 / span 2; }
.usato-ebay-purchase-box { background: #fff; border: 1px solid #dbe5dc; border-radius: 15px; padding: 24px; box-shadow: 0 6px 24px rgb(25 48 33 / 4%); }
.usato-ebay-detail-price { display: block; margin-top: 28px; font-size: 34px; line-height: 1.2; font-weight: 750; letter-spacing: -.8px; }
.usato-ebay-purchase-box > p { font-size: 14px; line-height: 1.5; margin: 12px 0 20px; color: #69726c; }
a.usato-ebay-purchase-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; background: var(--usato-primary,#0b6b57); border-radius: 9px; color: #fff; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; }
a.usato-ebay-purchase-link:hover { color: #fff; background: #075442; }
a.usato-ebay-purchase-link:focus-visible { outline: 3px solid #171c19; outline-offset: 3px; }
@media (max-width: 1050px) {
  .usato-ebay-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .usato-ebay-offers--catalog .usato-ebay-cards { gap: 18px; }
  .usato-ebay-cta { padding: 8px; }
}
@media (max-width: 840px) {
  .usato-ebay-detail-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  aside.usato-ebay-purchase { position: static; grid-column: 1; grid-row: 2; }
  .usato-ebay-detail-content { grid-row: 3; }
  .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .usato-ebay-offers--catalog .usato-ebay-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usato-ebay-catalog main.usato-ebay-main { padding-right: 20px; padding-left: 20px; }
  .usato-ebay-section-top h2 { font-size: 22px; }
}
@media (max-width: 540px) {
  .usato-ebay-section-title { gap: 8px; align-items: center; }
  .usato-ebay-offers--listing { width: 100%; padding: 0; }
  .usato-ebay-detail-heading { padding: 26px 0 20px; }
  .usato-ebay-detail-heading h1 { font-size: 27px; }
  .usato-ebay-purchase-box { padding: 20px; }
  .usato-ebay-detail-hero img { height: 360px; }
  .usato-ebay-gallery-grid img { height: 190px; }
  .usato-ebay-attributes { grid-template-columns: minmax(0,1fr); }
  .usato-ebay-catalog main.usato-ebay-main { padding: 23px 16px 40px; }
  .usato-ebay-intro { padding: 26px 0 24px; }
  .usato-ebay-intro h1 { font-size: 31px; letter-spacing: -.8px; }
  .usato-ebay-intro > p { font-size: 14px; }
  .usato-ebay-intro-note { font-size: 12px; gap: 6px; margin-top: 17px; }
  .usato-ebay-offers { width: calc(100% - 32px); margin: 28px auto; }
  .usato-ebay-offers--listing { width: 100%; }
  .usato-ebay-section-top { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .usato-ebay-section-top h2 { font-size: 20px; }
  .usato-ebay-all { justify-self: end; font-size: 13px; line-height: 1.6; }
  .usato-ebay-disclosure { font-size: 12px; margin-bottom: 18px; }
  .usato-ebay-cards,
  .usato-ebay-offers--catalog .usato-ebay-cards,
  .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  a.usato-ebay-card-link,
  .usato-ebay-offers--list a.usato-ebay-card-link { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .usato-ebay-media { height: 100%; min-height: 175px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #eef1ec; }
  .usato-ebay-media img { height: 175px; }
  .usato-ebay-offer-content { padding: 13px 14px; }
  .usato-ebay-offer-meta { margin-bottom: 8px; }
  .usato-ebay-offer h3 { font-size: 14px; min-height: 56px; margin-bottom: 11px; }
  .usato-ebay-offer-price { font-size: 22px; }
  .usato-ebay-cta { padding: 0; border: 0; font-size: 11px; background: transparent; }
  .usato-ebay-cta svg { width: 15px; height: 15px; }
  .usato-ebay-card-link:hover .usato-ebay-cta,
  .usato-ebay-card-link:focus-visible .usato-ebay-cta { color: var(--usato-primary, #0b6b57); background: transparent; }
}
@media (max-width: 359px) {
  a.usato-ebay-card-link,
  .usato-ebay-offers--list a.usato-ebay-card-link { grid-template-columns: 104px minmax(0, 1fr); }
  .usato-ebay-offer-content { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .usato-ebay-offer, .usato-ebay-cta { transition: none; }
}
/* The theme switches search views without a page reload. Follow the active
   control, while preserving the contiguous, explicitly identified eBay group. */
#search-main:has(.view-type .list.active) .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: minmax(0,1fr); }
#search-main:has(.view-type .list.active) .usato-ebay-offers--listing a.usato-ebay-card-link { display: grid; grid-template-columns: 200px minmax(0,1fr); }
#search-main:has(.view-type .list.active) .usato-ebay-offers--listing .usato-ebay-media { height: 100%; min-height: 190px; aspect-ratio: auto; }
#search-main:has(.view-type .list.active) .usato-ebay-offers--listing .usato-ebay-media img { height: 190px; }
#search-main:has(.view-type .grid.active) .usato-ebay-offers--listing a.usato-ebay-card-link { display: flex; flex-direction: column; }
#search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-media { height: auto; min-height: 0; aspect-ratio: 4/3; }
#search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-media img { height: 100%; }
@media (min-width: 1051px) {
  #search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1050px) and (min-width: 541px) {
  #search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  #search-main:has(.view-type .list.active) .usato-ebay-offers--listing a.usato-ebay-card-link,
  #search-main:has(.view-type .grid.active) .usato-ebay-offers--listing a.usato-ebay-card-link { display: grid; grid-template-columns: 124px minmax(0,1fr); }
  #search-main:has(.view-type .list.active) .usato-ebay-offers--listing .usato-ebay-media,
  #search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-media { height: 100%; min-height: 175px; aspect-ratio: auto; }
  #search-main:has(.view-type .list.active) .usato-ebay-offers--listing .usato-ebay-media img,
  #search-main:has(.view-type .grid.active) .usato-ebay-offers--listing .usato-ebay-media img { height: 175px; }
}
