.barcode {
  margin-top: 16px;
  padding: 12px;
  background: $white;
  border-radius: 4px;
  color: $gray-dark;
  position: relative;
  font-size: 0.75rem;
  line-height: 1rem;

  &__discount {
    position: absolute;
    top: -8px;
    right: -8px;

    &--text {
      background: $red;
      border-radius: 10px;
      padding: 2px 8px;
      color: $white;
      font-weight: 700;
    }

    img {
      border-radius: 40px;
      width: 100%;
      max-width: 58px;
    }
  }

  &__content {
    display: flex;
    justify-content: center;
    align-items: center;

    p {
      margin-bottom: 0;
      margin-left: 8px;
      font-weight: 500;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .custom-icon {
      width: 13px;
      height: auto;
    }
  }

  &__image {
    display: flex;

    svg {
      width: 100%;
      height: auto;
    }
  }

  &__code {
    text-align: center;
    margin-bottom: 0;
  }
}
