.pisell-sale-detail-cart-actions {
  flex: none;
  padding-top: 8px;

  &__buttons {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  &__promotion-wrapper {
    position: relative;
    display: flex;
    min-width: 0;
  }

  &__button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 44px;
    align-self: stretch;
    padding: 0 8px;
    color: #fff;
    background: #2c2c2c;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;

    &:hover:not(:disabled) {
      background: #404040;
      border-color: #404040;
      color: #fff;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      background: #2c2c2c;
      border-color: #2c2c2c;
      color: #fff;

      &:hover {
        background: #2c2c2c !important;
        border-color: #2c2c2c !important;
        color: #fff !important;
        opacity: 0.5 !important;
      }
    }

    &--clear {
      width: 44px;
      flex: none;
      padding: 0;
      border-color: #ff4d4f;

      &:hover:not(:disabled) {
        border-color: #ff7875;
      }
    }

    &--custom-item {
      border-color: #8157d5;

      &:hover:not(:disabled) {
        border-color: #8157d5;
      }

      span {
        white-space: pre-line !important;
        line-height: 1.15;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    &--manual-order,
    &--promotion {
      border-color: #cc8e50;

      &:hover:not(:disabled) {
        border-color: #cc8e50;
      }
    }

    &--manual-order {
      padding: 0 4px;

      span {
        white-space: pre-line !important;
        line-height: 1.15;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .pisell-lowcode-btn-icon {
      margin-right: 0;
      font-size: 22px;
    }

    span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
      font-weight: 600;
    }
  }
}

.pisell-sale-detail--desktop,
.pisell-sale-detail--tablet,
.pisell-sale-detail--pos {
  .pisell-sale-detail-cart-actions {
    background: transparent;
  }
}
