/* Pronto para correr: final visual layer for expanded kit items.
   This file intentionally loads after the older ready-kits CSS. */

body.ready-race-page .sr-race-book-panel {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

body.ready-race-page .sr-race-book-summary {
  max-width: none !important;
}

body.ready-race-page .sr-race-swatch-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
}

body.ready-race-page .sr-race-book-panel.has-many-items .sr-race-swatch-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.ready-race-page .sr-race-book-panel.has-six-items .sr-race-swatch-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.ready-race-page .sr-race-swatch,
body.ready-race-page .sr-race-swatch * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  letter-spacing: 0 !important;
}

body.ready-race-page .sr-race-swatch {
  min-height: 172px !important;
  display: grid !important;
  grid-template-areas: "card" !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(8, 20, 14, 0.12) !important;
  background: #fff !important;
  color: #08140e !important;
  text-decoration: none !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08) !important;
}

html.dark-theme body.ready-race-page .sr-race-swatch {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: #0b1511 !important;
  color: #fffaf0 !important;
}

body.ready-race-page .sr-race-swatch-face {
  grid-area: card !important;
  width: 100% !important;
  min-width: 0 !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

body.ready-race-page .sr-race-swatch-front {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 126px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px !important;
  opacity: 1 !important;
  transform: none !important;
}

body.ready-race-page .sr-race-swatch-media {
  grid-column: 2 !important;
  width: 126px !important;
  height: 126px !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 16px !important;
  border: 1px solid rgba(8, 20, 14, 0.1) !important;
  background: #fff !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

body.ready-race-page .sr-race-swatch-media img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 10px !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

body.ready-race-page .sr-race-swatch-title {
  grid-column: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}

body.ready-race-page .sr-race-swatch-title small,
body.ready-race-page .sr-race-swatch-back small {
  color: var(--kit-accent, #d5a900) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.ready-race-page .sr-race-swatch-title strong,
body.ready-race-page .sr-race-swatch-back strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.ready-race-page .sr-race-swatch-title em,
body.ready-race-page .sr-race-swatch-back em {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-style: normal !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  opacity: 0.72 !important;
}

body.ready-race-page .sr-race-swatch-back {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 18px !important;
  background: #07130e !important;
  color: #fffaf0 !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
}

body.ready-race-page .sr-race-swatch-back p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  opacity: 0.86 !important;
}

body.ready-race-page .sr-race-swatch-back b {
  align-self: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  background: #fffaf0 !important;
  color: #07130e !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

body.ready-race-page .sr-race-swatch:hover,
body.ready-race-page .sr-race-swatch:focus-visible {
  border-color: var(--kit-accent, #d5a900) !important;
  transform: translateY(-2px) !important;
}

body.ready-race-page .sr-race-swatch:hover .sr-race-swatch-front,
body.ready-race-page .sr-race-swatch:focus-visible .sr-race-swatch-front {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}

body.ready-race-page .sr-race-swatch:hover .sr-race-swatch-back,
body.ready-race-page .sr-race-swatch:focus-visible .sr-race-swatch-back {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 1180px) {
  body.ready-race-page .sr-race-book-panel.has-many-items .sr-race-swatch-list,
  body.ready-race-page .sr-race-book-panel.has-six-items .sr-race-swatch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.ready-race-page .sr-race-swatch-list,
  body.ready-race-page .sr-race-book-panel.has-many-items .sr-race-swatch-list,
  body.ready-race-page .sr-race-book-panel.has-six-items .sr-race-swatch-list {
    grid-template-columns: 1fr !important;
  }

  body.ready-race-page .sr-race-swatch {
    min-height: 148px !important;
  }

  body.ready-race-page .sr-race-swatch-front {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    padding: 14px !important;
  }

  body.ready-race-page .sr-race-swatch-media {
    width: 104px !important;
    height: 104px !important;
  }
}
