.payways {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 24px;
  max-width: 256px;

  &__title {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    color: $blue-dark;
    flex: none;
    margin-bottom: 8px;
  }

  &__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0;
    padding: 0;
    margin: 0;
    white-space: nowrap;

    &--small {
      width: 210px;
    }
  }

  &__item {
    display: inline-block;
    list-style-type: none;
  }

  &__image {
    height: 30px;
    width: 48px;
  }

  &-klarna {
    display: block;
    height: 30px;
    width: 50px;
    margin-left: -2px;
    border-radius: 5px;
  }
}

@include media-breakpoint-up(sm) {
  .payways {
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
  }
}

@include media-breakpoint-up(md) {
  .payways {
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 32px;

    &__title {
      margin-bottom: 0;
    }

    &__list {
      margin-left: 24px;
    }
  }
}
