.vb-disc-recommendations {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
  gap: 18px;
  margin: 12px 0 24px;
  padding: 18px;
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  background: #fff;
  color: #454545;
  box-sizing: border-box;
}

.vb-disc-recommendations * {
  box-sizing: border-box;
}

.vb-disc-recommendations__notice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px;
  border-radius: 7px;
  background: #f5f7f8;
}

.vb-disc-recommendations__source-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.vb-disc-recommendations__source-picture {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.vb-disc-recommendations__copy {
  width: 100%;
  padding: 4px 8px 8px;
}

.vb-disc-recommendations__status {
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #e9eef1;
  color: #69757d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.vb-disc-recommendations__notice h2 {
  margin: 0 0 9px;
  color: #3f3f3f;
  font-size: 24px;
  line-height: 1.15;
}

.vb-disc-recommendations__notice p {
  margin: 0;
  color: #70777c;
  font-size: 14px;
  line-height: 1.45;
}

.vb-disc-recommendations__jump,
.vb-disc-recommendations__subscribe {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #168de2;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.vb-disc-recommendations__subscribe {
  display: flex !important;
  width: 100% !important;
  min-height: 38px;
  height: auto !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  line-height: 1.25 !important;
  white-space: normal;
  text-align: center;
}

.vb-disc-recommendations__jump {
  margin-top: 8px;
  background: transparent;
  color: #168de2 !important;
  padding-right: 0;
  padding-left: 0;
}

.vb-disc-recommendations__results {
  min-width: 0;
}

.vb-disc-recommendations__heading {
  margin: 1px 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.vb-disc-recommendations .vb-recommendations__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.vb-disc-recommendations .vb-rec-card {
  gap: 6px;
  padding: 8px;
  transition: none;
}

.vb-disc-recommendations .vb-rec-card:hover,
.vb-disc-more .vb-rec-card:hover {
  transform: none;
  border-color: #f0f1f3;
  box-shadow: none;
}

.vb-disc-recommendations .vb-rec-card__media {
  aspect-ratio: 1 / 0.8;
  background: #fff;
}

.vb-disc-recommendations .vb-rec-card__image,
.vb-disc-more .vb-rec-card__image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.vb-disc-recommendations .vb-rec-card__picture,
.vb-disc-more .vb-rec-card__picture {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.vb-disc-recommendations .vb-rec-card__title {
  min-height: calc(1.28em * 2);
  max-height: calc(1.28em * 2);
  -webkit-line-clamp: 2;
}

.vb-disc-recommendations .vb-rec-card__diff {
  min-height: 0;
}

.vb-disc-sections {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 14px;
  padding: 0 18px;
  color: #68747c;
}

.vb-disc-sections__label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
}

.vb-disc-sections__list {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vb-disc-sections__list::-webkit-scrollbar {
  display: none;
}

.vb-disc-sections__list a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 5px;
  background: #f5f7f8;
  color: #4f5960 !important;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
}

.vb-disc-sections__list a:hover {
  background: #edf2f5;
}

.vb-disc-more {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  background: #fff;
}

.vb-disc-more .vb-recommendations__block {
  margin-bottom: 0;
}

.vb-disc-more .vb-recommendations__title {
  padding-left: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.vb-disc-more .vb-recommendations__grid {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: 224px;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 0 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d9dfe3 transparent;
}

.vb-disc-more .vb-rec-card {
  width: 224px;
  scroll-snap-align: start;
  transition: none;
}

.vb-disc-more .vb-rec-card__media {
  aspect-ratio: 1 / 1;
  background: #fff;
}

.vb-disc-more .vb-rec-card__props {
  display: none;
}

/* If the active-products check leaves only a handful of cards, lay them out
   across the desktop row instead of filling two narrow vertical columns. */
.vb-disc-more--sparse .vb-recommendations__grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 224px));
  grid-template-rows: none;
  grid-auto-columns: auto;
  grid-auto-flow: row;
}

