.wrapper_favor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  height: 100%;
  position: relative;
}

.title_favor {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 15px;
  height: 22px;
  padding-left: 1px;
}

#catalog_favor_block .to-cart {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

#catalog_favor_block .in-cart {
  width: 100%;
  display: block;
  /* box-sizing: border-box;
    text-align: center; */
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px !important;
}

#catalog_favor_block .to-order {
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px !important;
}

.img_favor {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #242489;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img_favor img {
  width: 12px;
  height: 12px;
}

.title_block {
  margin: 0;
}

.content_favor {
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: 89.6%;
  border: 1px solid rgba(24, 70, 143, 0.1);
  border-radius: 8px;
}

.left_block_favore {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
}

.slider_favor {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slides_favor {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide_favor {
  min-width: 100%;
  height: 100%;
}

.slide_favor img {
  width: 100%;
  object-fit: contain;
}

.price_favor {
  gap: 4px;
  display: flex;
  flex-direction: column;
  margin: 0px 0 6px 16px;
}

/* РЎРєСЂС‹РІР°РµРј РґСѓР±Р»РёРєР°С‚ С†РµРЅ РЅР° РґРµСЃРєС‚РѕРїРµ */
.price_favor_mobile {
  display: none;
}

.card_price {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.card_price_favor {
  font-size: clamp(12px, 3vw, 15px);
  text-decoration: line-through;
}

.discount_amount {
  background: #ffc74a;
  padding: 4px 8px;
  border-radius: 4px;
  color: #252525;
  font-size: clamp(10px, 2vw, 12px);
  font-weight: 700;
}

.cash_price {
  display: flex;
  font-size: clamp(18px, 4vw, 18px);
  font-weight: 700;
  color: #252525;
  gap: 2px;
}

.cashback_favor {
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
  color: #242489;
  font-size: clamp(12px, 2vw, 12px);
}

.right_block_favor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin: 12px 4px 6px 0px;
}

.favor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-base-color);
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.favor--prev {
  left: 10px;
  transform: translateY(-50%) translateX(-20px);
}

.favor--next {
  right: 10px;
  transform: translateY(-50%) translateX(20px);
}

.wrapper_favor:hover .favor {
  opacity: 1;
  pointer-events: auto;
}

.wrapper_favor:hover .favor--prev {
  transform: translateY(-50%) translateX(0);
}

.wrapper_favor:hover .favor--next {
  transform: translateY(-50%) translateX(0);
}

.favor--next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-right: 2px;
  border-radius: 1px;
}

.favor--prev::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(135deg);
  margin-left: 4px;
  border-radius: 1px;
}

input[type="radio"] {
  display: none;
}

/* .slide_favor_info {
  display: none;
} */

.slide_favor_wrapper {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  justify-content: space-between;
}

.slide_favor_wrapper:hover {
  text-decoration: none;
}

@media (max-width: 991px) {
  .price_favor {
    margin-left: 0;
  }

  .slider_favor {
    overflow: visible;
    display: flex;
  }

  .slide_favor_info {
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 8px;
    margin-top: 10px;
  }

  .right_block_favor,
  .price_favor,
  .price_favor_mobile,
  #js-add-to-basket-block {
    display: none !important;
  }

  .content_favor {
    flex-direction: column;
    overflow-x: scroll;
    border: none;
  }

  .favor {
    display: none;
  }

  .slide_favor {
    min-width: 270px;
    width: 50%;
    padding: 10px 10px;
    border: 1px solid rgba(24, 70, 143, 0.1);
    border-radius: 8px;
    margin: 0 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .wrapper_favor {
    padding: 0 10px;
  }

  .prev_favor {
    left: 10px;
  }

  .next_favor {
    right: 10px;
  }

  .slider_favor {
    overflow: visible;
  }

  .price_favor {
    display: none;
    margin-left: 0;
  }

  .price_favor_mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0;
  }
}

@media (max-width: 576px) {
  .prev_favor,
  .next_favor {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .prev_favor,
  .next_favor {
    position: absolute;
    top: 48%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background: #242489;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    border-radius: 4px;
  }
}