.nomatic-recommendations {
  clear: both;
  margin: 32px 0 24px;
  padding: 12px 0 16px;
  border-top: 1px solid #d5d9d9;
  border-bottom: 1px solid #d5d9d9;
  background: #fff;
  color: #0f1111;
}

.nomatic-recommendations__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.nomatic-recommendations__title {
  margin: 0;
  color: #0f1111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.nomatic-recommendations__counter {
  flex: 0 0 auto;
  color: #565959;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.nomatic-recommendations__carousel {
  position: relative;
}

.nomatic-recommendations__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 42px 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.nomatic-recommendations__viewport::-webkit-scrollbar {
  display: none;
}

.nomatic-recommendations__track {
  display: flex;
  gap: 18px;
  min-width: 100%;
}

.nomatic-recommendations__item {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 90px) / 6);
  min-width: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

.nomatic-recommendations__image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.nomatic-recommendations__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.nomatic-recommendations__item:hover .nomatic-recommendations__image {
  transform: scale(1.02);
}

.nomatic-recommendations__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding-top: 10px;
}

.nomatic-recommendations__name {
  display: -webkit-box;
  min-height: 59px;
  overflow: hidden;
  color: #0066c0;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nomatic-recommendations__name:hover,
.nomatic-recommendations__name:focus {
  color: #c7511f;
  text-decoration: underline;
}

.nomatic-recommendations__price {
  margin: 7px 0 10px;
  color: #b12704;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.nomatic-recommendations__form {
  margin-top: auto;
}

.nomatic-recommendations__button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #f0b400;
  border-radius: 999px;
  background: #ffd814;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  box-shadow: none;
}

.nomatic-recommendations__button:hover,
.nomatic-recommendations__button:focus {
  border-color: #e2a900;
  background: #f7ca00;
  color: #111827;
}

.nomatic-recommendations__button.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.nomatic-recommendations__nav {
  position: absolute;
  top: 72px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 1px solid #a2a6ac;
  border-radius: 7px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.18);
  cursor: pointer;
}

.nomatic-recommendations__nav:hover,
.nomatic-recommendations__nav:focus {
  border-color: #7f858d;
  background: #f7fafa;
  outline: none;
}

.nomatic-recommendations__nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.nomatic-recommendations__nav--prev {
  left: 0;
}

.nomatic-recommendations__nav--next {
  right: 0;
}

.nomatic-recommendations__nav span {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.nomatic-recommendations__nav--prev span {
  transform: rotate(-45deg);
  margin-left: 4px;
}

.nomatic-recommendations__nav--next span {
  transform: rotate(135deg);
  margin-right: 4px;
}

@media (max-width: 991px) {
  .nomatic-recommendations__item {
    flex-basis: calc((100% - 54px) / 4);
  }
}

@media (max-width: 767px) {
  .nomatic-recommendations {
    margin-top: 24px;
  }

  .nomatic-recommendations__header {
    align-items: flex-start;
  }

  .nomatic-recommendations__viewport {
    padding: 0 34px 4px;
  }

  .nomatic-recommendations__track {
    gap: 14px;
  }

  .nomatic-recommendations__item {
    flex-basis: calc((100% - 14px) / 2);
  }

  .nomatic-recommendations__nav {
    top: 60px;
    width: 30px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .nomatic-recommendations__item {
    flex-basis: 72%;
  }
}
