.swiper-product {
  position: relative;
  padding-bottom: 12px;
}

.swiper-product .swiper-button-next,
.swiper-product .swiper-button-prev {
  border: 0;
  font-family: inherit;
  color: var(--te-red, #e00032);
  background-color: #26262680;
  padding: 10px 5px;
  border-radius: 5px;
  transition:
    color 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
}

.swiper-product .swiper-button-next:hover,
.swiper-product .swiper-button-prev:hover {
  color: #ffffff;
  background-color: rgb(224 0 50 / 50%);
}

.swiper-product .swiper-button-next::after,
.swiper-product .swiper-button-prev::after {
  font-size: 12px;
}

.swiper-product .auto-card-scrollbar {
  position: absolute;
  left: 14px !important;
  right: 14px !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: 3px !important;
  z-index: 5;
  border-radius: 999px;
  background: #e5e5e5;
  overflow: hidden;
}

.swiper-product .auto-card-scrollbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / var(--te-slide-count, 1));
  border-radius: inherit;
  background: var(--te-red, #e00032);
}

.swiper-product[data-sw-init="1"] .auto-card-scrollbar::before {
  display: none;
}

.swiper-product .auto-card-scrollbar .swiper-scrollbar-drag {
  height: 100%;
  border-radius: 999px;
  background: var(--te-red, #e00032);
}

/* =========================================================
   AUTO CARD COMMON ELEMENTS
   ========================================================= */

.auto-label {
  min-width: 83px;
}

.auto-item-descr {
  flex: 1;
  padding: 32px 20px 10px;
  position: relative;
}

.auto-item-subtitle {
  margin: 5px 0;
  color: var(--te-text-dark, #414141);
  font-size: 14px;
  font-weight: 400;
}

.auto-item .catalog-item-options,
.auto-item-descr .catalog-item-options {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price.acc p {
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 20px;
}

.price.price-rub p > b {
  font-size: 12px;
}

.price.price-total {
  padding: 3px 20px;
  font-size: 12px;
}

.price.car-vehicleNo {
  border: 1px solid #000000;
  max-width: max-content;
  position: relative;
  margin: 0 auto;
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 2px 14px;
}

.auto-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auto-not-interest {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
}

.auto-not-interest:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.auto-not-interest.is-on {
  background: var(--te-red, #e00032);
}

.auto-label.auto-label-ni {
  position: absolute;
  display: none;
  inset: 0;
  z-index: 1;
  padding: 0;
  pointer-events: none;
  background: rgb(0 0 0 / 50%);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  opacity: 1;
  font-size: 20px;
  line-height: 1.2;
  border-radius: 1rem;
}

.auto-label.auto-label-ni.is-on {
  display: inline-flex;
}

.auto-item--link {
  cursor: pointer;
}

.auto-item--link .te-car-title,
.auto-item--link .te-car-title__text {
  transition: color 0.18s ease;
}

.auto-item--link:hover .te-car-title,
.auto-item--link:hover .te-car-title__text,
.auto-item--link:focus-visible .te-car-title,
.auto-item--link:focus-visible .te-car-title__text,
.auto-item--link:focus-within .te-car-title,
.auto-item--link:focus-within .te-car-title__text {
  color: var(--te-red, #e00032);
}

.auto-item-title-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.auto-item-title-link:hover {
  color: var(--te-red, #e00032);
  text-decoration: none;
}

.auto-item-title-link:focus-visible {
  color: var(--te-red, #e00032);
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {
  .auto-item .auto-item-img img {
    height: 70%;
    max-height: 210px;
  }

  .auto-item .checkoutButton {
    display: flex;
  }
}

@media (max-width: 575.98px) {
  .auto-item-title {
    font-size: 20px;
  }

  .auto-item .catalog-item-options,
  .auto-item-descr .catalog-item-options {
    font-size: 16px;
  }
}

/* Shared catalog card grid and existing action icon. */
.auto-item.col-1 {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  border-radius: 10px;
}

.auto-item--no-link {
  cursor: default;
}

.auto-item--no-link .auto-item-readmore {
  display: none;
}

.auto-item-readmore .buttonaction {
  width: 32px;
  height: 32px;
  display: inline-block;
  background-image: url(../images/card-action.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
  .auto-item.col-md-2 {
    width: calc(50% - 20px);
    border-radius: 10px;
  }
}

@media screen and (min-width: 1080px) {
  .auto-item.col-md-2 {
    width: calc((100% / 3) - 20px);
    border-radius: 10px;
  }
}


.swiper-product .swiper-button-prev:focus-visible,
.swiper-product .swiper-button-next:focus-visible {
  outline: 2px solid var(--te-red, #e00032);
  outline-offset: 3px;
}
