/* Flying Off the Shelves: public recent-purchase cards, scoped to this section. */
:where(.sale-page) .recent-purchases{
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  padding: 70px 0 44px;
  background: #ffecd8;
}

:where(.sale-page) .recent-purchases .recent-purchases__background{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

:where(.sale-page) .recent-purchases .recent-purchases__background .mi-image__img{
  object-fit: cover;
  object-position: right;
}

:where(.sale-page) .recent-purchases .recent-purchases__content{
  position: relative;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

:where(.sale-page) .recent-purchases .recent-purchases__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

:where(.sale-page) .recent-purchases .recent-purchases__heading{ min-width: 0; }

:where(.sale-page) .recent-purchases .recent-purchases__title{
  margin: 0;
  color: #191919;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

:where(.sale-page) .recent-purchases .recent-purchases__spark{ color: #ff6900; }

:where(.sale-page) .recent-purchases .recent-purchases__subtitle{
  margin: 12px 0 0;
  color: #474747;
  font-size: 16px;
  line-height: 1.5;
}

:where(.sale-page) .recent-purchases .recent-purchases__demo{
  display: inline-flex;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid rgba(173, 78, 0, .18);
  border-radius: 6px;
  color: #844000;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.5;
}

:where(.sale-page) .recent-purchases .recent-purchases__controls{
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

:where(.sale-page) .recent-purchases .recent-purchases__arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(25, 25, 25, .12);
  border-radius: 12px;
  color: #191919;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

:where(.sale-page) .recent-purchases .recent-purchases__arrow svg{ width: 20px; height: 20px; }
:where(.sale-page) .recent-purchases .recent-purchases__arrow:hover:not(:disabled){ color: #fff; background: #ff6900; border-color: #ff6900; }
:where(.sale-page) .recent-purchases .recent-purchases__arrow:disabled{ opacity: .35; cursor: default; }

:where(.sale-page) .recent-purchases .recent-purchases__carousel{
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  padding: 6px 0 18px;
  touch-action: pan-y;
}

:where(.sale-page) .recent-purchases .recent-purchases__carousel:not(.swiper-container-initialized){ overflow-x: auto; }
:where(.sale-page) .recent-purchases .recent-purchases__carousel .swiper-wrapper{ align-items: stretch; transition-timing-function: linear; }
:where(.sale-page) .recent-purchases.recent-purchases--static .swiper-wrapper{ justify-content: center; }

:where(.sale-page) .recent-purchases .recent-purchase{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 283px;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(25, 25, 25, .06);
  border-radius: 12px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

@media (hover: hover) {
  :where(.sale-page) .recent-purchases .recent-purchase:hover{ transform: translateY(-4px); box-shadow: 0 12px 24px rgba(25, 25, 25, .1); }
}

:where(.sale-page) .recent-purchases .recent-purchase__media{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
}

:where(.sale-page) .recent-purchases .recent-purchase__image{
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

:where(.sale-page) .recent-purchases .recent-purchase__city{
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
  background: rgba(25, 25, 25, .78);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}

:where(.sale-page) .recent-purchases .recent-purchase__body{ display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px; }

:where(.sale-page) .recent-purchases .recent-purchase__name{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 48px;
  margin: 0;
  color: #191919;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

:where(.sale-page) .recent-purchases .recent-purchase__prices{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
:where(.sale-page) .recent-purchases .recent-purchase__price{ color: #ff6900; font-size: 24px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
:where(.sale-page) .recent-purchases .recent-purchase__original{ color: #8c8c8c; font-size: 13px; line-height: 1.5; }

:where(.sale-page) .recent-purchases .recent-purchase__placeholder{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: #757575; font-size: 12px; }
:where(.sale-page) .recent-purchases .recent-purchase__placeholder svg{ width: 48px; height: 48px; }

:where(.sale-page) .recent-purchases .recent-purchases__status{ margin: 0; padding: 24px 0; color: #474747; font-size: 14px; line-height: 1.5; }
:where(.sale-page) .recent-purchases .recent-purchases__status--compact{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
:where(.sale-page) .recent-purchases .recent-purchases__retry{ margin-top: 8px; padding: 8px 16px; border: 0; border-radius: 8px; color: #fff; background: #191919; font: inherit; font-size: 14px; cursor: pointer; }
:where(.sale-page) .recent-purchases [hidden]{ display: none !important; }

@media (max-width: 720px) {
  :where(.sale-page) .recent-purchases{ margin: 0 0 8px; padding: 16px 0 17px; }
  :where(.sale-page) .recent-purchases .recent-purchases__header{ gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
  :where(.sale-page) .recent-purchases .recent-purchases__heading{ flex: 1 1 230px; }
  :where(.sale-page) .recent-purchases .recent-purchases__title{ font-size: 20px; }
  :where(.sale-page) .recent-purchases .recent-purchases__subtitle{ margin-top: 6px; font-size: 13px; }
  :where(.sale-page) .recent-purchases .recent-purchases__controls{ margin-left: auto; gap: 8px; }
  :where(.sale-page) .recent-purchases .recent-purchases__arrow{ width: 36px; height: 36px; border-radius: 10px; }
  :where(.sale-page) .recent-purchases .recent-purchases__demo{ margin-bottom: 10px; font-size: 11px; }
  :where(.sale-page) .recent-purchases .recent-purchase{ width: 200px; }
  :where(.sale-page) .recent-purchases .recent-purchase__body{ padding: 16px; }
  :where(.sale-page) .recent-purchases .recent-purchase__name{ font-size: 14px; }
  :where(.sale-page) .recent-purchases .recent-purchase__price{ font-size: 15px; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  :where(.sale-page) .recent-purchases{ margin: 20px 0; padding: 36px 0 30px; }
  :where(.sale-page) .recent-purchases .recent-purchase{ width: 325px; }
  :where(.sale-page) .recent-purchases .recent-purchases__title{ font-size: 28px; }
  :where(.sale-page) .recent-purchases .recent-purchases__subtitle{ font-size: 14px; }
}

@media (min-width: 1441px) {
  :where(.sale-page) .recent-purchases{ padding: 82px 0 53px; }
  :where(.sale-page) .recent-purchases .recent-purchases__content{ max-width: 1400px; }
  :where(.sale-page) .recent-purchases .recent-purchase{ width: 335px; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.sale-page) .recent-purchases .recent-purchase,
:where(.sale-page) .recent-purchases .recent-purchases__arrow{ transition: none; }
}

/* Anonymous attribution and truthful historical-price caption in the existing card body. */
/* Section themes affect the shell; historical purchase cards retain their original white surfaces. */
:where(.sale-page) .recent-purchases.event-theme--dark{background-color:#191919;}
:where(.sale-page) .recent-purchases.event-theme--dark :is(.recent-purchases__title,.recent-purchases__subtitle,.recent-purchases__status){color:#fff;}
:where(.sale-page) .recent-purchases.event-theme--blue{background-color:#e7f2ff;}
