@import '../helpers/helpers';

.total-amount {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 15px;
  margin: 5px 0 15px;
  background-color: $gray-bg;

  &__list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 0;
    list-style-type: none;
  }

  &__item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    line-height: 24px;

    &--total {
      padding: 10px 0;
      font-weight: 500;
      border-top: 1px solid $gray;
    }
  }

  &__price {
    font-weight: 500;

    &--total {
      font-weight: 700;
      font-size: 1.5rem;
    }
  }
}

.total-wrapper {
  display: flex;
  flex-direction: column;

  &__description {
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 4px;
  }
}
