.basketEmpty:before {
  content: "Ваша корзина пуста";
  color: #979797;
}

.basketEmpty+.basketBottom {
  display: none;
}

.basketActive .basketBox--basket,
.favActive .basketBox--fav {
  opacity: 1;
  right: 120px;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
}

.basketBtn {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  --tw-bg-opacity: 1;
}

.basketImg {
  position: relative;
  z-index: 10;
}

.basketBtn_num {
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
  z-index: 10;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  text-align: center;
  font-family: Montserrat;
  font-size: 10px;
  font-weight: 500;
  line-height: 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.basketBox {
  position: fixed;
  color: #282828;
  top: -100%;
  right: 0px;
  height: 0px;
  max-height: 100%;
  width: 100%;
  overflow: auto;
  text-align: left;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  opacity: 0;
  width: 300px;
  padding: 1rem;
  cursor: initial;
}

.basketBox .basketList {
  max-height: 229px;
  overflow: auto;
}

.basket-product+.basket-product {
  margin-top: 5px;
}

.basketProductDesc {
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.products__btn.btn--light {
  color: #282828;
  background-color: #e9e9e9;
}

.products__btn+.products__btn {
  margin-left: 5px;
}

@media (max-width: 480px) {

  .basketActive .basketBox--basket,
  .favActive .basketBox--fav {
    right: 9px;
  }
}

.basketRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(243 243 243 / var(--tw-border-opacity));
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.basketRow:first-child {
  border-width: 0px;
}

.basketRow_price1 {
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(151 151 151 / var(--tw-text-opacity));
  text-decoration-line: line-through;
}

.basketRow_price1--zakaz {
  margin-bottom: -0.25rem;
  display: block;
}

.basketRow_price2 {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(76 76 76 / var(--tw-text-opacity));
}

.basketBox_all {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(0 195 87 / var(--tw-text-opacity));
}

.basketBox_all:hover {
  border-color: transparent;
}

@media (min-width: 300px) {
  .basketBox_all {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(0 195 87 / var(--tw-border-opacity));
  }
}

.basketBox_title {
  margin-bottom: 1rem;
  font-family: Montserrat;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.basketRow_bottom {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.basketBottom {
  margin-top: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(243 243 243 / var(--tw-bg-opacity));
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 300px) {
  .basketBottom {
    margin-top: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    padding: 0px;
  }
}

.basketBottom_total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(76 76 76 / var(--tw-text-opacity));
}

@media (min-width: 300px) {
  .basketBottom_total {
    display: block;
  }

  .basketBottom_total_caption {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1rem;
  }
}

.basketTotal {
  display: block;
  white-space: nowrap;
}

@media (min-width: 300px) {
  .basketTotal {
    margin-top: -0.25rem;
  }
}

.basketBottom_btn {
  margin-top: 0.75rem;
  display: flex;
  align-content: center;
  justify-content: center;
  border-radius: 0.125rem;
  --tw-bg-opacity: 1;
  text-align: center;
  --tw-text-opacity: 1;
  width: 100px;
  height: 40px;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

@media (min-width: 300px) {
  .basketBottom_btn {
    margin-top: 0px;
  }
}

.basketContinue {
  font-size: 14px;
  margin-top: 20px;
  height: 40px;
}

.products__item.basket-product {
  flex-direction: row;
  flex-wrap: wrap;
  min-height: initial;
  padding: 0;
  border: none;
}

.cart_table_body .products__item.basket-product {
  flex-wrap: nowrap;
  align-items: center;
  min-height: initial;
}

.cart_table_body .products__item.basket-product:before {
  display: none;
}

.cart_table_body .products__item.basket-product .products__bottom {
  margin-top: 0;
  width: 200px;
  background-color: transparent;
  margin-right: 10px;
}

.cart_table_body .products__item.basket-product .products__content {
  padding: 0;
  margin-right: auto;
  margin-left: 20px;
  max-width: 400px;
}

@media (max-width: 850px) {
  .cart_table_body .products__item.basket-product .products__content {
    margin-left: 15px;
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .cart_table_body .products__item.basket-product .products__content {
    max-width: initial;
    margin-left: 0;
  }

  .cart_table_body .products__item.basket-product {
    flex-wrap: wrap;
  }

  .cart_table_body .products__item.basket-product+.products__item.basket-product {
    margin-top: 15px;
  }
}

@media (max-width: 400px) {
  .cart_table_body .products__counter {
    display: flex;
  }
}

.products__item.basket-product .products__bottom {
  padding: 0;
  opacity: 1;
  transform: none;
  width: 100%;
  left: 0;
  bottom: 0;
  position: relative;
  margin-top: 5px;
}

.products__item.basket-product .products__counter,
.products__item.basket-product .products__btn {
  height: 40px;
}

.products__item.basket-product:before {
  width: 100%;
  height: 100%;
  border-width: 1px;
  border-color: #6fa7a4;
  box-shadow: none;
}

.products__item.basket-product:hover .products__content,
.products__item.basket-product:hover .products__img-wrap {
  transform: none;
}

.products__item.basket-product .products__img-wrap {
  padding: 4px 0 0 4px;
}

.products__item.basket-product .products__content {
  max-width: 175px;
  width: 100%;
  padding: 4px 4px 0 0;
}

.products__item.basket-product .products__img {
  width: 60px;
  height: 60px;
}

.products__item.basket-product .products__name {
  font-size: 15px;
}

.products__item.basket-product .products__price {
  margin-top: 5px;
}

.basketActive .nav-block>div:hover,
.basketActive .nav-block>div:focus,
.favActive .nav-block>div:hover,
.favActive .nav-block>div:focus {
  opacity: 1;
}

@media (max-width: 400px) {
  .basketBox .products__counter {
    display: flex;
  }
}