.pisell-plus-sales-product-card {
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  width: 100%;
  padding: 8px;

  &__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
  }

  &--column &__inner {
    flex-direction: column;
    align-items: stretch;
  }

  &--hide-image &__image {
    display: none;
  }

  &__inner-disabled {
    cursor: not-allowed;
    opacity: 0.7;
  }

  &__image {
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #d0d5dd;
    width: var(--pisell-sales-product-card-image-width, 80px);
    height: var(--pisell-sales-product-card-image-height, 80px);

    img {
      width: 100%;
      height: 100%;
      object-fit: var(--pisell-sales-product-card-image-object-fit, cover);
      display: block;
    }
  }

  &__image-placeholder {
    width: 100%;
    height: 100%;
    background: #d0d5dd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
  }

  &__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__title {
    color: var(
      --pisell-sales-product-card-title-color,
      var(--ps-color-text, #1b1b1b)
    );
    font-size: var(--pisell-sales-product-card-title-font-size, 18px);
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  &__action {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
  }

  &__content > .pisell-price-text {
    color: var(
      --pisell-sales-product-card-price-color,
      var(--ps-color-text, #1b1b1b)
    );
    font-size: var(--pisell-sales-product-card-price-font-size, 18px);
  }

  &__stepper {
    display: flex;
    justify-content: flex-end;

    .numeric-stepper {
      width: max-content;
      min-width: 132px;
      margin-left: auto;

      &.numeric-stepper-separated {
        grid-template-columns: max-content max-content max-content;
        justify-content: end;

        .numeric-stepper-display {
          box-sizing: border-box;
          width: auto;
          max-width: 96px;
          padding-right: 6px;
          padding-left: 6px;
          white-space: nowrap;
        }

        &.numeric-stepper-small .numeric-stepper-display {
          min-width: 24px;
        }

        &.numeric-stepper-middle .numeric-stepper-display {
          min-width: 30px;
        }

        &.numeric-stepper-large .numeric-stepper-display {
          min-width: 36px;
        }
      }

      &.numeric-stepper-plus-only {
        grid-template-columns: max-content;
        min-width: 0;
      }
    }
  }

  &__options-button {
    position: relative;
    min-width: 88px;
    height: 40px;
  }

  &__options-button-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(
      --color-primary,
      var(--ant-color-primary, var(--ps-color-primary, #7f56d9))
    );
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    pointer-events: none;
  }
}
