/* Best Sellers premium cards. Loaded after the workshop sheets so it wins on equal specificity. */

body.is-home-page #topParts#topParts.top-selling-section {
  position: relative !important;
  background: #07080c !important;
  background-image: none !important;
  color: #f4f4f5 !important;
  overflow: hidden !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.is-home-page #topParts#topParts > .section-inner,
body.is-home-page #topParts#topParts .top-parts-mobile.mob-card-body--marquee,
body.is-home-page #topParts#topParts #topPartsViewport.top-parts-viewport,
body.is-home-page #topParts#topParts #topPartsTrack.top-selling-track {
  background: transparent !important;
  background-image: none !important;
}

body.is-home-page #topParts .bs-prem-accent {
  position: absolute !important;
  z-index: 0 !important;
  width: 92px !important;
  height: 64px !important;
  pointer-events: none !important;
  background: repeating-linear-gradient(
    -32deg,
    transparent 0 7px,
    rgba(245, 197, 24, 0.55) 7px 9px
  ) !important;
  opacity: 0.7 !important;
}

body.is-home-page #topParts .bs-prem-accent--a {
  top: 0 !important;
  inset-inline-start: 0 !important;
  mask-image: linear-gradient(to bottom left, #000 20%, transparent 72%) !important;
}

body.is-home-page #topParts .bs-prem-accent--b {
  top: 0 !important;
  inset-inline-end: 0 !important;
  mask-image: linear-gradient(to bottom right, #000 20%, transparent 72%) !important;
}

body.is-home-page #topParts#topParts > .section-inner {
  position: relative !important;
  z-index: 1 !important;
}

body.is-home-page #topParts .bs-prem-head.section-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 14px !important;
  padding: 0 4px 12px !important;
  border-bottom: 1px solid rgba(245, 197, 24, 0.28) !important;
}

body.is-home-page #topParts .top-parts-head-copy {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

body.is-home-page #topParts .bs-prem-head__title.section-title,
body.is-home-page #topParts .top-selling-section-title {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.is-home-page #topParts .top-selling-title-flame {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  color: #f5c518 !important;
}

body.is-home-page #topParts .bs-prem-head__sub {
  margin: 0 !important;
  color: #c9c9cf !important;
  font-size: clamp(13px, 1.5vw, 16px) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

body.is-home-page #topParts button.btn-all-gold,
body.is-home-page #topParts.top-selling-section button.btn-all-gold {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  border: 1.5px solid #f5c518 !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #f5c518 !important;
  -webkit-text-fill-color: #f5c518 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.is-home-page #topParts button.btn-all-gold span,
body.is-home-page #topParts.top-selling-section button.btn-all-gold span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  background: transparent !important;
}

body.is-home-page #topParts button.btn-all-gold:hover,
body.is-home-page #topParts button.btn-all-gold:focus-visible {
  background: rgba(245, 197, 24, 0.12) !important;
  color: #ffd84a !important;
  -webkit-text-fill-color: #ffd84a !important;
}

body.is-home-page #topParts .bs-prem-head__chev {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

body.is-home-page #topParts .bs-prem-head__chev::before {
  content: "→" !important;
}

html[dir="rtl"] body.is-home-page #topParts .bs-prem-head__chev::before {
  content: "←" !important;
}

body.is-home-page #topParts .top-parts-swipe-hint {
  color: #8d8d96 !important;
  font-size: 12px !important;
}

body.is-home-page #topParts#topParts #topPartsTrack > .top-selling-card.oem-rec-card.bs-prem,
body.is-home-page #topParts .top-selling-card.oem-rec-card.bs-prem {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 1px solid rgba(245, 197, 24, 0.42) !important;
  border-radius: 22px !important;
  background: #141416 !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 900px) {
  body.is-home-page #topParts #topPartsTrack > .top-selling-card.oem-rec-card.bs-prem {
    flex: 0 0 min(78vw, 340px) !important;
    width: min(78vw, 340px) !important;
    min-width: min(78vw, 340px) !important;
    max-width: min(78vw, 340px) !important;
  }
}

@media (min-width: 901px) {
  body.is-home-page #topParts #topPartsTrack > .top-selling-card.oem-rec-card.bs-prem {
    flex: 0 0 clamp(280px, 34vw, 420px) !important;
    width: clamp(280px, 34vw, 420px) !important;
    min-width: clamp(280px, 34vw, 420px) !important;
    max-width: clamp(280px, 34vw, 420px) !important;
  }
}

body.is-home-page #topParts .bs-prem__media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 168px !important;
  min-height: 168px !important;
  margin: 0 !important;
  padding: 18px 16px 28px !important;
  background: radial-gradient(circle at 50% 58%, #2c2c30 0%, #101012 72%) !important;
}

body.is-home-page #topParts .bs-prem__media img,
body.is-home-page #topParts .bs-prem__media .product-card-img,
body.is-home-page #topParts .bs-prem .top-selling-cutout {
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 132px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  background: transparent !important;
  filter: none !important;
  transform: none !important;
}