.vb-rec-card--skeleton {
  pointer-events: none;
}

.vb-rec-card--skeleton .vb-rec-card__media {
  border-radius: 4px;
}

.vb-skeleton {
  position: relative;
  overflow: hidden;
  background: #f1f3f5;
}

.vb-skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: vb-disc-skeleton 1.25s ease-in-out infinite;
}

.vb-rec-card__skeleton-tag {
  width: 44%;
  height: 20px;
  border-radius: 5px;
}

.vb-rec-card__skeleton-line {
  width: 92%;
  height: 14px;
  border-radius: 3px;
}

.vb-rec-card__skeleton-line--short {
  width: 68%;
}

.vb-rec-card__skeleton-price {
  width: 40%;
  height: 22px;
  margin-top: auto;
  border-radius: 3px;
}

@keyframes vb-disc-skeleton {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-skeleton::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .vb-disc-recommendations {
    display: block;
    width: auto;
    margin: 10px 12px 16px;
    padding: 10px;
    overflow: hidden;
    border-radius: 6px;
  }

  .vb-disc-recommendations__notice {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .vb-disc-recommendations__source-media {
    height: 150px;
    margin: 0;
  }

  .vb-disc-recommendations__copy {
    align-self: center;
    padding: 2px 2px 2px 0;
  }

  .vb-disc-recommendations__notice--no-image {
    display: block;
  }

  .vb-disc-recommendations__notice h2 {
    font-size: 20px;
  }

  .vb-disc-recommendations__notice p {
    font-size: 13px;
  }

  .vb-disc-recommendations__jump {
    display: none;
  }

  .vb-disc-recommendations__subscribe {
    margin-top: 10px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .vb-disc-recommendations__results {
    margin-top: 14px;
    overflow: hidden;
  }

  .vb-disc-recommendations__heading {
    font-size: 17px;
  }

  .vb-disc-recommendations .vb-recommendations__grid {
    display: flex;
    gap: 8px;
    padding: 0 0 7px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .vb-disc-recommendations .vb-recommendations__grid::-webkit-scrollbar {
    display: none;
  }

  .vb-disc-recommendations .vb-rec-card {
    width: auto;
    min-width: 0;
    flex: 0 0 min(68vw, 240px);
    gap: 5px;
    padding: 6px;
    scroll-snap-align: start;
  }

  .vb-disc-recommendations .vb-rec-card__media {
    aspect-ratio: 1 / 1;
  }

  .vb-disc-recommendations .vb-rec-card__title,
  .vb-disc-more .vb-rec-card__title {
    min-height: calc(1.28em * 3);
    max-height: calc(1.28em * 3);
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .vb-disc-recommendations .vb-rec-card__diff span,
  .vb-disc-more .vb-rec-card__diff span {
    padding: 4px 5px;
    font-size: 10px;
  }

  .vb-disc-recommendations .vb-rec-card__price-row,
  .vb-disc-more .vb-rec-card__price-row {
    gap: 5px;
  }

  .vb-disc-recommendations .vb-rec-card__price,
  .vb-disc-more .vb-rec-card__price {
    font-size: 17px;
  }

  .vb-disc-recommendations .vb-rec-card__old-price,
  .vb-disc-more .vb-rec-card__old-price {
    font-size: 11px;
  }

  .vb-disc-sections {
    display: block;
    width: auto;
    margin: -4px 12px 14px;
    padding: 0;
  }

  .vb-disc-sections__label {
    display: block;
    margin-bottom: 7px;
  }

  .vb-disc-more {
    width: auto;
    margin: 0 12px 18px;
    padding: 10px;
    overflow: hidden;
    border-radius: 6px;
  }

  .vb-disc-more .vb-recommendations__title {
    font-size: 18px;
  }

  .vb-disc-more .vb-rec-card {
    width: 100%;
    min-width: 0;
    gap: 5px;
    padding: 6px;
  }

  .vb-disc-more .vb-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 8px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .vb-disc-more--sparse .vb-recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
