.basket-container {
  padding-top: 10px;
  padding-bottom: 50px;
}

.basket-container section:not(:last-of-type) {
  margin-bottom: 20px;
}

.basket-list__selecting {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.basket-list__selecting .custom-label {
  cursor: pointer;
}

.basket-list__delete-btn {
  display: none;
  align-items: center;
  font-weight: 400;
  font-size: 13px;
  line-height: 120%;
  color: var(--dark-gray);
}

.cross {
  position: relative;
  flex: 0 0 24px;
  height: 24px;
}

.cross::before,
.cross::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1.5px;
  background: var(--dark-gray);
  border-radius: 12px;
  top: 50%;
  left: 50%;
}

.cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#deletedItemCount {
  margin-left: 2px;
}

.basket-list__wrapper > ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.basket-item {
  display: grid;
  gap: 10px 15px;
  grid-template-areas:
    'head name'
    'prices prices'
    'description description';
}

.basket-item__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-area: head;
}

.basket-item__gallery {
  position: relative;
  width: 90px;
  height: 70px;
  overflow: hidden;
}

.basket-item__gallery .basket-item__image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.basket-item__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.basket-item__name {
  grid-area: name;
  font-weight: 400;
  font-size: 13px;
  line-height: 120%;
  color: var(--black);
}

.basket-item .good-item__prices {
  align-items: center;
  gap: 0 10px;
}

.basket-item .good__discount {
  margin-left: 0;
}

.basket-item .good-item__price {
  flex: 0 0 100%;
}

.basket-item .good-item__pre-price {
  flex: 0 0 auto;
}

.basket-item__prices {
  grid-area: prices;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.basket-item__prices .good-item__price {
  font-size: 15px;
}

.basket-item__amount {
  display: flex;
  justify-content: space-between;
  padding: 6px;
  height: 45px;
  flex: 0 0 123px;
  background: var(--gray-bg);
  border-radius: 8px;
}

.basket-item__amount input {
  padding: 10px 6px;
  height: 100%;
  flex: 0 0 42px;
  width: 42px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  background: var(--white);
  border-radius: 8px;
  pointer-events: none;
  text-align: center;
}

.item-amount-minus,
.item-amount-plus {
  flex: 0 0 35px;
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;
  text-align: center;
  color: var(--gray-dissabled);
  border-radius: 8px;
}

.basket-item__descrition {
  grid-area: description;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.basket-result__promo > div {
  display: flex;
  align-items: center;
}

.basket-item__delete-btn {
  display: none;
}

.basket-result__alert {
  display: none;
}

.basket-result__alert,
.basket-result__total {
  font-weight: 500;
  font-size: 15px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 15px;
}

.basket-result__total strong {
  font-weight: 600;
  font-size: 19px;
}

.basket-result .basket-item__descrition {
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  line-height: 120%;
  color: var(--dark-gray);
}

.basket-result__goods span {
  color: var(--black);
}

.basket-result .basket-item__descrition .txt-red {
  font-weight: 500;
}

.basket-promo {
  margin-top: 12px;
  margin-bottom: 12px;
}

.basket-promo input {
  flex-grow: 1;
}

.basket-result .blue-ln-btn {
  margin-bottom: 20px;
}

.options-button {
  margin-top: 20px;
}

@media (min-width: 480px) {
  .basket-item {
    gap: 15px;
    grid-template-areas:
      'head name'
      'head prices'
      'description description';
  }

  .basket-item__gallery,
  .basket-item__image {
    width: 110px;
    height: 85px;
  }

  .basket-item__prices {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .basket-item {
    grid-template-columns: 150px auto 260px;
    grid-template-areas:
      'head name description'
      'head prices description';
  }

  .basket-item__descrition {
    min-width: 260px;
  }
}

@media (min-width: 1280px) {
  .basket-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }

  .basket-item {
    position: relative;
    grid-template-columns: auto 220px auto;
    gap: 20px 40px;
    grid-template-areas:
      'head name prices'
      'head description prices';
  }

  .basket-list__wrapper .basket-item:not(:first-of-type) {
    padding-top: 20px;
    border-top: 1px solid #efefef;
  }

  .basket-list__wrapper .basket-item:not(:last-of-type) {
    margin-bottom: 40px;
  }

  .basket-item__descrition:not(.basket-result .basket-item__descrition) {
    width: 220px;
    min-width: 220px;
  }

  .basket-item__prices {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .basket-item__amount {
    flex: 0 0 45px;
    width: 135px;
  }

  .basket-item .good-item__price {
    flex: 0 0 auto;
  }

  .good-item__pre-price {
    margin-left: 0;
  }

  .basket-item__name {
    font-size: 15px;
  }

  .basket-item__gallery,
  .basket-item__image {
    width: 180px;
    height: 140px;
  }

  .basket-container section:not(:last-of-type) {
    margin-bottom: 0;
  }

  .basket-container {
    padding-bottom: 100px;
  }

  .section-block {
    padding: 30px;
  }

  .basket-result {
    flex: 0 0 300px;
  }

  .basket-result__total strong {
    font-size: 28px;
  }

  .basket-list {
    flex-grow: 1;
  }

  .title {
    margin-bottom: 40px;
  }

  .basket-container {
    padding-top: 20px;
  }

  .basket-item__delete-btn {
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    right: 0;
    top: 12px;
  }

  .basket-item__delete-btn .cross {
    display: block;
    width: 24px;
    position: static;
  }

  .basket-item__delete-btn .cross:before,
  .basket-item__delete-btn .cross:after {
    background: var(--gray-dissabled);
  }

  .options-button {
    margin-top: 60px;
  }
}

@media (min-width: 1440px) {
  .basket-item {
    grid-template-columns: 230px 220px 195px;
    gap: 20px 60px;
  }
}

@media (min-width: 1920px) {
  .basket-item__delete-btn {
    right: 10px;
  }

  .basket-result {
    flex: 0 0 330px;
  }
}