body.is-home-page #topParts .bs-prem__brand {
  position: absolute !important;
  top: 12px !important;
  inset-inline-start: 12px !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  padding: 4px !important;
  border-radius: 10px !important;
  background: #fff !important;
}

body.is-home-page #topParts .bs-prem__brand-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

body.is-home-page #topParts .bs-prem__brand-fallback {
  display: none !important;
  color: #111 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

body.is-home-page #topParts .bs-prem__badge {
  position: absolute !important;
  z-index: 2 !important;
  bottom: 10px !important;
  inset-inline-start: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  max-width: calc(100% - 24px) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #f5c518 !important;
  color: #161616 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.is-home-page #topParts .bs-prem__crown {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

body.is-home-page #topParts .bs-prem__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  padding: 12px 14px 14px !important;
  text-align: start !important;
}

body.is-home-page #topParts .bs-prem__name,
body.is-home-page #topParts .bs-prem .top-selling-name {
  margin: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.is-home-page #topParts .bs-prem__spec {
  margin: 0 !important;
  color: #a1a1aa !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

body.is-home-page #topParts .bs-prem__rating {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 18px !important;
}

body.is-home-page #topParts .bs-prem .product-star {
  color: #3a3a3e !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body.is-home-page #topParts .bs-prem .product-star.is-filled {
  color: #f5c518 !important;
}

body.is-home-page #topParts .bs-prem__count {
  color: #d4d4d8 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.is-home-page #topParts .bs-prem__price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 2px !important;
  color: #f5c518 !important;
}

body.is-home-page #topParts .bs-prem__amount {
  color: #f5c518 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body.is-home-page #topParts .bs-prem__cur {
  color: #f5c518 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.is-home-page #topParts .bs-prem__compare {
  color: #8b8b93 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: line-through !important;
}

body.is-home-page #topParts .bs-prem__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

body.is-home-page #topParts .bs-prem__cart.top-selling-cart {
  display: inline-flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f5c518 !important;
  color: #141416 !important;
  -webkit-text-fill-color: #141416 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.is-home-page #topParts .bs-prem__cart .top-selling-cart__icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  stroke: #141416 !important;
}

body.is-home-page #topParts .bs-prem__cart .top-selling-cart__label {
  overflow: hidden !important;
  color: #141416 !important;
  -webkit-text-fill-color: #141416 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-home-page #topParts .bs-prem__fav {
  display: inline-flex !important;
  flex: 0 0 44px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer !important;
}

body.is-home-page #topParts .bs-prem__fav svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

body.is-home-page #topParts .bs-prem__fav.is-active {
  border-color: #f5c518 !important;
  color: #f5c518 !important;
}

body.is-home-page #topParts .bs-prem__fav.is-active svg {
  fill: #f5c518 !important;
}

/* Beat later workshop and dark-theme rules that share these nodes. */
html body.is-home-page:not(#sd-x) #topParts#topParts.top-selling-section {
  background: #07080c !important;
  background-image: none !important;
}

html body.is-home-page #topParts#topParts.top-selling-section .bs-prem-head__title.section-title,
html body.is-home-page #topParts#topParts.top-selling-section .bs-prem-head__title.section-title > span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}

html body.is-home-page #topParts#topParts.top-selling-section .top-selling-title-flame {
  width: 26px !important;
  height: 26px !important;
  color: #f5c518 !important;
  -webkit-text-fill-color: #f5c518 !important;
}

html body.is-home-page:not(#sd-x) #topParts#topParts.top-selling-section button.btn-all-gold,
html body.is-home-page:not(#sd-x) #topParts#topParts.top-selling-section button.btn-all-gold span {
  color: #f5c518 !important;
  -webkit-text-fill-color: #f5c518 !important;
  background: transparent !important;
  border-color: #f5c518 !important;
}

html body.is-home-page #topParts#topParts .bs-prem-head.section-head {
  position: relative !important;
  align-items: flex-start !important;
  min-height: 64px !important;
  /* Pull the title up into the vertical middle of the two corner marks. */
  margin-top: -18px !important;
}

html body.is-home-page #topParts#topParts .bs-prem-head .top-parts-head-copy {
  align-items: center !important;
  text-align: center !important;
}

html body.is-home-page #topParts#topParts .bs-prem-head__title.section-title {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  z-index: 1 !important;
  justify-content: center !important;
  width: max-content !important;
  max-width: calc(100% - 150px) !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
}

html body.is-home-page #topParts#topParts .bs-prem-head__title .top-selling-title-flame {
  position: absolute !important;
  inset-inline-end: calc(100% + 8px) !important;
  top: 50% !important;
  margin: -13px 0 0 !important;
}

html body.is-home-page #topParts#topParts .bs-prem-head__sub {
  position: absolute !important;
  left: 50% !important;
  top: 36px !important;
  z-index: 1 !important;
  width: max-content !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
}

html body.is-home-page #topParts#topParts .bs-prem__media img {
  max-width: 92% !important;
  max-height: 150px !important;
}

html body.is-home-page:not(#tsd-a) #topParts#topParts .bs-prem__body > .top-selling-name.bs-prem__name {
  order: 0 !important;
  white-space: normal !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
