.charity {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;

  &_hide {
    display: none;
  }

  &__msg {
    font-size: .875rem;
    font-weight: 500;
  }

  &__prompt {
    display: block;
    font-size: .75rem;
    font-weight: 400;
  }

  &__img {
    width: 180px;
  }

  label {
    font-size: 1rem;
    font-weight: 500;
  }
}

.charity-new {
  &.charity-added {
    label[for='donation'] {
      display: none;
    }

    .order-item__remove {
      display: block;
    }
  }

  .order-item__remove {
    display: none;
  }

  .checkout-info-wrap {
    background-color: $gray-bg;
    padding: 10px 15px 15px;
    margin: 0;

    & .order-item__remove {
      position: static;
    }
  }

  .checkout-order {
    &__img {
      flex: none;
      width: 100%;
      height: 100%;
      max-height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 160px;

      img {
        width: 100%;
        height: auto;
        max-height: initial;
      }

      .image {
        width: 140px;
      }
    }

    .title-wrap {
      .title {
        font-size: .875rem;
        font-weight: 500;
      }

      .descr {
        font-size: .75rem;
        font-weight: 500;
      }
    }

    .price-wrap {
      &__donation {
        align-self: center;
      }

      label {
        margin-top: 8px;
        font-weight: 500;
      }

      .order-item {
        &__remove {
          margin-top: 5px;
        }
      }
    }

    &__info-wrap {
      flex: 1;
      flex-direction: row;
      padding-top: 15px;
      max-width: 100%;
    }
  }
}

.charity-donation-new {
  background-color: $gray-bg;
  padding: 16px;

  &__wrapper {
    display: flex;
    flex-direction: column;
  }

  &__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  &__header {
    display: flex;
    gap: 12px;
  }

  &__right {
    flex-shrink: 0;
  }

  &__image {
    width: 64px;
  }

  &__title {
    width: 100%;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.375rem;
    margin-bottom: 12px;
  }

  &__description {
    width: 100%;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1rem;
    margin-bottom: 16px;
  }

  &__message {
    font-size: .75rem;
    line-height: 1rem;
  }

  &__body {
    width: 100%;
  }
}

@include media-breakpoint-up(sm) {
  .charity-donation-new {
    &__title {
      width: 100%;
      font-weight: 500;
      font-size: 1rem;
      line-height: 1.5rem;
    }

    &__description {
      width: 100%;
      margin: 0;
    }

    &__message {
      display: block;
    }

    &__image {
      width: 100px;
    }

    &__body {
      margin-top: 16px;
    }
  }
}

@include media-breakpoint-up(md) {
  .charity-donation-new {
    &__title {
      width: 100%;
    }

    &__body {
      margin-top: 16px;
      width: 668px;
    }

    &__description {
      width: 488px;
      margin-top: -25px;
    }

    &__message {
      display: block;
    }

    &__image {
      width: 124px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .charity-donation-new {
    &__cost {
      height: 24px;
    }

    &__title {
      width: 100%;
      margin-bottom: 8px;
    }

    &__body {
      margin-top: 16px;
      width: 588px;
    }

    &__message {
      margin: 0;
      display: block;
    }
  }
}

@include media-breakpoint-up(xl) {
  .charity-donation-new {
    padding: 24px;

    &__title {
      width: 100%;
      margin-bottom: 8px;
    }

    &__body {
      margin-top: 15px;
      width: 747px;
    }

    &__description {
      width: 100%;
      margin-top: -30px;
    }

    &__message {
      margin-left: 3px;
      display: inline;
    }

    &__image {
      width: 124px;
    }
  }
}
